充电桩app代码

build.gradle 9.2KB

    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 26 buildToolsVersion '28.0.3' aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false defaultConfig { applicationId "com.electric.chargingpile" minSdkVersion 19 targetSdkVersion 26 multiDexEnabled true ndk { abiFilters "armeabi" } } sourceSets.main { jniLibs.srcDirs 'src/main/libs' } lintOptions { checkReleaseBuilds false abortOnError false } greendao { schemaVersion 3 daoPackage 'com.electric.chargingpile.gen' targetGenDir 'src/main/java' } // andResGuard { // // mappingFile = file("./resource_mapping.txt") // mappingFile = null // use7zip = true // useSign = true // // it will keep the origin path of your resources when it's true // keepRoot = false // // whiteList = [ // // your icon // "R.drawable.icon", // // for fabric // "R.string.com.crashlytics.*", // // for google-services // "R.string.google_app_id", // "R.string.gcm_defaultSenderId", // "R.string.default_web_client_id", // "R.string.ga_trackingId", // "R.string.firebase_database_url", // "R.string.google_api_key", // "R.string.google_crash_reporting_api_key", // "R.layout.plugin_camera_album" // ] // compressFilePattern = [ // "*.png", // "*.jpg", // "*.jpeg", // "*.gif", // ] // sevenzip { // artifact = 'com.tencent.mm:SevenZip:1.2.13' // //path = "/usr/local/bin/7za" // } // // /** // * Optional: if finalApkBackupPath is null, AndResGuard will overwrite final apk // * to the path which assemble[Task] write to // **/ // // finalApkBackupPath = "${project.rootDir}/final.apk" // // /** // * Optional: Specifies the name of the message digest algorithm to user when digesting the entries of JAR file // * Only works in V1signing, default value is "SHA-1" // **/ // // digestalg = "SHA-256" // } buildTypes { debug { //是否优化zip zipAlignEnabled true // 移除无用的resource文件 // shrinkResources true //启用代码混淆 minifyEnabled true //混淆规则配置文件 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 "4g" } // repositories { // mavenCentral() // maven { url = 'https://dl.bintray.com/yuancloud/maven/' }// } 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 { wandoujia {} // baidu {} // c360 {} // yingyongbao {} // xiaomi {} // anzhi {} // pp {} // vivo {} // huawei {} // oppo {} // meizu {} // cdz {} // 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 "1104205379" appKey "dX2eAJtMGUUzLYRM" shareByAppClient true bypassApproval false enable true } } } } dependencies { // compile files('libs/badgeview.jar') compile files('libs/mframework.jar') compile files('libs/picasso-2.5.2.jar') compile project(':autolayout') compile files('libs/universal-image-loader-1.9.1.jar') compile files('libs/bugly_1.2.9_release.jar') //noinspection GradleCompatible compile files('libs/jg_filter_sdk_1.1.jar') compile files('libs/wup-1.0.0.E-SNAPSHOT.jar') compile files('libs/pinyin4j-2.5.0.jar') compile files('libs/pinyin4android1.0.jar') compile files('libs/Msc.jar') compile files('libs/libammsdk.jar') compile files('libs/alipaySdk-20160427.jar') compile 'com.google.zxing:core:+' compile 'com.google.zxing:android-core:+' compile project(':library') compile files('libs/ZBarDecoder.jar') compile files('libs/jpush-android_v3.0.6.jar') compile files('libs/jcore-android_v1.1.3.jar') compile 'com.blankj:utilcode:1.9.8' // compile project(':xrichtextt') compile 'com.android.support:multidex:1.0.1' compile 'com.umeng.analytics:analytics:latest.integration' compile 'com.google.code.gson:gson:2.2.4' // compile 'com.squareup.okhttp:okhttp:3.14.0' compile 'com.squareup.okhttp:okhttp:2.0.0' compile 'com.zhy:okhttputils:2.4.1' compile 'com.android.support:support-v4:26.1.0' compile 'com.google.android.gms:play-services-appindexing:9.4.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.zhy:flowlayout-lib:1.0.3' compile 'com.squareup:otto:+' compile 'org.greenrobot:greendao:3.2.0' compile 'org.greenrobot:greendao-generator:3.2.0' compile 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.1.0' compile 'com.github.ksoichiro:android-observablescrollview:+' compile 'me.codeboy.android:align-text-view:2.3.0' compile 'me.itangqi.waveloadingview:library:0.3.5' compile 'com.yinglan.scrolllayout:scrolllayout:1.0.0' compile 'com.android.support:appcompat-v7:26.1.0' compile 'com.android.support:design:26.1.0' // compile 'com.nineoldandroids:library:2.4.0' compile 'com.github.bumptech.glide:glide:4.1.1' compile 'me.iwf.photopicker:PhotoPicker:0.9.12@aar' compile 'top.zibin:Luban:1.1.2' compile 'com.ms-square:expandableTextView:0.1.4' compile 'io.reactivex.rxjava2:rxjava:2.0.5' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'com.cjj.materialrefeshlayout:library:1.3.0' compile project(':zxing') compile 'com.alibaba:fastjson:1.1.64.android' compile 'pub.devrel:easypermissions:0.2.0' compile 'com.github.PhilJay:MPAndroidChart:v3.0.3' compile 'com.github.promeg:tinypinyin:1.0.0' compile 'org.greenrobot:eventbus:3.0.0' compile files('libs/AMap3DMap_6.5.0_AMapNavi_6.4.0_AMapSearch_6.5.0_AMapLocation_4.2.0_20181009.jar') compile 'com.qmuiteam:qmui:1.2.0' compile 'org.zackratos:ultimatebar:1.1.1' compile project(':XRefreshView') compile 'com.github.Aspsine:IRecyclerView:0.0.7' compile project(':ijkplayer-java') compile 'com.upyun:upyun-android-sdk:+' compile project(':videolibrary:picture_library') }