build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. // demo远程依赖
  4. ext.REMOTE_LIBRARY = false
  5. // 发布开关
  6. ext.PUBLISH_ENABLE = true
  7. // 混淆开关
  8. ext.MINIFY_ENABLE = true
  9. // ndk版本
  10. ext.NDK_VERSION = '21.4.7075529'
  11. // kotlin版本
  12. ext.KOTLIN_VERSION = '1.4.20'
  13. // compileSdkVersion
  14. ext.COMPILE_SDK_VERSION = 30
  15. // buildToolsVersion
  16. ext.BUILD_TOOLS_VERSION = '30.0.3'
  17. // minSdkVersion
  18. ext.MIN_SDK_VERSION = 16
  19. // targetSdkVersion
  20. ext.TARGET_SDK_VERSION = 30
  21. repositories {
  22. google()
  23. mavenCentral()
  24. jcenter()
  25. }
  26. dependencies {
  27. classpath "com.android.tools.build:gradle:4.1.3"
  28. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
  29. // NOTE: Do not place your application dependencies here; they belong
  30. // in the individual module build.gradle files
  31. }
  32. }
  33. allprojects {
  34. repositories {
  35. google()
  36. mavenCentral()
  37. jcenter()
  38. }
  39. }
  40. task clean(type: Delete) {
  41. delete rootProject.buildDir
  42. }