Files
MoGoAiCloudSdk/libraries/countly/sdk/build.gradle
donghongyu 38aee74d23 「Countly」
1、完成Maven上传,待接入到鹰眼
2024-11-01 14:54:43 +08:00

58 lines
1.7 KiB
Groovy

apply plugin: 'com.android.library'
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
testInstrumentationRunner 'ly.count.android.sdk.test.InstrumentationTestRunner'
testHandleProfiling true
testFunctionalTest true
}
buildTypes {
debug {
//should be set to 'true' for jacoco code coverage
testCoverageEnabled = false
multiDexEnabled true
}
release {
minifyEnabled false
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
// This enables long timeouts required on slow environments, e.g. Travis
adbOptions {
timeOutInMs 20 * 60 * 1000 // 20 minutes
installOptions "-d", "-t"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
api fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.annotation:annotation:1.2.0'
// implementation 'androidx.lifecycle:lifecycle-common:2.6.1'
// implementation 'androidx.lifecycle:lifecycle-process:2.6.1'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.2.0'
implementation 'androidx.lifecycle:lifecycle-process:2.4.0'
implementation "androidx.multidex:multidex:2.0.1"
//required for as long the min SDK version is smaller than 21
}
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()