build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. if (isModule) {
  2. apply plugin: 'com.android.application'
  3. } else {
  4. apply plugin: 'com.android.library'
  5. }
  6. android {
  7. viewBinding {
  8. enabled = true
  9. }
  10. dataBinding{
  11. enabled = true
  12. }
  13. compileSdk rootProject.ext.androidConfig.compileSdk
  14. defaultConfig {
  15. if (isModule) {
  16. applicationId rootProject.ext.applicationId.OUIMoments
  17. sourceSets {
  18. main {
  19. // 组件模式下调试
  20. manifest.srcFile 'src/main/debug/AndroidManifest.xml'
  21. }
  22. }
  23. }
  24. minSdk rootProject.ext.androidConfig.minSdk
  25. targetSdk rootProject.ext.androidConfig.targetSdk
  26. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  27. consumerProguardFiles "consumer-rules.pro"
  28. javaCompileOptions {
  29. annotationProcessorOptions {
  30. arguments = [AROUTER_MODULE_NAME: project.getName()]
  31. }
  32. }
  33. }
  34. buildTypes {
  35. release {
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. }
  39. }
  40. compileOptions {
  41. sourceCompatibility JavaVersion.VERSION_1_8
  42. targetCompatibility JavaVersion.VERSION_1_8
  43. }
  44. }
  45. dependencies {
  46. implementation 'androidx.appcompat:appcompat:1.3.0'
  47. implementation 'com.google.android.material:material:1.4.0'
  48. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  49. testImplementation 'junit:junit:4.13.2'
  50. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  51. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  52. implementation project(path: ':OUICore')
  53. implementation 'com.alibaba:arouter-api:1.5.2'
  54. annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
  55. implementation 'com.github.chrisbanes:PhotoView:1.3.0'
  56. implementation 'com.malinskiy:superrecyclerview:1.1.4'
  57. implementation 'com.mikhaellopez:circularprogressbar:1.1.1'
  58. implementation ('com.github.bumptech.glide:okhttp3-integration:1.4.0'){
  59. exclude group: 'glide-parent'
  60. }
  61. }