zixflow-reactnative 1.0.0 → 1.1.0
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.
- package/README.md +2 -2
- package/android/build.gradle +4 -13
- package/android/gradle.properties +1 -1
- package/android/src/main/AndroidManifest.xml +5 -5
- package/android/src/main/java/{io/customer/reactnative/sdk/NativeCustomerIOModule.kt → com/zixflow/reactnative/sdk/NativeZixflowModule.kt} +35 -35
- package/android/src/main/java/{io/customer/reactnative/sdk/CustomerIOReactNativePackage.kt → com/zixflow/reactnative/sdk/ZixflowReactNativePackage.kt} +15 -15
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/constant/Keys.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/extension/MapExtensions.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/extension/ReactExtensions.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/extension/StringExtensions.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/extension/ViewExtensions.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/location/NativeLocationModule.kt +15 -15
- package/android/src/main/java/{io/customer/reactnative/sdk/logging/NativeCustomerIOLoggingModule.kt → com/zixflow/reactnative/sdk/logging/NativeZixflowLoggingModule.kt} +10 -10
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/InlineInAppMessageViewManager.kt +2 -2
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/NativeMessagingInAppModule.kt +26 -26
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/NotificationInboxExtensions.kt +5 -5
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/ReactInAppEventListener.kt +4 -4
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/ReactInAppPlatformDelegate.kt +3 -3
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/ReactInlineInAppMessageView.kt +5 -5
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/ReactNotificationInboxChangeListener.kt +3 -3
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messagingpush/NativeMessagingPushModule.kt +25 -25
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messagingpush/PermissionStatus.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messagingpush/PushMessagingExtensions.kt +2 -2
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/util/Preconditions.kt +3 -3
- package/android/src/main/res/values/{customer_io_config.xml → zixflow_config.xml} +2 -2
- package/ios/wrappers/{NativeCustomerIO.mm → NativeZixflow.mm} +9 -9
- package/ios/wrappers/{NativeCustomerIO.swift → NativeZixflow.swift} +31 -31
- package/ios/wrappers/inapp/InboxMessage+Conversion.swift +1 -1
- package/ios/wrappers/inapp/NativeMessagingInApp.mm +8 -8
- package/ios/wrappers/inapp/NativeMessagingInApp.swift +7 -7
- package/ios/wrappers/inapp/ReactInAppEventListener.swift +12 -12
- package/ios/wrappers/inapp/inline/ReactInlineMessageView.swift +1 -1
- package/ios/wrappers/location/NativeLocation.mm +8 -8
- package/ios/wrappers/location/NativeLocation.swift +6 -6
- package/ios/wrappers/logging/{NativeCustomerIOLogging.mm → NativeZixflowLogging.mm} +14 -14
- package/ios/wrappers/logging/{NativeCustomerIOLogging.swift → NativeZixflowLogging.swift} +6 -6
- package/ios/wrappers/push/NativeMessagingPush.mm +8 -8
- package/ios/wrappers/push/NativeMessagingPush.swift +12 -12
- package/ios/wrappers/utils/Preconditions.swift +1 -1
- package/ios/wrappers/utils/{RCTCustomerIOUtils.h → RCTZixflowUtils.h} +3 -3
- package/ios/wrappers/utils/{CioConfigUtils.swift → ZixflowConfigUtils.swift} +4 -4
- package/ios/wrappers/utils/{CioConstants.swift → ZixflowConstants.swift} +4 -4
- package/lib/commonjs/native-logger-listener.js +10 -10
- package/lib/commonjs/native-logger-listener.js.map +1 -1
- package/lib/commonjs/notification-inbox.js +4 -4
- package/lib/commonjs/notification-inbox.js.map +1 -1
- package/lib/commonjs/postInstall.js +1 -1
- package/lib/commonjs/postInstall.js.map +1 -1
- package/lib/commonjs/specs/modules/{NativeCustomerIO.js → NativeZixflow.js} +6 -6
- package/lib/commonjs/specs/modules/NativeZixflow.js.map +1 -0
- package/lib/commonjs/specs/modules/{NativeCustomerIOLocation.js → NativeZixflowLocation.js} +4 -4
- package/lib/commonjs/specs/modules/NativeZixflowLocation.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeZixflowLogging.js +19 -0
- package/lib/commonjs/specs/modules/NativeZixflowLogging.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js +16 -0
- package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js.map +1 -0
- package/lib/commonjs/specs/modules/{NativeCustomerIOMessagingPush.js → NativeZixflowMessagingPush.js} +4 -4
- package/lib/commonjs/specs/modules/NativeZixflowMessagingPush.js.map +1 -0
- package/lib/commonjs/types/data-pipelines.js +23 -23
- package/lib/commonjs/types/data-pipelines.js.map +1 -1
- package/lib/commonjs/types/push.js +6 -6
- package/lib/commonjs/types/push.js.map +1 -1
- package/lib/commonjs/utils/native-bridge.js +1 -1
- package/lib/commonjs/utils/native-bridge.js.map +1 -1
- package/lib/commonjs/utils/param-validation.js +4 -4
- package/lib/commonjs/utils/param-validation.js.map +1 -1
- package/lib/commonjs/{customerio-cdp.js → zixflow-cdp.js} +19 -19
- package/lib/commonjs/zixflow-cdp.js.map +1 -0
- package/lib/commonjs/{customerio-inapp.js → zixflow-inapp.js} +8 -7
- package/lib/commonjs/zixflow-inapp.js.map +1 -0
- package/lib/commonjs/{customerio-location.js → zixflow-location.js} +10 -10
- package/lib/commonjs/zixflow-location.js.map +1 -0
- package/lib/commonjs/zixflow-params.js +2 -0
- package/lib/commonjs/zixflow-params.js.map +1 -0
- package/lib/commonjs/{customerio-push.js → zixflow-push.js} +11 -11
- package/lib/commonjs/zixflow-push.js.map +1 -0
- package/lib/commonjs/zixflow.js +19 -26
- package/lib/commonjs/zixflow.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/native-logger-listener.js +11 -11
- package/lib/module/native-logger-listener.js.map +1 -1
- package/lib/module/notification-inbox.js +4 -4
- package/lib/module/notification-inbox.js.map +1 -1
- package/lib/module/postInstall.js +1 -1
- package/lib/module/postInstall.js.map +1 -1
- package/lib/module/specs/modules/{NativeCustomerIO.js → NativeZixflow.js} +6 -6
- package/lib/module/specs/modules/NativeZixflow.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowLocation.js +13 -0
- package/lib/module/specs/modules/NativeZixflowLocation.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowLogging.js +18 -0
- package/lib/module/specs/modules/NativeZixflowLogging.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowMessagingInApp.js +15 -0
- package/lib/module/specs/modules/NativeZixflowMessagingInApp.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowMessagingPush.js +13 -0
- package/lib/module/specs/modules/NativeZixflowMessagingPush.js.map +1 -0
- package/lib/module/types/data-pipelines.js +22 -22
- package/lib/module/types/data-pipelines.js.map +1 -1
- package/lib/module/types/push.js +5 -5
- package/lib/module/types/push.js.map +1 -1
- package/lib/module/utils/native-bridge.js +1 -1
- package/lib/module/utils/native-bridge.js.map +1 -1
- package/lib/module/utils/param-validation.js +4 -4
- package/lib/module/utils/param-validation.js.map +1 -1
- package/lib/module/{customerio-cdp.js → zixflow-cdp.js} +16 -16
- package/lib/module/zixflow-cdp.js.map +1 -0
- package/lib/module/{customerio-inapp.js → zixflow-inapp.js} +6 -6
- package/lib/module/zixflow-inapp.js.map +1 -0
- package/lib/module/{customerio-location.js → zixflow-location.js} +6 -6
- package/lib/module/zixflow-location.js.map +1 -0
- package/lib/module/zixflow-params.js +2 -0
- package/lib/module/zixflow-params.js.map +1 -0
- package/lib/module/{customerio-push.js → zixflow-push.js} +10 -10
- package/lib/module/zixflow-push.js.map +1 -0
- package/lib/module/zixflow.js +5 -11
- package/lib/module/zixflow.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -2
- package/lib/typescript/commonjs/native-logger-listener.d.ts.map +1 -1
- package/lib/typescript/commonjs/notification-inbox.d.ts +1 -1
- package/lib/typescript/commonjs/specs/modules/{NativeCustomerIO.d.ts → NativeZixflow.d.ts} +5 -5
- package/lib/typescript/commonjs/specs/modules/NativeZixflow.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/{NativeCustomerIOLocation.d.ts → NativeZixflowLocation.d.ts} +3 -3
- package/lib/typescript/commonjs/specs/modules/NativeZixflowLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflowLogging.d.ts +18 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflowLogging.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/{NativeCustomerIOMessagingInApp.d.ts → NativeZixflowMessagingInApp.d.ts} +4 -4
- package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -0
- package/lib/typescript/{module/specs/modules/NativeCustomerIOMessagingPush.d.ts → commonjs/specs/modules/NativeZixflowMessagingPush.d.ts} +3 -3
- package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/data-pipelines.d.ts +14 -14
- package/lib/typescript/commonjs/types/data-pipelines.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/internal.d.ts +2 -2
- package/lib/typescript/commonjs/types/push.d.ts +2 -2
- package/lib/typescript/commonjs/types/push.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/param-validation.d.ts +2 -2
- package/lib/typescript/commonjs/utils/param-validation.d.ts.map +1 -1
- package/lib/typescript/commonjs/{customerio-cdp.d.ts → zixflow-cdp.d.ts} +12 -12
- package/lib/typescript/commonjs/zixflow-cdp.d.ts.map +1 -0
- package/lib/typescript/{module/customerio-inapp.d.ts → commonjs/zixflow-inapp.d.ts} +4 -4
- package/lib/typescript/commonjs/zixflow-inapp.d.ts.map +1 -0
- package/lib/typescript/commonjs/{customerio-location.d.ts → zixflow-location.d.ts} +5 -5
- package/lib/typescript/commonjs/zixflow-location.d.ts.map +1 -0
- package/lib/typescript/commonjs/{cio-params.d.ts → zixflow-params.d.ts} +1 -1
- package/lib/typescript/commonjs/zixflow-params.d.ts.map +1 -0
- package/lib/typescript/{module/customerio-push.d.ts → commonjs/zixflow-push.d.ts} +11 -11
- package/lib/typescript/commonjs/zixflow-push.d.ts.map +1 -0
- package/lib/typescript/commonjs/zixflow.d.ts +5 -7
- package/lib/typescript/commonjs/zixflow.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -2
- package/lib/typescript/module/native-logger-listener.d.ts.map +1 -1
- package/lib/typescript/module/notification-inbox.d.ts +1 -1
- package/lib/typescript/module/specs/modules/{NativeCustomerIO.d.ts → NativeZixflow.d.ts} +5 -5
- package/lib/typescript/module/specs/modules/NativeZixflow.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/{NativeCustomerIOLocation.d.ts → NativeZixflowLocation.d.ts} +3 -3
- package/lib/typescript/module/specs/modules/NativeZixflowLocation.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/NativeZixflowLogging.d.ts +18 -0
- package/lib/typescript/module/specs/modules/NativeZixflowLogging.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/{NativeCustomerIOMessagingInApp.d.ts → NativeZixflowMessagingInApp.d.ts} +4 -4
- package/lib/typescript/module/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -0
- package/lib/typescript/{commonjs/specs/modules/NativeCustomerIOMessagingPush.d.ts → module/specs/modules/NativeZixflowMessagingPush.d.ts} +3 -3
- package/lib/typescript/module/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -0
- package/lib/typescript/module/types/data-pipelines.d.ts +14 -14
- package/lib/typescript/module/types/data-pipelines.d.ts.map +1 -1
- package/lib/typescript/module/types/internal.d.ts +2 -2
- package/lib/typescript/module/types/push.d.ts +2 -2
- package/lib/typescript/module/types/push.d.ts.map +1 -1
- package/lib/typescript/module/utils/param-validation.d.ts +2 -2
- package/lib/typescript/module/utils/param-validation.d.ts.map +1 -1
- package/lib/typescript/module/{customerio-cdp.d.ts → zixflow-cdp.d.ts} +12 -12
- package/lib/typescript/module/zixflow-cdp.d.ts.map +1 -0
- package/lib/typescript/{commonjs/customerio-inapp.d.ts → module/zixflow-inapp.d.ts} +4 -4
- package/lib/typescript/module/zixflow-inapp.d.ts.map +1 -0
- package/lib/typescript/module/{customerio-location.d.ts → zixflow-location.d.ts} +5 -5
- package/lib/typescript/module/zixflow-location.d.ts.map +1 -0
- package/lib/typescript/module/{cio-params.d.ts → zixflow-params.d.ts} +1 -1
- package/lib/typescript/module/zixflow-params.d.ts.map +1 -0
- package/lib/typescript/{commonjs/customerio-push.d.ts → module/zixflow-push.d.ts} +11 -11
- package/lib/typescript/module/zixflow-push.d.ts.map +1 -0
- package/lib/typescript/module/zixflow.d.ts +5 -7
- package/lib/typescript/module/zixflow.d.ts.map +1 -1
- package/package.json +11 -12
- package/src/index.ts +3 -3
- package/src/native-logger-listener.ts +14 -14
- package/src/notification-inbox.ts +5 -5
- package/src/postInstall.js +1 -1
- package/src/specs/modules/{NativeCustomerIO.ts → NativeZixflow.ts} +5 -5
- package/src/specs/modules/{NativeCustomerIOLocation.ts → NativeZixflowLocation.ts} +3 -3
- package/src/specs/modules/NativeZixflowLogging.ts +22 -0
- package/src/specs/modules/{NativeCustomerIOMessagingInApp.ts → NativeZixflowMessagingInApp.ts} +4 -4
- package/src/specs/modules/{NativeCustomerIOMessagingPush.ts → NativeZixflowMessagingPush.ts} +3 -3
- package/src/types/data-pipelines.ts +14 -14
- package/src/types/internal.ts +2 -2
- package/src/types/push.ts +2 -2
- package/src/utils/native-bridge.ts +1 -1
- package/src/utils/param-validation.ts +8 -8
- package/src/{customerio-cdp.ts → zixflow-cdp.ts} +17 -17
- package/src/{customerio-inapp.ts → zixflow-inapp.ts} +6 -6
- package/src/{customerio-location.ts → zixflow-location.ts} +6 -6
- package/src/{customerio-push.ts → zixflow-push.ts} +19 -17
- package/src/zixflow.ts +5 -15
- package/zixflow-reactnative.podspec +16 -22
- package/customerio-reactnative.podspec +0 -60
- package/lib/commonjs/cio-params.js +0 -2
- package/lib/commonjs/cio-params.js.map +0 -1
- package/lib/commonjs/customerio-cdp.js.map +0 -1
- package/lib/commonjs/customerio-inapp.js.map +0 -1
- package/lib/commonjs/customerio-location.js.map +0 -1
- package/lib/commonjs/customerio-push.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIO.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIOLocation.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIOLogging.js +0 -19
- package/lib/commonjs/specs/modules/NativeCustomerIOLogging.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIOMessagingInApp.js +0 -16
- package/lib/commonjs/specs/modules/NativeCustomerIOMessagingInApp.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIOMessagingPush.js.map +0 -1
- package/lib/module/cio-params.js +0 -2
- package/lib/module/cio-params.js.map +0 -1
- package/lib/module/customerio-cdp.js.map +0 -1
- package/lib/module/customerio-inapp.js.map +0 -1
- package/lib/module/customerio-location.js.map +0 -1
- package/lib/module/customerio-push.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIO.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIOLocation.js +0 -13
- package/lib/module/specs/modules/NativeCustomerIOLocation.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIOLogging.js +0 -18
- package/lib/module/specs/modules/NativeCustomerIOLogging.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIOMessagingInApp.js +0 -15
- package/lib/module/specs/modules/NativeCustomerIOMessagingInApp.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIOMessagingPush.js +0 -13
- package/lib/module/specs/modules/NativeCustomerIOMessagingPush.js.map +0 -1
- package/lib/typescript/commonjs/cio-params.d.ts.map +0 -1
- package/lib/typescript/commonjs/customerio-cdp.d.ts.map +0 -1
- package/lib/typescript/commonjs/customerio-inapp.d.ts.map +0 -1
- package/lib/typescript/commonjs/customerio-location.d.ts.map +0 -1
- package/lib/typescript/commonjs/customerio-push.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIO.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOLocation.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOLogging.d.ts +0 -18
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOLogging.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOMessagingInApp.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOMessagingPush.d.ts.map +0 -1
- package/lib/typescript/module/cio-params.d.ts.map +0 -1
- package/lib/typescript/module/customerio-cdp.d.ts.map +0 -1
- package/lib/typescript/module/customerio-inapp.d.ts.map +0 -1
- package/lib/typescript/module/customerio-location.d.ts.map +0 -1
- package/lib/typescript/module/customerio-push.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIO.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIOLocation.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIOLogging.d.ts +0 -18
- package/lib/typescript/module/specs/modules/NativeCustomerIOLogging.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIOMessagingInApp.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIOMessagingPush.d.ts.map +0 -1
- package/src/specs/modules/NativeCustomerIOLogging.ts +0 -24
- /package/android/{cio-core.gradle → zixflow-core.gradle} +0 -0
- /package/src/{cio-params.ts → zixflow-params.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#import "../utils/
|
|
1
|
+
#import "../utils/RCTZixflowUtils.h"
|
|
2
2
|
#import <React/RCTBridgeModule.h>
|
|
3
3
|
#import <React/RCTEventEmitter.h>
|
|
4
4
|
#import <React/RCTInitializing.h>
|
|
@@ -6,25 +6,25 @@
|
|
|
6
6
|
#import <RNZixflowSpec/RNZixflowSpec.h>
|
|
7
7
|
|
|
8
8
|
// Protocol that extends the spec with event emitter methods
|
|
9
|
-
@protocol
|
|
9
|
+
@protocol NativeZixflowLoggingBridge <NativeZixflowLoggingSpec, RCTInitializing, RCTInvalidating>
|
|
10
10
|
- (void)setEventEmitter:(id)emitter;
|
|
11
11
|
@end
|
|
12
12
|
|
|
13
13
|
// Objective-C wrapper for new architecture TurboModule implementation
|
|
14
|
-
@interface
|
|
15
|
-
:
|
|
14
|
+
@interface RCTNativeZixflowLogging
|
|
15
|
+
: NativeZixflowLoggingSpecBase <NativeZixflowLoggingSpec>
|
|
16
16
|
// Bridge to Swift implementation for cross-language compatibility
|
|
17
|
-
@property(nonatomic, strong) id<
|
|
17
|
+
@property(nonatomic, strong) id<NativeZixflowLoggingBridge> swiftBridge;
|
|
18
18
|
@end
|
|
19
19
|
|
|
20
|
-
@implementation
|
|
20
|
+
@implementation RCTNativeZixflowLogging
|
|
21
21
|
|
|
22
22
|
RCT_EXPORT_MODULE()
|
|
23
23
|
|
|
24
24
|
// Create TurboModule instance for new architecture JSI integration
|
|
25
25
|
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
26
26
|
(const facebook::react::ObjCTurboModule::InitParams &)params {
|
|
27
|
-
return std::make_shared<facebook::react::
|
|
27
|
+
return std::make_shared<facebook::react::NativeZixflowLoggingSpecJSI>(params);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// Validates Swift bridge is available before method calls
|
|
@@ -35,10 +35,10 @@ RCT_EXPORT_MODULE()
|
|
|
35
35
|
- (instancetype)init {
|
|
36
36
|
if (self = [super init]) {
|
|
37
37
|
// Use runtime class lookup to avoid import issues and circular dependencies
|
|
38
|
-
Class swiftClass = NSClassFromString(@"
|
|
39
|
-
RCT_ASSERT_NOT_NIL(swiftClass, @"
|
|
38
|
+
Class swiftClass = NSClassFromString(@"NativeZixflowLogging");
|
|
39
|
+
RCT_ASSERT_NOT_NIL(swiftClass, @"NativeZixflowLogging Swift class", @"during runtime lookup");
|
|
40
40
|
_swiftBridge = [[swiftClass alloc] init];
|
|
41
|
-
[self assertBridgeAvailable:@"creating
|
|
41
|
+
[self assertBridgeAvailable:@"creating NativeZixflowLogging Swift instance"];
|
|
42
42
|
|
|
43
43
|
// Set event emitter reference for new architecture
|
|
44
44
|
[_swiftBridge setEventEmitter:self];
|
|
@@ -69,13 +69,13 @@ RCT_EXPORT_MODULE()
|
|
|
69
69
|
RCT_LEGACY_ARCH_WARNING(removeListeners);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
- (void)
|
|
73
|
-
[super
|
|
72
|
+
- (void)emitOnZixflowLogEvent:(NSDictionary *)value {
|
|
73
|
+
[super emitOnZixflowLogEvent:value];
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
// Export class factory function for React Native component registration
|
|
77
|
-
Class<RCTBridgeModule>
|
|
78
|
-
return
|
|
77
|
+
Class<RCTBridgeModule> NativeZixflowLoggingCls(void) {
|
|
78
|
+
return RCTNativeZixflowLogging.class;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
@end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ZixflowInternalCommon
|
|
2
2
|
import Foundation
|
|
3
3
|
import React
|
|
4
4
|
|
|
5
5
|
// Logging module for new React Native architecture (TurboModule)
|
|
6
|
-
@objc(
|
|
7
|
-
public class
|
|
6
|
+
@objc(NativeZixflowLogging)
|
|
7
|
+
public class NativeZixflowLogging: NSObject {
|
|
8
8
|
// Reference to the ObjC event emitter for new architecture (TurboModule)
|
|
9
9
|
private weak var objcEventEmitter: AnyObject?
|
|
10
10
|
private lazy var logEventCallback: (_ body: [String: Any]) -> Void = { [weak self] body in
|
|
@@ -47,14 +47,14 @@ public class NativeCustomerIOLogging: NSObject {
|
|
|
47
47
|
// Send log event to React Native layer using ObjC event emitter
|
|
48
48
|
private func sendEvent(body: [String: Any]) {
|
|
49
49
|
guard let emitter = objcEventEmitter else {
|
|
50
|
-
assertionFailure("
|
|
50
|
+
assertionFailure("NativeZixflowLogging: ObjC event emitter is nil, cannot send log event")
|
|
51
51
|
return
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// New architecture: use injected ObjC event emitter from TurboModule
|
|
55
|
-
let selector = Selector(("
|
|
55
|
+
let selector = Selector(("emitOnZixflowLogEvent:"))
|
|
56
56
|
guard emitter.responds(to: selector) else {
|
|
57
|
-
assertionFailure("ObjC event emitter does not respond to selector:
|
|
57
|
+
assertionFailure("ObjC event emitter does not respond to selector: emitOnZixflowLogEvent:")
|
|
58
58
|
return
|
|
59
59
|
}
|
|
60
60
|
_ = emitter.perform(selector, with: body as NSDictionary)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#import "../utils/
|
|
1
|
+
#import "../utils/RCTZixflowUtils.h"
|
|
2
2
|
#import <React/RCTBridgeModule.h>
|
|
3
3
|
#import <RNZixflowSpec/RNZixflowSpec.h>
|
|
4
4
|
|
|
5
5
|
// Objective-C wrapper for new architecture TurboModule implementation
|
|
6
|
-
@interface RCTNativeMessagingPush : NSObject <
|
|
6
|
+
@interface RCTNativeMessagingPush : NSObject <NativeZixflowMessagingPushSpec>
|
|
7
7
|
// Bridge to Swift implementation for cross-language compatibility
|
|
8
|
-
@property(nonatomic, strong) id<
|
|
8
|
+
@property(nonatomic, strong) id<NativeZixflowMessagingPushSpec> swiftBridge;
|
|
9
9
|
@end
|
|
10
10
|
|
|
11
11
|
@implementation RCTNativeMessagingPush
|
|
@@ -15,7 +15,7 @@ RCT_EXPORT_MODULE()
|
|
|
15
15
|
// Create TurboModule instance for new architecture JSI integration
|
|
16
16
|
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
17
17
|
(const facebook::react::ObjCTurboModule::InitParams &)params {
|
|
18
|
-
return std::make_shared<facebook::react::
|
|
18
|
+
return std::make_shared<facebook::react::NativeZixflowMessagingPushSpecJSI>(params);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// Validates Swift bridge is available before method calls
|
|
@@ -26,10 +26,10 @@ RCT_EXPORT_MODULE()
|
|
|
26
26
|
- (instancetype)init {
|
|
27
27
|
if (self = [super init]) {
|
|
28
28
|
// Use runtime class lookup to avoid import issues and circular dependencies
|
|
29
|
-
Class swiftClass = NSClassFromString(@"
|
|
30
|
-
RCT_ASSERT_NOT_NIL(swiftClass, @"
|
|
29
|
+
Class swiftClass = NSClassFromString(@"NativeZixflowMessagingPush");
|
|
30
|
+
RCT_ASSERT_NOT_NIL(swiftClass, @"NativeZixflowMessagingPush Swift class", @"during runtime lookup");
|
|
31
31
|
_swiftBridge = [[swiftClass alloc] init];
|
|
32
|
-
[self assertBridgeAvailable:@"creating
|
|
32
|
+
[self assertBridgeAvailable:@"creating NativeZixflowMessagingPush Swift instance"];
|
|
33
33
|
}
|
|
34
34
|
return self;
|
|
35
35
|
}
|
|
@@ -80,7 +80,7 @@ RCT_EXPORT_MODULE()
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
// Export class factory function for React Native component registration
|
|
83
|
-
Class<RCTBridgeModule>
|
|
83
|
+
Class<RCTBridgeModule> NativeZixflowMessagingPushCls(void) {
|
|
84
84
|
return RCTNativeMessagingPush.class;
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import ZixflowInternalCommon
|
|
2
|
+
import ZixflowMessagingPush
|
|
3
3
|
import Foundation
|
|
4
4
|
|
|
5
5
|
enum PushPermissionStatus: String, CaseIterable {
|
|
@@ -12,9 +12,9 @@ enum PushPermissionStatus: String, CaseIterable {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@objc(
|
|
15
|
+
@objc(NativeZixflowMessagingPush)
|
|
16
16
|
public class NativeMessagingPush: NSObject {
|
|
17
|
-
private let logger:
|
|
17
|
+
private let logger: ZixflowInternalCommon.Logger = DIGraphShared.shared.logger
|
|
18
18
|
|
|
19
19
|
@objc
|
|
20
20
|
public func onMessageReceived(
|
|
@@ -41,16 +41,16 @@ public class NativeMessagingPush: NSObject {
|
|
|
41
41
|
// Get the currently registered device token for the app
|
|
42
42
|
@objc(getRegisteredDeviceToken:reject:)
|
|
43
43
|
public func getRegisteredDeviceToken(resolve: @escaping (RCTPromiseResolveBlock), reject: @escaping (RCTPromiseRejectBlock)) {
|
|
44
|
-
guard let token =
|
|
45
|
-
reject(
|
|
44
|
+
guard let token = Zixflow.shared.registeredDeviceToken else {
|
|
45
|
+
reject(ZixflowConstants.zixflowTag, ZixflowConstants.showDeviceTokenFailureError, nil)
|
|
46
46
|
return
|
|
47
47
|
}
|
|
48
48
|
resolve(token)
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
private func trackPushMetrics(payload: NSDictionary, event: Metric) {
|
|
52
|
-
guard let deliveryId = payload[
|
|
53
|
-
let deviceToken = payload[
|
|
52
|
+
guard let deliveryId = payload[ZixflowConstants.zixflowDeliveryId] as? String,
|
|
53
|
+
let deviceToken = payload[ZixflowConstants.zixflowDeliveryToken] as? String
|
|
54
54
|
else { return }
|
|
55
55
|
|
|
56
56
|
MessagingPush.shared.trackMetric(deliveryID: deliveryId, event: event, deviceToken: deviceToken)
|
|
@@ -63,7 +63,7 @@ public class NativeMessagingPush: NSObject {
|
|
|
63
63
|
if status == .notDetermined {
|
|
64
64
|
self.requestPushAuthorization(options: options) { permissionStatus in
|
|
65
65
|
guard let isGranted = permissionStatus as? Bool else {
|
|
66
|
-
reject(
|
|
66
|
+
reject(ZixflowConstants.zixflowTag, ZixflowConstants.showPromptFailureError, permissionStatus as? Error)
|
|
67
67
|
return
|
|
68
68
|
}
|
|
69
69
|
resolve(isGranted ? PushPermissionStatus.granted.value : PushPermissionStatus.denied.value)
|
|
@@ -84,11 +84,11 @@ public class NativeMessagingPush: NSObject {
|
|
|
84
84
|
private func requestPushAuthorization(options: [String: Any], onComplete: @escaping (Any) -> Void) {
|
|
85
85
|
let current = UNUserNotificationCenter.current()
|
|
86
86
|
var notificationOptions: UNAuthorizationOptions = [.alert]
|
|
87
|
-
if let ios = options[
|
|
88
|
-
if let soundOption = ios[
|
|
87
|
+
if let ios = options[ZixflowConstants.platformiOS] as? [String: Any] {
|
|
88
|
+
if let soundOption = ios[ZixflowConstants.sound] as? Bool, soundOption {
|
|
89
89
|
notificationOptions.insert(.sound)
|
|
90
90
|
}
|
|
91
|
-
if let badgeOption = ios[
|
|
91
|
+
if let badgeOption = ios[ZixflowConstants.badge] as? Bool, badgeOption {
|
|
92
92
|
notificationOptions.insert(.badge)
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#import <Foundation/Foundation.h>
|
|
2
2
|
|
|
3
|
-
#ifndef
|
|
4
|
-
#define
|
|
3
|
+
#ifndef RCTZixflowUtils_h
|
|
4
|
+
#define RCTZixflowUtils_h
|
|
5
5
|
|
|
6
6
|
/// Utility macro for asserting object availability in React Native wrappers
|
|
7
7
|
#define RCT_ASSERT_NOT_NIL(object, label, context) \
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
NSLog(@"Warning: '%@' is not required in the New Architecture and should not be called.", \
|
|
17
17
|
@ #methodName)
|
|
18
18
|
|
|
19
|
-
#endif /*
|
|
19
|
+
#endif /* RCTZixflowUtils_h */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import ZixflowDataPipelines
|
|
2
|
+
import ZixflowInternalCommon
|
|
3
|
+
import ZixflowMessagingInApp
|
|
4
4
|
|
|
5
5
|
enum SDKConfigBuilderError: Error {
|
|
6
6
|
case missingCdpApiKey
|
|
@@ -30,7 +30,7 @@ extension SDKConfigBuilder {
|
|
|
30
30
|
let builder = SDKConfigBuilder(cdpApiKey: cdpApiKey)
|
|
31
31
|
Config.migrationSiteId.ifNotNil(in: config, thenPassItTo: builder.migrationSiteId)
|
|
32
32
|
Config.region.ifNotNil(in: config, thenPassItTo: builder.region, transformingBy: Region.getRegion)
|
|
33
|
-
Config.logLevel.ifNotNil(in: config, thenPassItTo: builder.logLevel, transformingBy:
|
|
33
|
+
Config.logLevel.ifNotNil(in: config, thenPassItTo: builder.logLevel, transformingBy: ZixflowLogLevel.getLogLevel)
|
|
34
34
|
Config.flushAt.ifNotNil(in: config, thenPassItTo: builder.flushAt) { (value: Double) in Int(value) }
|
|
35
35
|
Config.flushInterval.ifNotNil(in: config, thenPassItTo: builder.flushInterval)
|
|
36
36
|
Config.screenViewUse.ifNotNil(in: config, thenPassItTo: builder.screenViewUse) { ScreenView.getScreenView($0) }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
enum
|
|
1
|
+
enum ZixflowConstants {
|
|
2
2
|
// InApp Messaging
|
|
3
3
|
static let inAppEventListener = "InAppEventListener"
|
|
4
4
|
static let eventType = "eventType"
|
|
@@ -12,8 +12,8 @@ enum CustomerioConstants {
|
|
|
12
12
|
static let messageActionTaken = "messageActionTaken"
|
|
13
13
|
|
|
14
14
|
// Push Messaging
|
|
15
|
-
static let
|
|
16
|
-
static let
|
|
15
|
+
static let zixflowDeliveryId = "ZIXFLOW-Delivery-ID"
|
|
16
|
+
static let zixflowDeliveryToken = "ZIXFLOW-Delivery-Token"
|
|
17
17
|
static let showPromptFailureError = "Error requesting push notification permission."
|
|
18
18
|
static let showDeviceTokenFailureError = "Error fetching registered device token."
|
|
19
19
|
static let platformiOS = "ios"
|
|
@@ -21,5 +21,5 @@ enum CustomerioConstants {
|
|
|
21
21
|
static let badge = "badge"
|
|
22
22
|
|
|
23
23
|
// Logging
|
|
24
|
-
static let
|
|
24
|
+
static let zixflowTag = "[Zixflow]"
|
|
25
25
|
}
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NativeLoggerListener = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _NativeZixflowLogging = _interopRequireDefault(require("./specs/modules/NativeZixflowLogging.js"));
|
|
8
8
|
var _index = require("./types/index.js");
|
|
9
9
|
var _nativeBridge = require("./utils/native-bridge.js");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
// Reference to the native
|
|
12
|
-
const nativeModule = (0, _nativeBridge.ensureNativeModule)(
|
|
11
|
+
// Reference to the native Zixflow logging module for SDK operations
|
|
12
|
+
const nativeModule = (0, _nativeBridge.ensureNativeModule)(_NativeZixflowLogging.default);
|
|
13
13
|
|
|
14
14
|
// Wrapper function that ensures SDK is initialized before calling native methods
|
|
15
15
|
const withNativeModule = fn => {
|
|
@@ -19,8 +19,8 @@ const withNativeModule = fn => {
|
|
|
19
19
|
/* @internal */
|
|
20
20
|
class NativeLoggerListener {
|
|
21
21
|
static isInitialized = false;
|
|
22
|
-
// Prefix for all
|
|
23
|
-
static loggerPrefix = '[
|
|
22
|
+
// Prefix for all Zixflow log messages
|
|
23
|
+
static loggerPrefix = '[Zixflow] ';
|
|
24
24
|
static async initialize() {
|
|
25
25
|
// Prevent multiple registrations of the same log listener
|
|
26
26
|
if (this.isInitialized) {
|
|
@@ -33,13 +33,13 @@ class NativeLoggerListener {
|
|
|
33
33
|
// the JavaScript and native ends.
|
|
34
34
|
const logEvent = async event => {
|
|
35
35
|
switch (event.logLevel) {
|
|
36
|
-
case _index.
|
|
36
|
+
case _index.ZixflowLogLevel.Debug:
|
|
37
37
|
console.debug(this.loggerPrefix + event.message);
|
|
38
38
|
break;
|
|
39
|
-
case _index.
|
|
39
|
+
case _index.ZixflowLogLevel.Info:
|
|
40
40
|
console.info(this.loggerPrefix + event.message);
|
|
41
41
|
break;
|
|
42
|
-
case _index.
|
|
42
|
+
case _index.ZixflowLogLevel.Error:
|
|
43
43
|
console.error(this.loggerPrefix + event.message);
|
|
44
44
|
break;
|
|
45
45
|
default:
|
|
@@ -56,7 +56,7 @@ class NativeLoggerListener {
|
|
|
56
56
|
// Register TurboModule event listener and return subscription.
|
|
57
57
|
// This method is generated by codegen in the native modules.
|
|
58
58
|
// Wrapped in try-catch due to previous reports of crashes on certain Android architectures.
|
|
59
|
-
native.
|
|
59
|
+
native.onZixflowLogEvent(logHandler);
|
|
60
60
|
} catch (error) {
|
|
61
61
|
NativeLoggerListener.warn('Failed to attach log listener:', error);
|
|
62
62
|
}
|
|
@@ -64,7 +64,7 @@ class NativeLoggerListener {
|
|
|
64
64
|
this.isInitialized = true;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
// Logs warning messages in development mode only, with
|
|
67
|
+
// Logs warning messages in development mode only, with Zixflow prefix
|
|
68
68
|
static warn(message, error) {
|
|
69
69
|
if (__DEV__) {
|
|
70
70
|
console.warn(this.loggerPrefix + message, error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_NativeZixflowLogging","_interopRequireDefault","require","_index","_nativeBridge","e","__esModule","default","nativeModule","ensureNativeModule","NativeZixflowLogging","withNativeModule","fn","callNativeModule","NativeLoggerListener","isInitialized","loggerPrefix","initialize","Promise","resolve","logEvent","event","logLevel","ZixflowLogLevel","Debug","console","debug","message","Info","info","Error","error","log","logHandler","data","native","onZixflowLogEvent","warn","__DEV__","initNativeLogger","exports"],"sourceRoot":"../../src","sources":["native-logger-listener.ts"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GA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IAAK;MAC3B,IAAI;QACF;QACA;QACA;QACAA,MAAM,CAACC,iBAAiB,CAACH,UAAU,CAAC;MACtC,CAAC,CAAC,OAAOF,KAAK,EAAE;QACdjB,oBAAoB,CAACuB,IAAI,CAAC,gCAAgC,EAAEN,KAAK,CAAC;MACpE;IACF,CAAC,CAAC;IACF,IAAI,CAAChB,aAAa,GAAG,IAAI;EAC3B;;EAEA;EACA,OAAOsB,IAAIA,CAACV,OAAe,EAAEI,KAAe,EAAE;IAC5C,IAAIO,OAAO,EAAE;MACXb,OAAO,CAACY,IAAI,CAAC,IAAI,CAACrB,YAAY,GAAGW,OAAO,EAAEI,KAAK,CAAC;IAClD;EACF;;EAEA;EACA,OAAOQ,gBAAgBA,CAAA,EAAG;IACxB,IAAI;MACFzB,oBAAoB,CAACG,UAAU,CAAC,CAAC;IACnC,CAAC,CAAC,OAAOc,KAAK,EAAE;MACdjB,oBAAoB,CAACuB,IAAI,CAAC,qCAAqC,EAAEN,KAAK,CAAC;IACzE;EACF;AACF;AAACS,OAAA,CAAA1B,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.NotificationInbox = void 0;
|
|
7
7
|
var _nativeLoggerListener = require("./native-logger-listener.js");
|
|
8
|
-
var
|
|
8
|
+
var _NativeZixflowMessagingInApp = _interopRequireDefault(require("./specs/modules/NativeZixflowMessagingInApp.js"));
|
|
9
9
|
var _nativeBridge = require("./utils/native-bridge.js");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
// Reference to the native
|
|
12
|
-
const nativeModule = (0, _nativeBridge.ensureNativeModule)(
|
|
11
|
+
// Reference to the native Zixflow In-App Messaging module
|
|
12
|
+
const nativeModule = (0, _nativeBridge.ensureNativeModule)(_NativeZixflowMessagingInApp.default);
|
|
13
13
|
|
|
14
14
|
// Wrapper function that ensures SDK is initialized before calling native methods
|
|
15
15
|
const withNativeModule = fn => {
|
|
@@ -24,7 +24,7 @@ const withNativeModule = fn => {
|
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Native inbox methods from CodegenSpec that should be excluded from
|
|
27
|
+
* Native inbox methods from CodegenSpec that should be excluded from ZixflowInAppMessaging.
|
|
28
28
|
* Includes both public methods (in NotificationInboxPublicSpec) and internal methods.
|
|
29
29
|
*
|
|
30
30
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nativeLoggerListener","require","
|
|
1
|
+
{"version":3,"names":["_nativeLoggerListener","require","_NativeZixflowMessagingInApp","_interopRequireDefault","_nativeBridge","e","__esModule","default","nativeModule","ensureNativeModule","NativeZixflowMessagingInApp","withNativeModule","fn","callNativeModule","parseInboxMessage","raw","queueId","deliveryId","undefined","expiry","sentAt","topics","type","opened","priority","properties","NotificationInbox","getMessages","topic","native","rawMessages","map","subscribeToMessages","listener","emitter","data","messages","topicLower","toLowerCase","filter","msg","some","t","onMessagesChanged","setupInboxListener","subscribeToMessagesChanged","error","NativeLoggerListener","warn","remove","eventType","key","subscriber","markMessageOpened","message","markMessageUnopened","markMessageDeleted","trackMessageClicked","actionName","exports"],"sourceRoot":"../../src","sources":["notification-inbox.ts"],"mappings":";;;;;;AACA,IAAAA,qBAAA,GAAAC,OAAA;AAEA,IAAAC,4BAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AAA6E,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7E;AACA,MAAMG,YAAY,GAAG,IAAAC,gCAAkB,EAACC,oCAA2B,CAAC;;AAEpE;AACA,MAAMC,gBAAgB,GAAOC,EAA8B,IAAQ;EACjE,OAAO,IAAAC,8BAAgB,EAACL,YAAY,EAAEI,EAAE,CAAC;AAC3C,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GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
If it succeeds, we use Expo as the user agent instead of React Native.
|
|
8
8
|
*/
|
|
9
9
|
try {
|
|
10
|
-
const ph = require('
|
|
10
|
+
const ph = require('zixflow-expo-plugin/postinstall');
|
|
11
11
|
ph.runPostInstall();
|
|
12
12
|
} catch {}
|
|
13
13
|
//# sourceMappingURL=postInstall.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ph","require","runPostInstall"],"sourceRoot":"../../src","sources":["postInstall.js"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;EACF,MAAMA,EAAE,GAAGC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"names":["ph","require","runPostInstall"],"sourceRoot":"../../src","sources":["postInstall.js"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;EACF,MAAMA,EAAE,GAAGC,OAAO,CAAC,iCAAiC,CAAC;EACrDD,EAAE,CAACE,cAAc,CAAC,CAAC;AACrB,CAAC,CAAC,MAAM,CAAC","ignoreList":[]}
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
/**
|
|
9
|
-
* Native module specification for
|
|
9
|
+
* Native module specification for Zixflow React Native SDK
|
|
10
10
|
*
|
|
11
|
-
* This module defines the TurboModule interface for
|
|
11
|
+
* This module defines the TurboModule interface for Zixflow SDK native bridge.
|
|
12
12
|
* Types use basic primitives for React Native Codegen compatibility, while the public
|
|
13
13
|
* API layer provides more specific TypeScript types for better developer experience.
|
|
14
14
|
*
|
|
@@ -24,7 +24,7 @@ var _reactNative = require("react-native");
|
|
|
24
24
|
*
|
|
25
25
|
* Used for all complex data structures passed to native methods to ensure
|
|
26
26
|
* React Native Codegen compatibility. The public API layer converts these
|
|
27
|
-
* to proper TypeScript types (CustomAttributes,
|
|
27
|
+
* to proper TypeScript types (CustomAttributes, ZixflowConfig, etc.) for
|
|
28
28
|
* better type safety and developer experience.
|
|
29
29
|
*
|
|
30
30
|
* @internal - Not exported to avoid conflicts with public API types
|
|
@@ -33,8 +33,8 @@ var _reactNative = require("react-native");
|
|
|
33
33
|
// TURBO MODULE SPEC – Defines native bridge interface
|
|
34
34
|
// =============================================================================
|
|
35
35
|
/**
|
|
36
|
-
* TurboModule specification for
|
|
36
|
+
* TurboModule specification for Zixflow SDK native bridge methods.
|
|
37
37
|
* Uses generic Object types for React Native Codegen compatibility.
|
|
38
38
|
*/
|
|
39
|
-
var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('
|
|
40
|
-
//# sourceMappingURL=
|
|
39
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('NativeZixflow');
|
|
40
|
+
//# sourceMappingURL=NativeZixflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflow.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AAEA;AACA;AACA;AACA;AAHA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAoBeC,gCAAmB,CAACC,YAAY,CAAO,eAAe,CAAC","ignoreList":[]}
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
/**
|
|
9
|
-
* Native module specification for
|
|
9
|
+
* Native module specification for Zixflow Location React Native SDK
|
|
10
10
|
*
|
|
11
|
-
* @see
|
|
11
|
+
* @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
|
|
12
12
|
* Codegen compatibility, and type safety approach.
|
|
13
13
|
*/
|
|
14
|
-
var _default = exports.default = _reactNative.TurboModuleRegistry.get('
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.get('NativeZixflowLocation');
|
|
15
|
+
//# sourceMappingURL=NativeZixflowLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowLocation.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAYeC,gCAAmB,CAACC,GAAG,CAAO,uBAAuB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
/**
|
|
9
|
+
* Native module specification for Zixflow Logging React Native SDK
|
|
10
|
+
*
|
|
11
|
+
* This module defines the TurboModule interface for Zixflow logging bridge.
|
|
12
|
+
* Used internally for printing logs to React Native environment instead of native.
|
|
13
|
+
*
|
|
14
|
+
* @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
|
|
15
|
+
* Codegen compatibility, and type safety approach.
|
|
16
|
+
*/
|
|
17
|
+
/** TurboModule interface for Zixflow logging native operations */
|
|
18
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('NativeZixflowLogging');
|
|
19
|
+
//# sourceMappingURL=NativeZixflowLogging.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowLogging.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAKeC,gCAAmB,CAACC,YAAY,CAAO,sBAAsB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
/**
|
|
9
|
+
* Native module specification for Zixflow In-App Messaging React Native SDK
|
|
10
|
+
*
|
|
11
|
+
* @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
|
|
12
|
+
* Codegen compatibility, and type safety approach.
|
|
13
|
+
*/
|
|
14
|
+
/** TurboModule interface for Zixflow In-App Messaging native operations */
|
|
15
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('NativeZixflowMessagingInApp');
|
|
16
|
+
//# sourceMappingURL=NativeZixflowMessagingInApp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingInApp.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAceC,gCAAmB,CAACC,YAAY,CAC7C,6BACF,CAAC","ignoreList":[]}
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
/**
|
|
9
|
-
* Native module specification for
|
|
9
|
+
* Native module specification for Zixflow Push Messaging React Native SDK
|
|
10
10
|
*
|
|
11
|
-
* @see
|
|
11
|
+
* @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
|
|
12
12
|
* Codegen compatibility, and type safety approach.
|
|
13
13
|
*/
|
|
14
|
-
var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('
|
|
15
|
-
//# sourceMappingURL=
|
|
14
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('NativeZixflowMessagingPush');
|
|
15
|
+
//# sourceMappingURL=NativeZixflowMessagingPush.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["specs/modules/NativeZixflowMessagingPush.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAqBeC,gCAAmB,CAACC,YAAY,CAC7C,4BACF,CAAC","ignoreList":[]}
|