build.gradle 620 B

123456789101112131415161718192021222324252627
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 28
  4. defaultConfig {
  5. minSdkVersion 15
  6. targetSdkVersion 28
  7. versionCode 6
  8. versionName "1.0.1"
  9. }
  10. buildTypes {
  11. release {
  12. buildConfigField "Boolean", "isDebug", "false" //app全局是否调试,发布版本不要开启
  13. }
  14. debug {
  15. buildConfigField "Boolean", "isDebug", "true" //app全局是否调试,调试版本开启
  16. }
  17. }
  18. }
  19. dependencies {
  20. implementation fileTree(include: ['*.jar'], dir: 'libs')
  21. testImplementation 'junit:junit:4.12'
  22. }