build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.compileSdkVersion
  4. buildToolsVersion '28.0.3'
  5. defaultConfig {
  6. minSdkVersion rootProject.minSdkVersion
  7. targetSdkVersion rootProject.targetSdkVersion
  8. versionCode rootProject.releaseVersionCode
  9. versionName rootProject.releaseVersionName
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. dependencies {
  20. implementation fileTree(dir: 'libs', include: ['*.jar'])
  21. implementation 'androidx.appcompat:appcompat:1.0.2'
  22. testImplementation 'junit:junit:4.12'
  23. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
  24. exclude group: 'com.android.support', module: 'support-annotations'
  25. })
  26. api "io.reactivex.rxjava2:rxjava:$rootProject.ext.rxjava2Version"
  27. api "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit2Version"
  28. api "com.squareup.retrofit2:converter-scalars:$rootProject.ext.retrofit2Version"
  29. api "com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofit2Version"
  30. api "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.retrofit2Version"
  31. api "com.trello.rxlifecycle2:rxlifecycle:$rootProject.ext.rxlifecycle"
  32. //compile "com.trello.rxlifecycle2:rxlifecycle-android:$rootProject.ext.rxlifecycle"
  33. api "com.trello.rxlifecycle2:rxlifecycle-components:$rootProject.ext.rxlifecycle"
  34. api 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
  35. api 'io.reactivex.rxjava2:rxandroid:2.1.0'
  36. api 'com.squareup.okhttp3:logging-interceptor:3.10.0'
  37. }