Skip to content

Commit

Permalink
CD setup for TestFlight (#27)
Browse files Browse the repository at this point in the history
* Add deployment stub

* Add altool validation step

* Skip screenshot test for now

* Fix upload package command

* Add todo

* Update profile

* Fix PODFILE

* Add RN build script

* Comment out testflight deploy for now

* Switch back to automatic signing

* Fix build script

* Fix build script

* Update bundler

* Fix bundler install

* Pin bundler version

* Fix npm install

* Remove unused github action
  • Loading branch information
hmallen99 authored Jan 21, 2025
1 parent ffa84d0 commit 5df94b5
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 17 deletions.
12 changes: 6 additions & 6 deletions packages/clientNative/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ PODS:
- GoogleUtilities/Environment (~> 8.0)
- GoogleUtilities/UserDefaults (~> 8.0)
- PromisesObjC (~> 2.4)
- FirebaseRemoteConfigInterop (11.6.0)
- FirebaseRemoteConfigInterop (11.7.0)
- FirebaseSessions (11.5.0):
- FirebaseCore (= 11.5)
- FirebaseCoreExtension (= 11.5)
Expand Down Expand Up @@ -1812,8 +1812,8 @@ DEPENDENCIES:
- React-utils (from `../../../node_modules/react-native/ReactCommon/react/utils`)
- ReactCodegen (from `build/generated/ios`)
- ReactCommon/turbomodule/core (from `../../../node_modules/react-native/ReactCommon`)
- "RNFBApp (from `../../../node_modules/@react-native-firebase/app`)"
- "RNFBCrashlytics (from `../../../node_modules/@react-native-firebase/crashlytics`)"
- "RNFBApp (from `../node_modules/@react-native-firebase/app`)"
- "RNFBCrashlytics (from `../node_modules/@react-native-firebase/crashlytics`)"
- Yoga (from `../../../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
Expand Down Expand Up @@ -1991,9 +1991,9 @@ EXTERNAL SOURCES:
ReactCommon:
:path: "../../../node_modules/react-native/ReactCommon"
RNFBApp:
:path: "../../../node_modules/@react-native-firebase/app"
:path: "../node_modules/@react-native-firebase/app"
RNFBCrashlytics:
:path: "../../../node_modules/@react-native-firebase/crashlytics"
:path: "../node_modules/@react-native-firebase/crashlytics"
Yoga:
:path: "../../../node_modules/react-native/ReactCommon/yoga"

Expand All @@ -2015,7 +2015,7 @@ SPEC CHECKSUMS:
FirebaseCoreInternal: f47dd28ae7782e6a4738aad3106071a8fe0af604
FirebaseCrashlytics: 94c11c3bf296fde8c18f2c9f8e76bd9349227038
FirebaseInstallations: d8063d302a426d114ac531cd82b1e335a0565745
FirebaseRemoteConfigInterop: e75e348953352a000331eb77caf01e424248e176
FirebaseRemoteConfigInterop: ca12abf9da0003efd3a476b2dff4f7a04fd31b4f
FirebaseSessions: b252b3f91a51186188882ea8e7e1730fc1eee391
fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be
glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
Expand Down
34 changes: 34 additions & 0 deletions packages/clientNative/ios/ci_scripts/ci_pre_xcodebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh

cd ../..
ls

echo "===== Installling Gems ====="
echo 'export GEM_HOME=$HOME/gems' >> ~/.zshrc
echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.zshrc
source ~/.zshrc

export GEM_HOME=$HOME/gems
export PATH="$GEM_HOME/bin:$PATH"

echo ">>> INSTALL BUNDLER"
gem install bundler:2.4.10 --install-dir $GEM_HOME
bundle --version
bundle install

echo "===== Installing Node.js ====="
brew install node@20
echo 'export PATH="/usr/local/opt/node@20/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
node -v
npm -v

# Install dependencies
echo "===== Install JavaScript Dependencies ====="
cd ../..
npm install -g patch-package
npm install
echo "===== Install Native Dependencies ====="
cd packages/clientNative
npm install
bundle exec pod install --project-directory=ios
21 changes: 13 additions & 8 deletions packages/clientNative/ios/clientNative.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = clientNative/LaunchScreen.storyboard; sourceTree = "<group>"; };
89C6BE57DB24E9ADA2F236DE /* Pods-clientNative-clientNativeTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-clientNative-clientNativeTests.release.xcconfig"; path = "Target Support Files/Pods-clientNative-clientNativeTests/Pods-clientNative-clientNativeTests.release.xcconfig"; sourceTree = "<group>"; };
973490C22D00A5550028D747 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
9766F85E2D3FEF69001D9D41 /* ci_pre_xcodebuild.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = ci_pre_xcodebuild.sh; sourceTree = "<group>"; };
9BDD9F9B0CB27C24533D533E /* Pods_clientNative.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_clientNative.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D07853D28988CC9CBE05D36F /* Pods_clientNative_clientNativeTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_clientNative_clientNativeTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -134,6 +135,7 @@
83CBB9F61A601CBA00E9B192 = {
isa = PBXGroup;
children = (
9766F85D2D3FEF5A001D9D41 /* ci_scripts */,
13B07FAE1A68108700A75B9A /* clientNative */,
832341AE1AAA6A7D00B99B32 /* Libraries */,
00E356EF1AD99517003FC87E /* clientNativeTests */,
Expand All @@ -156,6 +158,14 @@
name = Products;
sourceTree = "<group>";
};
9766F85D2D3FEF5A001D9D41 /* ci_scripts */ = {
isa = PBXGroup;
children = (
9766F85E2D3FEF69001D9D41 /* ci_pre_xcodebuild.sh */,
);
path = ci_scripts;
sourceTree = "<group>";
};
A6F6B1AE1EEFC1C4024A9C58 /* clientNativeTests */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -579,6 +589,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = UKXZMZ23P4;
Expand Down Expand Up @@ -716,10 +727,7 @@
"-DFOLLY_CFG_NO_COROUTINES=1",
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
OTHER_LDFLAGS = "$(inherited) ";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
Expand Down Expand Up @@ -800,10 +808,7 @@
"-DFOLLY_CFG_NO_COROUTINES=1",
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
" ",
);
OTHER_LDFLAGS = "$(inherited) ";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
buildConfiguration = "Release"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
Expand Down
4 changes: 2 additions & 2 deletions packages/clientNative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"@ir-engine/engine": "^1.6.0",
"@ir-engine/hyperflux": "^1.6.0",
"@ir-engine/ui": "^1.6.0",
"@react-native-firebase/app": "^21.6.1",
"@react-native-firebase/crashlytics": "^21.6.1",
"@react-native-firebase/app": "=21.6.1",
"@react-native-firebase/crashlytics": "=21.6.1",
"@ungap/structured-clone": "^1.2.0",
"base-64": "^1.0.0",
"expo": "^52.0.0",
Expand Down

0 comments on commit 5df94b5

Please sign in to comment.