Advertisement
kiojiotisha

g

Nov 25th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 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. ext {
  5. buildToolsVersion = "28.0.3"
  6. minSdkVersion = 16
  7. compileSdkVersion = 28
  8. targetSdkVersion = 28
  9. supportLibVersion = "28.0.0"
  10. }
  11. repositories {
  12. google()
  13. maven {
  14. url 'https://maven.google.com/'
  15. name 'Google'
  16. }
  17. jcenter()
  18. maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal
  19. }
  20. dependencies {
  21. classpath 'com.android.tools.build:gradle:3.4.1'
  22. classpath 'com.google.gms:google-services:4.0.1'
  23. classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.1, 0.99.99]'
  24.  
  25. // NOTE: Do not place your application dependencies here; they belong
  26. // in the individual module build.gradle files
  27. }
  28. }
  29.  
  30. allprojects {
  31. repositories {
  32. google()
  33. mavenLocal()
  34. maven {
  35. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  36. url("$rootDir/../node_modules/react-native/android")
  37. }
  38. // jitpack repo is necessary to fetch ucrop dependency
  39. maven { url "https://jitpack.io" }
  40. maven {
  41. // Android JSC is installed from npm
  42. url("$rootDir/../node_modules/jsc-android/dist")
  43. }
  44.  
  45. jcenter()
  46. }
  47. }
  48.  
  49. task clean(type: Delete) {
  50. delete rootProject.buildDir
  51. }
  52. subprojects {
  53. project.configurations.all {
  54. resolutionStrategy.eachDependency { details ->
  55. if (details.requested.group == 'com.android.support'
  56. && !details.requested.name.contains('multidex') ) {
  57. details.useVersion "27.1.1"
  58. }
  59. }
  60. }
  61.  
  62. afterEvaluate {project ->
  63. if (project.hasProperty("android")) {
  64. android {
  65. compileSdkVersion 28
  66. buildToolsVersion '28.0.3'
  67. }
  68. }
  69. }
  70.  
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement