Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- ext {
- buildToolsVersion = "28.0.2"
- minSdkVersion = 19
- compileSdkVersion = 28
- targetSdkVersion = 27
- supportLibVersion = "28.0.0"
- }
- repositories {
- google()
- jcenter()
- mavenLocal()
- mavenCentral()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.2.1'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- allprojects {
- repositories {
- mavenCentral()
- mavenLocal()
- google()
- jcenter()
- maven {
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
- url 'https://jitpack.io'
- }
- }
- }
- task wrapper(type: Wrapper) {
- gradleVersion = '4.7'
- distributionUrl = distributionUrl.replace("bin", "all")
- }
- subprojects {
- subproject ->
- afterEvaluate {
- if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
- android {
- variantFilter { variant ->
- def names = variant.flavors*.name
- if (names.contains("reactNative51") || names.contains("reactNative55") || names.contains("reactNative56") || names.contains("reactNative57_5")) {
- setIgnore(true)
- }
- }
- }
- }
- }
- project.configurations.all {
- resolutionStrategy.eachDependency { details ->
- if (details.requested.group == 'com.android.support'
- && !details.requested.name.contains('multidex') ) {
- details.useVersion "26.1.0"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement