@selligent-marketing-cloud/selligent-react-native 2.6.0 → 2.9.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 +32 -0
- package/README.md +77 -4
- package/RNSelligent.podspec +4 -4
- 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 +16 -0
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +2 -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 +6422 -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/incremental/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/packageDebugResources/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 +16 -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 +4812 -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 +14 -18
- package/android/libs/sdk-release.aar +0 -0
- package/android/src/main/java/com/selligent/SMSettingsFactory.java +3 -0
- package/android/src/main/java/com/selligent/Settings.java +24 -0
- package/constants.js +1 -1
- package/index.js +2 -1
- package/ios/SMManagerSetting+ClientSettings.m +2 -2
- package/ios/SelligentReactNative.xcodeproj/project.pbxproj +4 -12
- package/ios/include/SMEvent.h +1 -1
- package/ios/include/SMInAppContentImageViewController.h +0 -1
- package/ios/include/SMInAppContentViewController.h +0 -1
- package/ios/include/SMInAppMessageType.h +1 -1
- package/ios/include/SMManager+InAppMessage.h +3 -3
- package/ios/include/SMManager+RemoteNotification.h +1 -1
- package/ios/include/SMManager+UserNotification.h +17 -4
- package/ios/include/SMManager.h +1 -1
- package/ios/include/SMManagerInAppMessageDelegate.h +2 -2
- package/ios/include/SMManagerSetting+Location.h +1 -1
- package/ios/include/SMManagerSetting.h +2 -2
- package/ios/include/SMNSNotification.h +4 -10
- package/ios/include/SMNotificationButtonType.h +0 -12
- package/ios/include/SMRemoteMessageDisplayType.h +2 -2
- package/ios/{libSelligentMobile2.7.a → libSelligentMobile.a} +0 -0
- package/package.json +3 -3
- package/trigger.yml +9 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
-- Merging decision tree log ---
|
|
2
|
+
manifest
|
|
3
|
+
ADDED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml:2:1-5:12
|
|
4
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml:2:1-5:12
|
|
5
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml:2:1-5:12
|
|
6
|
+
package
|
|
7
|
+
ADDED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml:3:11-34
|
|
8
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
9
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
10
|
+
xmlns:android
|
|
11
|
+
ADDED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml:2:11-69
|
|
12
|
+
uses-sdk
|
|
13
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml reason: use-sdk injection requested
|
|
14
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
15
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
16
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
17
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
18
|
+
android:targetSdkVersion
|
|
19
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
20
|
+
ADDED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
21
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
22
|
+
android:minSdkVersion
|
|
23
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
24
|
+
ADDED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
|
25
|
+
INJECTED from /Users/ben/Documents/code/appfoundry/selligent/af-selligent-react-native-module-dev-env/node_modules/selligent-react-native/android/src/main/AndroidManifest.xml
|
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
buildscript {
|
|
2
2
|
repositories {
|
|
3
|
-
jcenter()
|
|
4
3
|
google()
|
|
4
|
+
mavenCentral()
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
dependencies {
|
|
@@ -10,15 +10,16 @@ buildscript {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
apply plugin: 'com.android.library'
|
|
13
|
-
apply plugin: 'maven'
|
|
13
|
+
apply plugin: 'maven-publish'
|
|
14
14
|
|
|
15
15
|
android {
|
|
16
|
-
compileSdkVersion
|
|
17
|
-
buildToolsVersion "
|
|
16
|
+
compileSdkVersion 30
|
|
17
|
+
buildToolsVersion "30.0.2"
|
|
18
18
|
|
|
19
19
|
defaultConfig {
|
|
20
|
-
minSdkVersion
|
|
21
|
-
targetSdkVersion
|
|
20
|
+
minSdkVersion 21
|
|
21
|
+
targetSdkVersion 30
|
|
22
|
+
ndkVersion = "21.4.7075529"
|
|
22
23
|
versionCode 1
|
|
23
24
|
versionName "1.0"
|
|
24
25
|
}
|
|
@@ -92,7 +93,7 @@ afterEvaluate { project ->
|
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
95
|
-
|
|
96
|
+
archiveClassifier = 'javadoc'
|
|
96
97
|
from androidJavadoc.destinationDir
|
|
97
98
|
}
|
|
98
99
|
|
|
@@ -109,17 +110,12 @@ afterEvaluate { project ->
|
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
configuration = configurations.archives
|
|
119
|
-
repositories.mavenDeployer {
|
|
120
|
-
repository url: "file://${projectDir}/../android/maven"
|
|
121
|
-
|
|
122
|
-
configureReactNativePom pom
|
|
113
|
+
publishing {
|
|
114
|
+
publications {
|
|
115
|
+
maven(MavenPublication) {
|
|
116
|
+
artifact androidSourcesJar
|
|
117
|
+
artifact androidJavadocJar
|
|
118
|
+
}
|
|
123
119
|
}
|
|
124
120
|
}
|
|
125
121
|
}
|
|
Binary file
|
|
@@ -15,6 +15,9 @@ class SMSettingsFactory {
|
|
|
15
15
|
smSettings.DoNotFetchTheToken = settings.getDoNotFetchTheToken();
|
|
16
16
|
smSettings.DoNotListenToThePush = settings.getDoNotListenToThePush();
|
|
17
17
|
smSettings.LoadCacheAsynchronously = settings.getLoadCacheAsynchronously();
|
|
18
|
+
smSettings.NotificationChannelId = settings.getNotificationChannelId();
|
|
19
|
+
smSettings.NotificationChannelName = settings.getNotificationChannelName();
|
|
20
|
+
smSettings.NotificationChannelDescription = settings.getNotificationChannelDescription();
|
|
18
21
|
|
|
19
22
|
final ClearCacheIntervalValue clearCacheIntervalValue = settings.getClearCacheIntervalValue();
|
|
20
23
|
if (clearCacheIntervalValue != null) {
|
|
@@ -21,6 +21,9 @@ class Settings {
|
|
|
21
21
|
private ClearCacheIntervalValue clearCacheIntervalValue;
|
|
22
22
|
private InAppMessageRefreshType inAppMessageRefreshType;
|
|
23
23
|
private RemoteMessageDisplayType remoteMessageDisplayType;
|
|
24
|
+
private String notificationChannelId = "SMChannel001";
|
|
25
|
+
private String notificationChannelName = "SMDefaultChannel";
|
|
26
|
+
private String notificationChannelDescription = "";
|
|
24
27
|
|
|
25
28
|
private Settings() { }
|
|
26
29
|
|
|
@@ -80,6 +83,18 @@ class Settings {
|
|
|
80
83
|
return remoteMessageDisplayType;
|
|
81
84
|
}
|
|
82
85
|
|
|
86
|
+
public String getNotificationChannelId() {
|
|
87
|
+
return notificationChannelId;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public String getNotificationChannelName() {
|
|
91
|
+
return notificationChannelName;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public String getNotificationChannelDescription() {
|
|
95
|
+
return notificationChannelDescription;
|
|
96
|
+
}
|
|
97
|
+
|
|
83
98
|
public static Settings fromHashMap(HashMap<String, Object> settingsHashMap) {
|
|
84
99
|
final Settings settings = new Settings();
|
|
85
100
|
|
|
@@ -122,6 +137,15 @@ class Settings {
|
|
|
122
137
|
if (settingsHashMap.containsKey("loadCacheAsynchronously")) {
|
|
123
138
|
settings.loadCacheAsynchronously = (Boolean) settingsHashMap.get("loadCacheAsynchronously");
|
|
124
139
|
}
|
|
140
|
+
if (settingsHashMap.containsKey("notificationChannelId")) {
|
|
141
|
+
settings.notificationChannelId = (String) settingsHashMap.get("notificationChannelId");
|
|
142
|
+
}
|
|
143
|
+
if (settingsHashMap.containsKey("notificationChannelName")) {
|
|
144
|
+
settings.notificationChannelName = (String) settingsHashMap.get("notificationChannelName");
|
|
145
|
+
}
|
|
146
|
+
if (settingsHashMap.containsKey("notificationChannelDescription")) {
|
|
147
|
+
settings.notificationChannelDescription = (String) settingsHashMap.get("notificationChannelDescription");
|
|
148
|
+
}
|
|
125
149
|
|
|
126
150
|
final Double clearCacheIndex = (Double) settingsHashMap.get("clearCacheIntervalValue");
|
|
127
151
|
if (clearCacheIndex != null) {
|
package/constants.js
CHANGED
|
@@ -106,7 +106,7 @@ var SelligentConstants = {
|
|
|
106
106
|
* @description
|
|
107
107
|
* Description of the possible status of use of location services on a device.
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
iOSLocationAuthorisationStatus: {
|
|
110
110
|
/** Status of use of location services is unknown */
|
|
111
111
|
UNKNOWN: 70,
|
|
112
112
|
/** Use of location services is refused */
|
package/index.js
CHANGED
|
@@ -107,7 +107,7 @@ export default Object.assign(
|
|
|
107
107
|
* @param {function} errorCallback Callback function on error.
|
|
108
108
|
* @param {boolean} enabled Boolean to enable or disable geolocation.
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
enableGeolocation: function (successCallback, errorCallback, enabled) {
|
|
111
111
|
// check if required options are valid
|
|
112
112
|
if (!SelligentHelpers.typeMatches(enabled, 'boolean')) {
|
|
113
113
|
errorCallback(SelligentHelpers.wrongArgumentError('Expected a boolean.'))
|
|
@@ -129,6 +129,7 @@ export default Object.assign(
|
|
|
129
129
|
RNSelligent.isGeolocationEnabled(successCallback)
|
|
130
130
|
return
|
|
131
131
|
},
|
|
132
|
+
|
|
132
133
|
// Event
|
|
133
134
|
|
|
134
135
|
/**
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
if(shouldClearBadgeAsNumber) {
|
|
36
36
|
settings.shouldClearBadge = shouldClearBadgeAsNumber.boolValue;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
|
|
39
|
+
if(clientSettings.configureLocationServices.boolValue) {
|
|
40
40
|
[settings configureLocationService];
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
|
|
10
|
+
60698C70276254340003E3AD /* libSelligentMobile.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 60698C6F276254340003E3AD /* libSelligentMobile.a */; };
|
|
11
11
|
B3E7B58A1CC2AC0600A0062D /* RNSelligent.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNSelligent.m */; };
|
|
12
12
|
E5002D3320F5002A00F68509 /* ClientSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = E5002D3120F5002A00F68509 /* ClientSettings.m */; };
|
|
13
13
|
E5002D3620F5004200F68509 /* SMManagerSetting+ClientSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = E5002D3520F5004200F68509 /* SMManagerSetting+ClientSettings.m */; };
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
/* Begin PBXFileReference section */
|
|
34
34
|
134814201AA4EA6300B7C361 /* libRNSelligent.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNSelligent.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
35
|
-
|
|
35
|
+
60698C6F276254340003E3AD /* libSelligentMobile.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libSelligentMobile.a; sourceTree = "<group>"; };
|
|
36
36
|
B3E7B5881CC2AC0600A0062D /* RNSelligent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSelligent.h; sourceTree = "<group>"; };
|
|
37
37
|
B3E7B5891CC2AC0600A0062D /* RNSelligent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNSelligent.m; sourceTree = "<group>"; };
|
|
38
38
|
E5002D3120F5002A00F68509 /* ClientSettings.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ClientSettings.m; sourceTree = "<group>"; };
|
|
@@ -48,8 +48,6 @@
|
|
|
48
48
|
E5002D3F20F5015A00F68509 /* EnumMapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EnumMapper.h; sourceTree = "<group>"; };
|
|
49
49
|
E5002D4020F5015A00F68509 /* EnumMapper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EnumMapper.m; sourceTree = "<group>"; };
|
|
50
50
|
E5002D4220F5018200F68509 /* InAppMessageRefreshType.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InAppMessageRefreshType.h; sourceTree = "<group>"; };
|
|
51
|
-
E5002D4320F5019500F68509 /* LocationAuthorisationStatus.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LocationAuthorisationStatus.h; sourceTree = "<group>"; };
|
|
52
|
-
E5002D4420F5019500F68509 /* LocationAuthorisationType.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LocationAuthorisationType.h; sourceTree = "<group>"; };
|
|
53
51
|
E5002D4520F501A400F68509 /* ClearCacheInterval.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ClearCacheInterval.h; sourceTree = "<group>"; };
|
|
54
52
|
E5002D4620F501A400F68509 /* NotificationButtonType.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NotificationButtonType.h; sourceTree = "<group>"; };
|
|
55
53
|
E5002D4720F501B000F68509 /* BackgroundFetchResult.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BackgroundFetchResult.h; sourceTree = "<group>"; };
|
|
@@ -99,9 +97,7 @@
|
|
|
99
97
|
E58A8CD320F32CB4005EA433 /* SMContentAlignment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMContentAlignment.h; sourceTree = "<group>"; };
|
|
100
98
|
E58A8CD420F32CB4005EA433 /* SMHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMHelper.h; sourceTree = "<group>"; };
|
|
101
99
|
E58A8CD520F32CB4005EA433 /* SMInAppContentViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMInAppContentViewController.h; sourceTree = "<group>"; };
|
|
102
|
-
E58A8CD620F32CB4005EA433 /* SMLocationAuthorisationType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMLocationAuthorisationType.h; sourceTree = "<group>"; };
|
|
103
100
|
E58A8CD720F32CB4005EA433 /* SMInAppContentImageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMInAppContentImageViewController.h; sourceTree = "<group>"; };
|
|
104
|
-
E58A8CD820F32CB4005EA433 /* SMManager+Location.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "SMManager+Location.h"; sourceTree = "<group>"; };
|
|
105
101
|
E58A8CD920F32CB4005EA433 /* SMEventUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SMEventUser.h; sourceTree = "<group>"; };
|
|
106
102
|
/* End PBXFileReference section */
|
|
107
103
|
|
|
@@ -110,7 +106,7 @@
|
|
|
110
106
|
isa = PBXFrameworksBuildPhase;
|
|
111
107
|
buildActionMask = 2147483647;
|
|
112
108
|
files = (
|
|
113
|
-
|
|
109
|
+
60698C70276254340003E3AD /* libSelligentMobile.a in Frameworks */,
|
|
114
110
|
);
|
|
115
111
|
runOnlyForDeploymentPostprocessing = 0;
|
|
116
112
|
};
|
|
@@ -128,7 +124,7 @@
|
|
|
128
124
|
58B511D21A9E6C8500147676 = {
|
|
129
125
|
isa = PBXGroup;
|
|
130
126
|
children = (
|
|
131
|
-
|
|
127
|
+
60698C6F276254340003E3AD /* libSelligentMobile.a */,
|
|
132
128
|
E58A8CAC20F32CB4005EA433 /* include */,
|
|
133
129
|
E5002D3720F500C200F68509 /* SelligentLogger.h */,
|
|
134
130
|
E5002D3820F500C200F68509 /* SelligentLogger.m */,
|
|
@@ -149,8 +145,6 @@
|
|
|
149
145
|
E5002D4720F501B000F68509 /* BackgroundFetchResult.h */,
|
|
150
146
|
E5002D4520F501A400F68509 /* ClearCacheInterval.h */,
|
|
151
147
|
E5002D4620F501A400F68509 /* NotificationButtonType.h */,
|
|
152
|
-
E5002D4320F5019500F68509 /* LocationAuthorisationStatus.h */,
|
|
153
|
-
E5002D4420F5019500F68509 /* LocationAuthorisationType.h */,
|
|
154
148
|
E5002D4220F5018200F68509 /* InAppMessageRefreshType.h */,
|
|
155
149
|
E51D94E820FF88DB00069B07 /* EventType.h */,
|
|
156
150
|
E5002D3F20F5015A00F68509 /* EnumMapper.h */,
|
|
@@ -203,9 +197,7 @@
|
|
|
203
197
|
E58A8CD320F32CB4005EA433 /* SMContentAlignment.h */,
|
|
204
198
|
E58A8CD420F32CB4005EA433 /* SMHelper.h */,
|
|
205
199
|
E58A8CD520F32CB4005EA433 /* SMInAppContentViewController.h */,
|
|
206
|
-
E58A8CD620F32CB4005EA433 /* SMLocationAuthorisationType.h */,
|
|
207
200
|
E58A8CD720F32CB4005EA433 /* SMInAppContentImageViewController.h */,
|
|
208
|
-
E58A8CD820F32CB4005EA433 /* SMManager+Location.h */,
|
|
209
201
|
E58A8CD920F32CB4005EA433 /* SMEventUser.h */,
|
|
210
202
|
);
|
|
211
203
|
path = include;
|
package/ios/include/SMEvent.h
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
+ (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
|
|
35
35
|
|
|
36
36
|
/*!
|
|
37
|
-
* Allow to
|
|
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
38
|
*
|
|
39
39
|
* @param blockSuccess An SMCompletionBlockSuccess block that will be triggered if the send to the platform is successfull
|
|
40
40
|
* @param blockFailure An SMCompletionBlockFailure block that will be triggered if the send to the platform has failed
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* Since sdk v 2.5 you have the possibility to store the In App Message on your side and process them the way you want
|
|
49
49
|
* In order to do that, once you are notified that In App Messages are available you can call getInAppMessages to receive a NSArray of SMInAppMessage
|
|
50
50
|
* Once a SMInAppMessage has been displayed and has been seen by the user you need to call setInAppMessageAsSeen: to inform Selligent that the In App message has been opened
|
|
51
|
-
* In case there is links in the In App Message and in case one of the link is triggered by user please call executeLinkAction:: to process
|
|
51
|
+
* In case there is links in the In App Message and in case one of the link is triggered by user please call executeLinkAction:: to process the action related to the link and inform Selligent that the link has been clicked
|
|
52
52
|
*
|
|
53
53
|
* ##Fetching modes
|
|
54
54
|
* IAM may be retrieved from two different modes corresponding to the application's state:
|
|
@@ -161,8 +161,8 @@
|
|
|
161
161
|
- (void) removeViewController;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* Used to let the app display the
|
|
165
|
-
* @abstract this setting will allow you to manage on app side the display of the
|
|
164
|
+
* Used to let the app display the in-app message linked to a remote notification
|
|
165
|
+
* @abstract this setting will allow you to manage on app side the display of the in-app message linked to a push remote notification
|
|
166
166
|
* In order to display it in your side the delegate object should implement [SMManagerInAppMessageDelegate displayInAppMessage:] method it will provide tha app with a SMInAppMessage object
|
|
167
167
|
* @param delegate an object implementing SMManagerInAppMessageDelegate methods
|
|
168
168
|
* @see SMManagerInAppMessageDelegate
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
* At this stage, only the very last remote-notification can be recovered, previous ones are automaticly overriden.
|
|
154
154
|
* To learn more about this API, please read documentation in [SMManagerSetting](SMManagerSetting), more particularly [SMManagerSetting shouldDisplayRemoteNotification]
|
|
155
155
|
*/
|
|
156
|
-
- (NSDictionary*_Nullable)retrieveLastRemotePushNotification;
|
|
156
|
+
- (NSDictionary*_Nullable) retrieveLastRemotePushNotification;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
159
|
* Tells to the SDK that a certain SMNotificationMessage object has been seen.
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
* Mandatory method which allows sdk initialisation when building against iOS 10+ and using Notification Extensions .
|
|
104
104
|
* To be included in didReceiveNotification: when implementing Notification content extension and/or in didReceiveNotificationRequest:withContentHandler: when implementing Notification service extension
|
|
105
105
|
*
|
|
106
|
-
* @param setting mandatory SMManagerSetting instance to start-up the library - this setting mus tbe
|
|
106
|
+
* @param setting mandatory SMManagerSetting instance to start-up the library - this setting mus tbe initialized with only url, clienID and privateKet provided by selligent
|
|
107
107
|
* @see SMManagerSetting
|
|
108
|
-
* @discussion This method is mandatory in order to start /
|
|
108
|
+
* @discussion This method is mandatory in order to start / initialize the library and should be called in in didReceiveNotification: when implementing Notification content extension and/or in didReceiveNotificationRequest:withContentHandler: when implementing Notification service extension
|
|
109
109
|
* @see SMManagerSetting
|
|
110
110
|
*/
|
|
111
111
|
- (void) startExtensionWithSetting:(SMManagerSetting*_Nonnull)setting;
|
|
@@ -120,7 +120,20 @@
|
|
|
120
120
|
*
|
|
121
121
|
* @param notification A UNNotification that contains information about the notification.
|
|
122
122
|
*/
|
|
123
|
-
- (void) didReceiveNotification:(UNNotification*_Nonnull)notification;
|
|
123
|
+
- (void) didReceiveNotification:(UNNotification*_Nonnull)notification __deprecated_msg("Method deprecated. Use `didReceiveNotification:withContext:`");
|
|
124
|
+
|
|
125
|
+
/*!
|
|
126
|
+
* Optional API, when building against iOS 10+ and using a Notification Content Extension target, to be included in NotificationViewController didReceiveNotification:
|
|
127
|
+
* Handle the push action buttons that may be present in the selligent notification payload
|
|
128
|
+
*
|
|
129
|
+
* This allows the SDK to display the action buttons in the push notification outside of the app.
|
|
130
|
+
*
|
|
131
|
+
* The category that must be added to Info.plist of the Notification Content Extension target is mandatory and must be SELLIGENT_BUTTON.
|
|
132
|
+
*
|
|
133
|
+
* @param notification A UNNotification that contains information about the notification.
|
|
134
|
+
* @param context A NSExtensionContext that contains the context information of the extension.
|
|
135
|
+
*/
|
|
136
|
+
- (void) didReceiveNotification:(UNNotification*_Nonnull)notification withContext:(NSExtensionContext*_Nullable)context;
|
|
124
137
|
|
|
125
138
|
/*!
|
|
126
139
|
* Optional API, when building against iOS 10+ and using a Notification Service Extension target, to be included in NotificationService didReceiveNotificationRequest:withContentHandler:
|
|
@@ -142,7 +155,7 @@
|
|
|
142
155
|
*
|
|
143
156
|
* @param request An UNNotificationRequest that contains the original notification request.
|
|
144
157
|
* @param contentHandler The block to execute with the modified content
|
|
145
|
-
* @discussion you can use this method if you want the sdk to manage the display of the notification after
|
|
158
|
+
* @discussion you can use this method if you want the sdk to manage the display of the notification after the decryption has been processed
|
|
146
159
|
*/
|
|
147
160
|
- (void) didReceiveNotificationRequest:(UNNotificationRequest*_Nonnull)request withContentHandler:(void (^_Nullable)(UNNotificationContent*_Nonnull))contentHandler;
|
|
148
161
|
|
package/ios/include/SMManager.h
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* @param launchOptions NSDictionary instance indicating the reason the app was launched (if any). This dictionary is provided by application:didFinishLaunchingWithOptions
|
|
47
47
|
* @param setting mandatory SMManagerSetting instance to start-up the library
|
|
48
48
|
* @see SMManagerSetting
|
|
49
|
-
* @discussion This method is mandatory in order to start /
|
|
49
|
+
* @discussion This method is mandatory in order to start / initialize the library and should be called in application:didFinishLaunchingWithOptions:
|
|
50
50
|
*/
|
|
51
51
|
- (void) startWithLaunchOptions:(NSDictionary* _Nullable)launchOptions Setting:(SMManagerSetting* _Null_unspecified)setting;
|
|
52
52
|
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
#import "SMInAppMessage.h"
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* This protocol will help you intercept the
|
|
13
|
+
* This protocol will help you intercept the in-app messages and allow you to display them your own way or store them somewhere to be shown later.
|
|
14
14
|
*/
|
|
15
15
|
@protocol SMManagerInAppMessageDelegate <NSObject>
|
|
16
16
|
@optional
|
|
17
17
|
|
|
18
18
|
/*!
|
|
19
|
-
* @abstract Invoked when an
|
|
19
|
+
* @abstract Invoked when an in-app message linked to a remote notification is received by sdk.
|
|
20
20
|
* @param inAppMessage The inAppMessage object containing all necessary datas for you to display content of the message
|
|
21
21
|
*/
|
|
22
22
|
- (void) displayInAppMessage:(SMInAppMessage*_Nonnull)inAppMessage;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* Optional API to enable location services.
|
|
18
18
|
*
|
|
19
19
|
* @discussion This call is useless if the sdk version is not the one associated to the plotproject framework
|
|
20
|
-
* However in
|
|
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
21
|
* It is the first step to inform the sdk that geo location services are going to be used by the
|
|
22
22
|
*
|
|
23
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
|
|
@@ -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
|
};
|
|
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.9.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": "17.0.
|
|
30
|
-
"react-native": "^0.
|
|
29
|
+
"react": "17.0.2",
|
|
30
|
+
"react-native": "^0.67.2"
|
|
31
31
|
}
|
|
32
32
|
}
|