pulse-updates 1.3.0 → 1.3.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.
@@ -0,0 +1,45 @@
1
+ #ifdef RCT_NEW_ARCH_ENABLED
2
+ #import <PulseAttributionSpec/PulseAttributionSpec.h>
3
+ #else
4
+ #import <React/RCTBridgeModule.h>
5
+ #endif
6
+
7
+ /// Cross-platform native capability marker. Android supplies Play Install Referrer through an
8
+ /// optional reflected dependency; iOS deterministic recovery uses Universal Links/UIPasteControl.
9
+ @interface PulseAttribution : NSObject
10
+ #ifdef RCT_NEW_ARCH_ENABLED
11
+ <NativePulseAttributionSpec>
12
+ #else
13
+ <RCTBridgeModule>
14
+ #endif
15
+ @end
16
+
17
+ @implementation PulseAttribution
18
+
19
+ RCT_EXPORT_MODULE(PulseAttribution)
20
+
21
+ + (BOOL)requiresMainQueueSetup
22
+ {
23
+ return NO;
24
+ }
25
+
26
+ RCT_EXPORT_METHOD(getDeferredHandoff:(RCTPromiseResolveBlock)resolve
27
+ reject:(RCTPromiseRejectBlock)reject)
28
+ {
29
+ resolve(@{
30
+ @"status": @"FEATURE_NOT_SUPPORTED",
31
+ @"retryable": @NO,
32
+ @"attempts": @0,
33
+ @"token": [NSNull null],
34
+ });
35
+ }
36
+
37
+ #ifdef RCT_NEW_ARCH_ENABLED
38
+ - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
39
+ (const facebook::react::ObjCTurboModule::InitParams &)params
40
+ {
41
+ return std::make_shared<facebook::react::NativePulseAttributionSpecJSI>(params);
42
+ }
43
+ #endif
44
+
45
+ @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulse-updates",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Pulse app-experience SDK for React Native: updates, config, experiments, events, decisions and first-party links",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "codegenConfig": {
85
85
  "name": "PulseAttributionSpec",
86
- "type": "components",
86
+ "type": "all",
87
87
  "jsSrcsDir": "src",
88
88
  "ios": {
89
89
  "componentProvider": {
@@ -1,29 +0,0 @@
1
- #import <React/RCTBridgeModule.h>
2
-
3
- /// Cross-platform native capability marker. Android supplies Play Install Referrer through an
4
- /// optional reflected dependency; iOS deterministic recovery uses Universal Links/UIPasteControl.
5
- @interface PulseAttribution : NSObject <RCTBridgeModule>
6
- @end
7
-
8
- @implementation PulseAttribution
9
-
10
- RCT_EXPORT_MODULE(PulseAttribution)
11
-
12
- + (BOOL)requiresMainQueueSetup
13
- {
14
- return NO;
15
- }
16
-
17
- RCT_REMAP_METHOD(getDeferredHandoff,
18
- getDeferredHandoffWithResolver:(RCTPromiseResolveBlock)resolve
19
- rejecter:(RCTPromiseRejectBlock)reject)
20
- {
21
- resolve(@{
22
- @"status": @"FEATURE_NOT_SUPPORTED",
23
- @"retryable": @NO,
24
- @"attempts": @0,
25
- @"token": [NSNull null],
26
- });
27
- }
28
-
29
- @end