Skip to content

Commit

Permalink
Merge pull request #17 from D4ryl00/fix/ios-build
Browse files Browse the repository at this point in the history
fix: ios build
  • Loading branch information
iuricmp authored Oct 27, 2023
2 parents 11e0069 + 8cd75de commit aee4817
Show file tree
Hide file tree
Showing 5 changed files with 1,102 additions and 14,801 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
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
Expand Down
26 changes: 26 additions & 0 deletions example/Makefile
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>"
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ PODS:
- React-jsi (= 0.71.8)
- React-logger (= 0.71.8)
- React-perflogger (= 0.71.8)
- WeshnetExpo (0.1.0):
- WeshnetExpo (0.0.2):
- ExpoModulesCore
- Yoga (1.14.0)

Expand Down Expand Up @@ -550,7 +550,7 @@ SPEC CHECKSUMS:
React-RCTVibration: 43ffd976a25f6057a7cf95ea3648ba4e00287f89
React-runtimeexecutor: 7c51ae9d4b3e9608a2366e39ccaa606aa551b9ed
ReactCommon: 85c98ab0a509e70bf5ee5d9715cf68dbf495b84c
WeshnetExpo: 71e43a24a69f75b37fc324e364a4f168c37c62a1
WeshnetExpo: ff62d8d423fa4749e1c33bd390ec1fe4864976c5
Yoga: 065f0b74dba4832d6e328238de46eb72c5de9556

PODFILE CHECKSUM: d86be49d13d88ecad62e69216428b04b52f686d1
Expand Down
Loading

0 comments on commit aee4817

Please sign in to comment.