build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply plugin: 'com.alibaba.arouter'
  3. buildscript {
  4. ext {
  5. kotlin_version = '1.4.10'
  6. compile_sdk_version = 30
  7. build_tools_version = '30.0.2'
  8. min_sdk_verion = 26
  9. target_sdk_version = 30
  10. lib_version_code = 1
  11. lib_version_name = "1.0.0"
  12. navigation_version = "2.3.0"//navigation 版本号,需要在dependencies和classpath保持一致
  13. koin_version = '2.2.2'//依赖注入框架
  14. }
  15. repositories {
  16. google()
  17. jcenter()
  18. maven { url 'https://jitpack.io' }
  19. // 1、filedownloader 下载框架
  20. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  21. maven { url 'https://dl.bintray.com/javakam/FileOperator' }
  22. // 极光推送 华为1、
  23. maven {url 'http://developer.huawei.com/repo/'}
  24. }
  25. dependencies {
  26. classpath 'com.android.tools.build:gradle:4.0.1'
  27. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  28. classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version")
  29. // 1、koin 注入框架
  30. classpath "org.koin:koin-gradle-plugin:$koin_version"
  31. //阿里 Arouter
  32. classpath "com.alibaba:arouter-register:1.0.2"
  33. //doraemonKit 调试辅助工具
  34. classpath 'com.didichuxing.doraemonkit:doraemonkit-plugin:3.2.0'
  35. // 极光推送 华为2、
  36. classpath 'com.huawei.agconnect:agcp:1.2.1.301'
  37. // NOTE: Do not place your application dependencies here; they belong
  38. // in the individual module build.gradle files
  39. }
  40. }
  41. // 2、koin 应用插件
  42. apply plugin: 'koin'
  43. apply plugin: 'com.didi.dokit'
  44. allprojects {
  45. repositories {
  46. google()
  47. jcenter()
  48. maven { url 'https://jitpack.io' }
  49. // 1、filedownloader 下载框架
  50. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  51. maven { url 'https://dl.bintray.com/javakam/FileOperator' }
  52. // 极光推送 华为1、
  53. maven {url 'http://developer.huawei.com/repo/'}
  54. }
  55. }
  56. task clean(type: Delete) {
  57. delete rootProject.buildDir
  58. }