build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. plugins {
  2. id 'com.android.library'
  3. id 'maven-publish'
  4. }
  5. android {
  6. namespace 'com.huantansheng.easyphotos'
  7. compileSdk 33
  8. defaultConfig {
  9. minSdk 21
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. consumerProguardFiles "consumer-rules.pro"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_1_8
  21. targetCompatibility JavaVersion.VERSION_1_8
  22. }
  23. }
  24. afterEvaluate {
  25. publishing {
  26. publications {
  27. //SDK Release 版本
  28. sdkRelease(MavenPublication) { //这个的 Release 名称是可以随意进行定义的
  29. from components.release //关键是这个地方的值该如何配置的问题。
  30. groupId = 'com.github.Tudie'
  31. artifactId = 'EasyPhotos'
  32. version = '3.1.7'
  33. }
  34. }
  35. }
  36. }
  37. dependencies {
  38. implementation 'androidx.appcompat:appcompat:1.6.1'
  39. implementation 'com.google.android.material:material:1.8.0'
  40. testImplementation 'junit:junit:4.13.2'
  41. androidTestImplementation 'androidx.test.ext:junit:1.1.5'
  42. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  43. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  45. implementation 'androidx.appcompat:appcompat:1.6.1'
  46. implementation 'com.google.android.material:material:1.8.0'
  47. implementation 'androidx.recyclerview:recyclerview:1.3.0'
  48. implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
  49. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  50. implementation 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  51. }