expo-invoke 2.8.6 → 3.0.1

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', '2.8.6');
65
+ exports.default = (0, config_plugins_1.createRunOncePlugin)(withInvoke, 'expo-invoke', '3.0.1');
66
66
  //# sourceMappingURL=withInvoke.js.map
@@ -14,9 +14,14 @@ 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
+ # PRODUCT_MODULE_NAME overrides the Swift module name (expo_invoke ExpoInvoke).
18
+ # DEFINES_MODULE generates a matching ObjC module map so Swift 6 finds a consistent
19
+ # ExpoInvoke module for both Swift and ObjC — without it every source file emits
20
+ # "underlying Objective-C module 'ExpoInvoke' not found" on Xcode 26+.
21
+ s.pod_target_xcconfig = {
22
+ 'PRODUCT_MODULE_NAME' => 'ExpoInvoke',
23
+ 'DEFINES_MODULE' => 'YES'
24
+ }
20
25
 
21
26
  s.dependency 'ExpoModulesCore'
22
27
  # ExpoUI is required: Buttons.swift, DynamicView.swift, Fragment.swift, RedBoxView.swift all import ExpoUI
@@ -270,7 +270,7 @@ public class ExpoInvokeModule: Module {
270
270
  public static func writePendingIntent(
271
271
  intentId: String,
272
272
  source: String = "siri",
273
- parameters: [String: Any] = [],
273
+ parameters: [String: Any] = [:],
274
274
  spokenResponse: String? = nil
275
275
  ) {
276
276
  var payload: [String: Any] = [
@@ -21,13 +21,6 @@ public struct SpotlightManager {
21
21
  attrs.thumbnailURL = url
22
22
  }
23
23
 
24
- // Store intent info in userInfo for retrieval on tap
25
- let userInfo: [String: Any] = [
26
- "intentId": item["intentId"] as? String ?? "",
27
- "intentParameters": item["intentParameters"] ?? [:],
28
- ]
29
- attrs.userInfo = userInfo as NSDictionary
30
-
31
24
  return CSSearchableItem(
32
25
  uniqueIdentifier: id,
33
26
  domainIdentifier: Bundle.main.bundleIdentifier,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-invoke",
3
- "version": "2.8.6",
3
+ "version": "3.0.1",
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",