build.gradle 914 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. apply from: 'publish.gradle'
  5. android {
  6. compileSdk 32
  7. defaultConfig {
  8. minSdk 21
  9. targetSdk 32
  10. consumerProguardFiles "consumer-rules.pro"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. }
  23. configurations.all {
  24. resolutionStrategy {
  25. // don't cache changing modules at all
  26. cacheChangingModulesFor 10, 'seconds'
  27. }
  28. }
  29. dependencies {
  30. compileOnly 'androidx.annotation:annotation:+'
  31. compileOnly "extra.common:oaid:1.0.0-SNAPSHOT"
  32. compileOnly 'com.google.android.gms:play-services-ads-identifier:+'
  33. compileOnly "com.tencent:mmkv:+"
  34. }