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,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
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIPageParameters.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Stefan Stevanovic on 17/07/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 MIPageParameters : NSObject
|
|
14
|
+
|
|
15
|
+
@property (nullable) NSString* internalSearch;
|
|
16
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*> *details;
|
|
17
|
+
@property (nullable) NSMutableDictionary* groups;
|
|
18
|
+
|
|
19
|
+
-(instancetype)initWithPageParams: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters pageCategory: (NSMutableDictionary* _Nullable) category search: (NSString* _Nullable)internalSearch;
|
|
20
|
+
|
|
21
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
22
|
+
|
|
23
|
+
-(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
24
|
+
|
|
25
|
+
@end
|
|
26
|
+
|
|
27
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
// MIPageViewEvent.h
|
|
5
|
+
// MappIntelligenceSDK
|
|
6
|
+
//
|
|
7
|
+
// Created by Stefan Stevanovic on 3/6/20.
|
|
8
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
9
|
+
//
|
|
10
|
+
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
#import "MIPageParameters.h"
|
|
13
|
+
#import "MITrackingEvent.h"
|
|
14
|
+
#import "MISessionParameters.h"
|
|
15
|
+
#import "MIUserCategories.h"
|
|
16
|
+
#import "MIEcommerceParameters.h"
|
|
17
|
+
#import "MICampaignParameters.h"
|
|
18
|
+
|
|
19
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
20
|
+
|
|
21
|
+
@interface MIPageViewEvent : MITrackingEvent
|
|
22
|
+
|
|
23
|
+
@property (nonatomic, nonnull) MIPageParameters* pageParameters;
|
|
24
|
+
@property (nonatomic, nullable) MISessionParameters *sessionParameters;
|
|
25
|
+
@property (nonatomic, nullable) MIUserCategories *userCategories;
|
|
26
|
+
@property (nonatomic, nullable) MIEcommerceParameters *ecommerceParameters;
|
|
27
|
+
@property (nonatomic, nullable) MICampaignParameters *campaignParameters;
|
|
28
|
+
|
|
29
|
+
- (instancetype)initWithName:(NSString *)name;
|
|
30
|
+
|
|
31
|
+
@end
|
|
32
|
+
|
|
33
|
+
NS_ASSUME_NONNULL_END
|
|
34
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIParamType.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 17/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 MIParamType : NSObject
|
|
14
|
+
|
|
15
|
+
+(NSString *)pageParam;
|
|
16
|
+
+(NSString *)pageCategory;
|
|
17
|
+
+(NSString *)ecommerceParam;
|
|
18
|
+
+(NSString *)productCategory;
|
|
19
|
+
+(NSString *)eventParam;
|
|
20
|
+
+(NSString *)campaignParam;
|
|
21
|
+
+(NSString *)sessionParam;
|
|
22
|
+
+(NSString *)urmCategory;
|
|
23
|
+
|
|
24
|
+
+(NSString *) createCustomParam:(NSString *) type value: (NSInteger) value;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIParams.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 17/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 MIParams : NSObject
|
|
14
|
+
|
|
15
|
+
+(NSString *)internalSearch;
|
|
16
|
+
+(NSString *)mediaCode;
|
|
17
|
+
+(NSString *)customerId;
|
|
18
|
+
+(NSString *)productName;
|
|
19
|
+
+(NSString *)productCost;
|
|
20
|
+
+(NSString *)productCurrency;
|
|
21
|
+
+(NSString *)productQuantity;
|
|
22
|
+
+(NSString *)statusOfShoppingCard;
|
|
23
|
+
+(NSString *)orderId;
|
|
24
|
+
+(NSString *)orderValue;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Product.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
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface MIProduct : NSObject
|
|
14
|
+
|
|
15
|
+
@property (nonatomic, nullable) NSString* name;
|
|
16
|
+
@property (nonatomic, nullable) NSNumber* cost;
|
|
17
|
+
@property (nonatomic, nullable) NSNumber* quantity;
|
|
18
|
+
@property (nullable) NSNumber* productAdvertiseID;
|
|
19
|
+
@property (nullable) NSNumber* productSoldOut;
|
|
20
|
+
@property (nullable) NSString* productVariant;
|
|
21
|
+
|
|
22
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*>* categories;
|
|
23
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*>* ecommerceParameters;
|
|
24
|
+
|
|
25
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MISessionProperties.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 11/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 MISessionParameters : NSObject
|
|
14
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*>* parameters;
|
|
15
|
+
-(instancetype)initWithParameters: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters;
|
|
16
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
17
|
+
-(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
18
|
+
@end
|
|
19
|
+
|
|
20
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// TrackingEvent.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Stefan Stevanovic on 3/5/20.
|
|
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 MITrackingEvent : NSObject
|
|
14
|
+
|
|
15
|
+
@property NSString *pageName;
|
|
16
|
+
@property NSDictionary *variables;
|
|
17
|
+
@property NSObject *viewControllerType;
|
|
18
|
+
|
|
19
|
+
@property NSDictionary<NSString *,NSString *> *trackingParams;
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIUsageStatistics.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Stefan Stevanovic on 21.6.23..
|
|
6
|
+
// Copyright © 2023 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface MIUsageStatistics : NSObject
|
|
14
|
+
|
|
15
|
+
@property (nonnull) NSNumber* activityAutoTracking;
|
|
16
|
+
@property (nonnull) NSNumber* fragmentsAutoTracking;
|
|
17
|
+
@property (nonatomic, nonnull) NSNumber* autoTracking;
|
|
18
|
+
@property (nonatomic, nonnull) NSNumber* backgroundSendout;
|
|
19
|
+
@property (nonatomic, nonnull) NSNumber* userMatching;
|
|
20
|
+
@property (nonatomic, nonnull) NSNumber* webview;
|
|
21
|
+
@property (nonatomic, nonnull) NSNumber* setEverId;
|
|
22
|
+
@property (nonatomic, nonnull) NSNumber* appVersionInEveryRequest;
|
|
23
|
+
@property (nonatomic, nonnull) NSNumber* crashTracking;
|
|
24
|
+
@property (nonatomic, nonnull) NSNumber* batchSupport;
|
|
25
|
+
|
|
26
|
+
- (void)printUserStatistics;
|
|
27
|
+
/// returns value which will be sent to server
|
|
28
|
+
- (NSString*)getUserStatisticsValue;
|
|
29
|
+
- (void)reset;
|
|
30
|
+
@end
|
|
31
|
+
|
|
32
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIUserCategories.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 20/10/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
|
+
typedef struct MIBirthday {
|
|
14
|
+
int day;
|
|
15
|
+
int month;
|
|
16
|
+
int year;
|
|
17
|
+
} MIBirthday;
|
|
18
|
+
|
|
19
|
+
typedef NS_ENUM(NSInteger, MIGender) {
|
|
20
|
+
unknown = 1,
|
|
21
|
+
male = 2,
|
|
22
|
+
female = 3
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
@interface MIUserCategories : NSObject
|
|
26
|
+
|
|
27
|
+
@property MIBirthday birthday;
|
|
28
|
+
@property (nullable) NSString *city;
|
|
29
|
+
@property (nullable) NSString *country;
|
|
30
|
+
@property (nullable) NSString *emailAddress;
|
|
31
|
+
@property (nonatomic, nullable) NSString *emailReceiverId;
|
|
32
|
+
@property (nullable) NSString *firstName;
|
|
33
|
+
@property MIGender gender;
|
|
34
|
+
@property (nullable) NSString *customerId;
|
|
35
|
+
@property (nullable) NSString *lastName;
|
|
36
|
+
@property BOOL newsletterSubscribed;
|
|
37
|
+
@property (nullable) NSString *phoneNumber;
|
|
38
|
+
@property (nullable) NSString *street;
|
|
39
|
+
@property (nullable) NSString *streetNumber;
|
|
40
|
+
@property (nullable) NSString *zipCode;
|
|
41
|
+
@property (nullable) NSDictionary<NSNumber* ,NSString*>* customCategories;
|
|
42
|
+
|
|
43
|
+
- (instancetype)initWithCustomProperties: (NSDictionary<NSNumber* ,NSString*>* _Nullable) properties;
|
|
44
|
+
- (instancetype)initWithDictionary:(NSDictionary*)dictionary;
|
|
45
|
+
- (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
|
|
46
|
+
|
|
47
|
+
@end
|
|
48
|
+
|
|
49
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MIWebViewTracker.h
|
|
3
|
+
// MappIntelligenceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Miroljub Stoilkovic on 08/12/2020.
|
|
6
|
+
// Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <WebKit/WebKit.h>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@interface MIWebViewTracker : NSObject<WKScriptMessageHandler>
|
|
15
|
+
|
|
16
|
+
+ (nullable instancetype)sharedInstance;
|
|
17
|
+
-(WKWebViewConfiguration *_Nonnull) updateConfiguration: (WKWebViewConfiguration *_Nullable) configuration;
|
|
18
|
+
|
|
19
|
+
@end
|
|
20
|
+
|
|
21
|
+
NS_ASSUME_NONNULL_END
|