@selligent-marketing-cloud/selligent-react-native 2.4.0 → 2.8.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 (127) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +354 -245
  3. package/RNSelligent.podspec +4 -4
  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 +16 -0
  7. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +2 -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 +6408 -0
  12. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  13. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  14. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  15. package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +1 -0
  16. package/android/build/intermediates/incremental/packageDebugResources/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 +16 -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 +4798 -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/tmp/compileDebugJavaWithJavac/source-classes-mapping.txt +43 -0
  52. package/android/build.gradle +38 -32
  53. package/android/libs/sdk-release.aar +0 -0
  54. package/android/src/main/java/com/selligent/RNSelligent.java +41 -3
  55. package/android/src/main/java/com/selligent/SMSettingsFactory.java +1 -0
  56. package/android/src/main/java/com/selligent/Settings.java +16 -0
  57. package/constants.d.ts +18 -0
  58. package/constants.js +30 -2
  59. package/index.android.js +42 -0
  60. package/index.d.ts +14 -6
  61. package/index.ios.js +12 -29
  62. package/index.js +13 -1
  63. package/ios/ClientSettings.h +2 -0
  64. package/ios/ClientSettings.m +4 -0
  65. package/ios/EnumMapper.h +3 -6
  66. package/ios/EnumMapper.m +8 -24
  67. package/ios/RNSelligent.m +25 -13
  68. package/ios/RemoteMessageDisplayType.h +5 -0
  69. package/ios/SMManagerSetting+ClientSettings.m +15 -4
  70. package/ios/SelligentReactNative.xcodeproj/project.pbxproj +4 -12
  71. package/ios/include/SMBaseMessage.h +8 -12
  72. package/ios/include/SMBlock.h +2 -2
  73. package/ios/include/SMClearCache.h +0 -2
  74. package/ios/include/SMContentAlignment.h +1 -2
  75. package/ios/include/SMDeviceInfos.h +10 -8
  76. package/ios/include/SMDisplayMode.h +1 -2
  77. package/ios/include/SMEvent.h +21 -17
  78. package/ios/include/SMEventUser.h +0 -1
  79. package/ios/include/SMEventUserLogin.h +11 -16
  80. package/ios/include/SMEventUserLogout.h +12 -16
  81. package/ios/include/SMEventUserRegistration.h +12 -17
  82. package/ios/include/SMEventUserUnregistration.h +12 -16
  83. package/ios/include/SMFailure.h +1 -6
  84. package/ios/include/SMHelper.h +12 -4
  85. package/ios/include/SMInAppContentHTMLViewController.h +11 -9
  86. package/ios/include/SMInAppContentImageViewController.h +6 -6
  87. package/ios/include/SMInAppContentMessage.h +12 -12
  88. package/ios/include/SMInAppContentStyleOptions.h +91 -79
  89. package/ios/include/SMInAppContentType.h +2 -3
  90. package/ios/include/SMInAppContentURLViewController.h +10 -9
  91. package/ios/include/SMInAppContentViewController.h +3 -6
  92. package/ios/include/SMInAppMessage.h +22 -14
  93. package/ios/include/SMInAppMessageType.h +2 -6
  94. package/ios/include/SMInAppRefreshType.h +1 -1
  95. package/ios/include/SMLink.h +7 -11
  96. package/ios/include/SMLog.h +1 -1
  97. package/ios/include/SMManager+DataTransaction.h +6 -13
  98. package/ios/include/SMManager+InAppContent.h +20 -23
  99. package/ios/include/SMManager+InAppMessage.h +65 -42
  100. package/ios/include/SMManager+Location.h +7 -63
  101. package/ios/include/SMManager+Log.h +3 -14
  102. package/ios/include/SMManager+RemoteNotification.h +38 -34
  103. package/ios/include/SMManager+SMEvent.h +10 -10
  104. package/ios/include/SMManager+SMLink.h +44 -0
  105. package/ios/include/SMManager+SilentPush.h +5 -22
  106. package/ios/include/SMManager+StyleOptions.h +5 -8
  107. package/ios/include/SMManager+UserNotification.h +47 -35
  108. package/ios/include/SMManager+ViewController.h +45 -0
  109. package/ios/include/SMManager.h +15 -24
  110. package/ios/include/SMManagerInAppMessageDelegate.h +24 -0
  111. package/ios/include/SMManagerSetting+Location.h +27 -0
  112. package/ios/include/SMManagerSetting.h +61 -33
  113. package/ios/include/SMManagerSettingIAC.h +6 -17
  114. package/ios/include/SMManagerSettingIAM.h +7 -16
  115. package/ios/include/SMManagerUniversalLinksDelegate.h +23 -0
  116. package/ios/include/SMMessage.h +1 -3
  117. package/ios/include/SMNSNotification.h +21 -13
  118. package/ios/include/SMNotificationAnnotationData.h +4 -8
  119. package/ios/include/SMNotificationButtonData.h +1 -6
  120. package/ios/include/SMNotificationButtonType.h +1 -14
  121. package/ios/include/SMNotificationMessage.h +31 -0
  122. package/ios/include/SMRemoteMessageDisplayType.h +32 -0
  123. package/ios/include/SMSuccess.h +1 -4
  124. package/ios/{libSelligentMobile2.5.2.a → libSelligentMobile.a} +0 -0
  125. package/package.json +3 -3
  126. package/trigger.yml +9 -0
  127. package/ios/include/SMLocationAuthorisationType.h +0 -57
@@ -0,0 +1,32 @@
1
+ //
2
+ // SMRemoteMessageDisplayType.h
3
+ // MobileSDK
4
+ //
5
+ // Created by Marc Biosca on 9/10/21.
6
+ // Copyright © 2021 Selligent. All rights reserved.
7
+ //
8
+
9
+ /*!
10
+ * Defines the behaviour that the SDK will apply when receiving a remote-notification in foreground.
11
+ */
12
+ typedef NS_ENUM (NSInteger, SMRemoteMessageDisplayType) {
13
+ /*!
14
+ * Default value when not explicitly set.
15
+ */
16
+ kSMRemoteMessageDisplayType_Unknown = 0,
17
+
18
+ /*!
19
+ * No Push nor in-app messages will be displayed.
20
+ */
21
+ kSMRemoteMessageDisplayType_None = 1,
22
+
23
+ /*!
24
+ * A Push notification will be displayed.
25
+ */
26
+ kSMRemoteMessageDisplayType_Notification = 2,
27
+
28
+ /*!
29
+ * An in-app message will be displayed (when there is an in-app message available within the remote-notification payload).
30
+ */
31
+ kSMRemoteMessageDisplayType_Automatic = 3
32
+ };
@@ -8,12 +8,9 @@
8
8
 
9
9
  #import "SMMessage.h"
10
10
 
11
-
12
11
  /*!
13
- * @discussion This class is used to return a successfull action
14
- * #SMSuccess:#
12
+ * This class is used to return a successfull action
15
13
  */
16
14
  @interface SMSuccess : SMMessage
17
15
 
18
-
19
16
  @end
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.0",
4
+ "version": "2.8.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.1",
30
- "react-native": "^0.64.0"
29
+ "react": "17.0.2",
30
+ "react-native": "^0.67.2"
31
31
  }
32
32
  }
package/trigger.yml ADDED
@@ -0,0 +1,9 @@
1
+ trigger:
2
+ branches:
3
+ include:
4
+ - master
5
+
6
+ pr: none
7
+
8
+ steps:
9
+ - checkout: none
@@ -1,57 +0,0 @@
1
- //
2
- // SMLocationAuthorisationType.h
3
- // MobileSDK
4
- //
5
- // Created by Samy Ziat on 08/12/15.
6
- // Copyright © 2015 Selligent. All rights reserved.
7
- //
8
-
9
- /**
10
- * Location authorisation type.
11
- */
12
- typedef NS_ENUM(NSInteger, SMLocationAuthorisationType) {
13
- /**
14
- * This value asks user permission to monitor their position
15
- * only when the application is being used.
16
- * Highly encouraged by Apple for efficiency purposes.
17
- */
18
- kSMLocationAuthorisationType_InUse,
19
-
20
- /**
21
- * This value asks user permission to monitor their position
22
- * for all application's state.
23
- * Use this option only if your application needs it.
24
- */
25
- kSMLocationAuthorisationType_Always
26
- };
27
-
28
-
29
-
30
- /**
31
- * Location authorisation status.
32
- */
33
- typedef NS_ENUM(NSInteger, SMLocationAuthorisationStatus) {
34
- /**
35
- * The authorisation satus is unknown.
36
- */
37
- kSMLocationAuthorisationStatus_Unknown,
38
-
39
- /**
40
- * The authorisation status is rejected by user or impossible
41
- */
42
- kSMLocationAuthorisationStatus_Refused,
43
-
44
- /**
45
- * The authorisation status is OK when the application is in-use
46
- */
47
- kSMLocationAuthorisationStatus_GrantedInUse,
48
-
49
- /**
50
- * The authorisation status is OK for all application's state
51
- */
52
- kSMLocationAuthorisationStatus_GrantedAlways
53
- };
54
-
55
-
56
-
57
-