build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 29
  6. buildToolsVersion "29.0.3"
  7. defaultConfig {
  8. minSdkVersion 21
  9. targetSdkVersion 29
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. consumerProguardFiles 'consumer-rules.pro'
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. dataBinding {
  22. enabled = true
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. kotlinOptions {
  29. jvmTarget = '1.8'
  30. }
  31. }
  32. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  33. dependencies {
  34. implementation navigationUi
  35. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  36. implementation fileTree(dir: 'libs', include: ['*.jar'])
  37. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  38. implementation 'androidx.appcompat:appcompat:1.2.0'
  39. implementation 'androidx.core:core-ktx:1.3.1'
  40. testImplementation 'junit:junit:4.12'
  41. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  42. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  43. }