Created
May 24, 2019 09:38
-
-
Save ddzirt/4236bc6be6ce0fea0a4f1c4ef9216800 to your computer and use it in GitHub Desktop.
Android with RN 59 gradle settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| ext { | |
| buildToolsVersion = "28.0.3" | |
| minSdkVersion = 21 | |
| compileSdkVersion = 28 | |
| targetSdkVersion = 27 | |
| supportLibVersion = "28.0.0" | |
| kotlinVersion = "1.3.0" | |
| } | |
| subprojects { subProject -> | |
| afterEvaluate { | |
| if ((subProject.plugins.hasPlugin('android') || subProject.plugins.hasPlugin('android-library'))) { | |
| android { | |
| compileSdkVersion rootProject.ext.compileSdkVersion | |
| buildToolsVersion rootProject.ext.buildToolsVersion | |
| } | |
| } | |
| } | |
| } | |
| repositories { | |
| google() | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:3.3.1' | |
| classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$rootProject.ext.detoxKotlinVersion" | |
| // NOTE: Do not place your application dependencies here; they belong | |
| // in the individual module build.gradle files | |
| } | |
| } | |
| allprojects { | |
| repositories { | |
| mavenLocal() | |
| google() | |
| jcenter() | |
| maven { | |
| // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm | |
| url "$rootDir/../node_modules/react-native/android" | |
| } | |
| } | |
| } | |
| task wrapper(type: Wrapper) { | |
| gradleVersion = '4.7' | |
| distributionUrl = distributionUrl.replace("bin", "all") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| distributionBase=GRADLE_USER_HOME | |
| distributionPath=wrapper/dists | |
| zipStoreBase=GRADLE_USER_HOME | |
| zipStorePath=wrapper/dists | |
| distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment