133 lines
4.5 KiB
Groovy
133 lines
4.5 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
// id 'kotlin-android-extensions'
|
|
id 'kotlin-kapt'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-parcelize'
|
|
// id 'com.huawei.agconnect'
|
|
}
|
|
|
|
android {
|
|
compileSdk rootProject.ext.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
applicationId "com.xjjk.healthexpertclient"
|
|
minSdk rootProject.ext.minSdkVersion
|
|
targetSdk rootProject.ext.targetSdkVersion
|
|
versionCode rootProject.ext.versionCode
|
|
versionName rootProject.ext.versionName
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
ndk {
|
|
// 选择实际需要的cpu架构
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a'//, 'x86', 'x86_64'
|
|
}
|
|
// manifestPlaceholders = [
|
|
// JPUSH_PKGNAME : applicationId,
|
|
// JPUSH_APPKEY : "4480cf772398ae1b775c91aa", //JPush 上注册的包名对应的 Appkey.
|
|
// JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
|
|
// MEIZU_APPKEY : "MZ-魅族的APPKEY",
|
|
// MEIZU_APPID : "MZ-魅族的APPID",
|
|
// XIAOMI_APPID : "MI-小米的APPID",
|
|
// XIAOMI_APPKEY : "MI-小米的APPKEY",
|
|
// OPPO_APPKEY : "OP-oppo的APPKEY",
|
|
// OPPO_APPID : "OP-oppo的APPID",
|
|
// OPPO_APPSECRET : "OP-oppo的APPSECRET",
|
|
// VIVO_APPKEY : "vivo的APPKEY",
|
|
// VIVO_APPID : "vivo的APPID",
|
|
// HONOR_APPID : "Honor的APP ID"
|
|
// ]
|
|
}
|
|
signingConfigs{
|
|
release {
|
|
storeFile file('/key/yxjkExpert.jks')
|
|
storePassword "yxjk1234"
|
|
keyAlias "yxjk"
|
|
keyPassword "yxjk1234"
|
|
//SHA1: 48:30:3D:D2:C1:6E:E7:D5:CC:1C:24:A4:64:F5:04:19:2E:9D:F3:98
|
|
}
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
signingConfig signingConfigs.release
|
|
minifyEnabled false // 开启混淆
|
|
shrinkResources false // 启动资源压缩
|
|
zipAlignEnabled true // 开启zipalign优化
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
release {
|
|
signingConfig signingConfigs.release
|
|
minifyEnabled false
|
|
shrinkResources false // 启动资源压缩
|
|
zipAlignEnabled true // 开启zipalign优化
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
packagingOptions {
|
|
exclude 'META-INF/gradle/incremental.annotation.processors'
|
|
exclude 'DebugProbesKt.bin'
|
|
}
|
|
dataBinding {
|
|
enabled = true
|
|
}
|
|
kapt {
|
|
generateStubs = true
|
|
}
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
res.srcDirs = [
|
|
'src/main/res-login',
|
|
'src/main/res-workbench',
|
|
'src/main/res-mine',
|
|
'src/main/res-other',
|
|
'src/main/res-im',
|
|
'src/main/res'
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(path: ':lib_base')
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
implementation rootProject.ext.androidxLibs
|
|
// ViewModel and LiveData
|
|
implementation rootProject.ext.jetpackLibs
|
|
/* annotationProcessor */
|
|
kapt rootProject.ext.annotationProcessorLibs
|
|
/*网络请求相关*/
|
|
implementation rootProject.ext.networkLibs
|
|
/*Glide*/
|
|
implementation rootProject.ext.glideLibs
|
|
/*AgentWeb*/
|
|
implementation rootProject.ext.agentWebLibs
|
|
/*高德地图*/
|
|
implementation rootProject.ext.mapLibs
|
|
/*极光推送*/
|
|
// implementation rootProject.ext.jPushLibs
|
|
// 其他包
|
|
implementation rootProject.ext.commonLibs
|
|
// implementation project(path: ':systemLib')
|
|
implementation project(path: ':system:base_resource')
|
|
implementation project(path: ':system:video')
|
|
implementation project(path: ':ninegridview')
|
|
|
|
api project(':system:tuichat')
|
|
api project(':system:tuicontact')
|
|
api project(':system:tuiconversation')
|
|
api project(':system:tuigroup')
|
|
api project(':system:tuicallkit')
|
|
// api project(':system:tuicallkit-7.3.4358')
|
|
} |