Add info on nvm requirement and xcode 12.5 fix

This commit is contained in:
Maria Zadnepryanets
2021-09-19 12:46:26 +00:00
committed by bl00dymarie
parent f282e24308
commit 449c84e75e
6 changed files with 1506 additions and 23097 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
image: node:8 image: node:10
# This folder is cached between builds # This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache # http://docs.gitlab.com/ce/ci/yaml/README.html#cache
+1
View File
@@ -0,0 +1 @@
engine-strict=true
+1
View File
@@ -0,0 +1 @@
v10.24.1
+13 -6
View File
@@ -25,9 +25,9 @@ The app is built in React Native and currently developed for Android.
Install [Android Studio](https://developer.android.com/studio/) - you'll need it to install some dependencies. Install [Android Studio](https://developer.android.com/studio/) - you'll need it to install some dependencies.
#### 2. Node version #### 2. Node & npm version
Make sure you are running Node 10 (newer versions won't work). It's easiest to switch Node versions using `nvm`, here's how to do it: Make sure you are running Node 10 and npm 6.x (newer versions won't work). It's easiest to switch Node versions using `nvm`, here's how to do it:
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
@@ -57,22 +57,22 @@ Open Android Studio and click on "Open an existing Android Studio project". Navi
Either start a [virtual device in Android Studio](https://developer.android.com/studio/run/emulator) or [set your physical device like your Android phone up](https://developer.android.com/training/basics/firstapp/running-app) to run the app. Either start a [virtual device in Android Studio](https://developer.android.com/studio/run/emulator) or [set your physical device like your Android phone up](https://developer.android.com/training/basics/firstapp/running-app) to run the app.
1. Open a terminal and run 1. Open a terminal and run
``` ```
$ npm run android $ npm run android
``` ```
1. To see logging output, run the following command in another tab: 2. To see logging output, run the following command in another tab:
``` ```
$ npm run log $ npm run log
``` ```
1. Run the following command and select enable hot reloading (see https://facebook.github.io/react-native/docs/debugging.html): 3. Run the following command and select enable hot reloading (see https://facebook.github.io/react-native/docs/debugging.html):
``` ```
$ adb shell input keyevent 82 $ adb shell input keyevent 82
``` ```
1. We recommend installing an [ESLint plugin in your editor](https://eslint.org/docs/user-guide/integrations#editors). There's an `.eslintrc` file in this project which will be used by the plugin to check your code for style errors and potential bugs. 4. We recommend installing an [ESLint plugin in your editor](https://eslint.org/docs/user-guide/integrations#editors). There's an `.eslintrc` file in this project which will be used by the plugin to check your code for style errors and potential bugs.
#### 6. Run app on iOS #### 6. Run app on iOS
@@ -115,6 +115,13 @@ If you get error messages about `adb` not being found on your path:
$ ln -s ~/Library/Android/sdk/platform-tools/adb /usr/local/bin/adb $ ln -s ~/Library/Android/sdk/platform-tools/adb /usr/local/bin/adb
``` ```
### [MacOS] and XCode 12.5
If you run XCode 12.5, more likely you'll have problems building app for iOS. Please use the following fix: https://stackoverflow.com/a/67320887.
If you experience any further issues, please feel free to check out the following threads:
- [react-native run-ios build failure on XCode 12.5 beta](https://github.com/react-native-community/cli/issues/1365)
- [Xcode 12.5 troubleshooting guide (RN 0.61/0.62/0.63/0.64)](https://github.com/facebook/react-native/issues/31480)
### Clearing project cache ### Clearing project cache
If you would like to clear project cache and/or re-install project libraries, you can run clear script as follows: If you would like to clear project cache and/or re-install project libraries, you can run clear script as follows:
+1479 -23083
View File
File diff suppressed because it is too large Load Diff
+5 -1
View File
@@ -101,5 +101,9 @@
"bugs": { "bugs": {
"url": "https://gitlab.com/bloodyhealth/drip/issues" "url": "https://gitlab.com/bloodyhealth/drip/issues"
}, },
"homepage": "https://gitlab.com/bloodyhealth/drip#README" "homepage": "https://gitlab.com/bloodyhealth/drip#README",
"engines": {
"node": ">=10.0.0 <11",
"npm": ">=6.0.0 <7"
}
} }