build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. }
  14. repositories {
  15. google()
  16. jcenter()
  17. maven { url 'https://jitpack.io' }
  18. // 1、filedownloader 下载框架
  19. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  20. maven { url 'https://dl.bintray.com/javakam/FileOperator' }
  21. // 极光推送 华为1、
  22. maven {url 'http://developer.huawei.com/repo/'}
  23. }
  24. dependencies {
  25. classpath 'com.android.tools.build:gradle:4.0.1'
  26. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  27. classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version")
  28. //阿里 Arouter
  29. classpath "com.alibaba:arouter-register:1.0.2"
  30. // 极光推送 华为2、
  31. classpath 'com.huawei.agconnect:agcp:1.2.1.301'
  32. // NOTE: Do not place your application dependencies here; they belong
  33. // in the individual module build.gradle files
  34. }
  35. }
  36. allprojects {
  37. repositories {
  38. google()
  39. jcenter()
  40. maven { url 'https://jitpack.io' }
  41. // 1、filedownloader 下载框架
  42. maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  43. maven { url 'https://dl.bintray.com/javakam/FileOperator' }
  44. // 极光推送 华为1、
  45. maven {url 'http://developer.huawei.com/repo/'}
  46. }
  47. }
  48. task clean(type: Delete) {
  49. delete rootProject.buildDir
  50. }