Hibok
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

88 řádky
2.6 KiB

  1. buildscript {
  2. ext.kotlin_version = '1.3.61'
  3. repositories {
  4. google()
  5. jcenter()
  6. // maven { url 'https://maven.aliyun.com/repository/google' }
  7. // maven{ url 'https://maven.aliyun.com/repository/jcenter'}
  8. maven {
  9. url 'http://download.flutter.io'
  10. }
  11. maven { url 'http://developer.huawei.com/repo/'}
  12. }
  13. dependencies {
  14. classpath 'com.android.tools.build:gradle:3.2.1'
  15. classpath 'com.google.gms:google-services:4.2.0'
  16. classpath 'com.huawei.agconnect:agcp:1.0.0.300'
  17. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  18. }
  19. }
  20. allprojects {
  21. repositories {
  22. google()
  23. jcenter()
  24. // maven { url 'https://maven.aliyun.com/repository/google' }
  25. // maven{ url 'https://maven.aliyun.com/repository/jcenter'}
  26. maven {
  27. url 'http://download.flutter.io'
  28. }
  29. maven { url'http://developer.huawei.com/repo/'}
  30. }
  31. }
  32. rootProject.buildDir = '../build'
  33. subprojects {
  34. project.buildDir = "${rootProject.buildDir}/${project.name}"
  35. configurations.all {
  36. resolutionStrategy {
  37. resolutionStrategy.eachDependency { details ->
  38. if (details.requested.group == 'androidx.core') {
  39. details.useVersion "1.0.1"
  40. }
  41. if (details.requested.group == 'androidx.lifecycle') {
  42. details.useVersion "2.0.0-rc01"
  43. }
  44. if (details.requested.group == 'androidx.legacy') {
  45. details.useVersion "1.0.0-rc01"
  46. }
  47. if (details.requested.group == 'androidx.versionedparcelable') {
  48. details.useVersion "1.0.0"
  49. }
  50. if (details.requested.group == 'com.google.android.gms') {
  51. details.useVersion "17.0.0"
  52. }
  53. if (details.requested.group == 'androidx.fragment') {
  54. details.useVersion "1.0.0"
  55. }
  56. if (details.requested.group == 'androidx.appcompat') {
  57. details.useVersion "1.0.1"
  58. }
  59. if (details.requested.group == 'androidx.annotation') {
  60. details.useVersion "1.1.0"
  61. }
  62. }
  63. }
  64. }
  65. }
  66. subprojects {
  67. project.evaluationDependsOn(':app')
  68. }
  69. task clean(type: Delete) {
  70. delete rootProject.buildDir
  71. }
  72. tasks.withType(JavaCompile) {
  73. options.encoding = "UTF-8"
  74. }