build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 = false
  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. maven { url 'https://jitpack.io' }
  39. }
  40. }
  41. task clean(type: Delete) {
  42. delete rootProject.buildDir
  43. }