Merge branch 'chore/update-readme' into 'master'
Add info on nvm requirement and xcode 12.5 fix See merge request bloodyhealth/drip!372
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -62,17 +62,17 @@ Either start a [virtual device in Android Studio](https://developer.android.com/
|
|||||||
$ 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:
|
||||||
|
|
||||||
|
|||||||
Generated
+1455
-23059
File diff suppressed because it is too large
Load Diff
+5
-1
@@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user