mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
55 lines
No EOL
1.5 KiB
Groovy
55 lines
No EOL
1.5 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlinx-serialization'
|
|
|
|
android {
|
|
def config = rootProject.extensions.getByName("ext")
|
|
|
|
compileSdkVersion compile_sdk
|
|
|
|
defaultConfig {
|
|
minSdkVersion config["min_sdk"]
|
|
targetSdkVersion config["target_sdk"]
|
|
|
|
testInstrumentationRunner config["test_runner"]
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
includeAndroidResources = true
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
def applicationDependencies = rootProject.ext.mainApplication
|
|
def unitTestDependencies = rootProject.ext.unitTesting
|
|
|
|
implementation applicationDependencies.appcompat
|
|
implementation applicationDependencies.kotlin
|
|
implementation applicationDependencies.coroutinesAndroid
|
|
implementation applicationDependencies.androidxCore
|
|
implementation applicationDependencies.timber
|
|
implementation applicationDependencies.kotlinxSerializationJson
|
|
|
|
testImplementation unitTestDependencies.junit
|
|
testImplementation unitTestDependencies.kotlinTest
|
|
testImplementation unitTestDependencies.robolectricLatest
|
|
testImplementation unitTestDependencies.androidXTestCore
|
|
} |