fix(nitrogen): release build issue for plugins (#4793)

* chore: bump example version

* fix(nitrogen): release build with plugins issue

* refactor: create new nitrogen files
This commit is contained in:
Kamil Moskała
2025-12-08 21:26:26 +01:00
committed by GitHub
parent 147df1801a
commit 9db3e41575
6 changed files with 145 additions and 22 deletions
+4 -4
View File
@@ -1565,7 +1565,7 @@ PODS:
- React-logger (= 0.77.3)
- React-perflogger (= 0.77.3)
- React-utils (= 0.77.3)
- ReactNativeVideo (7.0.0-alpha.7):
- ReactNativeVideo (7.0.0-alpha.11):
- DoubleConversion
- glog
- hermes-engine
@@ -1587,7 +1587,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- ReactNativeVideoDrm (7.0.0-alpha.7):
- ReactNativeVideoDrm (7.0.0-alpha.11):
- DoubleConversion
- glog
- hermes-engine
@@ -1904,8 +1904,8 @@ SPEC CHECKSUMS:
ReactAppDependencyProvider: 31015410a4a53b9fd0a908ad4d6e3e2b9a25086a
ReactCodegen: 53316394e985ded1babc7f143c90c77d2bb1b43c
ReactCommon: bf4612cba0fa356b529385029f470d5529dddde4
ReactNativeVideo: 0189b775e803a2ed5c9601d6f203d82d98736770
ReactNativeVideoDrm: 561d9e3e110dfe1be287155dd1f273d2b8d90d90
ReactNativeVideo: d6536278408a2518bf15b8f0b8fb066b3c824065
ReactNativeVideoDrm: 4316a2f9e2ba34ed83de3c70fd37ab985568f948
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 92f3bb322c40a86b7233b815854730442e01b8c4
+18
View File
@@ -0,0 +1,18 @@
diff --git a/node_modules/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts b/node_modules/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts
index a1761b4..b79abb6 100644
--- a/node_modules/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts
+++ b/node_modules/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts
@@ -452,7 +452,12 @@ export class SwiftCxxBridgedType implements BridgedType<'swift', 'c++'> {
// TODO: Remove this check for booleans once https://github.com/swiftlang/swift/issues/84848 is fixed.
const swiftBug84848Workaround =
optional.wrappingType.kind === 'boolean'
- if (!wrapping.needsSpecialHandling && !swiftBug84848Workaround) {
+
+ // TODO: Remove this check for numbers once the Swift bug is fixed.
+ const swiftNumberWorkaround =
+ optional.wrappingType.kind === 'number'
+
+ if (!wrapping.needsSpecialHandling && !swiftBug84848Workaround && !swiftNumberWorkaround) {
return `${cppParameterName}.value`
}
return `