|
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'
}
}
def android = rootProject.ext.android
compileSdkVersion android["compileSdkVersion"]
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId android["applicationId"]
minSdkVersion android["minSdkVersion"]
targetSdkVersion android["targetSdkVersion"]
multiDexEnabled true
// ndk {
// abiFilters "armeabi-v7a", "arm64-v8a"
// abiFilters "armeabi-v7a"
// }
flavorDimensions "default"
vectorDrawables.useSupportLibrary = true
manifestPlaceholders = rootProject.ext.manifestPlaceholders
}
buildFeatures {
dataBinding = 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_32 {
manifestPlaceholders= [UMENG_CHANNEL_VALUE: "yingyongbao"]
ndk{
abiFilters "armeabi-v7a"
}
}
yingyongbao_64 {
manifestPlaceholders= [UMENG_CHANNEL_VALUE: "yingyongbao"]
ndk{
abiFilters "arm64-v8a"
}
}
vivo_32 {
manifestPlaceholders= [UMENG_CHANNEL_VALUE: "vivo"]
ndk {
abiFilters "armeabi-v7a"
}
}
vivo_64 {
manifestPlaceholders= [UMENG_CHANNEL_VALUE: "vivo"]
ndk {
abiFilters "arm64-v8a"
}
}
xiaomi {
manifestPlaceholders= [UMENG_CHANNEL_VALUE: "xiaomi"]
ndk{
abiFilters "armeabi-v7a", "arm64-v8a"
}
}
huawei {
manifestPlaceholders= [UMENG_CHANNEL_VALUE: "huawei"]
ndk{
abiFilters "armeabi-v7a", "arm64-v8a"
}
}
oppo {
manifestPlaceholders= [UMENG_CHANNEL_VALUE: "oppo"]
ndk{
abiFilters "armeabi-v7a", "arm64-v8a"
}
}
cdz {
manifestPlaceholders= [UMENG_CHANNEL_VALUE: "cdz"]
ndk{
abiFilters "armeabi-v7a","arm64-v8a"
}
}
// wandoujia {} baidu {} anzhi {} pp {} vivo {} meizu {} sougou {} c360 {}
productFlavors.all { flavor ->
// flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
if (name.contains("vivo") ) {
resValue "string", "app_name", "一电充电桩"
buildConfigField("String","PRIVACY_LINK","\"http://evcharge.cc/pc/privacy-vivo.html\"")
buildConfigField("String","USER_AGREEMENT_LINK","\"http://evcharge.cc/activity/user-proto-vivo.html\"")
}else{
resValue "string", "app_name", "充电桩"
buildConfigField("String","PRIVACY_LINK","\"http://evcharge.cc/pc/privacy.html\"")
buildConfigField("String","USER_AGREEMENT_LINK","\"http://evcharge.cc/activity/user-proto.html\"")
}
}
}
}
MobSDK {
appKey "6f4323b7b4cc"
appSecret "05e19cfda18d5fcbf779080b063f3707"
ShareSDK {
devInfo {
Wechat {
id 1
sortId 1
bypassApproval false
enable true
}
WechatMoments {
id 2
sortId 2
bypassApproval false
enable true
}
QQ {
id 3
sortId 3
shareByAppClient true
bypassApproval false
enable true
}
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation(name: 'alipaySdk-15.6.8-20191021122514', ext: 'aar')
//https://github.com/hongyangAndroid/AndroidAutoLayout
implementation project(':autolayout')
//下拉刷新库 View https://github.com/chrisbanes/Android-PullToRefresh
implementation project(':library')
//二维码 扫描
implementation project(':zxing')
//https://github.com/huxq17/XRefreshView 下拉上拉刷新
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.1'
implementation 'com.umeng.umsdk:common:9.4.7'// 必选
implementation 'com.umeng.umsdk:asms:1.4.1'// 必选
implementation 'com.google.code.gson:gson:2.8.6'
// 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:20.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.zhy:flowlayout-lib:1.0.3'
//类似与Event bus
implementation 'com.squareup:otto:+'
implementation 'org.greenrobot:greendao:3.3.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.3.1'
implementation 'com.google.android.material:material:1.4.0'
// compile 'com.nineoldandroids:library:2.4.0'
// compile 'com.github.bumptech.glide:glide:4.1.1'
implementation 'com.github.bumptech.glide:glide:4.12.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.8'
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.2.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.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v8.2.0-release-jitpack'
implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v8.2.0-release-jitpack'
implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v8.2.0-release-jitpack'
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 'io.github.lucksiege:pictureselector:v2.7.1'
// implementation files('libs/bugly_crash_release_3.2.2.jar')
implementation "androidx.camera:camera-camera2:1.1.0-alpha07"
// implementation "androidx.camera:camera-core:1.1.0-alpha07"
// 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'
// https://github.com/khoyron/Actionsheet-android
implementation 'com.github.khoyron:Actionsheet-android:4'
implementation 'cn.jiguang.sdk:jpush:4.6.2'
implementation 'cn.jiguang.sdk:jcore:3.2.2'
//车牌键盘
implementation 'com.github.jenly1314:kingkeyboard:1.0.4'
// 权限请求框架:https://github.com/getActivity/XXPermissions
implementation 'com.github.getActivity:XXPermissions:16.2'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
//极速版 (预计占用 4M 左右空间),主要移除了一些不常用的编解码器
// implementation 'com.github.microshow:RxFFmpeg:4.9.0-lite'
}
|