build.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion rootProject.ext.compileSdkVersion
  4. defaultConfig {
  5. minSdkVersion rootProject.ext.minSdkVersion
  6. targetSdkVersion rootProject.ext.targetSdkVersion
  7. versionCode 2
  8. versionName "2.0.0"
  9. }
  10. buildTypes {
  11. release {
  12. minifyEnabled false
  13. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  14. }
  15. }
  16. }
  17. dependencies {
  18. implementation fileTree(include: ['*.jar'], dir: 'libs')
  19. api "androidx.appcompat:appcompat:$rootProject.ext.androidxVersion"
  20. api 'com.google.android.material:material:1.1.0'
  21. api "androidx.preference:preference:$rootProject.ext.androidxVersion"
  22. api 'androidx.cardview:cardview:1.0.0'
  23. api 'androidx.gridlayout:gridlayout:1.0.0'
  24. api "androidx.constraintlayout:constraintlayout:$rootProject.ext.androidxConstraintVersion"
  25. api "com.scwang.smartrefresh:SmartRefreshLayout:$rootProject.ext.SmartRefreshLayoutVersion"
  26. // eventbus
  27. api "org.greenrobot:eventbus:$rootProject.ext.eventbusVersion"
  28. api "com.google.zxing:core:$rootProject.ext.zxingVersion"
  29. api "io.reactivex.rxjava2:rxandroid:$rootProject.ext.rxAndroid2Version"
  30. api "io.reactivex.rxjava2:rxjava:$rootProject.ext.rxjava2Version"
  31. api "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit2Version"
  32. api "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.adapter2Rxjava"
  33. api "com.squareup.retrofit2:converter-gson:$rootProject.ext.converterGson"
  34. api "com.squareup.retrofit2:converter-scalars:$rootProject.ext.converterScalars"
  35. api "com.squareup.okhttp3:logging-interceptor:$rootProject.ext.loggingInterceptor"
  36. api "com.tbruyelle.rxpermissions2:rxpermissions:$rootProject.ext.rxpermissions@aar"
  37. api "com.squareup.okhttp3:okhttp:$rootProject.ext.okhttpVersion"
  38. api "com.squareup.okio:okio:$rootProject.ext.okioVersion"
  39. api "com.trello.rxlifecycle2:rxlifecycle:$rootProject.ext.rxlifecycle"
  40. api "com.trello.rxlifecycle2:rxlifecycle-android:$rootProject.ext.rxlifecycle"
  41. api "com.trello.rxlifecycle2:rxlifecycle-components:$rootProject.ext.rxlifecycle"
  42. api 'com.gyf.immersionbar:immersionbar:3.0.0-beta05'
  43. api 'com.nineoldandroids:library:2.4.0'
  44. testImplementation 'junit:junit:4.12'
  45. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  46. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  47. }