51 lines
1.6 KiB
Groovy
51 lines
1.6 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
applicationId "com.navinfo.testapplication"
|
|
minSdk 23
|
|
//noinspection ExpiredTargetSdkVersion
|
|
targetSdk 32
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
buildToolsVersion '29.0.1'
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
//如果需要下面就取消注释
|
|
//dataBinding true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.appcompat:appcompat:1.5.1'
|
|
implementation 'com.google.android.material:material:1.6.0'
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.4.32"
|
|
// 协程核心库
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
|
|
// 协程Android支持库
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3"
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
//配合RxJava 使用
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
} |