-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
orb(react-native-mlkit): Upgrade Expo to v50 (#138)
* replace example app * upgrade expo and related deps to v50 * docs(changeset): Upgrade expo and related deps to v50. * docs(changeset): Bump expo to v50 * chore: expo 50 lint and Java fixes (#141) * fix(example-app): missing React import * docs: InfiniteRedAI -> ExampleApp rename * fix(scripts): setup ExampleApp and prebuild clean * chore(example-app): linting * fix(example-app): display preview image if available * chore: asdf version for java * fix(mlkit-core): java versions * fix(doc-scanner): package json matching to other modules, android only * fix(doc-scanner): java versions * fix(modules): lint script fix * fix(modules): java versions * chore: yarn lock+cache * chore: changeset * docs(README): version compat chart * chore: test in band * chore: just kidding, this is run in band --------- Co-authored-by: Frank Calise <[email protected]> (4048d3470fbe36fee13778610bf94c9627c376fd)
- Loading branch information
1 parent
9cafc1d
commit 2943927
Showing
3 changed files
with
22 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,21 +16,21 @@ git clone [email protected]:infinitered/react-native-mlkit.git | |
## 2. Install dependencies | ||
|
||
```bash | ||
cd react-native-mlkit | ||
cd react-native-mlkit | ||
yarn install | ||
``` | ||
|
||
## 3. Build native modules | ||
|
||
```bash | ||
```bash | ||
yarn build | ||
``` | ||
|
||
## | ||
|
||
## 5. Build and run the app | ||
|
||
From `~app/InfiniteRedAI` use the included script to run the app in the android emulator. | ||
From `~app/ExampleApp` use the included script to run the app in the android emulator. | ||
|
||
```bash | ||
yarn android | ||
|
@@ -41,8 +41,3 @@ Add `-d` to run on a hardware device. | |
```bash | ||
yarn android [-d] | ||
``` | ||
|
||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,13 +24,13 @@ git clone [email protected]:infinitered/react-native-mlkit.git | |
## 2. Install dependencies | ||
|
||
```bash | ||
cd react-native-mlkit | ||
cd react-native-mlkit | ||
yarn install | ||
``` | ||
|
||
## 3. Build native modules | ||
|
||
```bash | ||
```bash | ||
yarn build | ||
``` | ||
|
||
|
@@ -43,29 +43,25 @@ yarn build | |
1. Launch the app using the `ios` script | ||
|
||
```bash | ||
cd apps/InfiniteRedAI | ||
cd apps/ExampleApp | ||
|
||
yarn ios -d | ||
yarn ios -d | ||
``` | ||
|
||
#### Via XCode | ||
|
||
1. From inside the app package, Run `expo prebuild` to create the `android` and `ios` native project folders | ||
|
||
```bash | ||
cd apps/InfiniteRedAI | ||
```bash | ||
cd apps/ExampleApp | ||
|
||
# creates both android and ios native project folders | ||
yarn prebuild | ||
yarn prebuild | ||
# creates only the ios native project folder | ||
yarn prebuild --platform ios | ||
``` | ||
yarn prebuild --platform ios | ||
``` | ||
|
||
2. Open `~/apps/InfiniteRedAI/ios/InfiniteRedAI.xcworkspace` in XCode | ||
3. Select the `InfiniteRedAI` target, and select a Team on the "Signing & Capabilities" tab | ||
2. Open `~/apps/ExampleApp/ios/ExampleApp.xcworkspace` in XCode | ||
3. Select the `ExampleApp` target, and select a Team on the "Signing & Capabilities" tab | ||
4. Select the hardware device you want to run the app on (MLKit is not supported in the simulator at this time) | ||
5. Click the play button to build the app | ||
|
||
|
||
|
||
|