@selligent-marketing-cloud/selligent-react-native 2.7.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -0
- package/README.md +241 -16
- package/RNSelligent.podspec +1 -0
- package/android/build/generated/source/buildConfig/debug/com/selligent/BuildConfig.java +12 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +9 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +4 -0
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- 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 +6535 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- 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 +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +11 -0
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +9 -0
- package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +18 -0
- 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 +4893 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +25 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build.gradle +35 -43
- package/android/libs/sdk-release.aar +0 -0
- package/android/src/main/java/com/selligent/RNSelligent.java +15 -0
- package/android/src/main/java/com/selligent/SMSettingsFactory.java +4 -0
- package/android/src/main/java/com/selligent/Settings.java +33 -0
- package/constants.d.ts +12 -0
- package/constants.js +24 -0
- package/index.d.ts +6 -0
- package/index.js +32 -0
- package/ios/ClientSettings.h +1 -0
- package/ios/ClientSettings.m +2 -0
- package/ios/EnumMapper.h +2 -0
- package/ios/EnumMapper.m +2 -0
- package/ios/LocationAuthorisationStatus.h +6 -0
- package/ios/LocationAuthorisationType.h +4 -0
- package/ios/RNSelligent.m +14 -0
- package/ios/SMManagerSetting+ClientSettings.m +5 -0
- package/ios/include/SMEvent.h +1 -1
- package/ios/include/SMHelper.h +6 -3
- package/ios/include/SMManager+InAppMessage.h +2 -2
- package/ios/include/SMManager+Location.h +41 -0
- package/ios/include/SMManager+UserNotification.h +16 -3
- package/ios/include/SMManager.h +1 -1
- package/ios/include/SMManagerInAppMessageDelegate.h +2 -2
- package/ios/include/SMManagerSetting+Location.h +27 -0
- package/ios/include/SMManagerSetting.h +2 -2
- package/ios/include/SMNSNotification.h +4 -10
- package/ios/include/SMRemoteMessageDisplayType.h +2 -2
- package/ios/libSelligentMobile.a +0 -0
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// SMManagerSetting+Location.h
|
|
3
|
+
// MobileSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Marc Biosca on 6/28/21.
|
|
6
|
+
// Copyright © 2021 Selligent. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "SMManagerSetting.h"
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* This category will help you to enable the geolocation service.
|
|
13
|
+
*/
|
|
14
|
+
@interface SMManagerSetting (Location)
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Optional API to enable location services.
|
|
18
|
+
*
|
|
19
|
+
* @discussion This call is useless if the sdk version is not the one associated to the plotproject framework
|
|
20
|
+
* However in the case you are using the sdk version associated to plotproject framework, it is the first step to enable Location service.
|
|
21
|
+
* It is the first step to inform the sdk that geo location services are going to be used by the
|
|
22
|
+
*
|
|
23
|
+
* @warning To use location service you will mandatory need to have PlotProject.framework in your app and the correct version of the selligent sdk library
|
|
24
|
+
*/
|
|
25
|
+
- (void) configureLocationService;
|
|
26
|
+
|
|
27
|
+
@end
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
@property (nonatomic) BOOL shouldDisplayRemoteNotification;
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
|
-
* Used to add the
|
|
71
|
+
* Used to add the in-app message associated to a remote notification to the in-app message list
|
|
72
72
|
*
|
|
73
|
-
* @discussion Once a new remote-notification is received, if it contains in the payload datas for an
|
|
73
|
+
* @discussion Once a new remote-notification is received, if it contains in the payload datas for an in-app message, this setting will add the in-app message to the in app messages list . You will need to listen to kSMNotification_Event_DidReceiveInAppMessage NSNotification to be informed that an in-app message is available and you can then retrieve it with [SMManager(InAppMessages) getInAppMessages] helper method and use in an inbox for example
|
|
74
74
|
* by default the in app message will be displayed if you wish to display it by yourself you will need to provide a class by calling [SMManager(InAppMessage) inAppMessageDelegate:] . This class will conform to SMManagerInAppMessageDelegate protocol and implement [SMManagerInAppMessageDelegate displayInAppMessage:] method
|
|
75
75
|
* Default value is set to FALSE
|
|
76
76
|
*/
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
2
|
* NSString representing a notification name you can listen to.
|
|
8
3
|
* An NSNotification with this name is broadcasted when the user interacts with a remote-notification
|
|
@@ -35,15 +30,15 @@ extern NSString* kSMNotification_Event_DidReceiveRemoteNotification;
|
|
|
35
30
|
|
|
36
31
|
/**
|
|
37
32
|
* NSString representing a notification name you can listen to.
|
|
38
|
-
* An NSNotification with this name is broadcasted shortly after receiving
|
|
39
|
-
* Primary-application may use this notification to manage the received
|
|
33
|
+
* An NSNotification with this name is broadcasted shortly after receiving in-app messages
|
|
34
|
+
* Primary-application may use this notification to manage the received in-app messages
|
|
40
35
|
*/
|
|
41
36
|
extern NSString* kSMNotification_Event_DidReceiveInAppMessage;
|
|
42
37
|
|
|
43
38
|
/**
|
|
44
39
|
* NSString representing a notification name you can listen to.
|
|
45
|
-
* An NSNotification with this name is broadcasted shortly after receiving
|
|
46
|
-
* Primary-application may use this notification to manage the received
|
|
40
|
+
* An NSNotification with this name is broadcasted shortly after receiving in-app content
|
|
41
|
+
* Primary-application may use this notification to manage the received in-app content
|
|
47
42
|
*/
|
|
48
43
|
extern NSString* kSMNotification_Event_DidReceiveInAppContent;
|
|
49
44
|
|
|
@@ -61,7 +56,6 @@ extern NSString* kSMNotification_Event_DidReceiveDeviceId;
|
|
|
61
56
|
*/
|
|
62
57
|
extern NSString* kSMNotification_Data_ButtonData;
|
|
63
58
|
|
|
64
|
-
|
|
65
59
|
/**
|
|
66
60
|
* NSString representing a key to retrieve an object inside NSNotification
|
|
67
61
|
* Use the key kSMNotification_Data_RemoteNotification to retrieve an NSDictionary instance with push ID and name
|
|
@@ -16,7 +16,7 @@ typedef NS_ENUM (NSInteger, SMRemoteMessageDisplayType) {
|
|
|
16
16
|
kSMRemoteMessageDisplayType_Unknown = 0,
|
|
17
17
|
|
|
18
18
|
/*!
|
|
19
|
-
* No Push nor in-app
|
|
19
|
+
* No Push nor in-app messages will be displayed.
|
|
20
20
|
*/
|
|
21
21
|
kSMRemoteMessageDisplayType_None = 1,
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ typedef NS_ENUM (NSInteger, SMRemoteMessageDisplayType) {
|
|
|
26
26
|
kSMRemoteMessageDisplayType_Notification = 2,
|
|
27
27
|
|
|
28
28
|
/*!
|
|
29
|
-
* An in-app
|
|
29
|
+
* An in-app message will be displayed (when there is an in-app message available within the remote-notification payload).
|
|
30
30
|
*/
|
|
31
31
|
kSMRemoteMessageDisplayType_Automatic = 3
|
|
32
32
|
};
|
package/ios/libSelligentMobile.a
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selligent-marketing-cloud/selligent-react-native",
|
|
3
3
|
"title": "Selligent React Native",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.10.0",
|
|
5
5
|
"description": "React Native bridge for Selligent SDK",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-native": "*"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"react": "
|
|
30
|
-
"react-native": "^0.
|
|
29
|
+
"react": "18.1.0",
|
|
30
|
+
"react-native": "^0.70.0"
|
|
31
31
|
}
|
|
32
32
|
}
|