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