From 7b00018094c1e8c6abae30bf23657d1bc5440460 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Tue, 26 Mar 2019 22:18:07 +0200 Subject: [PATCH] _ --- android/build.gradle | 28 ++++++++++++++++++++++++++++ android/gradle.properties | 2 ++ 2 files changed, 30 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index d5374869c95a..fa60d9c31bc2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,6 +23,34 @@ buildscript { } } +subprojects { + /*project.configurations.all { + resolutionStrategy.eachDependency { details -> + if (details.requested.group == 'com.android.support' + && !details.requested.name.contains('multidex') ) { + details.useVersion "27.1.1" + } + } + }*/ + afterEvaluate { + if (project.hasProperty("android") && true + /*(project.name == 'react-native-config' + || project.name == 'react-native-dialogs' + || project.name == 'react-native-http-bridge' + || project.name == 'react-native-image-crop-picker' + )*/) { + android { + compileSdkVersion 28 + buildToolsVersion "28.0.3" + + defaultConfig { + targetSdkVersion 28 + } + } + } + } +} + allprojects { repositories { mavenLocal() diff --git a/android/gradle.properties b/android/gradle.properties index cc01c814c89b..084020fcd193 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -25,4 +25,6 @@ STATUS_RELEASE_STORE_PASSWORD=password STATUS_RELEASE_KEY_ALIAS=status STATUS_RELEASE_KEY_PASSWORD=password +android.enableAapt2=false + org.gradle.jvmargs=-Xmx8704M