build.gradle 1.1 KB

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