build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 true
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. staging {
  21. minifyEnabled true
  22. signingConfig debug.signingConfig
  23. }
  24. }
  25. dataBinding {
  26. enabled = true
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. kotlinOptions {
  33. jvmTarget = '1.8'
  34. }
  35. }
  36. apply from: "$project.rootDir/scripts/deps_versions.gradle"
  37. dependencies {
  38. implementation navigationFragment
  39. implementation navigationUi
  40. implementation timber
  41. implementation retrofit
  42. implementation constraintlayout
  43. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  44. implementation fileTree(dir: 'libs', include: ['*.jar'])
  45. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  46. implementation 'androidx.appcompat:appcompat:1.2.0'
  47. implementation 'androidx.core:core-ktx:1.3.1'
  48. testImplementation 'junit:junit:4.12'
  49. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  50. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  51. }