@selligent-marketing-cloud/selligent-react-native 3.2.6 → 3.3.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 (41) hide show
  1. package/README.md +28 -42
  2. package/RNSelligentMapper.podspec +22 -0
  3. package/android/build.gradle +6 -4
  4. package/android/src/main/java/com/selligent/BroadcastDataFactory.java +12 -6
  5. package/android/src/main/java/com/selligent/ButtonAction.java +2 -1
  6. package/android/src/main/java/com/selligent/ButtonBroadcastEventDataParser.java +9 -1
  7. package/android/src/main/java/com/selligent/Event.java +3 -3
  8. package/android/src/main/java/com/selligent/InAppMessageBroadcastEventDataParser.java +9 -1
  9. package/android/src/main/java/com/selligent/RNSelligent.java +96 -75
  10. package/android/src/main/java/com/selligent/SMEventFactory.java +2 -1
  11. package/android/src/main/java/com/selligent/SMSettingsFactory.java +3 -0
  12. package/android/src/main/java/com/selligent/Settings.java +15 -3
  13. package/documentation/README.md +52 -11
  14. package/index.android.js +0 -9
  15. package/index.js +9 -0
  16. package/ios/RNSelligentMapper.m +8 -4
  17. package/package.json +2 -3
  18. package/RNSelligent.podspec +0 -21
  19. package/ios/RNSelligentMobileSDK.xcframework/Info.plist +0 -40
  20. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +0 -350
  21. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Info.plist +0 -0
  22. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.abi.json +0 -2603
  23. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -59
  24. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  25. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftinterface +0 -59
  26. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/module.modulemap +0 -4
  27. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
  28. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +0 -179
  29. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +0 -696
  30. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Info.plist +0 -0
  31. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -2603
  32. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -59
  33. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  34. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -59
  35. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -2603
  36. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -59
  37. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  38. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -59
  39. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/module.modulemap +0 -4
  40. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
  41. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +0 -234
@@ -1,59 +0,0 @@
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 arm64-apple-ios11.0 -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
- }
@@ -1,59 +0,0 @@
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 arm64-apple-ios11.0 -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
- }
@@ -1,4 +0,0 @@
1
- framework module RNSelligentMobileSDK {
2
- header "RNSelligentMobileSDK-Swift.h"
3
- requires objc
4
- }
@@ -1,179 +0,0 @@
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
- wU1egIresy4fbEudUZzJyBch+Tw=
10
- </data>
11
- <key>Info.plist</key>
12
- <data>
13
- ACfbjSxzkBRGt8mThogoY6fVJ40=
14
- </data>
15
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.abi.json</key>
16
- <data>
17
- tc8MJ55RjFe9vo6UhhUvhZ1PpqE=
18
- </data>
19
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
20
- <data>
21
- kmLJP1V8UvFfJx8XwigrW2WO6EU=
22
- </data>
23
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
24
- <data>
25
- PAWVrA5gmlwfbAGSjUnHnXfMjiw=
26
- </data>
27
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
28
- <data>
29
- kmLJP1V8UvFfJx8XwigrW2WO6EU=
30
- </data>
31
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftmodule</key>
32
- <data>
33
- HBfd1HYFMjZtdR8zUy5vUBCSHiI=
34
- </data>
35
- <key>Modules/module.modulemap</key>
36
- <data>
37
- ud88UVqZgcSH0f8AbK5AbeqzEAE=
38
- </data>
39
- </dict>
40
- <key>files2</key>
41
- <dict>
42
- <key>Headers/RNSelligentMobileSDK-Swift.h</key>
43
- <dict>
44
- <key>hash2</key>
45
- <data>
46
- uMLTkkzOBCCLkg67MZR0HYOxt+gQHKHGMyVwpDmcA3c=
47
- </data>
48
- </dict>
49
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.abi.json</key>
50
- <dict>
51
- <key>hash2</key>
52
- <data>
53
- 7943n7fiHc3svhqLh3An+v3KLqbpBQIgQuPdd+6fX3Y=
54
- </data>
55
- </dict>
56
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
57
- <dict>
58
- <key>hash2</key>
59
- <data>
60
- XxGo1V42W7lJV49nctPbCvHqCqA6kNGQ03UUzfzv4AQ=
61
- </data>
62
- </dict>
63
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
64
- <dict>
65
- <key>hash2</key>
66
- <data>
67
- vRTxcCjUYPic8xITkjwvDfBaXPjQ7BHog2thh1rk/qw=
68
- </data>
69
- </dict>
70
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
71
- <dict>
72
- <key>hash2</key>
73
- <data>
74
- XxGo1V42W7lJV49nctPbCvHqCqA6kNGQ03UUzfzv4AQ=
75
- </data>
76
- </dict>
77
- <key>Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftmodule</key>
78
- <dict>
79
- <key>hash2</key>
80
- <data>
81
- EcYudGcjgLuI0tPDFhHdfgWnHxjqAKzfnsDru3R1t50=
82
- </data>
83
- </dict>
84
- <key>Modules/module.modulemap</key>
85
- <dict>
86
- <key>hash2</key>
87
- <data>
88
- b2z1gUaLy3SjL0vgzLkqUo/VaeEmEhUS3608GLC3lg8=
89
- </data>
90
- </dict>
91
- </dict>
92
- <key>rules</key>
93
- <dict>
94
- <key>^.*</key>
95
- <true/>
96
- <key>^.*\.lproj/</key>
97
- <dict>
98
- <key>optional</key>
99
- <true/>
100
- <key>weight</key>
101
- <real>1000</real>
102
- </dict>
103
- <key>^.*\.lproj/locversion.plist$</key>
104
- <dict>
105
- <key>omit</key>
106
- <true/>
107
- <key>weight</key>
108
- <real>1100</real>
109
- </dict>
110
- <key>^Base\.lproj/</key>
111
- <dict>
112
- <key>weight</key>
113
- <real>1010</real>
114
- </dict>
115
- <key>^version.plist$</key>
116
- <true/>
117
- </dict>
118
- <key>rules2</key>
119
- <dict>
120
- <key>.*\.dSYM($|/)</key>
121
- <dict>
122
- <key>weight</key>
123
- <real>11</real>
124
- </dict>
125
- <key>^(.*/)?\.DS_Store$</key>
126
- <dict>
127
- <key>omit</key>
128
- <true/>
129
- <key>weight</key>
130
- <real>2000</real>
131
- </dict>
132
- <key>^.*</key>
133
- <true/>
134
- <key>^.*\.lproj/</key>
135
- <dict>
136
- <key>optional</key>
137
- <true/>
138
- <key>weight</key>
139
- <real>1000</real>
140
- </dict>
141
- <key>^.*\.lproj/locversion.plist$</key>
142
- <dict>
143
- <key>omit</key>
144
- <true/>
145
- <key>weight</key>
146
- <real>1100</real>
147
- </dict>
148
- <key>^Base\.lproj/</key>
149
- <dict>
150
- <key>weight</key>
151
- <real>1010</real>
152
- </dict>
153
- <key>^Info\.plist$</key>
154
- <dict>
155
- <key>omit</key>
156
- <true/>
157
- <key>weight</key>
158
- <real>20</real>
159
- </dict>
160
- <key>^PkgInfo$</key>
161
- <dict>
162
- <key>omit</key>
163
- <true/>
164
- <key>weight</key>
165
- <real>20</real>
166
- </dict>
167
- <key>^embedded\.provisionprofile$</key>
168
- <dict>
169
- <key>weight</key>
170
- <real>20</real>
171
- </dict>
172
- <key>^version\.plist$</key>
173
- <dict>
174
- <key>weight</key>
175
- <real>20</real>
176
- </dict>
177
- </dict>
178
- </dict>
179
- </plist>