build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apply plugin: 'com.android.library'
  2. // Kotlin
  3. apply plugin: 'kotlin-android'
  4. apply plugin: 'kotlin-android-extensions'
  5. android {
  6. compileSdkVersion 27
  7. defaultConfig {
  8. minSdkVersion 15
  9. targetSdkVersion 27
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. debug {
  16. manifestPlaceholders = [isDebug: true]
  17. }
  18. release {
  19. manifestPlaceholders = [isDebug: false]
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. }
  25. dependencies {
  26. // kotlin
  27. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  28. implementation 'com.android.support:appcompat-v7:27.0.0'
  29. implementation 'com.android.support.constraint:constraint-layout:1.1.2'
  30. implementation 'com.android.support:support-v4:27.1.1'
  31. testImplementation 'junit:junit:4.12'
  32. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  33. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  34. // Apache validator
  35. implementation 'commons-validator:commons-validator:1.6'
  36. }