@rive-app/react-native 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/RNRive.podspec +22 -0
  2. package/package.json +1 -1
package/RNRive.podspec CHANGED
@@ -30,6 +30,28 @@ end
30
30
 
31
31
  Pod::UI.puts "@rive-app/react-native: Rive iOS SDK #{rive_ios_version}"
32
32
 
33
+ # Xcode 26 workaround: strip .Swift Clang submodule from RiveRuntime's prebuilt
34
+ # modulemaps to prevent ODR conflicts with locally-compiled Swift C++ interop.
35
+ # See: https://github.com/rive-app/rive-nitro-react-native/issues/173
36
+ if defined?(Pod::Installer)
37
+ module RiveXcode26SwiftModuleFix
38
+ def run_podfile_pre_install_hooks
39
+ rive_dir = File.join(sandbox.root.to_s, 'RiveRuntime')
40
+ if Dir.exist?(rive_dir)
41
+ Dir.glob(File.join(rive_dir, '**', 'module.modulemap')).each do |path|
42
+ content = File.read(path)
43
+ next unless content.include?('RiveRuntime.Swift')
44
+ cleaned = content.gsub(/\nmodule RiveRuntime\.Swift \{[^}]*\}\n?/m, "\n")
45
+ File.write(path, cleaned)
46
+ end
47
+ end
48
+ super
49
+ end
50
+ end
51
+
52
+ Pod::Installer.prepend(RiveXcode26SwiftModuleFix)
53
+ end
54
+
33
55
  Pod::Spec.new do |s|
34
56
  s.name = "RNRive"
35
57
  s.version = package["version"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/react-native",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Rive React Native",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",