您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

70 行
2.3KB

  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.example.tidalairpeisong"
  9. minSdkVersion 16
  10. targetSdkVersion 30
  11. versionCode 1
  12. versionName "1.0"
  13. multiDexEnabled true
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. javaCompileOptions {
  16. annotationProcessorOptions {
  17. arguments = [
  18. //使用asXxx方法时必须,传入你依赖的RxJava版本
  19. rxhttp_rxjava: '3.1.1',
  20. ]
  21. }
  22. }
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. compileOptions {
  31. sourceCompatibility JavaVersion.VERSION_1_8
  32. targetCompatibility JavaVersion.VERSION_1_8
  33. }
  34. }
  35. dependencies {
  36. implementation 'androidx.appcompat:appcompat:1.2.0'
  37. implementation 'com.google.android.material:material:1.2.1'
  38. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  39. testImplementation 'junit:junit:4.+'
  40. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  41. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  42. implementation 'com.squareup.okhttp3:okhttp:4.9.1'
  43. implementation 'com.github.liujingxing.rxhttp:rxhttp:2.6.8'
  44. annotationProcessor 'com.github.liujingxing.rxhttp:rxhttp-compiler:2.6.8' //生成RxHttp类,纯Java项目,请使用annotationProcessor代替kapt
  45. //rxjava2
  46. // implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
  47. // implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  48. // implementation 'com.github.liujingxing.rxlife:rxlife-rxjava2:2.2.1' //管理RxJava2生命周期,页面销毁,关闭请求
  49. //rxjava3
  50. implementation 'io.reactivex.rxjava3:rxjava:3.1.1'
  51. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  52. implementation 'com.github.liujingxing.rxlife:rxlife-rxjava3:2.2.1' //管理RxJava3生命周期,页面销毁,关闭请求
  53. implementation 'androidx.multidex:multidex:2.0.1'
  54. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  55. //日志的拦截器
  56. implementation 'com.squareup.okhttp3:logging-interceptor:4.9.2'
  57. }