build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 29
  6. defaultConfig {
  7. minSdkVersion 21
  8. targetSdkVersion 29
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. }
  13. compileOptions {
  14. sourceCompatibility JavaVersion.VERSION_1_8
  15. targetCompatibility JavaVersion.VERSION_1_8
  16. }
  17. lintOptions {
  18. abortOnError false
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. }
  27. repositories {
  28. flatDir {
  29. dirs 'libs'
  30. }
  31. google()
  32. }
  33. dependencies {
  34. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.1-alpha01', {
  35. exclude group: 'com.android.support', module: 'support-annotations'
  36. })
  37. testImplementation 'junit:junit:4.12'
  38. api 'androidx.appcompat:appcompat:1.0.2'
  39. api project(path: ':common')
  40. }