build.gradle 969 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. ext {
  5. PUBLISH_GROUP_ID = "com.kongzue.dialogx.style" //项目包名
  6. PUBLISH_ARTIFACT_ID = 'DialogXMaterialYouStyle' //项目名
  7. PUBLISH_VERSION = BUILD_VERSION //版本号
  8. }
  9. apply from: "${rootProject.projectDir}/publish-mavencentral.gradle"
  10. android {
  11. compileSdkVersion 30
  12. defaultConfig {
  13. minSdkVersion 19
  14. targetSdkVersion 30
  15. consumerProguardFiles "consumer-rules.pro"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. }
  28. dependencies {
  29. implementation project(path: ':DialogX')
  30. implementation 'com.google.android.material:material:1.3.0'
  31. compileOnly project(path: ':DialogXInterface')
  32. }