build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 navigationFragment
  35. implementation navigationUi
  36. implementation timber
  37. implementation retrofit
  38. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  39. implementation fileTree(dir: 'libs', include: ['*.jar'])
  40. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  41. implementation 'androidx.appcompat:appcompat:1.2.0'
  42. implementation 'androidx.core:core-ktx:1.3.1'
  43. testImplementation 'junit:junit:4.12'
  44. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  45. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  46. }