356 lines
13 KiB
Groovy
356 lines
13 KiB
Groovy
tasks.whenTaskAdded { task ->
|
||
if (task.name.contains("lint")) {
|
||
task.enabled = false
|
||
}
|
||
}
|
||
|
||
apply plugin: 'com.android.application'
|
||
//apply plugin: 'com.aliyun.ams.emas-services'
|
||
|
||
android {
|
||
compileSdkVersion 30
|
||
buildToolsVersion '28.0.3'
|
||
aaptOptions.cruncherEnabled = false
|
||
aaptOptions.useNewCruncher = false
|
||
useLibrary 'org.apache.http.legacy'
|
||
defaultConfig {
|
||
minSdkVersion 21
|
||
targetSdkVersion 28
|
||
versionCode 1
|
||
versionName "1.1.1"
|
||
multiDexEnabled true
|
||
|
||
ndk {
|
||
moduleName "HbgArc"
|
||
// 选择要添加的对应cpu类型的.so库。
|
||
abiFilters "armeabi-v7a"
|
||
// , "x86", "armeabi"
|
||
// , "x86", "armeabi"
|
||
}
|
||
}
|
||
signingConfigs {//打包签名
|
||
standard {
|
||
keyAlias 'standard'
|
||
keyPassword '1234567890'
|
||
storeFile file('./config/standard.jks')
|
||
storePassword '1234567890'
|
||
v2SigningEnabled true
|
||
v1SigningEnabled true
|
||
}
|
||
yonsz {
|
||
keyAlias 'z1'
|
||
keyPassword '1234567890'
|
||
storeFile file('./config/z1.jks')
|
||
storePassword '1234567890'
|
||
v2SigningEnabled true
|
||
v1SigningEnabled true
|
||
}
|
||
ansunxan {
|
||
keyAlias 'ansunxan'
|
||
keyPassword '1234567890'
|
||
storeFile file('./config/ansunxan.jks')
|
||
storePassword '1234567890'
|
||
v2SigningEnabled true
|
||
v1SigningEnabled true
|
||
}
|
||
yagene {
|
||
keyAlias 'yagene'
|
||
keyPassword '1234567890'
|
||
storeFile file('./config/yagene.jks')
|
||
storePassword '1234567890'
|
||
v2SigningEnabled true
|
||
v1SigningEnabled true
|
||
}
|
||
ansunxanwork {
|
||
keyAlias 'ansunxanwork'
|
||
keyPassword '1234567890'
|
||
storeFile file('./config/ansunxanwork.jks')
|
||
storePassword '1234567890'
|
||
v2SigningEnabled true
|
||
v1SigningEnabled true
|
||
}
|
||
intelligentvoice {
|
||
keyAlias 'intelligentvoice'
|
||
keyPassword '1234567890'
|
||
storeFile file('./config/intelligentvoice.jks')
|
||
storePassword '1234567890'
|
||
v2SigningEnabled true
|
||
v1SigningEnabled true
|
||
}
|
||
xiaoxun {
|
||
keyAlias 'intelligentvoice'
|
||
keyPassword '1234567890'
|
||
storeFile file('./config/xiaoxun.jks')
|
||
storePassword '1234567890'
|
||
v2SigningEnabled true
|
||
v1SigningEnabled true
|
||
}
|
||
}
|
||
|
||
/*android.applicationVariants.all {
|
||
variant ->
|
||
variant.outputs.all {
|
||
outputFileName = "app-release${app_version_name}.apk"
|
||
}
|
||
}*/
|
||
|
||
lintOptions {
|
||
checkReleaseBuilds false
|
||
abortOnError false
|
||
}
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
signingConfig signingConfigs.ansunxan
|
||
}
|
||
debug {
|
||
signingConfig signingConfigs.ansunxan
|
||
}
|
||
}
|
||
|
||
flavorDimensions "app"
|
||
|
||
sourceSets {
|
||
main {
|
||
jni.srcDirs = []
|
||
}
|
||
|
||
standard {
|
||
java.srcDir('src/standard/java')
|
||
res.srcDir('src/standard/res')
|
||
// manifest.srcFile('src/standard/AndroidManifest.xml')
|
||
}
|
||
yonsz {
|
||
java.srcDir('src/yonsz/java')
|
||
res.srcDir('src/yonsz/res')
|
||
}
|
||
ansunxan {
|
||
java.srcDir('src/ansunxan/java')
|
||
res.srcDir('src/ansunxan/res')
|
||
}
|
||
yagene {
|
||
java.srcDir('src/yagene/java')
|
||
res.srcDir('src/yagene/res')
|
||
}
|
||
ansunxanwork {
|
||
java.srcDir('src/ansunxanwork/java')
|
||
res.srcDir('src/ansunxanwork/res')
|
||
}
|
||
intelligentvoice {
|
||
java.srcDir('src/intelligentvoice/java')
|
||
res.srcDir('src/intelligentvoice/res')
|
||
}
|
||
xiaoxun {
|
||
java.srcDir('src/xiaoxun/java')
|
||
res.srcDir('src/xiaoxun/res')
|
||
}
|
||
skyworth {
|
||
java.srcDir('src/skyworth/java')
|
||
res.srcDir('src/skyworth/res')
|
||
}
|
||
}
|
||
productFlavors {
|
||
yonsz {
|
||
applicationId "com.yonsz.z1"
|
||
dimension "app"
|
||
manifestPlaceholders = [
|
||
XG_ACCESS_ID : "2100296624",
|
||
XG_ACCESS_KEY: "A3Q57SJQU67V",
|
||
umeng_app_key: "59f19711aed17921f2000088",
|
||
gao_app_key : "193a749db20e40f55b3ab1009d41bedf"
|
||
]
|
||
}
|
||
standard {
|
||
applicationId "com.standard.z1"
|
||
dimension "app"
|
||
versionCode 5
|
||
versionName "5.2.0"
|
||
manifestPlaceholders = [
|
||
/* XG_ACCESS_ID : "2100296953",
|
||
XG_ACCESS_KEY: "A9C9T84U3BXM",*/
|
||
XG_ACCESS_ID : "1500014291",
|
||
XG_ACCESS_KEY: "A90CMS8AIFNO",
|
||
gao_app_key : "b5b354a8dfafc9309e40d824b9cd0b7a",
|
||
umeng_app_key: "5c493596f1f5564755000022",
|
||
tuya_key : "t99yjh7xdrx8wfyqv3hp",
|
||
tuya_secret : "ywvkpe5f5578uqtxrpxr89jqc79jkyuw"
|
||
]
|
||
signingConfig signingConfigs.standard
|
||
}
|
||
ansunxan {
|
||
applicationId "com.ansunxan.z1"
|
||
dimension "app"
|
||
versionCode 6
|
||
versionName "6.6.6"
|
||
manifestPlaceholders = [
|
||
/*XG_ACCESS_ID : "2100297291",
|
||
XG_ACCESS_KEY: "A616D5UPWR3V", */
|
||
XG_ACCESS_ID : "1500014287",
|
||
XG_ACCESS_KEY: "AC8WXQQC44E3",
|
||
gao_app_key : "3291ca8a301a62a3ae76e0be130312e7",
|
||
umeng_app_key: "5ec2544e895cca75000002d2",
|
||
tuya_key : "t99yjh7xdrx8wfyqv3hp",
|
||
tuya_secret : "ywvkpe5f5578uqtxrpxr89jqc79jkyuw"
|
||
]
|
||
signingConfig signingConfigs.ansunxan
|
||
}
|
||
yagene {
|
||
applicationId "com.yagene.z1"
|
||
dimension "app"
|
||
versionCode 1
|
||
versionName "1.0.0"
|
||
manifestPlaceholders = [
|
||
XG_ACCESS_ID : "1500031495",
|
||
XG_ACCESS_KEY: "AQ9HV6MQZYAI",
|
||
gao_app_key : "45731429e1be31dd06746f16e0f34388",
|
||
umeng_app_key: "5ec2544e895cca75000002d2",
|
||
tuya_key : "t99yjh7xdrx8wfyqv3hp",
|
||
tuya_secret : "ywvkpe5f5578uqtxrpxr89jqc79jkyuw"
|
||
]
|
||
signingConfig signingConfigs.yagene
|
||
}
|
||
ansunxanwork {
|
||
applicationId "com.ansunxanwork.z1"
|
||
dimension "app"
|
||
manifestPlaceholders = [
|
||
XG_ACCESS_ID : "2100297291",
|
||
XG_ACCESS_KEY: "A616D5UPWR3V",
|
||
gao_app_key : "45731429e1be31dd06746f16e0f34388",
|
||
umeng_app_key: "5ec2544e895cca75000002d2",
|
||
tuya_key : "t99yjh7xdrx8wfyqv3hp",
|
||
tuya_secret : "ywvkpe5f5578uqtxrpxr89jqc79jkyuw"
|
||
]
|
||
signingConfig signingConfigs.ansunxanwork
|
||
}
|
||
intelligentvoice {
|
||
applicationId 'com.intelligentvoice.z1'
|
||
dimension "app"
|
||
manifestPlaceholders = [
|
||
XG_ACCESS_ID : "2100298223",
|
||
XG_ACCESS_KEY: "AJ92W6VT1N6G",
|
||
umeng_app_key: "5ec2544e895cca75000002d2",
|
||
gao_app_key : "3291ca8a301a62a3ae76e0be130312e7"
|
||
]
|
||
signingConfig signingConfigs.intelligentvoice
|
||
}
|
||
xiaoxun {
|
||
applicationId "com.xiaoxun.z1"
|
||
dimension "app"
|
||
manifestPlaceholders = [
|
||
XG_ACCESS_ID : "2100301206",
|
||
XG_ACCESS_KEY: "A78F6EK53ZQY",
|
||
umeng_app_key: "5ec2544e895cca75000002d2",
|
||
gao_app_key : "3291ca8a301a62a3ae76e0be130312e7"
|
||
]
|
||
signingConfig signingConfigs.xiaoxun
|
||
}
|
||
skyworth {
|
||
applicationId "com.skyworth.z1"
|
||
versionCode 1
|
||
versionName "1.7.4"
|
||
dimension "app"
|
||
manifestPlaceholders = [
|
||
XG_ACCESS_ID : "1500016648",
|
||
XG_ACCESS_KEY: "AMUYII7J6457",
|
||
gao_app_key : "be80ef6e50227f3c0a6969f30d56888e",
|
||
umeng_app_key: "5ec2544e895cca75000002d2",
|
||
tuya_key : "t99yjh7xdrx8wfyqv3hp",
|
||
tuya_secret : "ywvkpe5f5578uqtxrpxr89jqc79jkyuw"
|
||
]
|
||
signingConfig signingConfigs.xiaoxun
|
||
}
|
||
}
|
||
compileOptions {
|
||
targetCompatibility 1.8
|
||
sourceCompatibility 1.8
|
||
}
|
||
}
|
||
ext {
|
||
supportLibVersion = "27.1.1"
|
||
}
|
||
dependencies {
|
||
implementation "com.android.support:appcompat-v7:$supportLibVersion"
|
||
implementation "com.android.support:support-v4:$supportLibVersion"
|
||
implementation "com.android.support:recyclerview-v7:$supportLibVersion"
|
||
implementation("com.android.support:design:28.0.0", {
|
||
exclude group: 'com.android.support', module: 'design'
|
||
})
|
||
implementation "com.android.support:support-annotations:$supportLibVersion"
|
||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||
// implementation fileTree(include: ['*.aar'], dir: 'libs')
|
||
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
|
||
exclude group: 'com.android.support', module: 'support-annotations'
|
||
})
|
||
testImplementation 'junit:junit:4.12'
|
||
implementation files('libs/okhttp-3.2.0.jar')
|
||
implementation files('libs/okio-1.6.0.jar')
|
||
implementation files('libs/fastjson-1.2.7.jar')
|
||
implementation 'com.belerweb:pinyin4j:2.5.1'
|
||
implementation 'com.contrarywind:Android-PickerView:3.2.5'
|
||
implementation files('libs/netty-all-4.0.14.Final.jar')
|
||
implementation files('libs/eventbus.jar')
|
||
implementation 'com.yanzhenjie:recyclerview-swipe:1.1.2'
|
||
implementation 'com.bigkoo:convenientbanner:2.0.5'
|
||
implementation 'com.lzy.widget:view-core:0.2.1'
|
||
implementation 'com.facebook.rebound:rebound:0.3.8'
|
||
implementation 'com.liulishuo.filedownloader:library:1.6.8'
|
||
//注解
|
||
implementation 'com.jakewharton:butterknife:8.5.1'
|
||
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
|
||
//沉浸式
|
||
implementation 'com.gyf.barlibrary:barlibrary:2.3.0'
|
||
//使用微信分享、登录、收藏、支付等功能需要的库以及文件
|
||
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
|
||
implementation files('libs/android_4.2.2_r1_hide.jar')
|
||
implementation files('libs/commons-io-1.3.2.jar')
|
||
//信鸽jar
|
||
// implementation 'com.tencent.xinge:xinge:3.2.3-release'
|
||
//添加以下依赖
|
||
implementation 'com.tencent.jg:jg:1.1'
|
||
implementation 'com.tencent.tpns:tpns:1.3.4.3-release'
|
||
// TPNS 推送 [VERSION] 为当前SDK版本号,版本号可在 SDK 下载页查看
|
||
//wup包
|
||
implementation 'com.tencent.wup:wup:1.0.0.E-release'
|
||
//mid包
|
||
implementation 'com.tencent.mid:mid:4.0.6-release'
|
||
implementation 'com.android.support:multidex:1.0.1'
|
||
//聊天功能
|
||
implementation 'com.github.bumptech.glide:glide:3.7.0'
|
||
implementation 'org.greenrobot:greendao:3.2.0'
|
||
implementation files('libs/gesture-imageview.jar')
|
||
//百度语音识别
|
||
implementation project(':baiduasr')
|
||
implementation project(':chatkit')
|
||
implementation files('libs/tbs_sdk_thirdapp_v3.6.0.1310_43612_sharewithdownload_withoutGame_obfs_20180706_163319.jar')
|
||
implementation 'com.android.support:cardview-v7:25.3.1'
|
||
implementation 'com.gavin.com.library:stickyDecoration:1.4.11'
|
||
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
||
implementation 'q.rorbin:VerticalTabLayout:1.2.5'
|
||
implementation 'cn.youngkaaa:yviewpager:0.4'
|
||
implementation 'com.qw:soulpermission:1.1.6'
|
||
// implementation files('libs/gson-2.2.4.jar')
|
||
implementation files('libs/nineoldandroids-2.4.0.jar')
|
||
implementation 'id.zelory:compressor:2.1.0'
|
||
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
|
||
implementation 'io.reactivex.rxjava2:rxjava:2.0.1'
|
||
//涂鸦
|
||
implementation 'com.tuya.smart:tuyasmart:3.13.0'
|
||
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'
|
||
implementation 'com.github.smarxpan:NotchScreenTool:0.0.1'
|
||
// compile 'com.youth.banner:banner:2.0.12'
|
||
implementation 'com.github.lzjin:ViewPagerGallery:1.2'
|
||
implementation 'cn.hutool:hutool-all:5.4.3'
|
||
compile 'com.github.pinguo-zhouwei:CustomPopwindow:2.1.1'
|
||
implementation files('libs/hiflying-iots-android-smartlink-8.3.3.jar')
|
||
implementation files('libs/libphonenumber-8.12.15.jar')
|
||
implementation project(path: ':DeviceAddModule')
|
||
compile 'com.github.XanderWang:elasticity:1.0.0'
|
||
implementation files('libs/lechangeSDK.jar')
|
||
|
||
/*implementation(name: 'android-gif-drawable-release@1.2.23', ext: 'aar')
|
||
implementation(name: 'base_oaid_sdk', ext: 'aar')
|
||
implementation(name: 'uniapp-v8-release', ext: 'aar')
|
||
implementation(name: 'uniMPSDK-V2-release', ext: 'aar')*/
|
||
}
|