@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.
Files changed (80) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +241 -16
  3. package/RNSelligent.podspec +1 -0
  4. package/android/build/generated/source/buildConfig/debug/com/selligent/BuildConfig.java +12 -0
  5. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +9 -0
  6. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
  7. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +4 -0
  8. package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
  9. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  10. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  11. package/android/build/intermediates/compile_symbol_list/debug/R.txt +6535 -0
  12. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  13. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  14. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  15. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  16. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  17. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory$1.class +0 -0
  18. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory.class +0 -0
  19. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventDataParser.class +0 -0
  20. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventType.class +0 -0
  21. package/android/build/intermediates/javac/debug/classes/com/selligent/BuildConfig.class +0 -0
  22. package/android/build/intermediates/javac/debug/classes/com/selligent/ButtonBroadcastEventDataParser.class +0 -0
  23. package/android/build/intermediates/javac/debug/classes/com/selligent/ClearCacheIntervalValue.class +0 -0
  24. package/android/build/intermediates/javac/debug/classes/com/selligent/Event.class +0 -0
  25. package/android/build/intermediates/javac/debug/classes/com/selligent/EventReceiver.class +0 -0
  26. package/android/build/intermediates/javac/debug/classes/com/selligent/EventType.class +0 -0
  27. package/android/build/intermediates/javac/debug/classes/com/selligent/GCMTokenBroadcastEventDataParser.class +0 -0
  28. package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageBroadcastEventDataParser.class +0 -0
  29. package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageRefreshType.class +0 -0
  30. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$1.class +0 -0
  31. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$2.class +0 -0
  32. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$3.class +0 -0
  33. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$4.class +0 -0
  34. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$5.class +0 -0
  35. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent.class +0 -0
  36. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligentPackage.class +0 -0
  37. package/android/build/intermediates/javac/debug/classes/com/selligent/RemoteMessageDisplayType.class +0 -0
  38. package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory$1.class +0 -0
  39. package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory.class +0 -0
  40. package/android/build/intermediates/javac/debug/classes/com/selligent/SMSettingsFactory.class +0 -0
  41. package/android/build/intermediates/javac/debug/classes/com/selligent/Settings.class +0 -0
  42. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +2 -0
  43. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +11 -0
  44. package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +9 -0
  45. package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
  46. package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +18 -0
  47. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  48. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +4893 -0
  49. package/android/build/outputs/logs/manifest-merger-debug-report.txt +25 -0
  50. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  51. package/android/build.gradle +35 -43
  52. package/android/libs/sdk-release.aar +0 -0
  53. package/android/src/main/java/com/selligent/RNSelligent.java +15 -0
  54. package/android/src/main/java/com/selligent/SMSettingsFactory.java +4 -0
  55. package/android/src/main/java/com/selligent/Settings.java +33 -0
  56. package/constants.d.ts +12 -0
  57. package/constants.js +24 -0
  58. package/index.d.ts +6 -0
  59. package/index.js +32 -0
  60. package/ios/ClientSettings.h +1 -0
  61. package/ios/ClientSettings.m +2 -0
  62. package/ios/EnumMapper.h +2 -0
  63. package/ios/EnumMapper.m +2 -0
  64. package/ios/LocationAuthorisationStatus.h +6 -0
  65. package/ios/LocationAuthorisationType.h +4 -0
  66. package/ios/RNSelligent.m +14 -0
  67. package/ios/SMManagerSetting+ClientSettings.m +5 -0
  68. package/ios/include/SMEvent.h +1 -1
  69. package/ios/include/SMHelper.h +6 -3
  70. package/ios/include/SMManager+InAppMessage.h +2 -2
  71. package/ios/include/SMManager+Location.h +41 -0
  72. package/ios/include/SMManager+UserNotification.h +16 -3
  73. package/ios/include/SMManager.h +1 -1
  74. package/ios/include/SMManagerInAppMessageDelegate.h +2 -2
  75. package/ios/include/SMManagerSetting+Location.h +27 -0
  76. package/ios/include/SMManagerSetting.h +2 -2
  77. package/ios/include/SMNSNotification.h +4 -10
  78. package/ios/include/SMRemoteMessageDisplayType.h +2 -2
  79. package/ios/libSelligentMobile.a +0 -0
  80. 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 inapp message associated to a remote notification to the inapp message list
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 inapp message, this setting will add the inapp message to the in app messages list . You will need to listen to kSMNotification_Event_DidReceiveInAppMessage NSNotification to be informed that an inapp message is available and you can then retrieve it with [SMManager(InAppMessages) getInAppMessages] helper method and use in an inbox for example
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 InApp messages
39
- * Primary-application may use this notification to manage the received InApp messages
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 InApp content
46
- * Primary-application may use this notification to manage the received InApp content
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 notifications will be displayed.
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 notification will be displayed (when there is an in-app notification available within the remote-notification payload).
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.7.0",
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": "17.0.2",
30
- "react-native": "^0.66.3"
29
+ "react": "18.1.0",
30
+ "react-native": "^0.70.0"
31
31
  }
32
32
  }