@selligent-marketing-cloud/selligent-react-native 3.1.0 → 3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -1550
- package/RNSelligent.podspec +8 -15
- package/android/build.gradle +46 -79
- package/android/src/main/java/com/selligent/BroadcastEventType.java +4 -1
- package/android/src/main/java/com/selligent/ButtonAction.java +81 -0
- package/android/src/main/java/com/selligent/ButtonBroadcastEventDataParser.java +9 -3
- package/android/src/main/java/com/selligent/DeviceIdBroadcastEventDataParser.java +15 -0
- package/android/src/main/java/com/selligent/EventType.java +1 -1
- package/android/src/main/java/com/selligent/GCMTokenBroadcastEventDataParser.java +6 -1
- package/android/src/main/java/com/selligent/InAppMessageBroadcastEventDataParser.java +7 -1
- package/android/src/main/java/com/selligent/NotificationMessageBroadcastEventDataParser.java +19 -0
- package/android/src/main/java/com/selligent/RNSelligent.java +195 -56
- package/android/src/main/java/com/selligent/SMSettingsFactory.java +0 -1
- package/android/src/main/java/com/selligent/Settings.java +0 -9
- package/constants.d.ts +7 -33
- package/constants.js +51 -85
- package/documentation/README.md +826 -0
- package/helpers.js +5 -6
- package/index.android.js +8 -83
- package/index.d.ts +33 -43
- package/index.ios.js +25 -76
- package/index.js +153 -45
- package/ios/RNSelligentMapper.h +21 -0
- package/ios/RNSelligentMapper.m +151 -0
- package/ios/RNSelligentMobileSDK.xcframework/Info.plist +40 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +350 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Info.plist +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.abi.json +2603 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/module.modulemap +4 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +179 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +696 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Info.plist +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2603 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2603 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/module.modulemap +4 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +234 -0
- package/package.json +30 -11
- package/.gitattributes +0 -1
- package/CHANGELOG.md +0 -68
- package/android/README.md +0 -15
- package/android/build/generated/source/buildConfig/debug/com/selligent/BuildConfig.java +0 -12
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -9
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -4
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -6781
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/ButtonBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/ClearCacheIntervalValue.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/Event.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/EventReceiver.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/EventType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/GCMTokenBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageRefreshType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$4.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$5.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligentPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RemoteMessageDisplayType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMSettingsFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/Settings.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -11
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -9
- package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -18
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -5100
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/libs/sdk-release.aar +0 -0
- package/documentation/add_json_file.png +0 -0
- package/documentation/add_lib_file.png +0 -0
- package/ios/BackgroundFetchResult.h +0 -5
- package/ios/ClearCacheInterval.h +0 -7
- package/ios/ClientSettings.h +0 -22
- package/ios/ClientSettings.m +0 -39
- package/ios/EnumMapper.h +0 -36
- package/ios/EnumMapper.m +0 -121
- package/ios/Event+SMEvent.h +0 -13
- package/ios/Event+SMEvent.m +0 -41
- package/ios/Event.h +0 -12
- package/ios/Event.m +0 -24
- package/ios/EventType.h +0 -7
- package/ios/InAppMessageRefreshType.h +0 -6
- package/ios/InAppMessageSettings.h +0 -9
- package/ios/InAppMessageSettings.m +0 -19
- package/ios/LocationAuthorisationStatus.h +0 -6
- package/ios/LocationAuthorisationType.h +0 -4
- package/ios/LogLevel.h +0 -9
- package/ios/NotificationButtonType.h +0 -15
- package/ios/ParsableObject.h +0 -5
- package/ios/RNSelligent.h +0 -22
- package/ios/RNSelligent.m +0 -347
- package/ios/RemoteMessageDisplayType.h +0 -5
- package/ios/SMManagerSetting+ClientSettings.h +0 -9
- package/ios/SMManagerSetting+ClientSettings.m +0 -73
- package/ios/SelligentLogger.h +0 -7
- package/ios/SelligentLogger.m +0 -9
- package/ios/SelligentReactNative.xcodeproj/project.pbxproj +0 -446
- package/ios/include/SMBaseMessage.h +0 -48
- package/ios/include/SMBlock.h +0 -21
- package/ios/include/SMClearCache.h +0 -34
- package/ios/include/SMContentAlignment.h +0 -27
- package/ios/include/SMDeviceInfos.h +0 -38
- package/ios/include/SMDisplayMode.h +0 -27
- package/ios/include/SMEvent.h +0 -69
- package/ios/include/SMEventUser.h +0 -20
- package/ios/include/SMEventUserLogin.h +0 -42
- package/ios/include/SMEventUserLogout.h +0 -42
- package/ios/include/SMEventUserRegistration.h +0 -42
- package/ios/include/SMEventUserUnregistration.h +0 -42
- package/ios/include/SMFailure.h +0 -19
- package/ios/include/SMHelper.h +0 -51
- package/ios/include/SMInAppContentHTMLViewController.h +0 -59
- package/ios/include/SMInAppContentImageViewController.h +0 -36
- package/ios/include/SMInAppContentMessage.h +0 -56
- package/ios/include/SMInAppContentStyleOptions.h +0 -511
- package/ios/include/SMInAppContentType.h +0 -35
- package/ios/include/SMInAppContentURLViewController.h +0 -36
- package/ios/include/SMInAppContentViewController.h +0 -31
- package/ios/include/SMInAppMessage.h +0 -51
- package/ios/include/SMInAppMessageType.h +0 -50
- package/ios/include/SMInAppRefreshType.h +0 -29
- package/ios/include/SMLink.h +0 -39
- package/ios/include/SMLog.h +0 -54
- package/ios/include/SMManager+DataTransaction.h +0 -33
- package/ios/include/SMManager+InAppContent.h +0 -170
- package/ios/include/SMManager+InAppMessage.h +0 -172
- package/ios/include/SMManager+Location.h +0 -41
- package/ios/include/SMManager+Log.h +0 -31
- package/ios/include/SMManager+RemoteNotification.h +0 -171
- package/ios/include/SMManager+SMEvent.h +0 -67
- package/ios/include/SMManager+SMLink.h +0 -44
- package/ios/include/SMManager+SilentPush.h +0 -53
- package/ios/include/SMManager+StyleOptions.h +0 -36
- package/ios/include/SMManager+UserNotification.h +0 -180
- package/ios/include/SMManager+ViewController.h +0 -45
- package/ios/include/SMManager.h +0 -69
- package/ios/include/SMManagerHelper.h +0 -18
- package/ios/include/SMManagerInAppMessageDelegate.h +0 -24
- package/ios/include/SMManagerSetting+Location.h +0 -27
- package/ios/include/SMManagerSetting.h +0 -180
- package/ios/include/SMManagerSettingIAC.h +0 -48
- package/ios/include/SMManagerSettingIAM.h +0 -49
- package/ios/include/SMManagerUniversalLinksDelegate.h +0 -23
- package/ios/include/SMMessage.h +0 -21
- package/ios/include/SMNSNotification.h +0 -81
- package/ios/include/SMNotificationAnnotationData.h +0 -33
- package/ios/include/SMNotificationButtonData.h +0 -20
- package/ios/include/SMNotificationButtonType.h +0 -90
- package/ios/include/SMNotificationMessage.h +0 -31
- package/ios/include/SMRemoteMessageDisplayType.h +0 -32
- package/ios/include/SMSuccess.h +0 -16
- package/ios/libSelligentMobile.a +0 -0
- package/trigger.yml +0 -9
package/ios/include/SMEvent.h
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMEvent.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 03/06/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#import "SMFailure.h"
|
|
12
|
-
#import "SMSuccess.h"
|
|
13
|
-
|
|
14
|
-
/*!
|
|
15
|
-
* This is the Base class for all type of events
|
|
16
|
-
*/
|
|
17
|
-
@interface SMEvent : NSObject
|
|
18
|
-
|
|
19
|
-
/*!
|
|
20
|
-
* Confirm if the current event should be cached or not
|
|
21
|
-
* @discussion If the event fail to be delivered to your backend, then by default, it is cached into an internal queue.
|
|
22
|
-
* After a while, the library will automaticly try to send it again.
|
|
23
|
-
* Should you want to prevent this behaviour, feel free to set this property to FALSE.
|
|
24
|
-
* By default, it is set to TRUE
|
|
25
|
-
*/
|
|
26
|
-
@property (nonatomic) BOOL shouldCache;
|
|
27
|
-
|
|
28
|
-
/*!
|
|
29
|
-
* Create a generic event object that will be sent to platform
|
|
30
|
-
*
|
|
31
|
-
* @param dict A Dictionary containing any kind of custom datas that must be stored and managed by platform
|
|
32
|
-
* @return An SMEvent object
|
|
33
|
-
*/
|
|
34
|
-
+ (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
|
|
35
|
-
|
|
36
|
-
/*!
|
|
37
|
-
* Allow to initialize a success block and/or a failure block that will be triggered after an event is sent to the platform
|
|
38
|
-
*
|
|
39
|
-
* @param blockSuccess An SMCompletionBlockSuccess block that will be triggered if the send to the platform is successfull
|
|
40
|
-
* @param blockFailure An SMCompletionBlockFailure block that will be triggered if the send to the platform has failed
|
|
41
|
-
* @discussion This method may be used as follow:
|
|
42
|
-
*
|
|
43
|
-
* @code
|
|
44
|
-
* NSDictionary *dictMyCustomData = @{@"MyKey": @"MyValue"};
|
|
45
|
-
*
|
|
46
|
-
* SMEvent *event = [SMEvent eventWithDictionary:dictMyCustomData];
|
|
47
|
-
*
|
|
48
|
-
* [event applyBlockSuccess:^(SMSuccess *success) {
|
|
49
|
-
*
|
|
50
|
-
* // My code for success}
|
|
51
|
-
*
|
|
52
|
-
* BlockFailure:^(SMFailure *failure) {
|
|
53
|
-
*
|
|
54
|
-
* // My code for failure }];
|
|
55
|
-
*
|
|
56
|
-
* [[SMManager sharedInstance] sendSMEvent:event];
|
|
57
|
-
* @endcode
|
|
58
|
-
*
|
|
59
|
-
* This method is optional. Use it only if you need it.
|
|
60
|
-
* @warning It is developer's responsability to make sure no strong retrain cycles are added to the completion-blocks.
|
|
61
|
-
* Make sure to read the following [Apple documentation.](https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html#//apple_ref/doc/uid/TP40011210-CH8-SW16)
|
|
62
|
-
* @see SMCompletionBlockSuccess
|
|
63
|
-
* @see SMCompletionBlockFailure
|
|
64
|
-
*/
|
|
65
|
-
- (void) applyBlockSuccess:(SMCompletionBlockSuccess _Nullable)blockSuccess BlockFailure:(SMCompletionBlockFailure _Nullable)blockFailure;
|
|
66
|
-
|
|
67
|
-
@end
|
|
68
|
-
|
|
69
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMEventUser.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 05/06/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMEvent.h"
|
|
10
|
-
|
|
11
|
-
/*!
|
|
12
|
-
* @discussion Class representing all User-eventing
|
|
13
|
-
* Instances of this class should not be directly created.
|
|
14
|
-
* Please use children classes instead.
|
|
15
|
-
* #SMEventUser:#
|
|
16
|
-
*/
|
|
17
|
-
@interface SMEventUser : SMEvent
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
@end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMEventLogin.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 03/06/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMEventUser.h"
|
|
10
|
-
|
|
11
|
-
/*!
|
|
12
|
-
* User login event class
|
|
13
|
-
*/
|
|
14
|
-
@interface SMEventUserLogin : SMEventUser
|
|
15
|
-
|
|
16
|
-
/*!
|
|
17
|
-
* Create a UserLogin event object that will be sent to selligent platform when user logged in
|
|
18
|
-
*
|
|
19
|
-
* @param mail The e-mail of the user
|
|
20
|
-
* @return An SMEventUserLogin object
|
|
21
|
-
*/
|
|
22
|
-
+ (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail;
|
|
23
|
-
|
|
24
|
-
/*!
|
|
25
|
-
* Create a UserLogin event object that will be sent to selligent platform when user logged in
|
|
26
|
-
*
|
|
27
|
-
* @param mail The e-mail of the user
|
|
28
|
-
* @param dict A Dictionary containing a string as data that must be stored and managed by platform
|
|
29
|
-
* If email is not provided you can use in the dictionary an alternate key/value field to search for the user
|
|
30
|
-
* @return An SMEventUserLogin object
|
|
31
|
-
*/
|
|
32
|
-
+ (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
|
|
33
|
-
|
|
34
|
-
/*!
|
|
35
|
-
* Create a UserLogin event object that will be sent to platform
|
|
36
|
-
*
|
|
37
|
-
* @param dict A Dictionary containing an alternate key/value field to search for the user
|
|
38
|
-
* @return An SMEventUserLogin object
|
|
39
|
-
*/
|
|
40
|
-
+ (instancetype _Nonnull)eventWithDictionary:(NSDictionary* _Nullable)dict;
|
|
41
|
-
|
|
42
|
-
@end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMEventLogout.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 03/06/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMEventUser.h"
|
|
10
|
-
|
|
11
|
-
/*!
|
|
12
|
-
* User logout event class
|
|
13
|
-
*/
|
|
14
|
-
@interface SMEventUserLogout : SMEventUser
|
|
15
|
-
|
|
16
|
-
/*!
|
|
17
|
-
* Create a UserLogout event object that will be sent to selligent platform when user logged out
|
|
18
|
-
*
|
|
19
|
-
* @param mail The e-mail of the user
|
|
20
|
-
* @return An SMEventUserLogout object
|
|
21
|
-
*/
|
|
22
|
-
+ (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail;
|
|
23
|
-
|
|
24
|
-
/*!
|
|
25
|
-
* Create a UserLogout event object that will be sent to selligent platform when user logged out
|
|
26
|
-
*
|
|
27
|
-
* @param mail The e-mail of the user
|
|
28
|
-
* @param dict A Dictionary containing a string as data that must be stored and managed by platform
|
|
29
|
-
* If email is not provided you can use in the dictionary an alternate key/value field to search for the user
|
|
30
|
-
* @return An SMEventUserLogout object
|
|
31
|
-
*/
|
|
32
|
-
+ (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
|
|
33
|
-
|
|
34
|
-
/*!
|
|
35
|
-
* Create a UserLogout event object that will be sent to platform
|
|
36
|
-
*
|
|
37
|
-
* @param dict A Dictionary containing an alternate key/value field to search for the user
|
|
38
|
-
* @return An SMEventUserLogout object
|
|
39
|
-
*/
|
|
40
|
-
+ (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
|
|
41
|
-
|
|
42
|
-
@end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMEventRegistration.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 03/06/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMEventUser.h"
|
|
10
|
-
|
|
11
|
-
/*!
|
|
12
|
-
* User registration event class
|
|
13
|
-
*/
|
|
14
|
-
@interface SMEventUserRegistration : SMEventUser
|
|
15
|
-
|
|
16
|
-
/*!
|
|
17
|
-
* Create a UserRegistration event object that will be sent to selligent platform when user registered
|
|
18
|
-
*
|
|
19
|
-
* @param mail The e-mail of the user
|
|
20
|
-
* @return An SMEventUserRegistration object
|
|
21
|
-
*/
|
|
22
|
-
+ (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail;
|
|
23
|
-
|
|
24
|
-
/*!
|
|
25
|
-
* Create a UserRegistration event object that will be sent to selligent platform when user registered
|
|
26
|
-
*
|
|
27
|
-
* @param mail The e-mail of the user
|
|
28
|
-
* @param dict A Dictionary containing a string as data that must be stored and managed by platform
|
|
29
|
-
* If email is not provided you can use in the dictionary an alternate key/value field to search for the user
|
|
30
|
-
* @return An SMEventUserRegistration object
|
|
31
|
-
*/
|
|
32
|
-
+ (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
|
|
33
|
-
|
|
34
|
-
/*!
|
|
35
|
-
* Create a UserRegistration event object that will be sent to platform
|
|
36
|
-
*
|
|
37
|
-
* @param dict A Dictionary containing an alternate key/value field to search for the user
|
|
38
|
-
* @return An SMEventUserRegistration object
|
|
39
|
-
*/
|
|
40
|
-
+ (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
|
|
41
|
-
|
|
42
|
-
@end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMEventUnregistration.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 03/06/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMEventUser.h"
|
|
10
|
-
|
|
11
|
-
/*!
|
|
12
|
-
* User unregistration event class
|
|
13
|
-
*/
|
|
14
|
-
@interface SMEventUserUnregistration : SMEventUser
|
|
15
|
-
|
|
16
|
-
/*!
|
|
17
|
-
* Create a UserUnregistration event object that will be sent to selligent platform when user unregistered
|
|
18
|
-
*
|
|
19
|
-
* @param mail The e-mail of the user
|
|
20
|
-
* @return An SMEventUserUnregistration object
|
|
21
|
-
*/
|
|
22
|
-
+ (instancetype _Nonnull) eventWithEmail:(NSString* _Null_unspecified)mail;
|
|
23
|
-
|
|
24
|
-
/*!
|
|
25
|
-
* Create a UserUnregistration event object that will be sent to selligent platform when user unregistered
|
|
26
|
-
*
|
|
27
|
-
* @param mail The e-mail of the user
|
|
28
|
-
* @param dict A Dictionary containing a string as data that must be stored and managed by platform
|
|
29
|
-
* If email is not provided you can use in the dictionary an alternate key/value field to search for the user
|
|
30
|
-
* @return An SMEventUserUnregistration object
|
|
31
|
-
*/
|
|
32
|
-
+ (instancetype _Nonnull) eventWithEmail:(NSString* _Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>* _Nullable)dict;
|
|
33
|
-
|
|
34
|
-
/*!
|
|
35
|
-
* Create a UserUnregistration event object that will be sent to platform
|
|
36
|
-
*
|
|
37
|
-
* @param dict A Dictionary containing an alternate key/value field to search for the user
|
|
38
|
-
* @return An SMEventUserUnregistration object
|
|
39
|
-
*/
|
|
40
|
-
+ (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
|
|
41
|
-
|
|
42
|
-
@end
|
package/ios/include/SMFailure.h
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMFailure.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gauthier Dumont on 09/06/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMMessage.h"
|
|
10
|
-
|
|
11
|
-
/*!
|
|
12
|
-
* This class is used to return any error
|
|
13
|
-
*/
|
|
14
|
-
@interface SMFailure : SMMessage
|
|
15
|
-
|
|
16
|
-
@end
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
package/ios/include/SMHelper.h
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMHelper+Location.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Marc Biosca on 6/29/21.
|
|
6
|
-
// Copyright © 2021 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMManager+Location.h"
|
|
10
|
-
#import "SMManagerSetting+Location.h"
|
|
11
|
-
|
|
12
|
-
#import "SMManagerHelper.h"
|
|
13
|
-
|
|
14
|
-
#import "SMNSNotification.h"
|
|
15
|
-
#import "SMLink.h"
|
|
16
|
-
#import "SMNotificationButtonData.h"
|
|
17
|
-
#import "SMNotificationAnnotationData.h"
|
|
18
|
-
#import "SMNotificationMessage.h"
|
|
19
|
-
|
|
20
|
-
#import "SMManagerSetting.h"
|
|
21
|
-
#import "SMManagerSettingIAM.h"
|
|
22
|
-
#import "SMManagerSettingIAC.h"
|
|
23
|
-
|
|
24
|
-
#import "SMManager+DataTransaction.h"
|
|
25
|
-
#import "SMManager+RemoteNotification.h"
|
|
26
|
-
#import "SMManager+UserNotification.h"
|
|
27
|
-
#import "SMManager+InAppMessage.h"
|
|
28
|
-
#import "SMManager+InAppContent.h"
|
|
29
|
-
#import "SMManager+SilentPush.h"
|
|
30
|
-
#import "SMManager+SMEvent.h"
|
|
31
|
-
#import "SMManager+Log.h"
|
|
32
|
-
#import "SMManager+StyleOptions.h"
|
|
33
|
-
#import "SMManager+ViewController.h"
|
|
34
|
-
#import "SMManager+SMLink.h"
|
|
35
|
-
|
|
36
|
-
#import "SMManagerInAppMessageDelegate.h"
|
|
37
|
-
#import "SMManagerUniversalLinksDelegate.h"
|
|
38
|
-
|
|
39
|
-
#import "SMInAppContentImageViewController.h"
|
|
40
|
-
#import "SMInAppContentURLViewController.h"
|
|
41
|
-
#import "SMInAppContentHTMLViewController.h"
|
|
42
|
-
|
|
43
|
-
#import "SMInAppContentStyleOptions.h"
|
|
44
|
-
#import "SMContentAlignment.h"
|
|
45
|
-
|
|
46
|
-
#import "SMEventUserLogin.h"
|
|
47
|
-
#import "SMEventUserLogout.h"
|
|
48
|
-
#import "SMEventUserRegistration.h"
|
|
49
|
-
#import "SMEventUserUnregistration.h"
|
|
50
|
-
|
|
51
|
-
#import "SMDeviceInfos.h"
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMInAppContentHTMLViewController.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 15/04/16.
|
|
6
|
-
// Copyright © 2016 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMInAppContentViewController.h"
|
|
10
|
-
#import "SMInAppContentStyleOptions.h"
|
|
11
|
-
|
|
12
|
-
/*!
|
|
13
|
-
* A view controller for HTML In App Content
|
|
14
|
-
*/
|
|
15
|
-
@interface SMInAppContentHTMLViewController : SMInAppContentViewController
|
|
16
|
-
|
|
17
|
-
/*!
|
|
18
|
-
* This will provide you a custom viewcontroller with all HTML in app content for a specific category
|
|
19
|
-
*
|
|
20
|
-
* @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to define a UIContainerView which will contain the view controller
|
|
21
|
-
* @param category a NSString of the desired category of In App Content
|
|
22
|
-
* @return a SMInAppContentHTMLViewController
|
|
23
|
-
*/
|
|
24
|
-
+ (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category ;
|
|
25
|
-
|
|
26
|
-
/*!
|
|
27
|
-
* This will provide you a custom viewcontroller with all HTML in app content for a specific category
|
|
28
|
-
*
|
|
29
|
-
* @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to define a UIContainerView which will contain the view controller
|
|
30
|
-
* @param category a NSString of the desired category of In App Content
|
|
31
|
-
* @param options a SMInAppContentStyleOptions object allowing you to customise the in app content
|
|
32
|
-
* @return a SMInAppContentHTMLViewController
|
|
33
|
-
* @see SMInAppContentStyleOptions
|
|
34
|
-
*/
|
|
35
|
-
+ (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category AndOptions:(SMInAppContentStyleOptions*_Nullable)options ;
|
|
36
|
-
|
|
37
|
-
/*!
|
|
38
|
-
* This will provide you a custom viewcontroller with HTML in app content for a specific category
|
|
39
|
-
*
|
|
40
|
-
* @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to provide a UIContainerView which will contain the view controller
|
|
41
|
-
* @param category a NSString of the desired category of In App Content
|
|
42
|
-
* @param numberofboxes an int corresponding to the maximum numbers of html boxes that the view controller must contain
|
|
43
|
-
* @return a SMInAppContentHTMLViewController
|
|
44
|
-
*/
|
|
45
|
-
+ (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category InNumberOfBoxes:(int) numberofboxes ;
|
|
46
|
-
|
|
47
|
-
/*!
|
|
48
|
-
* This will provide you a custom viewcontroller with HTML in app content for a specific category
|
|
49
|
-
*
|
|
50
|
-
* @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to provide a UIContainerView which will contain the view controller
|
|
51
|
-
* @param category a NSString of the desired category of In App Content
|
|
52
|
-
* @param numberofboxes an int corresponding to the maximum numbers of html boxes that the view controller must contain
|
|
53
|
-
* @param options a SMInAppContentStyleOptions object allowing you to customise the in app content
|
|
54
|
-
* @return a SMInAppContentHTMLViewController
|
|
55
|
-
* @see SMInAppContentStyleOptions
|
|
56
|
-
*/
|
|
57
|
-
+ (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category InNumberOfBoxes:(int) numberofboxes AndOptions:(SMInAppContentStyleOptions*_Nullable)options ;
|
|
58
|
-
|
|
59
|
-
@end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMInAppContentImageViewController.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 05/04/16.
|
|
6
|
-
// Copyright © 2016 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMInAppContentViewController.h"
|
|
10
|
-
|
|
11
|
-
/*!
|
|
12
|
-
* A view controller for Image In App Content
|
|
13
|
-
*/
|
|
14
|
-
@interface SMInAppContentImageViewController : SMInAppContentViewController
|
|
15
|
-
|
|
16
|
-
/*!
|
|
17
|
-
* This will provide you a custom viewcontroller with one image view loaded with the url provided by an in app content for a specific category of image type
|
|
18
|
-
*
|
|
19
|
-
* @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to provide a UIContainerView which will contain the view controller
|
|
20
|
-
* @param category a NSString of the desired category of In App Content
|
|
21
|
-
* @return a SMInAppContentImageViewController
|
|
22
|
-
*/
|
|
23
|
-
+ (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category;
|
|
24
|
-
|
|
25
|
-
/*!
|
|
26
|
-
* This will provide you a custom viewcontroller with one web view loaded with the url provided by an in app content for a specific category of an Image type
|
|
27
|
-
*
|
|
28
|
-
* @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to define a UIContainerView which will contain the view controller
|
|
29
|
-
* @param category a NSString of the desired category of In App Content
|
|
30
|
-
* @param options a SMInAppContentStyleOptions object allowing you to customise the in app content
|
|
31
|
-
* @return a SMInAppContentImageViewController
|
|
32
|
-
* @see SMInAppContentStyleOptions
|
|
33
|
-
*/
|
|
34
|
-
+ (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category AndOptions:(SMInAppContentStyleOptions*_Nullable)options;
|
|
35
|
-
|
|
36
|
-
@end
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMInAppContent.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 15/03/16.
|
|
6
|
-
// Copyright © 2016 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import "SMBaseMessage.h"
|
|
11
|
-
#import "SMInAppContentType.h"
|
|
12
|
-
#import "SMDisplayMode.h"
|
|
13
|
-
|
|
14
|
-
@interface SMInAppContentMessage : SMBaseMessage
|
|
15
|
-
|
|
16
|
-
/*!
|
|
17
|
-
* NSString instance providing the title of the message
|
|
18
|
-
*/
|
|
19
|
-
@property (readonly, nonatomic) NSString *_Nullable title;
|
|
20
|
-
|
|
21
|
-
/*!
|
|
22
|
-
* NSString instance providing the content of the message
|
|
23
|
-
*/
|
|
24
|
-
@property (readonly, nonatomic) NSString *_Nullable body;
|
|
25
|
-
|
|
26
|
-
/*!
|
|
27
|
-
* NSString instance providing the category of the message
|
|
28
|
-
*/
|
|
29
|
-
@property (readonly, nonatomic) NSString *_Nullable category;
|
|
30
|
-
|
|
31
|
-
/*!
|
|
32
|
-
* SMInAppContentType instance providing the in app content type of the message
|
|
33
|
-
* @see SMInAppContentType
|
|
34
|
-
*/
|
|
35
|
-
@property (readonly, nonatomic) SMInAppContentType iacType;
|
|
36
|
-
|
|
37
|
-
/*!
|
|
38
|
-
* NSDate instance providing the expiration date of the message
|
|
39
|
-
*
|
|
40
|
-
* @warning Deprecated - use expirationDate on SMBaseMessage instead
|
|
41
|
-
*/
|
|
42
|
-
@property (readonly, nonatomic) NSDate *_Nullable contentExpiration __deprecated __deprecated_msg("Use expirationDate instead.");
|
|
43
|
-
|
|
44
|
-
/*!
|
|
45
|
-
* NSDate instance providing the creation date of the message
|
|
46
|
-
*
|
|
47
|
-
* @warning Deprecated - use creationDate on SMBaseMessage instead
|
|
48
|
-
*/
|
|
49
|
-
@property (readonly, nonatomic) NSDate *_Nullable contentCreation __deprecated __deprecated_msg("Use creationDate instead.");
|
|
50
|
-
|
|
51
|
-
/*!
|
|
52
|
-
* NSArray of SMLink objects
|
|
53
|
-
*/
|
|
54
|
-
@property (readonly, nonatomic) NSArray *_Nullable arrayIACLinks;
|
|
55
|
-
|
|
56
|
-
@end
|