build.gradle 1.0 KB

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