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.COMM_LIB_DEV_ENABLE = true
  4. // 混淆开关
  5. ext.MINIFY_ENABLE = true
  6. // ndk版本
  7. ext.NDK_VERSION = '21.3.6528147'
  8. // kotlin版本
  9. ext.KOTLIN_VERSION = '1.4.20'
  10. // compileSdkVersion
  11. ext.COMPILE_SDK_VERSION = 30
  12. // buildToolsVersion
  13. ext.BUILD_TOOLS_VERSION = '30.0.3'
  14. // minSdkVersion
  15. ext.MIN_SDK_VERSION = 16
  16. // targetSdkVersion
  17. ext.TARGET_SDK_VERSION = 30
  18. repositories {
  19. google()
  20. mavenCentral()
  21. jcenter()
  22. }
  23. dependencies {
  24. classpath "com.android.tools.build:gradle:4.1.3"
  25. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
  26. // NOTE: Do not place your application dependencies here; they belong
  27. // in the individual module build.gradle files
  28. }
  29. }
  30. allprojects {
  31. repositories {
  32. google()
  33. mavenCentral()
  34. jcenter()
  35. }
  36. }
  37. task clean(type: Delete) {
  38. delete rootProject.buildDir
  39. }