充电桩app代码

build.gradle 7.6KB

    apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' apply plugin: 'com.mob.sdk' apply plugin: 'bugly' bugly { appId = '900010422' // 注册时分配的App ID appKey = 'mnhwhy8jP7Fq2G6b' // 注册时分配的App Key debug = true } android { signingConfigs { release { keyAlias 'KeyMac' keyPassword 'd1ev123' storeFile file('../keystore/KeyMacCDZ.jks') storePassword 'd1ev123' } } compileSdkVersion 27 buildToolsVersion '29.0.0' aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.electric.chargingpile" minSdkVersion 19 targetSdkVersion 27 multiDexEnabled true ndk { abiFilters "armeabi" } flavorDimensions "default" // jackOptions { // enabled true // } } sourceSets.main { jniLibs.srcDirs 'src/main/libs' } lintOptions { checkReleaseBuilds false abortOnError false } greendao { schemaVersion 3 daoPackage 'com.electric.chargingpile.gen' targetGenDir 'src/main/java' } buildTypes { debug { //是否优化zip zipAlignEnabled true // 移除无用的resource文件 // shrinkResources true //启用代码混淆 debug 模式下需要设置为false,否则无法看到局部变量的值 minifyEnabled false //混淆规则配置文件 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } release { //是否优化zip zipAlignEnabled true // 移除无用的resource文件 // shrinkResources true //启用代码混淆 minifyEnabled true //混淆规则配置文件 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } } dexOptions { javaMaxHeapSize "5g" } packagingOptions { exclude 'META-INF/DEPENDENCIES.txt' exclude 'META-INF/rxjava.properties' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/notice.txt' exclude 'META-INF/license.txt' exclude 'META-INF/dependencies.txt' exclude 'META-INF/LGPL2.1' } productFlavors { yingyongbao {} c360 {} xiaomi {} huawei {} oppo {} cdz {} // wandoujia {} baidu {} anzhi {} pp {} vivo {} meizu {} sougou {} productFlavors.all { flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name] } } } MobSDK { appKey "6f4323b7b4cc" appSecret "05e19cfda18d5fcbf779080b063f3707" ShareSDK { devInfo { /* Wechat微信和WechatMoments微信朋友圈的appid是一样的; 注意:开发者不能用我们这两个平台的appid,否则分享不了微信测试的时候,微信测试需要先签名打包出apk, sample测试微信,要先签名打包,keystore在sample项目中,密码123456 BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过 审核的应用也可以执行分享,但是仅限于分享文字和图片,不能分享其他类型, 默认值为false。此外,微信收藏不支持此字段。wx4868b35061f87885 <!--要分享微信小应用程序时用userName,path-->*/ Wechat { id 1 sortId 1 appId "wx9ea0244164ac9fcf" appSecret "372a449f6371bd8f6dad1ed8ad70fa6b" bypassApproval false enable true } WechatMoments { id 2 sortId 2 appId "wx9ea0244164ac9fcf" appSecret "372a449f6371bd8f6dad1ed8ad70fa6b" bypassApproval false enable true } QQ { id 3 sortId 3 appId "101671003" appKey "f5f9c7dd29509ddaebf1a8937fd6b56e" shareByAppClient true bypassApproval false enable true } } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation (name:'alipaySdk-15.6.8-20191021122514', ext:'aar') implementation project(':autolayout') implementation project(':library') implementation project(':zxing') implementation project(':XRefreshView') implementation project(':videolibrary:picture_library') // compile 'com.google.zxing:core:+' // compile 'com.google.zxing:android-core:+' implementation 'com.blankj:utilcode:1.9.8' implementation 'com.android.support:multidex:1.0.1' implementation 'com.umeng.analytics:analytics:latest.integration' implementation 'com.google.code.gson:gson:2.2.4' // compile 'com.squareup.okhttp:okhttp:3.14.0' implementation 'com.squareup.okhttp:okhttp:2.0.0' implementation 'com.zhy:okhttputils:2.4.1' implementation 'com.android.support:support-v4:27.1.1' implementation 'com.google.firebase:firebase-appindexing:10.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.2' implementation 'com.zhy:flowlayout-lib:1.0.3' implementation 'com.squareup:otto:+' implementation 'org.greenrobot:greendao:3.2.0' implementation 'org.greenrobot:greendao-generator:3.2.0' implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.1.0' implementation 'com.github.ksoichiro:android-observablescrollview:+' implementation 'me.codeboy.android:align-text-view:2.3.0' implementation 'me.itangqi.waveloadingview:library:0.3.5' implementation 'com.yinglan.scrolllayout:scrolllayout:1.0.0' implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:design:27.1.1' // compile 'com.nineoldandroids:library:2.4.0' // compile 'com.github.bumptech.glide:glide:4.1.1' implementation 'com.github.bumptech.glide:glide:4.2.0' implementation 'me.iwf.photopicker:PhotoPicker:0.9.12@aar' implementation 'top.zibin:Luban:1.1.2' implementation 'com.ms-square:expandableTextView:0.1.4' implementation 'io.reactivex.rxjava2:rxjava:2.0.5' implementation 'io.reactivex.rxjava2:rxandroid:2.0.1' implementation 'com.cjj.materialrefeshlayout:library:1.3.0' implementation 'com.alibaba:fastjson:1.1.64.android' implementation 'pub.devrel:easypermissions:0.2.0' implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3' implementation 'com.github.promeg:tinypinyin:1.0.0' implementation 'org.greenrobot:eventbus:3.0.0' implementation 'com.qmuiteam:qmui:1.2.0' implementation 'org.zackratos:ultimatebar:1.1.1' implementation 'com.github.Aspsine:IRecyclerView:0.0.7' implementation 'com.upyun:upyun-android-sdk:2.1.0' // 上下翻页 implementation 'com.github.castorflex.verticalviewpager:library:19.0.1' // sqlite异常结局 implementation 'net.zetetic:android-database-sqlcipher:3.5.7@aar' implementation 'com.shuyu:GSYVideoPlayer:5.0.2' //compile 'com.github.chrisbanes:PhotoView:2.0.0' implementation 'com.wang.avi:library:2.1.3' }