Advertisement
kiojiotisha

dsa

Jul 5th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2.  
  3. buildscript {
  4. repositories {
  5. maven {
  6. url 'https://maven.google.com/'
  7. name 'Google'
  8. }
  9. jcenter()
  10. google()
  11. }
  12. dependencies {
  13. classpath 'com.android.tools.build:gradle:3.1.0'
  14. classpath 'com.google.gms:google-services:4.0.1'
  15.  
  16. // NOTE: Do not place your application dependencies here; they belong
  17. // in the individual module build.gradle files
  18.  
  19. // implementation(project(':react-native-maps')){
  20. // exclude group: 'com.google.android.gms', module: 'play-services-base'
  21. // exclude group: 'com.google.android.gms', module: 'play-services-maps'
  22. // }
  23. // implementation 'com.google.android.gms:play-services-base:10.0.1'
  24. // implementation 'com.google.android.gms:play-services-maps:10.0.1'
  25. }
  26. }
  27.  
  28. allprojects {
  29. repositories {
  30. mavenLocal()
  31. jcenter()
  32. maven {
  33. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  34. url "$rootDir/../node_modules/react-native/android"
  35. }
  36. google()
  37. maven { url "https://jitpack.io" }
  38. maven {
  39. url "https://maven.google.com"
  40. }
  41. }
  42. }
  43.  
  44. task clean(type: Delete) {
  45. delete rootProject.buildDir
  46. }
  47. subprojects {
  48. project.configurations.all {
  49. resolutionStrategy.eachDependency { details ->
  50. if (details.requested.group == 'com.android.support'
  51. && !details.requested.name.contains('multidex') ) {
  52. details.useVersion "26.1.0"
  53. }
  54. }
  55. }
  56.  
  57. afterEvaluate {project ->
  58. if (project.hasProperty("android")) {
  59. android {
  60. compileSdkVersion 27
  61. buildToolsVersion "27.0.3"
  62. }
  63. }
  64. }
  65. }
  66.  
  67. subprojects {
  68. project.configurations.all {
  69. resolutionStrategy.eachDependency { details ->
  70. if (details.requested.group == 'com.android.support'
  71. && !details.requested.name.contains('multidex') ) {
  72. details.useVersion "27.0.2"
  73. }
  74. }
  75. }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement