build.gradle 757 B

123456789101112131415161718192021222324252627282930313233343536
  1. apply plugin: 'com.android.library'
  2. group = "com.kongzue.dialogx"
  3. version = BUILD_VERSION
  4. android {
  5. compileSdkVersion 30
  6. defaultConfig {
  7. minSdkVersion 21
  8. targetSdkVersion 30
  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. }
  18. task sourcesJar(type: Jar) {
  19. from android.sourceSets.main.java.srcDirs
  20. classifier = 'sources'
  21. }
  22. artifacts {
  23. archives sourcesJar
  24. }
  25. dependencies {
  26. implementation 'androidx.appcompat:appcompat:1.2.0+'
  27. compileOnly files('libs\\androidx-rs.jar')
  28. api files('libs\\DialogXInterface.jar')
  29. }