build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. buildscript {
  2. ext.okhttp_version = '3.7.0'
  3. ext.retrofit_version = '2.9.0'
  4. ext.rxlifecycle_version = '2.2.1'
  5. ext.stetho_version = '1.3.1'
  6. ext.kotlin_version = "1.4.21"
  7. }
  8. plugins {
  9. id 'com.android.library'
  10. id 'kotlin-android'
  11. }
  12. android {
  13. compileSdkVersion 30
  14. buildToolsVersion "30.0.3"
  15. defaultConfig {
  16. minSdkVersion 16
  17. targetSdkVersion 30
  18. versionCode 1
  19. versionName "1.0"
  20. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  21. consumerProguardFiles "consumer-rules.pro"
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. kotlinOptions {
  34. jvmTarget = '1.8'
  35. }
  36. }
  37. dependencies {
  38. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  39. implementation 'androidx.core:core-ktx:1.6.0'
  40. implementation 'androidx.appcompat:appcompat:1.3.0'
  41. implementation 'com.google.android.material:material:1.4.0'
  42. api "com.squareup.okhttp3:okhttp:$okhttp_version"
  43. api "com.squareup.okhttp3:logging-interceptor:$okhttp_version"
  44. api "com.squareup.retrofit2:retrofit:2.9.0"
  45. api "com.squareup.retrofit2:adapter-rxjava2:2.9.0"
  46. api "com.squareup.retrofit2:converter-gson:2.9.0"
  47. api 'com.squareup.retrofit2:converter-scalars:2.4.0'
  48. api 'io.reactivex.rxjava2:rxjava:2.1.12'
  49. api 'io.reactivex.rxjava2:rxandroid:2.0.2'
  50. implementation 'com.qiniu:qiniu-android-sdk:8.2.+'
  51. }