37 lines
1.0 KiB
Groovy
37 lines
1.0 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
android {
|
|
compileSdkVersion gCompileSdkVersion
|
|
buildToolsVersion gBuildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion gMinSdkVersion
|
|
targetSdkVersion gTargetSdkVersion
|
|
versionCode gVersionCode
|
|
versionName gVersionName
|
|
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$gKotlinVersion"
|
|
implementation "androidx.appcompat:appcompat:$gAppCompatVersion"
|
|
implementation "androidx.core:core-ktx:$gAndroidKtxVersion"
|
|
implementation "com.google.android.material:material:$gMaterialDesignVersion"
|
|
}
|