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.
78 lines
2.1 KiB
78 lines
2.1 KiB
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId "top.niunaijun.blackdex"
|
|
minSdkVersion 21
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
ndk {
|
|
// 设置支持的SO库架构
|
|
abiFilters 'armeabi-v7a', 'x86'
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
buildFeatures{
|
|
viewBinding true
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation 'androidx.core:core-ktx:1.5.0'
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'com.google.android.material:material:1.3.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
|
|
implementation project(':Bcore')
|
|
|
|
//coroutines
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2"
|
|
|
|
//viewModel liveData lifecycle
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
|
|
|
|
//third
|
|
|
|
implementation 'com.afollestad.material-dialogs:core:3.3.0'
|
|
//dialog
|
|
implementation 'com.github.nukc.stateview:kotlin:2.2.0'
|
|
//状态控制控件
|
|
implementation 'com.roger.catloadinglibrary:catloadinglibrary:1.0.9'
|
|
//加载dialog
|
|
implementation 'com.github.Ferfalk:SimpleSearchView:0.2.0'
|
|
//searchView
|
|
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
} |