build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apply plugin: 'com.android.library'
  2. //group='com.github.philjay'
  3. android {
  4. compileSdkVersion 28
  5. namespace 'com.github.philjay' // <-- 在这里添加 namespace
  6. buildToolsVersion '28.0.3'
  7. defaultConfig {
  8. minSdkVersion 14
  9. targetSdkVersion 28
  10. versionCode 3
  11. versionName '3.1.0'
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. testOptions {
  20. unitTests.returnDefaultValues = true // this prevents "not mocked" error
  21. }
  22. }
  23. dependencies {
  24. implementation 'androidx.annotation:annotation:1.0.0'
  25. testImplementation 'junit:junit:4.12'
  26. }
  27. //
  28. //task sourcesJar(type: Jar) {
  29. // from android.sourceSets.main.java.srcDirs
  30. //// classifier = 'sources'
  31. //}
  32. //
  33. //task javadoc(type: Javadoc) {
  34. // options.charSet = 'UTF-8'
  35. // failOnError false
  36. // source = android.sourceSets.main.java.sourceFiles
  37. // classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
  38. //}
  39. //
  40. //task javadocJar(type: Jar, dependsOn: javadoc) {
  41. //// classifier = 'javadoc'
  42. // from javadoc.destinationDir
  43. //}
  44. //
  45. //artifacts {
  46. // archives sourcesJar
  47. // archives javadocJar
  48. //}