Skip to content

Commit 1aab144

Browse files
authored
chore: update nitrogen and react-native-nitro-modules to 0.31.9 (#112)
* chore: update nitrogen and react-native-nitro-modules to 0.31.9 - Update nitrogen from 0.31.4 to 0.31.9 - Update react-native-nitro-modules from 0.31.4 to 0.31.9 - Regenerate codegen files - Update lock files (bun.lock, Podfile.lock) * refactor: simplify maxFontSizeMultiplier handling - Removed std::variant and associated wrapper for maxFontSizeMultiplier in C++ and Swift files. - Updated related interfaces and implementations to directly use double instead of variant. - Cleaned up unnecessary imports and deleted Variant_NullType_Double.swift file. - Adjusted NitroText component to accommodate the new maxFontSizeMultiplier type. * chore: simplify CocoaPods caching in iOS build workflow - Updated the caching path in the iOS build workflow to only include the Pods directory, removing the CocoaPods repos path for a cleaner configuration. * chore: downgrade actions/checkout to v5 in CI workflows - Updated the checkout action from v6 to v5 in android-build, ios-build, and release workflows for compatibility reasons. * chore: upgrade actions/checkout to v6 in CI workflows - Updated the checkout action from v5 to v6 in android-build, ios-build, and release workflows to leverage new features and improvements. * refactor: enhance NitroText component structure - Removed maxFontSizeMultiplier from the Text component in certain conditions. - Improved handling of renderer and children types for better rendering logic. - Ensured selectable and other props are consistently passed to NitroTextView. - Cleaned up the component's return structure for clarity and maintainability. * chore: update CocoaPods caching key in iOS build workflow - Modified the caching key in the iOS build workflow to include all Podfile variations, improving cache efficiency and reliability. * chore: update CocoaPods cache path in iOS build workflow - Changed the CocoaPods cache path in the iOS build workflow to specify the example/ios/Pods directory, ensuring accurate caching and improved build performance. * chore: refine CocoaPods caching key in iOS build workflow - Updated the caching key in the iOS build workflow to target only the Podfile, enhancing cache accuracy and build efficiency. * chore: comment out CocoaPods caching in iOS build workflow - Temporarily disabled CocoaPods caching in the iOS build workflow for further evaluation and testing.
1 parent 6f37fd0 commit 1aab144

14 files changed

Lines changed: 40 additions & 30 deletions

.github/workflows/ios-build.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,13 @@ jobs:
7878
- name: Install xcpretty
7979
run: gem install xcpretty
8080

81-
- name: Cache CocoaPods
82-
uses: actions/cache@v4
83-
with:
84-
path: |
85-
~/.cocoapods/repos
86-
example/ios/Pods
87-
key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock') }}
88-
restore-keys: |
89-
${{ runner.os }}-pods-
81+
# - name: Cache CocoaPods
82+
# uses: actions/cache@v4
83+
# with:
84+
# path: example/ios/Pods
85+
# key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile') }}
86+
# restore-keys: |
87+
# ${{ runner.os }}-pods-
9088

9189
- name: Install Pods
9290
working-directory: example/ios

bun.lock

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/ios/Podfile.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PODS:
88
- hermes-engine (0.81.4):
99
- hermes-engine/Pre-built (= 0.81.4)
1010
- hermes-engine/Pre-built (0.81.4)
11-
- NitroModules (0.31.4):
11+
- NitroModules (0.31.9):
1212
- boost
1313
- DoubleConversion
1414
- fast_float
@@ -37,7 +37,7 @@ PODS:
3737
- ReactCommon/turbomodule/core
3838
- SocketRocket
3939
- Yoga
40-
- NitroText (1.0.3):
40+
- NitroText (1.1.0):
4141
- boost
4242
- DoubleConversion
4343
- fast_float
@@ -1807,7 +1807,7 @@ PODS:
18071807
- React-RCTFBReactNativeSpec
18081808
- ReactCommon/turbomodule/core
18091809
- SocketRocket
1810-
- react-native-safe-area-context (5.6.1):
1810+
- react-native-safe-area-context (5.6.2):
18111811
- boost
18121812
- DoubleConversion
18131813
- fast_float
@@ -1825,8 +1825,8 @@ PODS:
18251825
- React-graphics
18261826
- React-ImageManager
18271827
- React-jsi
1828-
- react-native-safe-area-context/common (= 5.6.1)
1829-
- react-native-safe-area-context/fabric (= 5.6.1)
1828+
- react-native-safe-area-context/common (= 5.6.2)
1829+
- react-native-safe-area-context/fabric (= 5.6.2)
18301830
- React-NativeModulesApple
18311831
- React-RCTFabric
18321832
- React-renderercss
@@ -1837,7 +1837,7 @@ PODS:
18371837
- ReactCommon/turbomodule/core
18381838
- SocketRocket
18391839
- Yoga
1840-
- react-native-safe-area-context/common (5.6.1):
1840+
- react-native-safe-area-context/common (5.6.2):
18411841
- boost
18421842
- DoubleConversion
18431843
- fast_float
@@ -1865,7 +1865,7 @@ PODS:
18651865
- ReactCommon/turbomodule/core
18661866
- SocketRocket
18671867
- Yoga
1868-
- react-native-safe-area-context/fabric (5.6.1):
1868+
- react-native-safe-area-context/fabric (5.6.2):
18691869
- boost
18701870
- DoubleConversion
18711871
- fast_float
@@ -2705,8 +2705,8 @@ SPEC CHECKSUMS:
27052705
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
27062706
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
27072707
hermes-engine: 35c763d57c9832d0eef764316ca1c4d043581394
2708-
NitroModules: a08d4fbf973527df2d061c5f02cb192c2c261a09
2709-
NitroText: c95604214333634a6a083ac7211b238686dbd628
2708+
NitroModules: 224bf833d249b0c7ce32831368f2887008579b13
2709+
NitroText: c6dac5ae42b3f8906e60f1d76bcdd63accddf39e
27102710
RCT-Folly: 846fda9475e61ec7bcbf8a3fe81edfcaeb090669
27112711
RCTDeprecation: c0ed3249a97243002615517dff789bf4666cf585
27122712
RCTRequired: 58719f5124f9267b5f9649c08bf23d9aea845b23
@@ -2740,7 +2740,7 @@ SPEC CHECKSUMS:
27402740
React-logger: a3cb5b29c32b8e447b5a96919340e89334062b48
27412741
React-Mapbuffer: 9d2434a42701d6144ca18f0ca1c4507808ca7696
27422742
React-microtasksnativemodule: 75b6604b667d297292345302cc5bfb6b6aeccc1b
2743-
react-native-safe-area-context: c6e2edd1c1da07bdce287fa9d9e60c5f7b514616
2743+
react-native-safe-area-context: c00143b4823773bba23f2f19f85663ae89ceb460
27442744
React-NativeModulesApple: 879fbdc5dcff7136abceb7880fe8a2022a1bd7c3
27452745
React-oscompat: 93b5535ea7f7dff46aaee4f78309a70979bdde9d
27462746
React-perflogger: 5536d2df3d18fe0920263466f7b46a56351c0510

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@react-navigation/native": "^7.1.20",
1616
"react": "19.1.0",
1717
"react-native": "0.81.4",
18-
"react-native-nitro-modules": "^0.31.4",
18+
"react-native-nitro-modules": "^0.31.9",
1919
"react-native-safe-area-context": "^5.5.2",
2020
"react-native-screens": "^4.18.0"
2121
},

nitrogen/generated/ios/NitroText-Swift-Cxx-Bridge.cpp

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/swift/Fragment.swift

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/swift/Func_void.swift

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/swift/Func_void_TextLayoutEvent.swift

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/swift/MenuItem.swift

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nitrogen/generated/ios/swift/TextLayout.swift

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)