mapp-intelligence-reactnative-plugin 1.0.3 → 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 +46 -63
- package/android/gradle.properties +7 -6
- package/android/settings.gradle +24 -0
- package/android/specs/MappinteligencePluginSpec.js +8 -0
- package/android/src/main/AndroidManifest.xml +3 -2
- package/android/src/main/java/com/mappinteligenceplugin/MappinteligencePluginModule.kt +296 -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/ios/MappinteligencePlugin.mm +50 -24
- package/lib/module/Converters.js +2 -0
- package/lib/module/Converters.js.map +1 -1
- package/lib/module/DataTypes.js +2 -0
- package/lib/module/DataTypes.js.map +1 -1
- package/lib/module/GlobalErrorHandler.js +9 -12
- package/lib/module/GlobalErrorHandler.js.map +1 -1
- package/lib/module/MappIntelligencePlugin.js +19 -4
- 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 +23 -21
- package/lib/module/UseWebTracking.js.map +1 -1
- package/lib/module/global.d.js +2 -0
- package/lib/module/global.d.js.map +1 -1
- package/lib/module/index.js +8 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/promiseRejectionHandler.js +4 -9
- package/lib/module/promiseRejectionHandler.js.map +1 -1
- package/lib/typescript/src/DataTypes.d.ts +6 -6
- package/lib/typescript/src/DataTypes.d.ts.map +1 -1
- package/lib/typescript/src/GlobalErrorHandler.d.ts +1 -1
- package/lib/typescript/src/GlobalErrorHandler.d.ts.map +1 -1
- package/lib/typescript/src/MappIntelligencePlugin.d.ts +6 -0
- 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 -2
- 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 +39 -40
- package/src/GlobalErrorHandler.tsx +8 -13
- package/src/MappIntelligencePlugin.tsx +27 -12
- package/src/NativeMappintelligencePlugin.ts +55 -0
- package/src/UseWebTracking.tsx +29 -27
- package/src/promiseRejectionHandler.tsx +5 -10
- package/lib/commonjs/Converters.js +0 -168
- package/lib/commonjs/Converters.js.map +0 -1
- package/lib/commonjs/DataTypes.js +0 -79
- package/lib/commonjs/DataTypes.js.map +0 -1
- package/lib/commonjs/GlobalErrorHandler.js +0 -47
- package/lib/commonjs/GlobalErrorHandler.js.map +0 -1
- package/lib/commonjs/MappIntelligencePlugin.js +0 -296
- package/lib/commonjs/MappIntelligencePlugin.js.map +0 -1
- package/lib/commonjs/UseWebTracking.js +0 -96
- package/lib/commonjs/UseWebTracking.js.map +0 -1
- package/lib/commonjs/global.d.js +0 -6
- package/lib/commonjs/global.d.js.map +0 -1
- package/lib/commonjs/index.js +0 -72
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/promiseRejectionHandler.js +0 -50
- package/lib/commonjs/promiseRejectionHandler.js.map +0 -1
|
@@ -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
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIActionEvent.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 08/09/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "MITrackingEvent.h"
|
|
11
|
+
#import "MIPageParameters.h"
|
|
12
|
+
#import "MIEventParameters.h"
|
|
13
|
+
#import "MISessionParameters.h"
|
|
14
|
+
#import "MIUserCategories.h"
|
|
15
|
+
#import "MIEcommerceParameters.h"
|
|
16
|
+
#import "MICampaignParameters.h"
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
|
|
20
|
+
@interface MIActionEvent : MITrackingEvent
|
|
21
|
+
@property (nonnull) NSString* name;
|
|
22
|
+
@property (nonatomic, nonnull) MIEventParameters* eventParameters;
|
|
23
|
+
@property (nonatomic, nullable) MISessionParameters *sessionParameters;
|
|
24
|
+
@property (nonatomic, nullable) MIUserCategories *userCategories;
|
|
25
|
+
@property (nonatomic, nullable) MIEcommerceParameters *ecommerceParameters;
|
|
26
|
+
@property (nonatomic, nullable) MICampaignParameters *campaignParameters;
|
|
27
|
+
|
|
28
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
29
|
+
- (instancetype)initWithName:(NSString *)name;
|
|
30
|
+
- (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
31
|
+
@end
|
|
32
|
+
|
|
33
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AdvertisementProperties.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 28/10/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
typedef NS_ENUM(NSInteger, MICampaignAction) {
|
|
13
|
+
click = 1,
|
|
14
|
+
view = 2
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
|
|
19
|
+
@interface MICampaignParameters : NSObject <NSCopying, NSSecureCoding>
|
|
20
|
+
@property (nullable) NSString *campaignId;
|
|
21
|
+
@property MICampaignAction action;
|
|
22
|
+
@property (nullable) NSString *mediaCode;
|
|
23
|
+
@property BOOL oncePerSession;
|
|
24
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*>* customParameters;
|
|
25
|
+
|
|
26
|
+
- (instancetype)initWith: (NSString *) campaignId;
|
|
27
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
28
|
+
- (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
29
|
+
|
|
30
|
+
@end
|
|
31
|
+
|
|
32
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIDefaultTracker.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Vladan Randjelovic on 10/02/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#ifndef DefaultTracker_h
|
|
10
|
+
#define DefaultTracker_h
|
|
11
|
+
#import <UIKit/UIKit.h>
|
|
12
|
+
#import "MIPageViewEvent.h"
|
|
13
|
+
#import "MIFormSubmitEvent.h"
|
|
14
|
+
#import "MIActionEvent.h"
|
|
15
|
+
|
|
16
|
+
#endif /* DefaultTracker_h */
|
|
17
|
+
|
|
18
|
+
@interface MIDefaultTracker : NSObject
|
|
19
|
+
@property BOOL isReady;
|
|
20
|
+
@property (nonatomic) BOOL anonymousTracking;
|
|
21
|
+
@property (nonatomic) BOOL isItFlutter;
|
|
22
|
+
@property NSString*_Nullable temporaryID;
|
|
23
|
+
@property NSString* _Nonnull version;
|
|
24
|
+
@property NSString* _Nonnull platform;
|
|
25
|
+
@property (nonatomic) NSArray<NSString*> * _Nullable suppressedParameters;
|
|
26
|
+
@property MIUsageStatistics* _Nonnull usageStatistics;
|
|
27
|
+
|
|
28
|
+
+ (nullable instancetype)sharedInstance;
|
|
29
|
+
- (NSString *_Nullable)generateEverId;
|
|
30
|
+
- (void)setEverIDFromString: (NSString *_Nonnull)everIDString;
|
|
31
|
+
- (NSString*_Nonnull)generateUserAgent;
|
|
32
|
+
- (BOOL)isBackgroundSendoutEnabled;
|
|
33
|
+
- (BOOL)isUserMatchingEnabled;
|
|
34
|
+
- (void)setupVersion: (NSString *_Nonnull) version andPlatform: (NSString *_Nonnull) platform;
|
|
35
|
+
- (NSError*_Nullable)track:(UIViewController *_Nonnull)controller;
|
|
36
|
+
- (void)updateFirstSessionWith: (UIApplicationState) state;
|
|
37
|
+
- (NSError*_Nullable)trackWith:(NSString *_Nonnull)name;
|
|
38
|
+
- (NSError*_Nullable)trackWithEvent:(MITrackingEvent *_Nonnull)event;
|
|
39
|
+
- (NSError *_Nullable)trackWithCustomEvent:(MITrackingEvent *_Nonnull)event;
|
|
40
|
+
|
|
41
|
+
+ (NSUserDefaults *_Nonnull)sharedDefaults;
|
|
42
|
+
- (void)initHibernate;
|
|
43
|
+
- (void)reset;
|
|
44
|
+
- (void)initializeTracking;
|
|
45
|
+
- (void)sendRequestFromDatabaseWithCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
|
|
46
|
+
- (void)sendBatchForRequestInBackground: (BOOL)background withCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
|
|
47
|
+
- (void)removeAllRequestsFromDBWithCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
|
|
48
|
+
- (void)migrateData;
|
|
49
|
+
@end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//
|
|
2
|
+
// EcommerceProperties.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Stefan Stevanovic on 26/10/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "MIProduct.h"
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
typedef NS_ENUM(NSInteger, MIStatus) {
|
|
15
|
+
noneStatus = 0,
|
|
16
|
+
addedToBasket = 1,
|
|
17
|
+
purchased = 2,
|
|
18
|
+
viewed = 3,
|
|
19
|
+
deletedFromBasket = 4,
|
|
20
|
+
addedToWishlist = 5,
|
|
21
|
+
deletedFromWishlist = 6,
|
|
22
|
+
checkout = 7
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
@interface MIEcommerceParameters : NSObject
|
|
26
|
+
|
|
27
|
+
@property (nullable) NSArray<MIProduct*>* products;
|
|
28
|
+
@property (nonatomic) MIStatus status;
|
|
29
|
+
@property (nullable) NSString* currency;
|
|
30
|
+
@property (nullable) NSString* orderID;
|
|
31
|
+
@property (nullable) NSNumber* orderValue;
|
|
32
|
+
//new values
|
|
33
|
+
@property (nullable) NSString* returningOrNewCustomer;
|
|
34
|
+
@property (nullable) NSNumber* returnValue;
|
|
35
|
+
@property (nullable) NSNumber* cancellationValue;
|
|
36
|
+
@property (nullable) NSNumber* couponValue;
|
|
37
|
+
@property (nullable) NSString* paymentMethod;
|
|
38
|
+
@property (nullable) NSString* shippingServiceProvider;
|
|
39
|
+
@property (nullable) NSString* shippingSpeed;
|
|
40
|
+
@property (nullable) NSNumber* shippingCost;
|
|
41
|
+
@property (nullable) NSNumber* markUp;
|
|
42
|
+
@property (nullable) NSString* orderStatus;
|
|
43
|
+
|
|
44
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*>* customParameters;
|
|
45
|
+
|
|
46
|
+
- (instancetype)initWithCustomParameters: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters;
|
|
47
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
48
|
+
- (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
49
|
+
|
|
50
|
+
@end
|
|
51
|
+
|
|
52
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIActionProperties.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 08/09/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface MIEventParameters : NSObject
|
|
14
|
+
|
|
15
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*>* parameters;
|
|
16
|
+
|
|
17
|
+
-(instancetype)initWithParameters: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters;
|
|
18
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
19
|
+
-(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIFormField.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Stefan Stevanovic on 26.1.22..
|
|
6
|
+
// Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface MIFormField : NSObject
|
|
14
|
+
|
|
15
|
+
@property (nonatomic, nullable) NSString* formFieldName;
|
|
16
|
+
@property (nonatomic, nullable) NSString* formFieldContent;
|
|
17
|
+
@property (nonatomic) NSInteger ID;
|
|
18
|
+
@property (nonatomic) BOOL lastFocus;
|
|
19
|
+
@property (nonatomic) BOOL anonymus;
|
|
20
|
+
|
|
21
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
22
|
+
- (instancetype)initWithName:(NSString*)name andContent: (NSString*)content andID: (NSInteger)ID andWithAnonymus:(BOOL)anonymus andFocus:(BOOL)focus;
|
|
23
|
+
-(void)renameField: (NSString*) renameValue;
|
|
24
|
+
- (NSString*)getFormFieldForQuery;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIFormParameters.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Stefan Stevanovic on 26.1.22..
|
|
6
|
+
// Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@interface MIFormParameters : NSObject
|
|
15
|
+
|
|
16
|
+
/// formName by default is name of uiviewcontroler, but user can specify it to be differnt one.
|
|
17
|
+
@property (nonatomic, nullable) NSString* formName;
|
|
18
|
+
|
|
19
|
+
/// fieldIds indicate ids which will be trackable, if it is not specified all trackable controls at form will be tracked
|
|
20
|
+
@property (nonatomic, nullable) NSMutableArray<NSNumber*>* fieldIds;
|
|
21
|
+
|
|
22
|
+
/// By default, the name of the field ID is used to generate the name of the field. If you want to change the default name you can specify this here.
|
|
23
|
+
@property (nonatomic, nullable) NSMutableDictionary* renameFields;
|
|
24
|
+
|
|
25
|
+
/// By default, the value of the text field is used as the value of the field. You can change the default value here. Please be aware that if hardcoded, the field value is changed permanently and does not indicate anymore if a field was left empty.
|
|
26
|
+
@property (nonatomic, nullable) NSMutableDictionary* changeFieldsValue;
|
|
27
|
+
|
|
28
|
+
/// By default, only EditText fields are anonymized and send as filled out or empty to the track server, instead of displaying the actual value of the field. If other field types need to be anonymized, you can indicate them here.
|
|
29
|
+
@property (nonatomic, nullable) NSMutableArray<NSNumber*>* anonymousSpecificFields;
|
|
30
|
+
|
|
31
|
+
/// By default, the SDK sends EditText fields anonymized (filled out / empty) to Mapp Intelligence. If you want to send the actual content of the specific fields instead, indicate them here.
|
|
32
|
+
@property (nonatomic, nullable) NSMutableArray<NSNumber*>* fullContentSpecificFields;
|
|
33
|
+
|
|
34
|
+
/// If you want to indicate that a form has been submitted or canceled, you can set the confirmButton to true or false. By default, the confirmButton is set to true.
|
|
35
|
+
@property (nonatomic) BOOL confirmButton;
|
|
36
|
+
|
|
37
|
+
/// If you want to anonymize all field types, set anonymous to true.
|
|
38
|
+
@property (nonatomic, nullable) NSNumber* anonymous;
|
|
39
|
+
|
|
40
|
+
/// You can track the order in which the user has filled out the fields. Please note that you need to track the order manually and parse the data to the fieldsOrder function. Mapp Intelligence cannot track the order in which the user filled out the form automatically.
|
|
41
|
+
@property (nonatomic, nullable) NSMutableArray<NSNumber*>* pathAnalysis;
|
|
42
|
+
|
|
43
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
44
|
+
- (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
45
|
+
|
|
46
|
+
@end
|
|
47
|
+
|
|
48
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIFromSubmitEvent.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Stefan Stevanovic on 1.2.22..
|
|
6
|
+
// Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "MITrackingEvent.h"
|
|
11
|
+
#import "MIUsageStatistics.h"
|
|
12
|
+
#import "MIFormParameters.h"
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
@interface MIFormSubmitEvent : MITrackingEvent
|
|
17
|
+
|
|
18
|
+
@property (nonatomic, nullable) MIFormParameters *formParameters;
|
|
19
|
+
|
|
20
|
+
@end
|
|
21
|
+
|
|
22
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIMediaEvent.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 28/12/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "MIMediaParameters.h"
|
|
11
|
+
#import "MIEventParameters.h"
|
|
12
|
+
#import "MISessionParameters.h"
|
|
13
|
+
#import "MIEcommerceParameters.h"
|
|
14
|
+
#import "MITrackingEvent.h"
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
|
|
18
|
+
@interface MIMediaEvent : MITrackingEvent
|
|
19
|
+
|
|
20
|
+
@property (nonatomic, nonnull) MIMediaParameters *mediaParameters;
|
|
21
|
+
@property (nonatomic, nullable) MIEventParameters* eventParameters;
|
|
22
|
+
@property (nonatomic, nullable) MISessionParameters *sessionParameters;
|
|
23
|
+
@property (nonatomic, nullable) MIEcommerceParameters *ecommerceParameters;
|
|
24
|
+
|
|
25
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
26
|
+
- (instancetype)initWithPageName:(NSString *)name parameters: (MIMediaParameters *)properties;
|
|
27
|
+
|
|
28
|
+
@end
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIMediaParameters.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 27/12/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface MIMediaParameters : NSObject
|
|
14
|
+
|
|
15
|
+
@property (nonnull) NSString *name;
|
|
16
|
+
@property (nonnull) NSString *action;
|
|
17
|
+
@property (nullable) NSNumber *bandwith;
|
|
18
|
+
@property (nonnull) NSNumber *duration;
|
|
19
|
+
@property (nonnull) NSNumber *position;
|
|
20
|
+
@property (nullable)NSNumber *soundIsMuted;
|
|
21
|
+
@property (nullable)NSNumber *soundVolume;
|
|
22
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*>* customCategories;
|
|
23
|
+
|
|
24
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
25
|
+
- (instancetype)initWith: (NSString *) name action: (NSString *)action position: (NSNumber *) position duration: (NSNumber *) duration;
|
|
26
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
27
|
+
-(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
28
|
+
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
NS_ASSUME_NONNULL_END
|