-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from D4ryl00/fix/ios-build
fix: ios build
- Loading branch information
Showing
5 changed files
with
1,102 additions
and
14,801 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
nodejs 18.16.0 | ||
ruby 3.1.4 | ||
ruby 3.2.2 | ||
cocoapods 1.12.1 | ||
java openjdk-18.0.1.1 | ||
golang 1.19.7 | ||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
METRO_RN_PORT ?= 8081 | ||
IOS_DEVICE ?= | ||
|
||
## Internal variables | ||
check-program = $(foreach exec,$(1),$(if $(shell PATH="$(PATH)" which $(exec)),,$(error "Missing deps: no '$(exec)' in PATH"))) | ||
|
||
node_modules: package.json | ||
$(call check-program, yarn) | ||
yarn $(if $(filter $(CI), true), --frozen-lockfile --network-timeout 1200000 --network-concurrency 1) | ||
touch $@ | ||
|
||
ios/weshnetexpoexample.xcworkspace: ios/weshnetexpoexample.xcodeproj ios/Podfile node_modules | ||
$(call check-program, pod) | ||
cd ios pod install --repo-update | ||
touch $@ | ||
|
||
build.ios: ios/weshnetexpoexample.xcworkspace | ||
$(call check-program, npx) | ||
npx react-native run-ios \ | ||
--no-packager \ | ||
--port="$(METRO_RN_PORT)" \ | ||
$(if $(IOS_DEVICE),$(IOS_RN_FLAGS)='$(IOS_DEVICE)',) | ||
|
||
.PHONY: help | ||
help: | ||
@echo " build.ios Launch iOS app IOS_DEVICE=<virtual/real device>" |
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
Oops, something went wrong.