apply plugin: 'com.android.library' // Kotlin apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { targetSdkVersion rootProject.ext.targetSdkVersion versionName rootProject.ext.versionName versionCode rootProject.ext.versionCode minSdkVersion rootProject.ext.minSdkVersion } buildTypes { debug { manifestPlaceholders = [isDebug: true] } debugTest { manifestPlaceholders = [isDebug: true] } release { manifestPlaceholders = [isDebug: false] minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } releaseTest { manifestPlaceholders = [isDebug: false] minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { // kotlin api 'androidx.core:core-ktx:1.2.0' api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" api 'androidx.appcompat:appcompat:1.1.0' api 'androidx.constraintlayout:constraintlayout:1.1.3' // Apache validator api 'commons-validator:commons-validator:1.6' }