mapp-intelligence-reactnative-plugin 1.1.0 → 1.1.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.
- package/android/build.gradle +19 -8
- package/android/gradle.properties +2 -2
- package/android/settings.gradle +24 -0
- package/android/specs/MappinteligencePluginSpec.js +8 -0
- package/android/src/main/AndroidManifest.xml +3 -1
- package/android/src/main/java/com/mappinteligenceplugin/MappinteligencePluginModule.kt +291 -262
- package/android/src/main/java/com/mappinteligenceplugin/MappinteligencePluginPackage.kt +18 -7
- package/android/src/main/java/com/mappinteligenceplugin/MappintelligencePluginSpec.kt +59 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/Info.plist +48 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIActionEvent.h +33 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MICampaignParameters.h +32 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIDefaultTracker.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIEcommerceParameters.h +52 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIEventParameters.h +23 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormField.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormParameters.h +48 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormSubmitEvent.h +22 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIMediaEvent.h +30 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIMediaParameters.h +31 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIPageParameters.h +27 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIPageViewEvent.h +34 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIParamType.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIParams.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIProduct.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIProperties.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MISessionParameters.h +20 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MITrackerRequest.h +39 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MITrackingEvent.h +23 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIUsageStatistics.h +32 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIUserCategories.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MappIntelligence.h +260 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MappIntelligenceSDK.h +9 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIActionEvent.h +33 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MICampaignParameters.h +32 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIDefaultTracker.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIEcommerceParameters.h +52 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIEventParameters.h +23 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormField.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormParameters.h +48 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormSubmitEvent.h +22 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIMediaEvent.h +30 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIMediaParameters.h +31 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIPageParameters.h +27 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIPageViewEvent.h +34 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIParamType.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIParams.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIProduct.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MISessionParameters.h +20 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MITrackingEvent.h +23 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIUsageStatistics.h +32 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIUserCategories.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIWebViewTracker.h +21 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligence.h +260 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligenceLogger.h +47 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligenceiOS.h +13 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/libMappIntelligenceiOS.a +0 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIActionEvent.h +33 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MICampaignParameters.h +32 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIDefaultTracker.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIEcommerceParameters.h +52 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIEventParameters.h +23 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormField.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormParameters.h +48 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormSubmitEvent.h +22 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIMediaEvent.h +30 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIMediaParameters.h +31 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIPageParameters.h +27 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIPageViewEvent.h +34 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIParamType.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIParams.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIProduct.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIProperties.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MISessionParameters.h +20 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MITrackerRequest.h +39 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MITrackingEvent.h +23 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIUsageStatistics.h +32 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIUserCategories.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MappIntelligence.h +260 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MappIntelligenceSDK.h +9 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIActionEvent.h +33 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MICampaignParameters.h +32 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIDefaultTracker.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIEcommerceParameters.h +52 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIEventParameters.h +23 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormField.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormParameters.h +48 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormSubmitEvent.h +22 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIMediaEvent.h +30 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIMediaParameters.h +31 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIPageParameters.h +27 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIPageViewEvent.h +34 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIParamType.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIParams.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIProduct.h +28 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MISessionParameters.h +20 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MITrackingEvent.h +23 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIUsageStatistics.h +32 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIUserCategories.h +49 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIWebViewTracker.h +21 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligence.h +260 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligenceLogger.h +47 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligenceiOS.h +13 -0
- package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/libMappIntelligenceiOS.a +0 -0
- package/lib/module/GlobalErrorHandler.js +6 -11
- package/lib/module/GlobalErrorHandler.js.map +1 -1
- package/lib/module/MappIntelligencePlugin.js +6 -2
- package/lib/module/MappIntelligencePlugin.js.map +1 -1
- package/lib/module/NativeMappintelligencePlugin.js +5 -0
- package/lib/module/NativeMappintelligencePlugin.js.map +1 -0
- package/lib/module/UseWebTracking.js +20 -20
- package/lib/module/UseWebTracking.js.map +1 -1
- package/lib/module/promiseRejectionHandler.js +4 -9
- package/lib/module/promiseRejectionHandler.js.map +1 -1
- package/lib/typescript/src/GlobalErrorHandler.d.ts.map +1 -1
- package/lib/typescript/src/MappIntelligencePlugin.d.ts.map +1 -1
- package/lib/typescript/src/NativeMappintelligencePlugin.d.ts +39 -0
- package/lib/typescript/src/NativeMappintelligencePlugin.d.ts.map +1 -0
- package/lib/typescript/src/UseWebTracking.d.ts +1 -1
- package/lib/typescript/src/UseWebTracking.d.ts.map +1 -1
- package/lib/typescript/src/promiseRejectionHandler.d.ts.map +1 -1
- package/mapp-intelligence-reactnative-plugin.podspec +4 -1
- package/package.json +20 -41
- package/src/GlobalErrorHandler.tsx +7 -12
- package/src/MappIntelligencePlugin.tsx +16 -11
- package/src/NativeMappintelligencePlugin.ts +55 -0
- package/src/UseWebTracking.tsx +29 -27
- package/src/promiseRejectionHandler.tsx +5 -10
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Webrekk.h
|
|
3
|
+
// Webrekk
|
|
4
|
+
//
|
|
5
|
+
// Created by Stefan Stevanovic on 1/3/20.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
#import "MIPageViewEvent.h"
|
|
12
|
+
#import "MIActionEvent.h"
|
|
13
|
+
#import "MIParams.h"
|
|
14
|
+
#import "MIParamType.h"
|
|
15
|
+
#import "MIMediaEvent.h"
|
|
16
|
+
#import "MIFormSubmitEvent.h"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@class MappIntelligence;
|
|
20
|
+
|
|
21
|
+
typedef NS_ENUM(NSInteger, logLevel) {
|
|
22
|
+
all = 1, // All logs of the above.
|
|
23
|
+
debug = 2, // The lowest priority that you would normally log, and purely
|
|
24
|
+
// informational in nature.
|
|
25
|
+
warning = 3, // Something is missing and might fail if not corrected
|
|
26
|
+
error = 4, // Something has failed.
|
|
27
|
+
fault = 5, // A failure in a key system.
|
|
28
|
+
info = 6, // Informational logs for updating configuration or migrating from
|
|
29
|
+
// older versions of the library.
|
|
30
|
+
none = 7 // None of the logs.
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
typedef NS_ENUM(NSInteger, exceptionType) {
|
|
34
|
+
noneOfExceptionTypes = 1,
|
|
35
|
+
uncaught = 2,
|
|
36
|
+
caught = 3,
|
|
37
|
+
custom = 4,
|
|
38
|
+
allExceptionTypes = 5,
|
|
39
|
+
uncaught_and_custom = 6,
|
|
40
|
+
uncaught_and_caught = 7,
|
|
41
|
+
custom_and_caught = 8
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
@interface MappIntelligence : NSObject {
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@property (nonatomic, readwrite) NSTimeInterval requestInterval;
|
|
48
|
+
@property (nonatomic, readwrite) logLevel logLevel;
|
|
49
|
+
@property (nonatomic, readwrite) BOOL batchSupportEnabled;
|
|
50
|
+
@property (nonatomic, readwrite) BOOL enableBackgroundSendout;
|
|
51
|
+
@property (nonatomic, readwrite) NSInteger batchSupportSize;
|
|
52
|
+
@property (nonatomic, readwrite) NSInteger requestPerQueue;
|
|
53
|
+
@property (nonatomic, readwrite) BOOL shouldMigrate;
|
|
54
|
+
@property (nonatomic, readwrite) BOOL anonymousTracking;
|
|
55
|
+
@property (nonatomic, readwrite) BOOL sendAppVersionInEveryRequest;
|
|
56
|
+
|
|
57
|
+
/// This options helps you to unifiy user from Mapp Intelligence SDK and Mapp Engage SDK if you are using both of them
|
|
58
|
+
@property (nonatomic, readwrite) BOOL enableUserMatching;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
MappIntelligence instance
|
|
62
|
+
@brief Method to get a singleton instance of MappIntelligence
|
|
63
|
+
@code
|
|
64
|
+
let mappInteligenceSingleton = MappIntelligence.shared()
|
|
65
|
+
@endcode
|
|
66
|
+
@return MappIntelligence an Instance Type of MappIntelligence.
|
|
67
|
+
*/
|
|
68
|
+
+ (nullable instancetype)shared;
|
|
69
|
+
+ (NSString *_Nonnull)version;
|
|
70
|
+
+ (NSString *_Nonnull)getUrl;
|
|
71
|
+
+ (NSString *_Nonnull)getId;
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/// Method to set temporary session id, if anonimous tracking is turn on.
|
|
75
|
+
/// @param ID tempraryID which is wont to be set
|
|
76
|
+
- (void)setTemporarySessionId: (NSString*_Nonnull)ID;
|
|
77
|
+
/**
|
|
78
|
+
@brief Method to collect the name of the current UIViewController and track additional page information.
|
|
79
|
+
@param controller - current ui view controller.
|
|
80
|
+
@param event - page view event that can contain properties for page, session, ecommerce, action, advertisement and user
|
|
81
|
+
@code
|
|
82
|
+
|
|
83
|
+
@endcode
|
|
84
|
+
@return Error in case of a failure. Returns nil if no error was detected.
|
|
85
|
+
*/
|
|
86
|
+
- (NSError *_Nullable)trackPageWithViewController:(UIViewController *_Nonnull)controller pageViewEvent:(MIPageViewEvent*_Nullable) event;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
@brief Method which will track page event
|
|
91
|
+
@param event - page view event
|
|
92
|
+
@code
|
|
93
|
+
let event = MIActionEvent(name: "TestAction")
|
|
94
|
+
MappIntelligence.shared()?.trackEvent(event);
|
|
95
|
+
@endcode
|
|
96
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
97
|
+
*/
|
|
98
|
+
- (NSError *_Nullable) trackPage:(MIPageViewEvent *_Nonnull) event;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
@brief Method which will track action event
|
|
102
|
+
@param event - action event
|
|
103
|
+
@code
|
|
104
|
+
let event = MIActionEvent(name: "TestAction")
|
|
105
|
+
MappIntelligence.shared()?.trackAction(event);
|
|
106
|
+
@endcode
|
|
107
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
108
|
+
*/
|
|
109
|
+
- (NSError *_Nullable) trackAction:(MIActionEvent *_Nonnull) event;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
@brief Method which will track media event
|
|
113
|
+
@param event - media event
|
|
114
|
+
@code
|
|
115
|
+
let mediaProperties = MIMediaParameters("TestVideo", action: "view", postion: 12, duration: 120)
|
|
116
|
+
let mediaEvent = MIMediaEvent(pageName: "Test", parameters: mediaProperties)
|
|
117
|
+
MappIntelligence.shared()?.trackMedia(mediaEvent)
|
|
118
|
+
@endcode
|
|
119
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
120
|
+
*/
|
|
121
|
+
- (NSError *_Nullable) trackMedia:(MIMediaEvent *_Nonnull) event;
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
@brief Method which will track campaign parameters from url
|
|
126
|
+
@param url - url object with campaign parameters
|
|
127
|
+
@param mediaCode - custom media code, if nil "wt_mc" is used as default
|
|
128
|
+
@code
|
|
129
|
+
MappIntelligence.shared()?.trackUrl(userActivity.webpageURL, withMediaCode: nil)
|
|
130
|
+
@endcode
|
|
131
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
132
|
+
*/
|
|
133
|
+
- (NSError *_Nullable) trackUrl:(NSURL *_Nullable) url withMediaCode:(NSString *_Nullable) mediaCode;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
@brief Method which will track exception with name
|
|
137
|
+
@param name - custom name of excetpion which we want to track
|
|
138
|
+
@param message - approrpiate message for that exception
|
|
139
|
+
@code
|
|
140
|
+
MappIntelligence.shared()?.trackException(withName: "test name of exeption", andWithMessage: "this is common exception when you are trying to get data")
|
|
141
|
+
@endcode
|
|
142
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
143
|
+
*/
|
|
144
|
+
- (NSError *_Nullable) trackExceptionWithName:(NSString *_Nonnull) name andWithMessage:(NSString *_Nonnull) message;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
@brief Method which will track campaign parameters from url
|
|
148
|
+
@param error - which describes exception
|
|
149
|
+
@code
|
|
150
|
+
MappIntelligence.shared()?.trackException(with: error)
|
|
151
|
+
@endcode
|
|
152
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
153
|
+
*/
|
|
154
|
+
- (NSError *_Nullable) trackExceptionWith:(NSError *_Nonnull) error;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
@brief Method to initialize tracking. Please specify your track domain and trackID.
|
|
158
|
+
@param trackIDs - Array of your trackIDs. The information can be provided by your account manager.
|
|
159
|
+
@param trackDomain - String value of your track domain. The information can be provided by your account manager.
|
|
160
|
+
@code
|
|
161
|
+
MappIntelligence.shared()?.initWithConfiguration([12345678, 8783291721], onTrackdomain: "www.mappIntelligence-trackDomain.com")
|
|
162
|
+
@endcode
|
|
163
|
+
*/
|
|
164
|
+
- (void)initWithConfiguration:(NSArray *_Nonnull)trackIDs
|
|
165
|
+
onTrackdomain:(NSString *_Nonnull)trackDomain;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
@brief Method to change current trackIDs and domain at runtime of application.
|
|
169
|
+
@param trackIDs - Array of your trackIDs. The information can be provided by your account manager.
|
|
170
|
+
@param trackDomain - String value of your track domain. The information can be provided by your account manager.
|
|
171
|
+
@code
|
|
172
|
+
MappIntelligence.shared()?.setIdsAndDomain([12345678, 8783291721], onTrackdomain: "www.mappIntelligence-trackDomain.com")
|
|
173
|
+
@endcode
|
|
174
|
+
*/
|
|
175
|
+
- (void)setIdsAndDomain:(NSArray *_Nonnull)trackIDs
|
|
176
|
+
onTrackdomain:(NSString *_Nonnull)trackDomain;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
@brief Method to initialize tracking. Please specify your track domain and trackID.
|
|
180
|
+
@param trackIDs - Array of your trackIDs. The information can be provided by your account manager.
|
|
181
|
+
@param trackDomain - String value of your track domain. The information can be provided by your account manager.
|
|
182
|
+
@param everID - Strings which represent ever ID, this method is commonly used when customer redirects user from web app to the mobile so it can keep the same session.
|
|
183
|
+
@code
|
|
184
|
+
MappIntelligence.shared()?.initWithConfiguration([12345678, 8783291721], onTrackdomain: "www.mappIntelligence-trackDomain.com", andWithEverID: "537363826253")
|
|
185
|
+
@endcode
|
|
186
|
+
*/
|
|
187
|
+
- (void)initWithConfiguration:(NSArray *_Nonnull)trackIDs
|
|
188
|
+
onTrackdomain:(NSString *_Nonnull)trackDomain andWithEverID: (NSString *_Nonnull) everID;
|
|
189
|
+
/**
|
|
190
|
+
@brief Method to reset the MappIntelligence singleton. This method will set the default empty values for trackID and track domain. Please ensure to provide new trackIDs and track domain.
|
|
191
|
+
@code
|
|
192
|
+
MappIntelligence.shared()?.reset()
|
|
193
|
+
@endcode
|
|
194
|
+
*/
|
|
195
|
+
- (void)reset;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
@brief Method to opt-in for tracking. This enables tracking.
|
|
199
|
+
@code
|
|
200
|
+
MappIntelligence.shared()?.optIn()
|
|
201
|
+
@endcode
|
|
202
|
+
*/
|
|
203
|
+
-(void) optIn;
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
@brief Method to opt-out of tracking. In case of opt-out, no data will be sent to Mapp Intelligence anymore.
|
|
208
|
+
@param value - If set to true, all track requests currently stored in the database will be sent to MappIntelligence. If set to false, opt-out of tracking will be executed immediately and remaining data in the database will be lost.
|
|
209
|
+
@code
|
|
210
|
+
MappIntelligence.shared()?.optOut(with: false, andSendCurrentData: false)
|
|
211
|
+
@endcode
|
|
212
|
+
*/
|
|
213
|
+
- (void)optOutAndSendCurrentData:(BOOL) value;
|
|
214
|
+
|
|
215
|
+
//testable methods
|
|
216
|
+
- (void) printAllRequestFromDatabase;
|
|
217
|
+
- (void) removeRequestFromDatabaseWithID: (int)ID;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
@brief Method to opt-out of tracking. In case of opt-out, no data will be sent to Mapp Intelligence anymore.
|
|
221
|
+
@param pageName - name of page/view being tracked
|
|
222
|
+
@param trackingParams - dictionary with key/value pairs of parameters that are bveing tracked
|
|
223
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
224
|
+
*/
|
|
225
|
+
- (NSError *_Nullable) trackCustomPage: (NSString *_Nonnull)pageName trackingParams: (NSDictionary<NSString *, NSString*> *_Nullable) trackingParams;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
@brief Method which will track action event
|
|
229
|
+
@param eventName - name of action event
|
|
230
|
+
@param trackingParams - dictionary with key/value pairs of parameters that are bveing tracked
|
|
231
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
232
|
+
*/
|
|
233
|
+
- (NSError *_Nullable) trackCustomEvent: (NSString *_Nonnull)eventName trackingParams: (NSDictionary<NSString *, NSString*> *_Nullable) trackingParams;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
@brief Method which will track form submit/cancel
|
|
237
|
+
@param formParams - form parameters that are bveing tracked
|
|
238
|
+
@return the error which may happen through process of tracking, if returns nil there is no error.
|
|
239
|
+
*/
|
|
240
|
+
- (NSError *_Nullable) formTracking: (MIFormParameters *_Nonnull) formParams;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
@brief Method which will enable anonymous tracking and omit submitted parameters/tags array. Please note that using this option will negatively affect data quality.
|
|
244
|
+
@param suppressParams - array list of parameters to ignore during anonimous tracking
|
|
245
|
+
*/
|
|
246
|
+
- (void) enableAnonymousTracking:(NSArray<NSString *> *_Nullable) suppressParams;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
@brief Method which will enable crash tracking with given exception level
|
|
250
|
+
@param exceptionLogLevel - parameter which represent the excetpion types which can be logged
|
|
251
|
+
*/
|
|
252
|
+
- (void) enableCrashTracking:(exceptionType) exceptionLogLevel;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
@brief Method which will return ever ID
|
|
256
|
+
@return The string which represent ever ID
|
|
257
|
+
*/
|
|
258
|
+
- (NSString*_Nonnull) getEverId;
|
|
259
|
+
|
|
260
|
+
@end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MappIntelligenceLogger.h
|
|
3
|
+
// Webrekk
|
|
4
|
+
//
|
|
5
|
+
// Created by Vladan Randjelovic on 03/01/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
typedef NS_ENUM(NSInteger, MappIntelligenceLogLevelDescription) {
|
|
11
|
+
kMappIntelligenceLogLevelDescriptionAll = 1, // All logs of the above.
|
|
12
|
+
kMappIntelligenceLogLevelDescriptionDebug = 2, // The lowest priority that you
|
|
13
|
+
// would normally log, and
|
|
14
|
+
// purely informational in
|
|
15
|
+
// nature.
|
|
16
|
+
kMappIntelligenceLogLevelDescriptionWarning =
|
|
17
|
+
3, // Something is missing and might fail if not corrected
|
|
18
|
+
kMappIntelligenceLogLevelDescriptionError = 4, // Something has failed.
|
|
19
|
+
kMappIntelligenceLogLevelDescriptionFault = 5, // A failure in a key system.
|
|
20
|
+
kMappIntelligenceLogLevelDescriptionInfo = 6, // Informational logs for
|
|
21
|
+
// updating configuration or
|
|
22
|
+
// migrating from older versions
|
|
23
|
+
// of the library.
|
|
24
|
+
kMappIntelligenceLogLevelDescriptionNone =
|
|
25
|
+
7, // None of the logs will be displayed
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@interface MappIntelligenceLogger : NSObject
|
|
30
|
+
|
|
31
|
+
@property(nonatomic) MappIntelligenceLogLevelDescription
|
|
32
|
+
logLevel; // defualt level is kMappIntelligenceLogLevelDescriptionDebug
|
|
33
|
+
@property (nonatomic, strong) NSNumberFormatter *formatter;
|
|
34
|
+
|
|
35
|
+
+ (instancetype)shared;
|
|
36
|
+
|
|
37
|
+
- (NSString *)logObj:(id)obj
|
|
38
|
+
forDescription:(MappIntelligenceLogLevelDescription)logDescription;
|
|
39
|
+
|
|
40
|
+
- (NSString *)logLevelFor:(MappIntelligenceLogLevelDescription)description;
|
|
41
|
+
|
|
42
|
+
@end
|
|
43
|
+
|
|
44
|
+
#ifndef MappIntelligenceLogger_h
|
|
45
|
+
#define MappIntelligenceLogger_h
|
|
46
|
+
|
|
47
|
+
#endif /* MappIntelligenceLogger_h */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MappIntelligenceiOS.h
|
|
3
|
+
// MappIntelligenceiOS
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 28/01/2021.
|
|
6
|
+
// Copyright © 2021 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "MappIntelligence.h"
|
|
10
|
+
#import "MIWebViewTracker.h"
|
|
11
|
+
#import "MIDefaultTracker.h"
|
|
12
|
+
#import "MIFormField.h"
|
|
13
|
+
#import "MIUsageStatistics.h"
|
|
Binary file
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { MappIntelligencePlugin } from 'mapp-intelligence-reactnative-plugin';
|
|
4
|
-
const {
|
|
5
|
-
polyfillGlobal
|
|
6
|
-
} = require('react-native/Libraries/Utilities/PolyfillFunctions');
|
|
7
4
|
const Promise = require('promise/setimmediate/es6-extensions');
|
|
8
5
|
const tracking = require('promise/setimmediate/rejection-tracking');
|
|
9
6
|
var onErrorCallback = null;
|
|
@@ -19,15 +16,13 @@ const defaultErrorHandler = (error, isFatal) => {
|
|
|
19
16
|
};
|
|
20
17
|
export const setGlobalErrorHandler = (errorCallback, errorHandler = defaultErrorHandler) => {
|
|
21
18
|
onErrorCallback = errorCallback;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
return Promise;
|
|
19
|
+
tracking.enable({
|
|
20
|
+
allRejections: true,
|
|
21
|
+
onUnhandled: (_, error) => {
|
|
22
|
+
errorHandler(error, false);
|
|
23
|
+
}
|
|
30
24
|
});
|
|
25
|
+
global.Promise = Promise;
|
|
31
26
|
ErrorUtils.setGlobalHandler(errorHandler);
|
|
32
27
|
// const prevTracker = getUnhandledPromiseRejectionTracker();
|
|
33
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MappIntelligencePlugin","
|
|
1
|
+
{"version":3,"names":["MappIntelligencePlugin","Promise","require","tracking","onErrorCallback","defaultErrorHandler","error","isFatal","trackException","console","log","err","setGlobalErrorHandler","errorCallback","errorHandler","enable","allRejections","onUnhandled","_","global","ErrorUtils","setGlobalHandler"],"sourceRoot":"../../src","sources":["GlobalErrorHandler.tsx"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,sCAAsC;AAE7E,MAAMC,OAAO,GAAGC,OAAO,CAAC,qCAAqC,CAAC;AAC9D,MAAMC,QAAQ,GAAGD,OAAO,CAAC,yCAAyC,CAAC;AAOnE,IAAIE,eAAwE,GAC1E,IAAI;AAEN,MAAMC,mBAAuC,GAAGA,CAACC,KAAK,EAAEC,OAAO,KAAK;EAClE,IAAI;IACFP,sBAAsB,CAACQ,cAAc,CAACF,KAAK,CAAC;IAC5CG,OAAO,CAACC,GAAG,CAAC,wBAAwB,EAAEH,OAAO,EAAED,KAAK,CAAC;EACvD,CAAC,CAAC,OAAOK,GAAG,EAAE;IACZF,OAAO,CAACH,KAAK,CAACK,GAAG,CAAC;EACpB,CAAC,SAAS;IACRP,eAAe,GAAGE,KAAK,EAAEC,OAAO,IAAI,KAAK,CAAC;EAC5C;AACF,CAAC;AAED,OAAO,MAAMK,qBAAqB,GAAGA,CACnCC,aAAuE,EACvEC,YAAgC,GAAGT,mBAAmB,KAC7C;EACTD,eAAe,GAAGS,aAAa;EAE/BV,QAAQ,CAACY,MAAM,CAAC;IACdC,aAAa,EAAE,IAAI;IACnBC,WAAW,EAAEA,CAACC,CAAS,EAAEZ,KAAc,KAAK;MAC1CQ,YAAY,CAACR,KAAK,EAAE,KAAK,CAAC;IAC5B;EACF,CAAC,CAAC;EAEDa,MAAM,CAASlB,OAAO,GAAGA,OAAO;EAEjCmB,UAAU,CAACC,gBAAgB,CAACP,YAAY,CAAC;EACzC;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Platform, NativeModules } from 'react-native';
|
|
3
|
+
import { Platform, NativeModules, TurboModuleRegistry } from 'react-native';
|
|
4
4
|
import { convertPageParameters, convertSessionParamters, convertUserCategories, convertEcommerceParameters, convertCampaignParameters, convertEventParameters, convertMediaEvent } from "./Converters.js";
|
|
5
5
|
const LINKING_ERROR = `The package 'mapp-intelligence-reactnative-plugin' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
6
6
|
ios: "- You have run 'pod install'\n",
|
|
7
7
|
default: ''
|
|
8
8
|
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
9
|
-
const mappPlugin =
|
|
9
|
+
const mappPlugin =
|
|
10
|
+
// New Architecture / TurboModules
|
|
11
|
+
TurboModuleRegistry.get('MappinteligencePlugin') || TurboModuleRegistry.get('MappintelligencePlugin') ||
|
|
12
|
+
// Legacy bridge fallback
|
|
13
|
+
NativeModules.MappinteligencePlugin || NativeModules.MappintelligencePlugin || new Proxy({}, {
|
|
10
14
|
get() {
|
|
11
15
|
throw new Error(LINKING_ERROR);
|
|
12
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","NativeModules","convertPageParameters","convertSessionParamters","convertUserCategories","convertEcommerceParameters","convertCampaignParameters","convertEventParameters","convertMediaEvent","LINKING_ERROR","select","ios","default","mappPlugin","MappinteligencePlugin","
|
|
1
|
+
{"version":3,"names":["Platform","NativeModules","TurboModuleRegistry","convertPageParameters","convertSessionParamters","convertUserCategories","convertEcommerceParameters","convertCampaignParameters","convertEventParameters","convertMediaEvent","LINKING_ERROR","select","ios","default","mappPlugin","get","MappinteligencePlugin","MappintelligencePlugin","Proxy","Error","MappIntelligencePlugin","build","console","log","initWithConfiguration","trackIDs","domain","setLogLevel","level","valueOf","setExceptionLogLevel","setRequestInterval","interval","setBatchSupportEnabled","enabled","setEnableBackgroundSendout","setBatchSupportSize","size","setRequestPerQueue","numberOfRequsts","setShouldMigrate","migrate","setAnonymousTracking","anonymous","setSendAppVersionInEveryRequest","flag","setEnableUserMatching","trackPage","pageTitle","trackCustomPage","pageParameters","sessionParamters","userCategories","ecommerceParameters","campaignParameters","trackPageWithCustomData","trackAction","name","eventParameters","trackUrl","url","mediaCode","trackMedia","mediaEvent","trackException","e","stackTrace","message","slice","trackExceptionWithName","setEverId","everId","getEverId","isInitialized","setTemporarySessionId","sessionId","optOut","sendData","optIn","reset","sendRequestsAndClean","printCurrentConfig","getCurrentConfig","nativeCrash","Promise","resolve"],"sourceRoot":"../../src","sources":["MappIntelligencePlugin.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,aAAa,EAAEC,mBAAmB,QAAQ,cAAc;AAC3E,SACEC,qBAAqB,EACrBC,uBAAuB,EACvBC,qBAAqB,EACrBC,0BAA0B,EAC1BC,yBAAyB,EACzBC,sBAAsB,EACtBC,iBAAiB,QACZ,iBAAc;AAarB,MAAMC,aAAa,GACjB,+FAA+F,GAC/FV,QAAQ,CAACW,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;A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CAAC;IAC9B,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;EAC9B;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeMappintelligencePlugin.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;AAqDlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,uBAAuB,CAAC","ignoreList":[]}
|
|
@@ -11,6 +11,24 @@ const runOnce = `
|
|
|
11
11
|
const injectEverIdScript = `window.webtrekkApplicationEverId = '%everId%' ; true; `;
|
|
12
12
|
export const useWebTracking = (onMessage, onLoad) => {
|
|
13
13
|
const webViewRef = useRef(null);
|
|
14
|
+
const trackCustomPage = useCallback((name, params) => {
|
|
15
|
+
try {
|
|
16
|
+
const parameters = getJson(params);
|
|
17
|
+
console.log('Page Name: ', name, '; Params: ', parameters);
|
|
18
|
+
MappIntelligencePlugin.trackPageWithCustomData(name, parameters);
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.error(error);
|
|
21
|
+
}
|
|
22
|
+
}, []);
|
|
23
|
+
const trackCustomEvent = useCallback((name, params) => {
|
|
24
|
+
try {
|
|
25
|
+
const parameters = getJson(params);
|
|
26
|
+
console.log('Event Name: ', name, '; Params: ', parameters);
|
|
27
|
+
MappIntelligencePlugin.trackAction(name, parameters, null, null, null, null);
|
|
28
|
+
} catch (error) {
|
|
29
|
+
console.error(error);
|
|
30
|
+
}
|
|
31
|
+
}, []);
|
|
14
32
|
const handleMessage = useCallback(event => {
|
|
15
33
|
try {
|
|
16
34
|
const message = JSON.parse(event.nativeEvent.data);
|
|
@@ -27,25 +45,7 @@ export const useWebTracking = (onMessage, onLoad) => {
|
|
|
27
45
|
console.error('Error parsing message from WebView', error);
|
|
28
46
|
}
|
|
29
47
|
onMessage?.(event.nativeEvent.data);
|
|
30
|
-
}, [onMessage]);
|
|
31
|
-
const trackCustomPage = (name, params) => {
|
|
32
|
-
try {
|
|
33
|
-
const parameters = getJson(params);
|
|
34
|
-
console.log('Page Name: ', name, '; Params: ', parameters);
|
|
35
|
-
MappIntelligencePlugin.trackPageWithCustomData(name, parameters);
|
|
36
|
-
} catch (error) {
|
|
37
|
-
console.error(error);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const trackCustomEvent = (name, params) => {
|
|
41
|
-
try {
|
|
42
|
-
const parameters = getJson(params);
|
|
43
|
-
console.log('Event Name: ', name, '; Params: ', parameters);
|
|
44
|
-
MappIntelligencePlugin.trackAction(name, parameters, null, null, null, null);
|
|
45
|
-
} catch (error) {
|
|
46
|
-
console.error(error);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
48
|
+
}, [onMessage, trackCustomPage, trackCustomEvent]);
|
|
49
49
|
const getJson = data => {
|
|
50
50
|
try {
|
|
51
51
|
if (data) {
|
|
@@ -74,7 +74,7 @@ export const useWebTracking = (onMessage, onLoad) => {
|
|
|
74
74
|
if (onLoad) {
|
|
75
75
|
onLoad();
|
|
76
76
|
}
|
|
77
|
-
}, []);
|
|
77
|
+
}, [onLoad]);
|
|
78
78
|
const getInjectedJavaScript = script => {
|
|
79
79
|
if (script) {
|
|
80
80
|
return runOnce + '; true; ' + script;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MappIntelligencePlugin","useRef","useCallback","runOnce","injectEverIdScript","useWebTracking","onMessage","onLoad","webViewRef","
|
|
1
|
+
{"version":3,"names":["MappIntelligencePlugin","useRef","useCallback","runOnce","injectEverIdScript","useWebTracking","onMessage","onLoad","webViewRef","trackCustomPage","name","params","parameters","getJson","console","log","trackPageWithCustomData","error","trackCustomEvent","trackAction","handleMessage","event","message","JSON","parse","nativeEvent","data","method","json","handleLoad","getEverId","then","everId","current","scripts","replace","injectJavaScript","setTimeout","catch","trackException","getInjectedJavaScript","script"],"sourceRoot":"../../src","sources":["UseWebTracking.tsx"],"mappings":";;AAAA,SAASA,sBA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CAACC,GAAG,CAAC,oBAAoB,EAAEmB,OAAO,CAAC;QAE1CG,UAAU,CAAC,MAAM;UACf7B,UAAU,CAACyB,OAAO,EAAEG,gBAAgB,CAClC,mDACF,CAAC;QACH,CAAC,EAAE,IAAI,CAAC;MACV;IACF,CAAC,CAAC,CACDE,KAAK,CAAErB,KAAY,IAAK;MACvBH,OAAO,CAACG,KAAK,CAACA,KAAK,CAAC;MACpBjB,sBAAsB,CAACuC,cAAc,CAACtB,KAAK,CAAC;IAC9C,CAAC,CAAC;IAEJ,IAAIV,MAAM,EAAE;MACVA,MAAM,CAAC,CAAC;IACV;EACF,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEZ,MAAMiC,qBAAqB,GAAIC,MAAkC,IAAK;IACpE,IAAIA,MAAM,EAAE;MACV,OAAOtC,OAAO,GAAG,UAAU,GAAGsC,MAAM;IACtC;IACA,OAAOtC,OAAO;EAChB,CAAC;EAED,OAAO;IAAEK,UAAU;IAAEY,aAAa;IAAES,UAAU;IAAEW;EAAsB,CAAC;AACzE,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const {
|
|
4
|
-
polyfillGlobal
|
|
5
|
-
} = require('react-native/Libraries/Utilities/PolyfillFunctions');
|
|
6
3
|
const Promise = require('promise/setimmediate/es6-extensions');
|
|
7
4
|
require('promise/setimmediate/done');
|
|
8
5
|
require('promise/setimmediate/finally');
|
|
@@ -33,12 +30,10 @@ export const getUnhandledPromiseRejectionTracker = () => handler;
|
|
|
33
30
|
//@ts-ignore
|
|
34
31
|
export const setUnhandledPromiseRejectionTracker = tracker => {
|
|
35
32
|
handler = tracker;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
onUnhandled: tracker
|
|
40
|
-
});
|
|
41
|
-
return Promise;
|
|
33
|
+
tracking.enable({
|
|
34
|
+
allRejections: true,
|
|
35
|
+
onUnhandled: tracker
|
|
42
36
|
});
|
|
37
|
+
global.Promise = Promise;
|
|
43
38
|
};
|
|
44
39
|
//# sourceMappingURL=promiseRejectionHandler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Promise","require","tracking","defaultHandler","id","error","undefined","message","stack","stringValue","Object","prototype","toString","call","Error","JSON","stringify","warning","console","warn","handler","getUnhandledPromiseRejectionTracker","setUnhandledPromiseRejectionTracker","tracker","enable","allRejections","onUnhandled","global"],"sourceRoot":"../../src","sources":["promiseRejectionHandler.tsx"],"mappings":"AAAA,YAAY;;AAEZ,MAAMA,OAAO,GAAGC,OAAO,CAAC,qCAAqC,CAAC;AAE9DA,OAAO,CAAC,2BAA2B,CAAC;AACpCA,OAAO,CAAC,8BAA8B,CAAC;AAEvC,MAAMC,QAAQ,GAAGD,OAAO,CAAC,yCAAyC,CAAC;;AAEnE;AACA,MAAME,cAAc,GAAGA,CAACC,EAAE,EAAEC,KAAK,KAAK;EACpCA,KAAK,GAAGA,KAAK,KAAKC,SAAS,GAAG,CAAC,CAAC,GAAGD,KAAK;EACxC,IAAIE,OAAO;EACX,IAAIC,KAAK;EAET,MAAMC,WAAW,GAAGC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACR,KAAK,CAAC;EACzD,IAAII,WAAW,KAAK,gBAAgB,EAAE;IACpCF,OAAO,GAAGO,KAAK,CAACH,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACR,KAAK,CAAC;IAC9CG,KAAK,GAAGH,KAAK,CAACG,KAAK;EACrB,CAAC,MAAM;IACL,IAAI;MACFD,OAAO,GAAGN,OAAO,CAAC,eAAe,CAAC,CAACI,KAAK,CAAC;IAC3C,CAAC,CAAC,MAAM;MACNE,OAAO,GAAG,OAAOF,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGU,IAAI,CAACC,SAAS,CAACX,KAAK,CAAC;IACrE;EACF;EAEA,MAAMY,OAAO,GACX,6CAA6Cb,EAAE,MAAM,GACrD,GAAGG,OAAO,IAAI,IACbC,KAAK,IAAI,IAAI,GAAG,EAAE,GAAGA,KAAK,CAAC;EAC9BU,OAAO,CAACC,IAAI,CAACF,OAAO,CAAC;AACvB,CAAC;AAED,IAAIG,OAAO,GAAGjB,cAAc;AAE5B,OAAO,MAAMkB,mCAAmC,GAAGA,CAAA,KAAMD,OAAO;;AAEhE;AACA,OAAO,MAAME,mCAAmC,GAAIC,OAAO,IAAK;EAC9DH,OAAO,GAAGG,OAAO;EAEjBrB,QAAQ,CAACsB,MAAM,CAAC;IACdC,aAAa,EAAE,IAAI;IACnBC,WAAW,EAAEH;EACf,CAAC,CAAC;EAEDI,MAAM,CAAS3B,OAAO,GAAGA,OAAO;AACnC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalErrorHandler.d.ts","sourceRoot":"","sources":["../../../src/GlobalErrorHandler.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalErrorHandler.d.ts","sourceRoot":"","sources":["../../../src/GlobalErrorHandler.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,kBAAkB,GAAG,CAC/B,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,OAAO,GAAG,SAAS,KACzB,IAAI,CAAC;AAgBV,eAAO,MAAM,qBAAqB,GAChC,gBAAgB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,EAAE,CAAC,GAAG,SAAS,GAAG,IAAI,EACvE,eAAc,kBAAwC,KACrD,IAsBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MappIntelligencePlugin.d.ts","sourceRoot":"","sources":["../../../src/MappIntelligencePlugin.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,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C;;;OAGG;8BACqB,OAAO,CAAC,MAAM,CAAC;IAIvC;;;;OAIG;;CAKJ,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
export interface Spec extends TurboModule {
|
|
3
|
+
build(): Promise<number>;
|
|
4
|
+
initWithConfiguration(trackIDs: number[], domain: string): Promise<number>;
|
|
5
|
+
setLogLevel(level: number): Promise<number>;
|
|
6
|
+
setExceptionLogLevel(level: number): Promise<number>;
|
|
7
|
+
setRequestInterval(interval: number): Promise<number>;
|
|
8
|
+
setBatchSupportEnabled(enabled: boolean): Promise<number>;
|
|
9
|
+
setEnableBackgroundSendout(enabled: boolean): Promise<number>;
|
|
10
|
+
setBatchSupportSize(size: number): Promise<number>;
|
|
11
|
+
setRequestPerQueue(numberOfRequests: number): Promise<number>;
|
|
12
|
+
setShouldMigrate(migrate: boolean): Promise<number>;
|
|
13
|
+
setAnonymousTracking(anonymous: boolean): Promise<number>;
|
|
14
|
+
setSendAppVersionInEveryRequest(flag: boolean): Promise<number>;
|
|
15
|
+
setEnableUserMatching(enabled: boolean): Promise<number>;
|
|
16
|
+
trackPage(pageTitle: string): Promise<number>;
|
|
17
|
+
trackCustomPage(pageTitle: string, pageParameters: Object, sessionParameters: Object, userCategories: Object, ecommerceParameters: Object, campaignParameters: Object): Promise<number>;
|
|
18
|
+
trackPageWithCustomData(pageParameters: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
}, pageTitle: string): Promise<number>;
|
|
21
|
+
trackAction(name: string, eventParameters: Object, sessionParameters: Object, userCategories: Object, ecommerceParameters: Object, campaignParameters: Object): Promise<number>;
|
|
22
|
+
trackUrl(url: string, mediaCode?: string): Promise<number>;
|
|
23
|
+
trackMedia(mediaEvent: Object): Promise<number>;
|
|
24
|
+
trackException(name: string, message: string, stackTrace?: string): Promise<number>;
|
|
25
|
+
trackExceptionWithName(name: string, message: string, stackTrace?: string): Promise<number>;
|
|
26
|
+
setEverId(everId?: string): Promise<number>;
|
|
27
|
+
getEverId(): Promise<string>;
|
|
28
|
+
isInitialized(): Promise<boolean>;
|
|
29
|
+
setTemporarySessionId(sessionId?: string): Promise<number>;
|
|
30
|
+
optOut(sendData: boolean): Promise<number>;
|
|
31
|
+
optIn(sendData: boolean): Promise<number>;
|
|
32
|
+
reset(): Promise<number>;
|
|
33
|
+
sendRequestsAndClean(): Promise<number>;
|
|
34
|
+
getCurrentConfig(): Promise<string>;
|
|
35
|
+
nativeCrash(): Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
declare const _default: Spec;
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=NativeMappintelligencePlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeMappintelligencePlugin.d.ts","sourceRoot":"","sources":["../../../src/NativeMappintelligencePlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3E,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1D,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9D,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,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