apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.bawei.moni003"
minSdkVersion 18
targetSdkVersion 30
versionCode 1
versionName "1.0"
multiDexEnabled = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//androidX 版本使用下面的依赖
implementation 'com.github.xiaohaibin:XBanner:androidx_v1.1.2'
//Retrofit网络请求
implementation "com.squareup.retrofit2:retrofit:2.6.0"
implementation "com.squareup.retrofit2:converter-gson:2.6.0"
implementation "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2"
//Kotlin Coroutines 协程
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5"
/* Fresco */
implementation 'com.facebook.fresco:fresco:2.3.0'
/* 日志拦截器 */
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
implementation 'com.google.android.material:material:1.0.0' /* material 库*/
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation "org.jetbrains.anko:anko:0.10.8"
implementation 'androidx.recyclerview:recyclerview:latest.release'//添加RecycleView依赖
/* EventBus */
implementation 'org.greenrobot:eventbus:3.2.0'
}
Kotlin的依赖
最新推荐文章于 2025-02-18 20:07:49 发布