mirror of
https://github.com/fumiama/simple-dict-android.git
synced 2026-06-05 08:40:25 +08:00
58 lines
1.9 KiB
Groovy
58 lines
1.9 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
id 'kotlin-android-extensions'
|
|
}
|
|
|
|
android {
|
|
defaultConfig {
|
|
compileSdk 34
|
|
applicationId "top.fumiama.simpledict"
|
|
minSdkVersion 26
|
|
//noinspection OldTargetApi
|
|
targetSdkVersion 34
|
|
versionCode 23
|
|
versionName '5.1.0'
|
|
resConfigs "zh", "zh-rCN"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
/*debug{
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}*/
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
|
|
namespace 'top.fumiama.simpledict'
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
|
implementation 'androidx.appcompat:appcompat:1.7.1'
|
|
implementation 'com.google.android.material:material:1.12.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.7.7'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation project(':sdict')
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
|
|
implementation files('libs/com.lapism/search-2.4.1.aar') // https://stackoverflow.com/a/63029110/28801553
|
|
} |