build React Native from fork

This commit is contained in:
Roman Volosovskyi 2018-06-28 13:50:17 +03:00
parent 03472b6a8e
commit f27e4fe57e
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
12 changed files with 880 additions and 470 deletions

2
Jenkinsfile vendored
View File

@ -54,7 +54,7 @@ timeout(90) {
// Android // Android
stage('Build (Android)') { stage('Build (Android)') {
sh 'cd android && ./gradlew assembleRelease' sh 'cd android && ./gradlew react-native-android:installArchives && ./gradlew assembleRelease'
} }
stage('Deploy (Android)') { stage('Deploy (Android)') {

View File

@ -50,7 +50,7 @@ timeout(90) {
} }
stage('Build (Android)') { stage('Build (Android)') {
sh 'cd android && ./gradlew assembleRelease' sh 'cd android && ./gradlew react-native-android:installArchives && ./gradlew assembleRelease'
} }
stage('Build (iOS)') { stage('Build (iOS)') {

View File

@ -70,7 +70,7 @@ timeout(90) {
} }
stage('Build (Android)') { stage('Build (Android)') {
sh 'cd android && ./gradlew assembleRelease' sh 'cd android && ./gradlew react-native-android:installArchives && ./gradlew assembleRelease'
} }
stage('Build (iOS)') { stage('Build (iOS)') {

View File

@ -71,7 +71,7 @@ timeout(90) {
// Android // Android
stage('Build (Android)') { stage('Build (Android)') {
sh 'cd android && ./gradlew assembleRelease' sh 'cd android && ./gradlew react-native-android:installArchives && ./gradlew assembleRelease'
} }
stage('Deploy (Android)') { stage('Deploy (Android)') {
withCredentials([string(credentialsId: 'diawi-token', variable: 'token')]) { withCredentials([string(credentialsId: 'diawi-token', variable: 'token')]) {

View File

@ -70,7 +70,7 @@ timeout(90) {
} }
stage('Build (Android)') { stage('Build (Android)') {
sh 'cd android && ./gradlew assembleRelease -PreleaseVersion=' + version sh 'cd android && ./gradlew react-native-android:installArchives && ./gradlew assembleRelease -PreleaseVersion=' + version
} }
stage('Build (iOS)') { stage('Build (iOS)') {

View File

@ -74,7 +74,7 @@ timeout(90) {
} }
stage('Build (Android)') { stage('Build (Android)') {
sh 'cd android && ./gradlew assembleRelease -PreleaseVersion=' + version sh 'cd android && ./gradlew react-native-android:installArchives && ./gradlew assembleRelease -PreleaseVersion=' + version
} }
stage('Deploy (Android)') { stage('Deploy (Android)') {

View File

@ -196,6 +196,10 @@ android {
sourceSets { main { jniLibs.srcDirs 'libs' } } sourceSets { main { jniLibs.srcDirs 'libs' } }
} }
configurations.all {
exclude group: 'com.facebook.react', module: 'react-native'
}
dependencies { dependencies {
implementation project(':react-native-background-timer') implementation project(':react-native-background-timer')
implementation project(':react-native-svg') implementation project(':react-native-svg')
@ -211,7 +215,8 @@ dependencies {
implementation "com.android.support:appcompat-v7:26.1.0" implementation "com.android.support:appcompat-v7:26.1.0"
// Force using exact RN version instead of relying on gradle dependency resolution // Force using exact RN version instead of relying on gradle dependency resolution
// https://docs.gradle.org/current/userguide/introduction_dependency_management.html#sec:dependency_resolution // https://docs.gradle.org/current/userguide/introduction_dependency_management.html#sec:dependency_resolution
compile ("com.facebook.react:react-native:0.55.4") { force = true } // From node_modules //compile ("com.facebook.react:react-native:0.55.4") { force = true } // From node_modules
implementation project(':react-native-android')
implementation project(':react-native-i18n') implementation project(':react-native-i18n')
implementation project(':react-native-camera') implementation project(':react-native-camera')
implementation project(':react-native-status') implementation project(':react-native-status')

View File

@ -8,6 +8,7 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.0.0' classpath 'com.google.gms:google-services:3.0.0'
classpath 'de.undercouch:gradle-download-task:3.1.2'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
@ -26,4 +27,4 @@ allprojects {
maven { url "http://139.162.11.12:8081/artifactory/libs-release-local" } maven { url "http://139.162.11.12:8081/artifactory/libs-release-local" }
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
} }
} }

View File

@ -41,4 +41,7 @@ project(':react-native-webview-bridge').projectDir = new File(rootProject.projec
include ':react-native-config' include ':react-native-config'
project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android') project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android')
include ':react-native-testfairy' include ':react-native-testfairy'
project(':react-native-testfairy').projectDir = new File(settingsDir, '../node_modules/react-native-testfairy/android') project(':react-native-testfairy').projectDir = new File(settingsDir, '../node_modules/react-native-testfairy/android')
include ':react-native-android'
project(':react-native-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native/ReactAndroid')

1317
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@
"re-natal": "0.8.1", "re-natal": "0.8.1",
"react": "16.2.0", "react": "16.2.0",
"react-dom": "16.2.0", "react-dom": "16.2.0",
"react-native": "0.55.4", "react-native": "github:status-im/react-native#v0.55.4",
"react-native-background-timer": "2.0.0", "react-native-background-timer": "2.0.0",
"react-native-camera": "0.10.0", "react-native-camera": "0.10.0",
"react-native-config": "0.9.0", "react-native-config": "0.9.0",

View File

@ -61,7 +61,9 @@ open -a /Applications/Genymotion.app/Contents/MacOS/player.app --args --vm-name
fi fi
# Install deps, prepare for genymotion and figwheel # Install deps, prepare for genymotion and figwheel
lein deps && ./re-natal deps && ./re-natal use-android-device "${device_type}" && ./re-natal use-figwheel lein deps && npm install && ./re-natal use-android-device "${device_type}" && ./re-natal use-figwheel && npm install
cd android && ./gradlew react-native-android:installArchives && cd ../
# open figwheel in new tab # open figwheel in new tab
tab "lein figwheel-repl ${cljs_build}" tab "lein figwheel-repl ${cljs_build}"