build.gradle 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.3"
  5. defaultConfig {
  6. minSdkVersion 21
  7. targetSdkVersion 29
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. compileOptions {
  13. sourceCompatibility rootProject.ext.appSourceCompatibility
  14. targetCompatibility rootProject.ext.appTargetCompatibility
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled true
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. debug {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. }
  27. dependencies {
  28. implementation fileTree(dir: 'libs', include: ['*.jar'])
  29. api 'com.squareup.retrofit2:retrofit:2.9.0'
  30. api 'com.squareup.retrofit2:converter-gson:2.9.0'
  31. api 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
  32. }