expo-invoke 3.0.0 → 3.0.2

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.
@@ -62,5 +62,5 @@ const withInvoke = (config, options) => {
62
62
  });
63
63
  return config;
64
64
  };
65
- exports.default = (0, config_plugins_1.createRunOncePlugin)(withInvoke, 'expo-invoke', '3.0.0');
65
+ exports.default = (0, config_plugins_1.createRunOncePlugin)(withInvoke, 'expo-invoke', '3.0.2');
66
66
  //# sourceMappingURL=withInvoke.js.map
@@ -14,9 +14,16 @@ Pod::Spec.new do |s|
14
14
 
15
15
  s.source_files = 'ios/**/*.{h,m,mm,swift}'
16
16
 
17
- # Override the Swift module name so `import ExpoInvoke` works in the widget extension.
18
- # CocoaPods derives the module name from s.name (expo-invoke expo_invoke), but we need ExpoInvoke.
19
- s.pod_target_xcconfig = { 'PRODUCT_MODULE_NAME' => 'ExpoInvoke' }
17
+ # s.module_name tells CocoaPods to name the Swift module "ExpoInvoke" and generate
18
+ # the module map under that name identical to what ExpoUI / ExpoModulesCore do.
19
+ # Setting PRODUCT_MODULE_NAME via xcconfig alone leaves the CocoaPods-generated
20
+ # module map named "expo_invoke" (derived from s.name), causing Swift 6 to emit
21
+ # "underlying Objective-C module 'ExpoInvoke' not found" for every source file
22
+ # because the ObjC module map name doesn't match PRODUCT_MODULE_NAME.
23
+ s.module_name = 'ExpoInvoke'
24
+ s.pod_target_xcconfig = {
25
+ 'DEFINES_MODULE' => 'YES'
26
+ }
20
27
 
21
28
  s.dependency 'ExpoModulesCore'
22
29
  # ExpoUI is required: Buttons.swift, DynamicView.swift, Fragment.swift, RedBoxView.swift all import ExpoUI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-invoke",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "The complete native-surface-to-JS bridge for Expo. One intent config → Siri, Google Assistant, home screen widgets, Dynamic Island, app icon menus, notification actions, NFC, QR, deep links and more — all through a single useInvoke() hook.",
5
5
  "main": "build/src/index.js",
6
6
  "module": "build/src/index.js",