1gradle.projectsLoaded {
2 rootProject.allprojects {
3 buildDir = "/path/to/build/directory/${rootProject.name}/${project.name}"
4 }
5}
1sdk.dir=/Users/your_unix_name/android-sdk-macosx
2ndk.dir=/Users/your_unix_name/android-ndk/android-ndk-r17c
3
1...
2include ':ReactAndroid'
3
4project(':ReactAndroid').projectDir = new File(
5 rootProject.projectDir, '../node_modules/react-native/ReactAndroid')
6...
1...
2dependencies {
3 implementation fileTree(dir: 'libs', include: ['*.jar'])
4
5 implementation project(':ReactAndroid')
6
7 ...
8}
9...
1git checkout -d release/my-react-native-release
2docker run --rm --name rn-build -v $PWD:/pwd -w /pwd reactnativecommunity/react-native-android /bin/sh -c "./gradlew installArchives"
3git add android --force
4git commit -a -m 'my react native forked release'
5git push
6
1export ANDROID_SDK=/Users/your_unix_name/android-sdk-macosx
2export ANDROID_NDK=/Users/your_unix_name/android-ndk/android-ndk-r17c
3
1...
2 dependencies {
3 classpath 'com.android.tools.build:gradle:3.4.2'
4 classpath 'de.undercouch:gradle-download-task:4.0.0'
5
6 // NOTE: Do not place your application dependencies here; they belong
7 // in the individual module build.gradle files
8 }
9...
1allprojects {
2 repositories { ... }
3
4 configurations.all {
5 resolutionStrategy {
6 dependencySubstitution {
7 substitute module("com.facebook.react:react-native:+") with project(":ReactAndroid")
8 }
9 }
10 }
11}
1"dependencies": {
2 ...
3 "react-native": "myName/react-native#release/my-react-native-release"
4}
5