67 lines
2.2 KiB
Groovy
67 lines
2.2 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'kotlin-android'
|
|
id 'kotlin-android-extensions'
|
|
id 'kotlin-kapt'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
// buildToolsVersion rootProject.ext.android.buildToolsVersion
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
versionCode Integer.valueOf(VERSION_CODE)
|
|
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
|
|
buildConfigField("String", "BAIDU_APP_ID", "\"${project.property("baiduAppId")}\"")
|
|
buildConfigField("String", "BAIDU_API_KEY", "\"${project.property("baiduApiKey")}\"")
|
|
buildConfigField("String", "BAIDU_SECRET_KEY", "\"${project.property("baiduSecretKey")}\"")
|
|
|
|
//ARouter apt 参数
|
|
kapt {
|
|
useBuildCache = false
|
|
arguments {
|
|
arg("AROUTER_MODULE_NAME", project.getName())
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation rootProject.ext.dependencies.kotlinstdlib
|
|
implementation rootProject.ext.dependencies.androidxccorektx
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
implementation rootProject.ext.dependencies.material
|
|
|
|
implementation(files("libs/bdasr_V3_20210628_cfe8c44.jar"))
|
|
implementation(files("libs/com.baidu.tts_2.6.3.c2aaa9f_20220922113422.jar"))
|
|
|
|
implementation files('libs/AIKit.aar')
|
|
|
|
implementation project(':foudations:mogo-commons')
|
|
implementation project(':core:mogo-core-utils')
|
|
implementation project(':core:mogo-core-function-call')
|
|
}
|