build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. testImplementation 'junit:junit:4.12'
  31. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  32. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  33. // Apache validator
  34. implementation 'commons-validator:commons-validator:1.6'
  35. }