50 lines
1.4 KiB
Groovy
50 lines
1.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt' //kapt3插件
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
android {
|
|
compileSdkVersion 31
|
|
|
|
defaultConfig {
|
|
minSdkVersion 24
|
|
targetSdkVersion 31
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/base'
|
|
main.java.srcDirs += 'src/main/api9'
|
|
main.java.srcDirs += 'src/main/api14'
|
|
main.java.srcDirs += 'src/main/api21'
|
|
main.java.srcDirs += 'src/main/api23'
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
compileOnly project(':RxKit')
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
compileOnly 'io.reactivex.rxjava2:rxjava:2.2.21'
|
|
compileOnly 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
// implementation "androidx.core:core-ktx:1.2.0"
|
|
}
|
|
|