build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  39. api 'androidx.appcompat:appcompat:1.1.0-rc01'
  40. api 'androidx.constraintlayout:constraintlayout:1.1.3'
  41. // Apache validator
  42. api 'commons-validator:commons-validator:1.6'
  43. }