pushdeer/android/common/build.gradle
2022-01-16 21:52:21 +08:00

51 lines
1.4 KiB
Groovy

plugins {
id 'com.android.library'
id 'kotlin-android'
}
android {
compileSdk 31
defaultConfig {
minSdk 21
targetSdk 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
compileSdkVersion 31
buildToolsVersion '31.0.0'
ndkVersion '23.0.7599858'
}
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
// https://mvnrepository.com/artifact/com.alibaba/fastjson
implementation 'com.alibaba:fastjson:1.2.78'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation("com.squareup.okhttp3:okhttp:4.9.2")
implementation 'com.google.code.gson:gson:2.8.9'
}