build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. apply plugin: 'com.android.library'
  2. // Kotlin
  3. apply plugin: 'kotlin-android'
  4. apply plugin: 'kotlin-android-extensions'
  5. android {
  6. compileSdkVersion rootProject.ext.compileSdkVersion
  7. defaultConfig {
  8. targetSdkVersion rootProject.ext.targetSdkVersion
  9. versionName rootProject.ext.versionName
  10. versionCode rootProject.ext.versionCode
  11. minSdkVersion rootProject.ext.minSdkVersion
  12. }
  13. buildTypes {
  14. debug {
  15. manifestPlaceholders = [isDebug: true]
  16. }
  17. debugTest {
  18. manifestPlaceholders = [isDebug: true]
  19. }
  20. release {
  21. manifestPlaceholders = [isDebug: false]
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  24. }
  25. releaseTest {
  26. manifestPlaceholders = [isDebug: false]
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility JavaVersion.VERSION_1_8
  33. targetCompatibility JavaVersion.VERSION_1_8
  34. }
  35. }
  36. dependencies {
  37. // kotlin
  38. api 'androidx.core:core-ktx:1.2.0'
  39. api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  40. api 'androidx.appcompat:appcompat:1.1.0'
  41. api 'androidx.constraintlayout:constraintlayout:1.1.3'
  42. // Apache validator
  43. api 'commons-validator:commons-validator:1.6'
  44. }