@selligent-marketing-cloud/selligent-react-native 3.0.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.
Files changed (184) hide show
  1. package/README.md +43 -1550
  2. package/RNSelligent.podspec +8 -15
  3. package/android/build.gradle +48 -81
  4. package/android/src/main/java/com/selligent/BroadcastEventType.java +4 -1
  5. package/android/src/main/java/com/selligent/ButtonAction.java +81 -0
  6. package/android/src/main/java/com/selligent/ButtonBroadcastEventDataParser.java +9 -3
  7. package/android/src/main/java/com/selligent/DeviceIdBroadcastEventDataParser.java +15 -0
  8. package/android/src/main/java/com/selligent/EventType.java +1 -1
  9. package/android/src/main/java/com/selligent/GCMTokenBroadcastEventDataParser.java +6 -1
  10. package/android/src/main/java/com/selligent/InAppMessageBroadcastEventDataParser.java +7 -1
  11. package/android/src/main/java/com/selligent/NotificationMessageBroadcastEventDataParser.java +19 -0
  12. package/android/src/main/java/com/selligent/RNSelligent.java +195 -56
  13. package/android/src/main/java/com/selligent/SMSettingsFactory.java +0 -1
  14. package/android/src/main/java/com/selligent/Settings.java +0 -9
  15. package/constants.d.ts +7 -33
  16. package/constants.js +51 -85
  17. package/documentation/README.md +826 -0
  18. package/helpers.js +5 -6
  19. package/index.android.js +8 -83
  20. package/index.d.ts +33 -43
  21. package/index.ios.js +25 -76
  22. package/index.js +153 -45
  23. package/ios/RNSelligentMapper.h +21 -0
  24. package/ios/RNSelligentMapper.m +151 -0
  25. package/ios/RNSelligentMobileSDK.xcframework/Info.plist +40 -0
  26. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +350 -0
  27. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Info.plist +0 -0
  28. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.abi.json +2603 -0
  29. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +59 -0
  30. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  31. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftinterface +59 -0
  32. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/module.modulemap +4 -0
  33. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
  34. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +179 -0
  35. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +696 -0
  36. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Info.plist +0 -0
  37. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2603 -0
  38. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +59 -0
  39. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  40. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +59 -0
  41. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2603 -0
  42. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +59 -0
  43. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  44. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +59 -0
  45. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/module.modulemap +4 -0
  46. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
  47. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +234 -0
  48. package/package.json +30 -11
  49. package/.gitattributes +0 -1
  50. package/CHANGELOG.md +0 -60
  51. package/android/README.md +0 -15
  52. package/android/build/generated/source/buildConfig/debug/com/selligent/BuildConfig.java +0 -12
  53. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -9
  54. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
  55. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -4
  56. package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
  57. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  58. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  59. package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -6548
  60. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  61. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  62. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  63. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  64. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  65. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory$1.class +0 -0
  66. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory.class +0 -0
  67. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventDataParser.class +0 -0
  68. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventType.class +0 -0
  69. package/android/build/intermediates/javac/debug/classes/com/selligent/BuildConfig.class +0 -0
  70. package/android/build/intermediates/javac/debug/classes/com/selligent/ButtonBroadcastEventDataParser.class +0 -0
  71. package/android/build/intermediates/javac/debug/classes/com/selligent/ClearCacheIntervalValue.class +0 -0
  72. package/android/build/intermediates/javac/debug/classes/com/selligent/Event.class +0 -0
  73. package/android/build/intermediates/javac/debug/classes/com/selligent/EventReceiver.class +0 -0
  74. package/android/build/intermediates/javac/debug/classes/com/selligent/EventType.class +0 -0
  75. package/android/build/intermediates/javac/debug/classes/com/selligent/GCMTokenBroadcastEventDataParser.class +0 -0
  76. package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageBroadcastEventDataParser.class +0 -0
  77. package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageRefreshType.class +0 -0
  78. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$1.class +0 -0
  79. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$2.class +0 -0
  80. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$3.class +0 -0
  81. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$4.class +0 -0
  82. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$5.class +0 -0
  83. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent.class +0 -0
  84. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligentPackage.class +0 -0
  85. package/android/build/intermediates/javac/debug/classes/com/selligent/RemoteMessageDisplayType.class +0 -0
  86. package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory$1.class +0 -0
  87. package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory.class +0 -0
  88. package/android/build/intermediates/javac/debug/classes/com/selligent/SMSettingsFactory.class +0 -0
  89. package/android/build/intermediates/javac/debug/classes/com/selligent/Settings.class +0 -0
  90. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
  91. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -11
  92. package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -9
  93. package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
  94. package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -18
  95. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  96. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -4894
  97. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
  98. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  99. package/android/libs/sdk-release.aar +0 -0
  100. package/documentation/add_json_file.png +0 -0
  101. package/documentation/add_lib_file.png +0 -0
  102. package/ios/BackgroundFetchResult.h +0 -5
  103. package/ios/ClearCacheInterval.h +0 -7
  104. package/ios/ClientSettings.h +0 -22
  105. package/ios/ClientSettings.m +0 -39
  106. package/ios/EnumMapper.h +0 -36
  107. package/ios/EnumMapper.m +0 -121
  108. package/ios/Event+SMEvent.h +0 -13
  109. package/ios/Event+SMEvent.m +0 -41
  110. package/ios/Event.h +0 -12
  111. package/ios/Event.m +0 -24
  112. package/ios/EventType.h +0 -7
  113. package/ios/InAppMessageRefreshType.h +0 -6
  114. package/ios/InAppMessageSettings.h +0 -9
  115. package/ios/InAppMessageSettings.m +0 -19
  116. package/ios/LocationAuthorisationStatus.h +0 -6
  117. package/ios/LocationAuthorisationType.h +0 -4
  118. package/ios/LogLevel.h +0 -9
  119. package/ios/NotificationButtonType.h +0 -15
  120. package/ios/ParsableObject.h +0 -5
  121. package/ios/RNSelligent.h +0 -22
  122. package/ios/RNSelligent.m +0 -347
  123. package/ios/RemoteMessageDisplayType.h +0 -5
  124. package/ios/SMManagerSetting+ClientSettings.h +0 -9
  125. package/ios/SMManagerSetting+ClientSettings.m +0 -73
  126. package/ios/SelligentLogger.h +0 -7
  127. package/ios/SelligentLogger.m +0 -9
  128. package/ios/SelligentReactNative.xcodeproj/project.pbxproj +0 -446
  129. package/ios/include/SMBaseMessage.h +0 -48
  130. package/ios/include/SMBlock.h +0 -21
  131. package/ios/include/SMClearCache.h +0 -34
  132. package/ios/include/SMContentAlignment.h +0 -27
  133. package/ios/include/SMDeviceInfos.h +0 -38
  134. package/ios/include/SMDisplayMode.h +0 -27
  135. package/ios/include/SMEvent.h +0 -69
  136. package/ios/include/SMEventUser.h +0 -20
  137. package/ios/include/SMEventUserLogin.h +0 -42
  138. package/ios/include/SMEventUserLogout.h +0 -42
  139. package/ios/include/SMEventUserRegistration.h +0 -42
  140. package/ios/include/SMEventUserUnregistration.h +0 -42
  141. package/ios/include/SMFailure.h +0 -19
  142. package/ios/include/SMHelper.h +0 -51
  143. package/ios/include/SMInAppContentHTMLViewController.h +0 -59
  144. package/ios/include/SMInAppContentImageViewController.h +0 -36
  145. package/ios/include/SMInAppContentMessage.h +0 -56
  146. package/ios/include/SMInAppContentStyleOptions.h +0 -511
  147. package/ios/include/SMInAppContentType.h +0 -35
  148. package/ios/include/SMInAppContentURLViewController.h +0 -36
  149. package/ios/include/SMInAppContentViewController.h +0 -31
  150. package/ios/include/SMInAppMessage.h +0 -51
  151. package/ios/include/SMInAppMessageType.h +0 -50
  152. package/ios/include/SMInAppRefreshType.h +0 -29
  153. package/ios/include/SMLink.h +0 -39
  154. package/ios/include/SMLog.h +0 -54
  155. package/ios/include/SMManager+DataTransaction.h +0 -33
  156. package/ios/include/SMManager+InAppContent.h +0 -170
  157. package/ios/include/SMManager+InAppMessage.h +0 -172
  158. package/ios/include/SMManager+Location.h +0 -41
  159. package/ios/include/SMManager+Log.h +0 -31
  160. package/ios/include/SMManager+RemoteNotification.h +0 -171
  161. package/ios/include/SMManager+SMEvent.h +0 -67
  162. package/ios/include/SMManager+SMLink.h +0 -44
  163. package/ios/include/SMManager+SilentPush.h +0 -53
  164. package/ios/include/SMManager+StyleOptions.h +0 -36
  165. package/ios/include/SMManager+UserNotification.h +0 -180
  166. package/ios/include/SMManager+ViewController.h +0 -45
  167. package/ios/include/SMManager.h +0 -69
  168. package/ios/include/SMManagerHelper.h +0 -18
  169. package/ios/include/SMManagerInAppMessageDelegate.h +0 -24
  170. package/ios/include/SMManagerSetting+Location.h +0 -27
  171. package/ios/include/SMManagerSetting.h +0 -180
  172. package/ios/include/SMManagerSettingIAC.h +0 -48
  173. package/ios/include/SMManagerSettingIAM.h +0 -49
  174. package/ios/include/SMManagerUniversalLinksDelegate.h +0 -23
  175. package/ios/include/SMMessage.h +0 -21
  176. package/ios/include/SMNSNotification.h +0 -81
  177. package/ios/include/SMNotificationAnnotationData.h +0 -33
  178. package/ios/include/SMNotificationButtonData.h +0 -20
  179. package/ios/include/SMNotificationButtonType.h +0 -90
  180. package/ios/include/SMNotificationMessage.h +0 -31
  181. package/ios/include/SMRemoteMessageDisplayType.h +0 -32
  182. package/ios/include/SMSuccess.h +0 -16
  183. package/ios/libSelligentMobile.a +0 -0
  184. package/trigger.yml +0 -9
@@ -0,0 +1,59 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
3
+ // swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name RNSelligentMobileSDK
4
+ // swift-module-flags-ignorable: -enable-bare-slash-regex
5
+ import Foundation
6
+ import SelligentMobileSDK
7
+ import Swift
8
+ import UIKit
9
+ import UserNotifications
10
+ import _Concurrency
11
+ import _StringProcessing
12
+ extension RNSelligentMobileSDK.RNSelligent {
13
+ @objc public static func getVersionLib() -> Swift.String
14
+ @objc public static func getDeviceId() -> Swift.String
15
+ @objc public static func setInAppMessageStylingTemplates(_ templates: [RNSelligentMobileSDK.InAppMessageStylingTemplate], defaultTemplateId: Swift.String?)
16
+ @objc public static func executePushAction()
17
+ @objc public static func applyLogLevel(_ logLevels: [Swift.Int])
18
+ }
19
+ extension RNSelligentMobileSDK.RNSelligent {
20
+ @objc public static func enable(inAppMessages: Swift.Bool)
21
+ @objc public static func getInAppMessages() -> [[Swift.AnyHashable : Any]]
22
+ @objc public static func setInAppMessageAsSeen(_ messageId: Swift.String, seen: Swift.Bool = true) -> Swift.String?
23
+ @objc public static func setInAppMessageAsDeleted(_ messageId: Swift.String) -> Swift.String?
24
+ @objc public static func executeButtonAction(_ buttonId: Swift.String, messageId: Swift.String) -> Swift.String?
25
+ @objc public static func displayNotification(_ notificationId: Swift.String, templateId: Swift.String?)
26
+ }
27
+ @objc public protocol RNSelligentEventHandlerProtocol {
28
+ @objc func sendBroadcastEvent(name: Swift.String, type: Swift.String, data: [Swift.AnyHashable : Any]?)
29
+ }
30
+ extension RNSelligentMobileSDK.RNSelligent {
31
+ @objc public static func enableNotifications(_ enable: Swift.Bool)
32
+ @objc public static func registerForProvisionalRemoteNotification()
33
+ @objc public static func displayLastReceivedRemotePushNotification(withTemplateId: Swift.String?)
34
+ @objc public static func getLastRemotePushNotification() -> [Swift.AnyHashable : Any]?
35
+ @objc public static func displayLastReceivedNotification()
36
+ }
37
+ extension RNSelligentMobileSDK.RNSelligent {
38
+ @objc public static func sendEvent(_ data: [Swift.AnyHashable : Any], completion: @escaping ((Swift.Bool, Swift.String) -> Swift.Void))
39
+ @objc public static func subscribeToEvents(_ customEvents: [Swift.String])
40
+ }
41
+ extension RNSelligentMobileSDK.RNSelligent {
42
+ @objc public static func didRegisterForRemoteNotifications(withDeviceToken: Foundation.Data)
43
+ @objc public static func didFailToRegisterForRemoteNotificationsWithError(_ error: Swift.Error)
44
+ @objc public static func didReceiveRemoteNotification(_ notification: [Swift.AnyHashable : Any], fetchCompletionHandler: ((UIKit.UIBackgroundFetchResult) -> Swift.Void)?)
45
+ @objc public static func willPresentNotification(_ notification: UserNotifications.UNNotification, withCompletionHandler: ((UserNotifications.UNNotificationPresentationOptions) -> Swift.Void)?)
46
+ @objc public static func willPresentNotification(_ notification: UserNotifications.UNNotification, templateId: Swift.String?, withCompletionHandler: ((UserNotifications.UNNotificationPresentationOptions) -> Swift.Void)?)
47
+ @objc public static func didReceiveNotificationResponse(_ response: UserNotifications.UNNotificationResponse, withCompletionHandler: (() -> Swift.Void)?)
48
+ @objc public static func didReceiveNotificationResponse(_ response: UserNotifications.UNNotificationResponse, templateId: Swift.String?, withCompletionHandler: (() -> Swift.Void)?)
49
+ }
50
+ @objc @_inheritsConvenienceInitializers public class RNSelligent : ObjectiveC.NSObject {
51
+ @objc public static var eventDelegate: RNSelligentMobileSDK.RNSelligentEventHandlerProtocol?
52
+ @objc public static func configureWithLaunchOptions(_ launchOptions: [Swift.AnyHashable : Any] = [:])
53
+ @objc override dynamic public init()
54
+ @objc deinit
55
+ }
56
+ @objc public class InAppMessageStylingTemplate : ObjectiveC.NSObject {
57
+ @objc public init(templateId: Swift.String, styleOptions: SelligentMobileSDK.SMInAppMessageStyleOptions)
58
+ @objc deinit
59
+ }
@@ -0,0 +1,59 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
3
+ // swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name RNSelligentMobileSDK
4
+ // swift-module-flags-ignorable: -enable-bare-slash-regex
5
+ import Foundation
6
+ import SelligentMobileSDK
7
+ import Swift
8
+ import UIKit
9
+ import UserNotifications
10
+ import _Concurrency
11
+ import _StringProcessing
12
+ extension RNSelligentMobileSDK.RNSelligent {
13
+ @objc public static func getVersionLib() -> Swift.String
14
+ @objc public static func getDeviceId() -> Swift.String
15
+ @objc public static func setInAppMessageStylingTemplates(_ templates: [RNSelligentMobileSDK.InAppMessageStylingTemplate], defaultTemplateId: Swift.String?)
16
+ @objc public static func executePushAction()
17
+ @objc public static func applyLogLevel(_ logLevels: [Swift.Int])
18
+ }
19
+ extension RNSelligentMobileSDK.RNSelligent {
20
+ @objc public static func enable(inAppMessages: Swift.Bool)
21
+ @objc public static func getInAppMessages() -> [[Swift.AnyHashable : Any]]
22
+ @objc public static func setInAppMessageAsSeen(_ messageId: Swift.String, seen: Swift.Bool = true) -> Swift.String?
23
+ @objc public static func setInAppMessageAsDeleted(_ messageId: Swift.String) -> Swift.String?
24
+ @objc public static func executeButtonAction(_ buttonId: Swift.String, messageId: Swift.String) -> Swift.String?
25
+ @objc public static func displayNotification(_ notificationId: Swift.String, templateId: Swift.String?)
26
+ }
27
+ @objc public protocol RNSelligentEventHandlerProtocol {
28
+ @objc func sendBroadcastEvent(name: Swift.String, type: Swift.String, data: [Swift.AnyHashable : Any]?)
29
+ }
30
+ extension RNSelligentMobileSDK.RNSelligent {
31
+ @objc public static func enableNotifications(_ enable: Swift.Bool)
32
+ @objc public static func registerForProvisionalRemoteNotification()
33
+ @objc public static func displayLastReceivedRemotePushNotification(withTemplateId: Swift.String?)
34
+ @objc public static func getLastRemotePushNotification() -> [Swift.AnyHashable : Any]?
35
+ @objc public static func displayLastReceivedNotification()
36
+ }
37
+ extension RNSelligentMobileSDK.RNSelligent {
38
+ @objc public static func sendEvent(_ data: [Swift.AnyHashable : Any], completion: @escaping ((Swift.Bool, Swift.String) -> Swift.Void))
39
+ @objc public static func subscribeToEvents(_ customEvents: [Swift.String])
40
+ }
41
+ extension RNSelligentMobileSDK.RNSelligent {
42
+ @objc public static func didRegisterForRemoteNotifications(withDeviceToken: Foundation.Data)
43
+ @objc public static func didFailToRegisterForRemoteNotificationsWithError(_ error: Swift.Error)
44
+ @objc public static func didReceiveRemoteNotification(_ notification: [Swift.AnyHashable : Any], fetchCompletionHandler: ((UIKit.UIBackgroundFetchResult) -> Swift.Void)?)
45
+ @objc public static func willPresentNotification(_ notification: UserNotifications.UNNotification, withCompletionHandler: ((UserNotifications.UNNotificationPresentationOptions) -> Swift.Void)?)
46
+ @objc public static func willPresentNotification(_ notification: UserNotifications.UNNotification, templateId: Swift.String?, withCompletionHandler: ((UserNotifications.UNNotificationPresentationOptions) -> Swift.Void)?)
47
+ @objc public static func didReceiveNotificationResponse(_ response: UserNotifications.UNNotificationResponse, withCompletionHandler: (() -> Swift.Void)?)
48
+ @objc public static func didReceiveNotificationResponse(_ response: UserNotifications.UNNotificationResponse, templateId: Swift.String?, withCompletionHandler: (() -> Swift.Void)?)
49
+ }
50
+ @objc @_inheritsConvenienceInitializers public class RNSelligent : ObjectiveC.NSObject {
51
+ @objc public static var eventDelegate: RNSelligentMobileSDK.RNSelligentEventHandlerProtocol?
52
+ @objc public static func configureWithLaunchOptions(_ launchOptions: [Swift.AnyHashable : Any] = [:])
53
+ @objc override dynamic public init()
54
+ @objc deinit
55
+ }
56
+ @objc public class InAppMessageStylingTemplate : ObjectiveC.NSObject {
57
+ @objc public init(templateId: Swift.String, styleOptions: SelligentMobileSDK.SMInAppMessageStyleOptions)
58
+ @objc deinit
59
+ }
@@ -0,0 +1,4 @@
1
+ framework module RNSelligentMobileSDK {
2
+ header "RNSelligentMobileSDK-Swift.h"
3
+ requires objc
4
+ }
@@ -0,0 +1,234 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict>
7
+ <key>Headers/RNSelligentMobileSDK-Swift.h</key>
8
+ <data>
9
+ GbYqWGPT9yRRBvsnizjjfkVtBD4=
10
+ </data>
11
+ <key>Info.plist</key>
12
+ <data>
13
+ T/bdYria7jsXdWZOPqpeiHnSRPs=
14
+ </data>
15
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
16
+ <data>
17
+ tc8MJ55RjFe9vo6UhhUvhZ1PpqE=
18
+ </data>
19
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
20
+ <data>
21
+ bLlofJtBx1942Nn0ECGCOb2/9ck=
22
+ </data>
23
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
24
+ <data>
25
+ wlNdc24Wl792KfBPk6yN6OWG8L0=
26
+ </data>
27
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
28
+ <data>
29
+ bLlofJtBx1942Nn0ECGCOb2/9ck=
30
+ </data>
31
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
32
+ <data>
33
+ yNLrF3UhGpdG9hUQmXzNLMoM4/s=
34
+ </data>
35
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
36
+ <data>
37
+ tc8MJ55RjFe9vo6UhhUvhZ1PpqE=
38
+ </data>
39
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
40
+ <data>
41
+ NOc/OGpb59BQD9MVt/cB5bhV4Hk=
42
+ </data>
43
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
44
+ <data>
45
+ xYEhFf9K2ymFLMji4ijtcKfv2aw=
46
+ </data>
47
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
48
+ <data>
49
+ NOc/OGpb59BQD9MVt/cB5bhV4Hk=
50
+ </data>
51
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
52
+ <data>
53
+ YEFza4qPCKTUX3+aYIDJvXf5eOs=
54
+ </data>
55
+ <key>Modules/module.modulemap</key>
56
+ <data>
57
+ ud88UVqZgcSH0f8AbK5AbeqzEAE=
58
+ </data>
59
+ </dict>
60
+ <key>files2</key>
61
+ <dict>
62
+ <key>Headers/RNSelligentMobileSDK-Swift.h</key>
63
+ <dict>
64
+ <key>hash2</key>
65
+ <data>
66
+ b6E/HIxjrP2giwXFgtgZjyMIueT8JrZ2V7e9D2HWdBc=
67
+ </data>
68
+ </dict>
69
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
70
+ <dict>
71
+ <key>hash2</key>
72
+ <data>
73
+ 7943n7fiHc3svhqLh3An+v3KLqbpBQIgQuPdd+6fX3Y=
74
+ </data>
75
+ </dict>
76
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
77
+ <dict>
78
+ <key>hash2</key>
79
+ <data>
80
+ RbS2nkUBWn8hyn+OlP0Za4KQ5s+JkTF4Hh9Hj6dD1CQ=
81
+ </data>
82
+ </dict>
83
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
84
+ <dict>
85
+ <key>hash2</key>
86
+ <data>
87
+ m9czQDkeocO0WUsbe+jb1Mx0WrzTn6HoluNM8WPLPy4=
88
+ </data>
89
+ </dict>
90
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
91
+ <dict>
92
+ <key>hash2</key>
93
+ <data>
94
+ RbS2nkUBWn8hyn+OlP0Za4KQ5s+JkTF4Hh9Hj6dD1CQ=
95
+ </data>
96
+ </dict>
97
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
98
+ <dict>
99
+ <key>hash2</key>
100
+ <data>
101
+ Q1c2g+hgFFEn9C4a9pzW6AXpuAGIA0iDdqSeqGmzWd0=
102
+ </data>
103
+ </dict>
104
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
105
+ <dict>
106
+ <key>hash2</key>
107
+ <data>
108
+ 7943n7fiHc3svhqLh3An+v3KLqbpBQIgQuPdd+6fX3Y=
109
+ </data>
110
+ </dict>
111
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
112
+ <dict>
113
+ <key>hash2</key>
114
+ <data>
115
+ NBmXoF6n3JYO/PoNbHg5S4N/8F/SgFUh74niGw6bvkQ=
116
+ </data>
117
+ </dict>
118
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
119
+ <dict>
120
+ <key>hash2</key>
121
+ <data>
122
+ YtsvcZKthr6ZZWop/9F12Po8EGhOJIGNdxHwf20R67Y=
123
+ </data>
124
+ </dict>
125
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
126
+ <dict>
127
+ <key>hash2</key>
128
+ <data>
129
+ NBmXoF6n3JYO/PoNbHg5S4N/8F/SgFUh74niGw6bvkQ=
130
+ </data>
131
+ </dict>
132
+ <key>Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
133
+ <dict>
134
+ <key>hash2</key>
135
+ <data>
136
+ ccQm++84Zns6BCZ7oxt73LJCE4UiFSFkzfVSboQah7o=
137
+ </data>
138
+ </dict>
139
+ <key>Modules/module.modulemap</key>
140
+ <dict>
141
+ <key>hash2</key>
142
+ <data>
143
+ b2z1gUaLy3SjL0vgzLkqUo/VaeEmEhUS3608GLC3lg8=
144
+ </data>
145
+ </dict>
146
+ </dict>
147
+ <key>rules</key>
148
+ <dict>
149
+ <key>^.*</key>
150
+ <true/>
151
+ <key>^.*\.lproj/</key>
152
+ <dict>
153
+ <key>optional</key>
154
+ <true/>
155
+ <key>weight</key>
156
+ <real>1000</real>
157
+ </dict>
158
+ <key>^.*\.lproj/locversion.plist$</key>
159
+ <dict>
160
+ <key>omit</key>
161
+ <true/>
162
+ <key>weight</key>
163
+ <real>1100</real>
164
+ </dict>
165
+ <key>^Base\.lproj/</key>
166
+ <dict>
167
+ <key>weight</key>
168
+ <real>1010</real>
169
+ </dict>
170
+ <key>^version.plist$</key>
171
+ <true/>
172
+ </dict>
173
+ <key>rules2</key>
174
+ <dict>
175
+ <key>.*\.dSYM($|/)</key>
176
+ <dict>
177
+ <key>weight</key>
178
+ <real>11</real>
179
+ </dict>
180
+ <key>^(.*/)?\.DS_Store$</key>
181
+ <dict>
182
+ <key>omit</key>
183
+ <true/>
184
+ <key>weight</key>
185
+ <real>2000</real>
186
+ </dict>
187
+ <key>^.*</key>
188
+ <true/>
189
+ <key>^.*\.lproj/</key>
190
+ <dict>
191
+ <key>optional</key>
192
+ <true/>
193
+ <key>weight</key>
194
+ <real>1000</real>
195
+ </dict>
196
+ <key>^.*\.lproj/locversion.plist$</key>
197
+ <dict>
198
+ <key>omit</key>
199
+ <true/>
200
+ <key>weight</key>
201
+ <real>1100</real>
202
+ </dict>
203
+ <key>^Base\.lproj/</key>
204
+ <dict>
205
+ <key>weight</key>
206
+ <real>1010</real>
207
+ </dict>
208
+ <key>^Info\.plist$</key>
209
+ <dict>
210
+ <key>omit</key>
211
+ <true/>
212
+ <key>weight</key>
213
+ <real>20</real>
214
+ </dict>
215
+ <key>^PkgInfo$</key>
216
+ <dict>
217
+ <key>omit</key>
218
+ <true/>
219
+ <key>weight</key>
220
+ <real>20</real>
221
+ </dict>
222
+ <key>^embedded\.provisionprofile$</key>
223
+ <dict>
224
+ <key>weight</key>
225
+ <real>20</real>
226
+ </dict>
227
+ <key>^version\.plist$</key>
228
+ <dict>
229
+ <key>weight</key>
230
+ <real>20</real>
231
+ </dict>
232
+ </dict>
233
+ </dict>
234
+ </plist>
package/package.json CHANGED
@@ -1,19 +1,16 @@
1
1
  {
2
+ "author": {
3
+ "name": "SelligentMarketingCloud <mobile@selligent.com>"
4
+ },
2
5
  "name": "@selligent-marketing-cloud/selligent-react-native",
3
6
  "title": "Selligent React Native",
4
- "version": "3.0.0",
5
- "description": "React Native bridge for Selligent SDK",
7
+ "version": "3.2.6",
8
+ "description": "React Native wrapper for the Selligent Marketing Cloud Android and iOS SDKs",
6
9
  "main": "index.js",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/SelligentMarketingCloud/MobileSDK-ReactNative.git"
13
13
  },
14
- "bugs": {
15
- "url": "https://github.com/SelligentMarketingCloud/MobileSDK-ReactNative/issues"
16
- },
17
14
  "homepage": "https://github.com/SelligentMarketingCloud/MobileSDK-ReactNative#readme",
18
15
  "keywords": [
19
16
  "react-native"
@@ -26,7 +23,29 @@
26
23
  "react-native": "*"
27
24
  },
28
25
  "devDependencies": {
29
- "react": "18.1.0",
30
- "react-native": "^0.70.6"
31
- }
26
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
27
+ "@babel/plugin-proposal-private-methods": "^7.18.6",
28
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.0",
29
+ "@babel/preset-env": "^7.21.5",
30
+ "babel-jest": "^29.5.0",
31
+ "jest": "^29.5.0",
32
+ "metro-react-native-babel-preset": "^0.76.4",
33
+ "react": "18.0.0",
34
+ "react-native": "^0.69.10",
35
+ "ts-jest": "^29.1.0"
36
+ },
37
+ "scripts": {
38
+ "test": "jest"
39
+ },
40
+ "files": [
41
+ "/RNSelligent.podspec",
42
+ "/*.js",
43
+ "/*.ts",
44
+ "/ios/RNSelligentMobileSDK.xcframework",
45
+ "/ios/*.h",
46
+ "/ios/*.m",
47
+ "/android/src/main",
48
+ "/android/build.gradle",
49
+ "/documentation/README.md"
50
+ ]
32
51
  }
package/.gitattributes DELETED
@@ -1 +0,0 @@
1
- *.pbxproj -text
package/CHANGELOG.md DELETED
@@ -1,60 +0,0 @@
1
- # Changelog
2
-
3
- ## [3.0.0] - 7 December 2022
4
-
5
- ### Changed
6
- - Add version 4.0.1 of the Android SDK to `android/libs`
7
- - Remove everything to do with `googleApplicationId` from Android, as this setting was completely removed from Selligent's SDK
8
- - On Android, use an SMNotificationButton's button action's `getValue()` method to get the action value, in accordance with Selligent's new API
9
- - Change development dependency version of `react-native` to `^0.70.6`
10
-
11
- ## [2.10.0] - 12 September 2022
12
-
13
- ### Added
14
- - Add section on application lifecycle management split between `AppDelegate` and `SceneDelegate` with regards to Selligent push notification handling on iOS 15+ in README
15
- - Add a couple of markdown code language identifiers for syntax highlightinh in README
16
- - Add disclaimer concerning this module's incompatibility with React Native's new architecture in README
17
- - Add disclaimer plot project's minimum version upgrade to `3.5.0` for `iOS` in README
18
-
19
- ### Changed
20
- - Add version 3.10.1 of the Android SDK to `android/libs`
21
- - Add version 2.7.7 of the iOS SDK static library to `/ios`
22
- - Change development dependency versions of `react` and `react-native` to `18.1.0` and `^0.70.0`, respectively
23
- - Upgrade the `compileSdkVersion` and `targetSdkVersion` to `32` in `android/build.gradle`
24
- - Upgrade the Android Gradle Plugin version to `7.2.2`
25
- - Upgrade the `om.google.code.gson:gson` and `androidx.work:work-runtime` dependencies to `2.8.9` and `2.7.1` respectively in `android/build.gradle`
26
- - Change used native SDK version numbers to `3.10.1` and `2.7.7` for Android and iOS respectively in README
27
-
28
- ### Fixed
29
- - Fix typos in README
30
-
31
- ## [2.9.0] - 20 May 2022
32
-
33
- ### Added
34
- - Add possibility to set the app's notification channel's ID, name and description on `Android` via `notificationChannelId`, `notificationChannelName`, and `notificationChannelDescription` settings keys in `selligent.json`.
35
- - Add comment to README about rich push notification method invocation deprecation on iOS.
36
-
37
- ### Changed
38
- - Add version 3.9.0 of the Android SDK to `android/libs`
39
- - Add version 2.7.4 of the iOS SDK static library to `/ios`
40
- - Change used native SDK version numbers to `3.9.0` and `2.7.4` for Android and iOS respectively in README
41
-
42
- ## [2.8.0] - 18 February 2022
43
-
44
- ### Added
45
- - Re-add plotProjects dependency for Android in `android/build.gradle`
46
- - Re-add geolocation native module functions (`enableGeolocation`, `isGeoLocationEnabled`) for Android
47
- - Re-add geofencing header files for iOS in `ios/include` and module files in `ios/`
48
- - Re-add plotProjects and geolocation documentation to README
49
- - Add documentation regarding the Gradle build tool version and Gradle version compatability
50
-
51
- ### Changed
52
- - Add version 3.8.1 of the Android SDK to `android/libs`
53
- - Swap the deprecated maven plugin and its archiving capabilities for the maven-publish plugin in `android/build.gradle`
54
- - Add version 2.7.2 of the iOS SDK static library to `ios/`
55
- - Change used native SDK version numbers to `3.8.1` and `2.7.2` for Android and iOS respectively in README
56
- - Bump the react-native library to `0.67.2` in `package.json`
57
- - Bump wrapper version to `2.8.0` in `package.json`
58
-
59
- ### Fixed
60
- - Fix typos in README as duly noted in https://github.com/SelligentMarketingCloud/MobileSDK-ReactNative/issues/25
package/android/README.md DELETED
@@ -1,15 +0,0 @@
1
-
2
- README
3
- ======
4
-
5
- If you want to publish the lib as a maven dependency, follow these steps before publishing a new version to npm:
6
-
7
- 1. Be sure to have the Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/guides/index.html) installed
8
- 2. Be sure to have a `local.properties` file in this folder that points to the Android SDK and NDK
9
- ```
10
- ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle
11
- sdk.dir=/Users/{username}/Library/Android/sdk
12
- ```
13
- 3. Delete the `maven` folder
14
- 4. Run `sudo ./gradlew installArchives`
15
- 5. Verify that latest set of generated files is in the maven folder with the correct version number
@@ -1,12 +0,0 @@
1
- /**
2
- * Automatically generated file. DO NOT MODIFY
3
- */
4
- package com.selligent;
5
-
6
- public final class BuildConfig {
7
- public static final boolean DEBUG = Boolean.parseBoolean("true");
8
- public static final String LIBRARY_PACKAGE_NAME = "com.selligent";
9
- public static final String BUILD_TYPE = "debug";
10
- // Selligent settings
11
- public static final String SELLIGENT_SETTINGS = "{\"url\":\"https://mobile.emsecure.net/mobilepush/api/\",\"clientId\":\"4acaf646-ef68-4b78-9a30-8412d3007cba\",\"privateKey\":\"TzYgBoYF+I1fZ+1Tapdpz+XQXKyLUZocDzmWV1kBYHKIQ8WWWXL61/m7FWo8mY6hSrAMVUoH1EaViq7+dgQ9Jg==\",\"fullyQualifiedNotificationActivityClassName\":\"com.selligentdevapprn.MainActivity\",\"inAppMessageRefreshType\":11,\"configureLocationServices\":true,\"notificationSmallIcon\":\"ic_notification\",\"notificationLargeIcon\":\"ic_notification\",\"notificationIconColor\":\"#FF0000\",\"appGroupId\":\"group.be.appfoundry.selligent.reactnative.development.app\",\"notificationChannelId\":\"SMChannel001\",\"notificationChannelName\":\"SMDefaultChannel\",\"notificationChannelDescription\":\"\",\"shouldClearBadge\":true,\"shouldDisplayRemoteNotification\":true,\"clearCacheIntervalValue\":1}";
12
- }
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.selligent" >
4
-
5
- <uses-sdk
6
- android:minSdkVersion="21"
7
- android:targetSdkVersion="32" />
8
-
9
- </manifest>
@@ -1,18 +0,0 @@
1
- {
2
- "version": 3,
3
- "artifactType": {
4
- "type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
5
- "kind": "Directory"
6
- },
7
- "applicationId": "com.selligent",
8
- "variantName": "debug",
9
- "elements": [
10
- {
11
- "type": "SINGLE",
12
- "filters": [],
13
- "attributes": [],
14
- "outputFile": "AndroidManifest.xml"
15
- }
16
- ],
17
- "elementType": "File"
18
- }
@@ -1,4 +0,0 @@
1
- aarFormatVersion=1.0
2
- aarMetadataVersion=1.0
3
- minCompileSdk=1
4
- minAndroidGradlePluginVersion=1.0.0