build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. // 混淆开关
  4. ext.MINIFY_ENABLE = true
  5. // ndk版本
  6. ext.NDK_VERSION = '21.3.6528147'
  7. // kotlin版本
  8. ext.KOTLIN_VERSION = '1.4.20'
  9. // compileSdkVersion
  10. ext.COMPILE_SDK_VERSION = 30
  11. // buildToolsVersion
  12. ext.BUILD_TOOLS_VERSION = '30.0.3'
  13. // minSdkVersion
  14. ext.MIN_SDK_VERSION = 21
  15. // targetSdkVersion
  16. ext.TARGET_SDK_VERSION = 30
  17. repositories {
  18. google()
  19. mavenCentral()
  20. jcenter()
  21. }
  22. dependencies {
  23. classpath 'com.android.tools.build:gradle:4.1.3'
  24. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
  25. // classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
  26. //jitpack
  27. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
  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. maven { url 'https://jitpack.io' }
  38. // maven { url 'http://175.97.139.186:8081/repository/android-maven/' }
  39. }
  40. }
  41. task clean(type: Delete) {
  42. delete rootProject.buildDir
  43. }