build.gradle 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion 34
  6. defaultConfig {
  7. minSdkVersion 21
  8. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  9. consumerProguardFiles "consumer-rules.pro"
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. compileOptions {
  18. sourceCompatibility JavaVersion.VERSION_1_8
  19. targetCompatibility JavaVersion.VERSION_1_8
  20. }
  21. }
  22. repositories{
  23. flatDir {
  24. dirs 'libs'
  25. }
  26. }
  27. dependencies {
  28. compileOnly fileTree(dir: 'libs', include: ['*.jar'])
  29. compileOnly fileTree(dir: '../app/libs', include: ['*.aar'])
  30. compileOnly 'androidx.recyclerview:recyclerview:1.0.0'
  31. compileOnly 'androidx.legacy:legacy-support-v4:1.0.0'
  32. compileOnly 'androidx.appcompat:appcompat:1.0.0'
  33. implementation 'com.alibaba:fastjson:1.2.83'
  34. implementation 'com.facebook.fresco:fresco:1.13.0'
  35. }