-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/new nitro #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/new nitro #85
Changes from all commits
7776c7c
5508dd5
1a4751a
2e32094
f0582c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,9 +38,9 @@ env: | |
| USE_CCACHE: 1 | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build_new: | ||
| name: Build iOS Example App (new architecture) | ||
|
|
@@ -49,6 +49,11 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
| - uses: oven-sh/setup-bun@v2 | ||
|
|
||
| - name: Setup Xcode | ||
| uses: maxim-lobanov/setup-xcode@v1 | ||
| with: | ||
| xcode-version: latest-stable | ||
|
|
||
| - name: Install npm dependencies (bun) | ||
| run: bun install | ||
|
|
||
|
|
@@ -95,6 +100,11 @@ jobs: | |
| - name: Install npm dependencies (bun) | ||
| run: bun install | ||
|
|
||
| - name: Setup Xcode | ||
| uses: maxim-lobanov/setup-xcode@v1 | ||
| with: | ||
| xcode-version: latest-stable | ||
|
|
||
|
Comment on lines
+103
to
+107
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Repeat: Fix bundler-cache scoping to example/ios As above, the working-directory input is ignored in uses:. Use BUNDLE_GEMFILE and bundle exec to ensure the correct Cocoapods version is used under the example app’s Gemfile. - name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true
env:
BUNDLE_GEMFILE: example/ios/Gemfile
- name: Install Pods
working-directory: example/ios
run: bundle exec pod install🤖 Prompt for AI Agents |
||
| - name: Disable new architecture in Podfile | ||
| run: sed -i "" "s/ENV\['RCT_NEW_ARCH_ENABLED'\] = '1'/ENV['RCT_NEW_ARCH_ENABLED'] = '0'/g" example/ios/Podfile | ||
|
|
||
|
|
@@ -133,4 +143,4 @@ jobs: | |
| -configuration Debug \ | ||
| -destination 'platform=iOS Simulator,name=iPhone 16' \ | ||
| build \ | ||
| CODE_SIGNING_ALLOWED=NO | xcpretty" | ||
| CODE_SIGNING_ALLOWED=NO | xcpretty" | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| module.exports = { | ||
| arrowParens: 'avoid', | ||
| bracketSameLine: true, | ||
| bracketSpacing: false, | ||
| singleQuote: true, | ||
| trailingComma: 'all', | ||
| }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,14 +26,15 @@ | |
| <true/> | ||
| <key>NSAppTransportSecurity</key> | ||
| <dict> | ||
| <!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! --> | ||
| <key>NSAllowsArbitraryLoads</key> | ||
| <false/> | ||
| <key>NSAllowsLocalNetworking</key> | ||
| <true/> | ||
| </dict> | ||
| <key>NSLocationWhenInUseUsageDescription</key> | ||
| <string></string> | ||
| <key>RCTNewArchEnabled</key> | ||
| <true/> | ||
|
Comment on lines
+36
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify Podfile/xcconfig alignment with this runtime flag Ensure your build settings also enable the New Architecture (e.g., Podfile new_arch_enabled, relevant xcconfig macros). A mismatch between runtime flag and build-time settings can lead to unexpected behavior. Run this script to check for consistency: 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "Searching for the Info.plist flag:"
rg -n -C1 -S 'RCTNewArchEnabled' || true
echo ""
echo "Checking Podfile(s) for New Architecture settings:"
fd -a 'Podfile' | while read -r pod; do
echo "---- $pod ----"
rg -n -C2 -P 'use_react_native|new_arch_enabled|fabric_enabled|hermes_enabled' "$pod" || true
done
echo ""
echo "Scanning xcconfig files for related macros:"
fd -a '.xcconfig' | xargs -r rg -n -C1 -P 'RCT_NEW_ARCH_ENABLED|USE_HERMES|HERMES' || true
echo ""
echo "Swift usage of ReactNativeFactory (context only):"
rg -n -C3 -S 'ReactNativeDelegate|RCTReactNativeFactory|newArch' --type=swift || trueLength of output: 3517 Enable New Architecture in build configuration You’ve set
Aligning these ensures your runtime flag and build‐time settings match. 🤖 Prompt for AI Agents |
||
| <key>UILaunchStoryboardName</key> | ||
| <string>LaunchScreen</string> | ||
| <key>UIRequiredDeviceCapabilities</key> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Bundler cache misconfigured: working-directory is ignored by ruby/setup-ruby
The working-directory key in a uses: step isn’t a valid input for ruby/setup-ruby and will be ignored. As a result, bundler-cache runs at repo root and may miss example/ios/Gemfile, leading to non-deterministic Cocoapods usage.
Recommended fix (outside this hunk): point Bundler to the example Gemfile via BUNDLE_GEMFILE and use bundle exec for pod install to honor the locked versions.
Optional: consider upgrading Ruby to a supported version (e.g., 3.2+) if your Gemfile allows it, as 2.7 is EOL.
🤖 Prompt for AI Agents