充电桩app代码

build.gradle 8.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 29 buildToolsVersion '29.0.2' aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationId "com.electric.chargingpile" minSdkVersion 24 targetSdkVersion 29 multiDexEnabled true ndk { abiFilters "armeabi" } flavorDimensions "default" vectorDrawables.useSupportLibrary = true // jackOptions { // enabled true // } } dataBinding { enabled true } sourceSets.main { jniLibs.srcDirs 'src/main/libs' res.srcDirs = ['src/main/res'] } lintOptions { checkReleaseBuilds false abortOnError false } greendao { schemaVersion 3 daoPackage 'com.electric.chargingpile.gen' targetGenDir 'src/main/java' } buildTypes { debug { //是否优化zip zipAlignEnabled false // 移除无用的resource文件 // shrinkResources true //启用代码混淆 debug 模式下需要设置为false,否则无法看到局部变量的值 minifyEnabled false //混淆规则配置文件 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } release { //是否优化zip zipAlignEnabled true // 移除无用的resource文件 //启用代码混淆 minifyEnabled false // shrinkResources true //混淆规则配置文件 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } } dexOptions { javaMaxHeapSize "8g" } 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(include: ['*.jar'], dir: 'libs') 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 'androidx.multidex:multidex:2.0.0' 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 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.google.firebase:firebase-appindexing:10.0.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 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 'androidx.appcompat:appcompat:1.0.0' implementation 'com.google.android.material:material:1.0.0' // compile 'com.nineoldandroids:library:2.4.0' // compile 'com.github.bumptech.glide:glide:4.1.1' implementation 'com.github.bumptech.glide:glide:4.11.0' // 停更过期库,用zhihu/Matisse // implementation 'me.iwf.photopicker:PhotoPicker:0.9.12@aar' // 为了兼容Android10 使用beta版本 implementation 'com.zhihu.android:matisse:0.5.3-beta3' 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:3.0.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.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' implementation 'com.wang.avi:library:2.1.3' implementation 'com.afollestad.material-dialogs:core:0.9.6.0' implementation 'com.afollestad.material-dialogs:commons:0.9.6.0' // 库过期,下载源码修改 // implementation 'com.github.Aspsine:IRecyclerView:0.0.7' implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.6' // implementation files('libs/bugly_crash_release_3.2.2.jar') implementation "androidx.camera:camera-camera2:1.0.0-beta03" implementation "androidx.camera:camera-core:1.0.0-beta03" // implementation 'com.github.chrisbanes:PhotoView:2.3.0' // 使用微信分享、登录、收藏、支付等功能需要的库以及文件 implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.4' // implementation 'com.squareup.picasso:picasso:2.71828' }