build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext.PUBLISH_ENABLE = false
  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. // classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
  27. //jitpack
  28. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
  29. // NOTE: Do not place your application dependencies here; they belong
  30. // in the individual module build.gradle files
  31. }
  32. }
  33. allprojects {
  34. repositories {
  35. google()
  36. mavenCentral()
  37. jcenter()
  38. maven { url 'https://jitpack.io' }
  39. // maven { url 'http://175.97.139.186:8081/repository/android-maven/' }
  40. }
  41. }
  42. task clean(type: Delete) {
  43. delete rootProject.buildDir
  44. }