55 lines
1.6 KiB
Groovy
55 lines
1.6 KiB
Groovy
plugins {
|
|
id "com.android.library"
|
|
id "org.jetbrains.kotlin.android"
|
|
}
|
|
|
|
android {
|
|
namespace "jp.juggler.anko"
|
|
compileSdk stCompileSdkVersion
|
|
buildToolsVersion stBuildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdk stMinSdkVersion
|
|
targetSdk stTargetSdkVersion
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility javaSourceCompatibility
|
|
targetCompatibility javaTargetCompatibility
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = kotlinJvmTarget
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(kotlinJvmToolchain)
|
|
}
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|
kotlinOptions {
|
|
jvmTarget = kotlinJvmTarget
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation "junit:junit:$junitVersion"
|
|
androidTestImplementation "androidx.test.ext:junit:$androidxTestExtJunitVersion"
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxTestEspressoCoreVersion"
|
|
|
|
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
|
implementation "androidx.core:core-ktx:$coreKtxVersion"
|
|
implementation "androidx.preference:preference-ktx:$preferenceVersion"
|
|
implementation "androidx.preference:preference:$preferenceVersion"
|
|
implementation "com.google.android.material:material:$materialVersion"
|
|
}
|