build.gradle 992 B

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