You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.9 KiB
85 lines
2.9 KiB
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.2"
|
|
|
|
defaultConfig {
|
|
applicationId "com.zww.sample"
|
|
minSdkVersion 21
|
|
targetSdkVersion 30
|
|
versionCode 2
|
|
versionName "1.3.4"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
buildConfigField("String", "BASE_URL", '"https://www.jason1024.cn"')
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
buildConfigField("String", "BASE_URL", '"https://www.jason1024.cn"')
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
|
|
buildFeatures {
|
|
dataBinding = true
|
|
}
|
|
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation 'androidx.core:core-ktx:1.3.1'
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
//MVVM设计模式
|
|
implementation "org.koin:koin-android:2.1.5"
|
|
implementation "org.koin:koin-androidx-viewmodel:2.1.5"
|
|
implementation "org.koin:koin-androidx-ext:2.1.5"
|
|
|
|
//网络请求
|
|
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
|
|
implementation 'com.squareup.retrofit2:retrofit:2.8.2'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.7.2'
|
|
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.2'
|
|
implementation "com.squareup.okhttp3:logging-interceptor:4.7.2"
|
|
implementation 'org.conscrypt:conscrypt-android:2.2.1'
|
|
//沉浸式状态栏
|
|
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
|
|
implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
|
|
//适配器快速实现
|
|
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
|
|
//图片加载框架
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
kapt 'com.github.bumptech.glide:compiler:4.11.0'
|
|
|
|
//权限
|
|
implementation 'com.yanzhenjie:permission:2.0.3'
|
|
|
|
implementation 'com.blankj:utilcodex:1.29.0'
|
|
|
|
implementation 'com.kongzue.dialog_v3:dialog:3.2.0'
|
|
|
|
implementation 'com.github.devzwy:open_nsfw_android:1.3.4'
|
|
|
|
implementation 'com.github.LuckSiege.PictureSelector:picture_library:2.2.5'
|
|
}
|
|
|