build.gradle 1.2 KB

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