@grouplinknetwork/rn-grouplink-sdk 2.5.1 → 2.7.0-beta.1

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 (52) hide show
  1. package/README.md +0 -12
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/grouplinksdk/GrouplinkSdkModule.java +46 -0
  4. package/grouplink-sdk.podspec +5 -1
  5. package/ios/Frameworks/GroupLink.xcframework/Info.plist +44 -0
  6. package/ios/Frameworks/GroupLink.xcframework/_CodeSignature/CodeDirectory +0 -0
  7. package/ios/Frameworks/GroupLink.xcframework/_CodeSignature/CodeRequirements +0 -0
  8. package/ios/Frameworks/GroupLink.xcframework/_CodeSignature/CodeResources +574 -0
  9. package/ios/Frameworks/GroupLink.xcframework/_CodeSignature/CodeSignature +0 -0
  10. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/GroupLink +0 -0
  11. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink-Swift.h +443 -0
  12. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink.h +18 -0
  13. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Info.plist +0 -0
  14. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.abi.json +6487 -0
  15. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.private.swiftinterface +90 -0
  16. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.swiftinterface +90 -0
  18. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/module.modulemap +10 -0
  19. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/PrivacyInfo.xcprivacy +74 -0
  20. package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/_CodeSignature/CodeResources +201 -0
  21. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/GroupLink +0 -0
  22. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink-Swift.h +882 -0
  23. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink.h +18 -0
  24. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Info.plist +0 -0
  25. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.abi.json +6487 -0
  26. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +90 -0
  27. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  28. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftinterface +90 -0
  29. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.abi.json +6487 -0
  30. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +90 -0
  31. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  32. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +90 -0
  33. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/module.modulemap +10 -0
  34. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/PrivacyInfo.xcprivacy +74 -0
  35. package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/_CodeSignature/CodeResources +256 -0
  36. package/ios/GrouplinkSdk.mm +34 -2
  37. package/ios/GrouplinkSdk.swift +11 -1
  38. package/ios/GrouplinkSdk.xcodeproj/project.xcworkspace/xcuserdata/gabrieltorelo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  39. package/ios/GrouplinkSdk.xcodeproj/xcuserdata/gabrieltorelo.xcuserdatad/xcschemes/xcschememanagement.plist +8 -0
  40. package/lib/commonjs/NativeGrouplinkSdk.js.map +1 -1
  41. package/lib/commonjs/index.js +63 -13
  42. package/lib/commonjs/index.js.map +1 -1
  43. package/lib/module/NativeGrouplinkSdk.js.map +1 -1
  44. package/lib/module/index.js +61 -13
  45. package/lib/module/index.js.map +1 -1
  46. package/lib/typescript/NativeGrouplinkSdk.d.ts +16 -0
  47. package/lib/typescript/NativeGrouplinkSdk.d.ts.map +1 -1
  48. package/lib/typescript/index.d.ts +26 -3
  49. package/lib/typescript/index.d.ts.map +1 -1
  50. package/package.json +1 -1
  51. package/src/NativeGrouplinkSdk.ts +16 -0
  52. package/src/index.tsx +64 -13
@@ -0,0 +1,90 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
3
+ // swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name GroupLink
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
5
+ import BackgroundTasks
6
+ import CommonCrypto
7
+ import Compression
8
+ import CoreBluetooth
9
+ import CoreLocation
10
+ import CoreTelephony
11
+ import CryptoKit
12
+ import Foundation
13
+ @_exported import GroupLink
14
+ import Network
15
+ import NetworkExtension
16
+ import OSLog
17
+ import SQLite3
18
+ import Security
19
+ import Swift
20
+ import UIKit
21
+ import UserNotifications
22
+ import _Concurrency
23
+ import _StringProcessing
24
+ import _SwiftConcurrencyShims
25
+ @_inheritsConvenienceInitializers @objc final public class GroupLinkNotifications : ObjectiveC.NSObject {
26
+ @objc public static func isGroupLinkNotification(request: UserNotifications.UNNotificationRequest, contentHandler: @escaping (UserNotifications.UNNotificationContent) -> Swift.Void, bestAttemptContent: UserNotifications.UNMutableNotificationContent?) -> Swift.Bool
27
+ @objc public static func GLNotificationDidReceive(_ center: UserNotifications.UNUserNotificationCenter, didReceive response: UserNotifications.UNNotificationResponse)
28
+ @objc public static func GLNotificationDidReceive(_ center: UserNotifications.UNUserNotificationCenter, didReceive response: UserNotifications.UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Swift.Void)
29
+ @objc public static func setRemoteNotificationToken(_ token: Swift.String)
30
+ public static func userNotificationCenter(_ center: UserNotifications.UNUserNotificationCenter, didReceive response: UserNotifications.UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Swift.Void)
31
+ @objc override dynamic public init()
32
+ @objc deinit
33
+ }
34
+ @_inheritsConvenienceInitializers @objc final public class GroupLinkSDK : ObjectiveC.NSObject {
35
+ public static var bootInProgress: Swift.Bool
36
+ @available(*, deprecated, message: "Use start(appLabel: )")
37
+ public static func start(token: Swift.String)
38
+ @available(*, deprecated, message: "Use start(appLabel: )")
39
+ @objc public static func start(withToken token: Swift.String)
40
+ @objc public static func start(appLabel: Swift.String)
41
+ @objc public static func startBluetooth()
42
+ @objc public static func checkBluetooth()
43
+ @objc public static func startLocation()
44
+ @objc public static func getUserID() -> Swift.String?
45
+ @objc public static func getDeviceKey(onResult: @escaping (Swift.String) -> Swift.Void, onError: @escaping (Swift.String) -> Swift.Void)
46
+ @objc public static func getCurrentVersion() -> Swift.String
47
+ @available(*, deprecated, message: "Use setRemoteId(_ name: String) instead. Notification name is now remote id, and it is used to identify the device in the backend.\nIt is recommended to use a unique identifier for each device, such as a UUID or the user id.")
48
+ @objc public static func setNotificationName(_ name: Swift.String)
49
+ @objc public static func setRemoteId(_ name: Swift.String)
50
+ @available(*, deprecated, message: "Use GroupLinkNotifications.setRemoteNotificationToken(_ token: String)")
51
+ @objc public static func sendNotificationToken(_ token: Swift.String)
52
+ @objc public static func isDeveloperMode() -> Swift.Bool
53
+ @objc override dynamic public init()
54
+ @objc deinit
55
+ }
56
+ public struct InfoAirNotificationData : Swift.Codable, Swift.Sendable {
57
+ public let idRef: Swift.String
58
+ public let notificationID: Swift.Int
59
+ public let title: Swift.String
60
+ public let subtitle: Swift.String?
61
+ public let body: Swift.String
62
+ public let category: GroupLink.InfoAirNotificationCategory
63
+ public init(idRef: Swift.String, notificationID: Swift.Int, title: Swift.String, subtitle: Swift.String?, body: Swift.String, category: GroupLink.InfoAirNotificationCategory)
64
+ public func encode(to encoder: any Swift.Encoder) throws
65
+ public init(from decoder: any Swift.Decoder) throws
66
+ }
67
+ public enum InfoAirNotificationCategory : Swift.String, Swift.Codable, Swift.Sendable {
68
+ case simple
69
+ case rich
70
+ case critical
71
+ public init?(rawValue: Swift.String)
72
+ public typealias RawValue = Swift.String
73
+ public var rawValue: Swift.String {
74
+ get
75
+ }
76
+ }
77
+ public enum LogType {
78
+ case debug
79
+ case error
80
+ public static func == (a: GroupLink.LogType, b: GroupLink.LogType) -> Swift.Bool
81
+ public func hash(into hasher: inout Swift.Hasher)
82
+ public var hashValue: Swift.Int {
83
+ get
84
+ }
85
+ }
86
+ extension GroupLink.InfoAirNotificationCategory : Swift.Equatable {}
87
+ extension GroupLink.InfoAirNotificationCategory : Swift.Hashable {}
88
+ extension GroupLink.InfoAirNotificationCategory : Swift.RawRepresentable {}
89
+ extension GroupLink.LogType : Swift.Equatable {}
90
+ extension GroupLink.LogType : Swift.Hashable {}
@@ -0,0 +1,90 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
3
+ // swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name GroupLink
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
5
+ import BackgroundTasks
6
+ import CommonCrypto
7
+ import Compression
8
+ import CoreBluetooth
9
+ import CoreLocation
10
+ import CoreTelephony
11
+ import CryptoKit
12
+ import Foundation
13
+ @_exported import GroupLink
14
+ import Network
15
+ import NetworkExtension
16
+ import OSLog
17
+ import SQLite3
18
+ import Security
19
+ import Swift
20
+ import UIKit
21
+ import UserNotifications
22
+ import _Concurrency
23
+ import _StringProcessing
24
+ import _SwiftConcurrencyShims
25
+ @_inheritsConvenienceInitializers @objc final public class GroupLinkNotifications : ObjectiveC.NSObject {
26
+ @objc public static func isGroupLinkNotification(request: UserNotifications.UNNotificationRequest, contentHandler: @escaping (UserNotifications.UNNotificationContent) -> Swift.Void, bestAttemptContent: UserNotifications.UNMutableNotificationContent?) -> Swift.Bool
27
+ @objc public static func GLNotificationDidReceive(_ center: UserNotifications.UNUserNotificationCenter, didReceive response: UserNotifications.UNNotificationResponse)
28
+ @objc public static func GLNotificationDidReceive(_ center: UserNotifications.UNUserNotificationCenter, didReceive response: UserNotifications.UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Swift.Void)
29
+ @objc public static func setRemoteNotificationToken(_ token: Swift.String)
30
+ public static func userNotificationCenter(_ center: UserNotifications.UNUserNotificationCenter, didReceive response: UserNotifications.UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Swift.Void)
31
+ @objc override dynamic public init()
32
+ @objc deinit
33
+ }
34
+ @_inheritsConvenienceInitializers @objc final public class GroupLinkSDK : ObjectiveC.NSObject {
35
+ public static var bootInProgress: Swift.Bool
36
+ @available(*, deprecated, message: "Use start(appLabel: )")
37
+ public static func start(token: Swift.String)
38
+ @available(*, deprecated, message: "Use start(appLabel: )")
39
+ @objc public static func start(withToken token: Swift.String)
40
+ @objc public static func start(appLabel: Swift.String)
41
+ @objc public static func startBluetooth()
42
+ @objc public static func checkBluetooth()
43
+ @objc public static func startLocation()
44
+ @objc public static func getUserID() -> Swift.String?
45
+ @objc public static func getDeviceKey(onResult: @escaping (Swift.String) -> Swift.Void, onError: @escaping (Swift.String) -> Swift.Void)
46
+ @objc public static func getCurrentVersion() -> Swift.String
47
+ @available(*, deprecated, message: "Use setRemoteId(_ name: String) instead. Notification name is now remote id, and it is used to identify the device in the backend.\nIt is recommended to use a unique identifier for each device, such as a UUID or the user id.")
48
+ @objc public static func setNotificationName(_ name: Swift.String)
49
+ @objc public static func setRemoteId(_ name: Swift.String)
50
+ @available(*, deprecated, message: "Use GroupLinkNotifications.setRemoteNotificationToken(_ token: String)")
51
+ @objc public static func sendNotificationToken(_ token: Swift.String)
52
+ @objc public static func isDeveloperMode() -> Swift.Bool
53
+ @objc override dynamic public init()
54
+ @objc deinit
55
+ }
56
+ public struct InfoAirNotificationData : Swift.Codable, Swift.Sendable {
57
+ public let idRef: Swift.String
58
+ public let notificationID: Swift.Int
59
+ public let title: Swift.String
60
+ public let subtitle: Swift.String?
61
+ public let body: Swift.String
62
+ public let category: GroupLink.InfoAirNotificationCategory
63
+ public init(idRef: Swift.String, notificationID: Swift.Int, title: Swift.String, subtitle: Swift.String?, body: Swift.String, category: GroupLink.InfoAirNotificationCategory)
64
+ public func encode(to encoder: any Swift.Encoder) throws
65
+ public init(from decoder: any Swift.Decoder) throws
66
+ }
67
+ public enum InfoAirNotificationCategory : Swift.String, Swift.Codable, Swift.Sendable {
68
+ case simple
69
+ case rich
70
+ case critical
71
+ public init?(rawValue: Swift.String)
72
+ public typealias RawValue = Swift.String
73
+ public var rawValue: Swift.String {
74
+ get
75
+ }
76
+ }
77
+ public enum LogType {
78
+ case debug
79
+ case error
80
+ public static func == (a: GroupLink.LogType, b: GroupLink.LogType) -> Swift.Bool
81
+ public func hash(into hasher: inout Swift.Hasher)
82
+ public var hashValue: Swift.Int {
83
+ get
84
+ }
85
+ }
86
+ extension GroupLink.InfoAirNotificationCategory : Swift.Equatable {}
87
+ extension GroupLink.InfoAirNotificationCategory : Swift.Hashable {}
88
+ extension GroupLink.InfoAirNotificationCategory : Swift.RawRepresentable {}
89
+ extension GroupLink.LogType : Swift.Equatable {}
90
+ extension GroupLink.LogType : Swift.Hashable {}
@@ -0,0 +1,10 @@
1
+ framework module GroupLink {
2
+ umbrella header "GroupLink.h"
3
+ export *
4
+
5
+ module * { export * }
6
+ }
7
+
8
+ module GroupLink.Swift {
9
+ header "GroupLink-Swift.h"
10
+ }
@@ -0,0 +1,74 @@
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>NSPrivacyCollectedDataTypes</key>
6
+ <array>
7
+ <dict>
8
+ <key>NSPrivacyCollectedDataType</key>
9
+ <string>NSPrivacyCollectedDataTypeOtherDataTypes</string>
10
+ <key>NSPrivacyCollectedDataTypeLinked</key>
11
+ <false/>
12
+ <key>NSPrivacyCollectedDataTypeTracking</key>
13
+ <false/>
14
+ <key>NSPrivacyCollectedDataTypePurposes</key>
15
+ <array>
16
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
17
+ </array>
18
+ </dict>
19
+ <dict>
20
+ <key>NSPrivacyCollectedDataType</key>
21
+ <string>NSPrivacyCollectedDataTypeCoarseLocation</string>
22
+ <key>NSPrivacyCollectedDataTypeLinked</key>
23
+ <false/>
24
+ <key>NSPrivacyCollectedDataTypeTracking</key>
25
+ <false/>
26
+ <key>NSPrivacyCollectedDataTypePurposes</key>
27
+ <array>
28
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
29
+ </array>
30
+ </dict>
31
+ <dict>
32
+ <key>NSPrivacyCollectedDataType</key>
33
+ <string>NSPrivacyCollectedDataTypePreciseLocation</string>
34
+ <key>NSPrivacyCollectedDataTypeLinked</key>
35
+ <false/>
36
+ <key>NSPrivacyCollectedDataTypeTracking</key>
37
+ <false/>
38
+ <key>NSPrivacyCollectedDataTypePurposes</key>
39
+ <array>
40
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
41
+ </array>
42
+ </dict>
43
+ </array>
44
+ <key>NSPrivacyAccessedAPITypes</key>
45
+ <array>
46
+ <dict>
47
+ <key>NSPrivacyAccessedAPIType</key>
48
+ <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
49
+ <key>NSPrivacyAccessedAPITypeReasons</key>
50
+ <array>
51
+ <string>35F9.1</string>
52
+ </array>
53
+ </dict>
54
+ <dict>
55
+ <key>NSPrivacyAccessedAPIType</key>
56
+ <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
57
+ <key>NSPrivacyAccessedAPITypeReasons</key>
58
+ <array>
59
+ <string>E174.1</string>
60
+ </array>
61
+ </dict>
62
+ <dict>
63
+ <key>NSPrivacyAccessedAPIType</key>
64
+ <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
65
+ <key>NSPrivacyAccessedAPITypeReasons</key>
66
+ <array>
67
+ <string>C617.1</string>
68
+ </array>
69
+ </dict>
70
+ </array>
71
+ <key>NSPrivacyTracking</key>
72
+ <false/>
73
+ </dict>
74
+ </plist>
@@ -0,0 +1,256 @@
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/GroupLink-Swift.h</key>
8
+ <data>
9
+ uLkGyv40y5m8q/TE0uz461syDPo=
10
+ </data>
11
+ <key>Headers/GroupLink.h</key>
12
+ <data>
13
+ 4UlMQJYheWFRmZxfIlPbbwPdEJw=
14
+ </data>
15
+ <key>Info.plist</key>
16
+ <data>
17
+ 3xIg0TKprTbqAuF1+LHus8vZK6k=
18
+ </data>
19
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
20
+ <data>
21
+ A+KM9KfFA5Z1wdZl+/cHTKnkEeE=
22
+ </data>
23
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
24
+ <data>
25
+ GZSIxbcfp+2x9ggK1RikmmUqago=
26
+ </data>
27
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
28
+ <data>
29
+ JmLplhVGlNpdHwacMxD1ITgs8ro=
30
+ </data>
31
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
32
+ <data>
33
+ GZSIxbcfp+2x9ggK1RikmmUqago=
34
+ </data>
35
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
36
+ <data>
37
+ qfJtzSLy6XyTZmbuRmcDNZFgz2U=
38
+ </data>
39
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
40
+ <data>
41
+ A+KM9KfFA5Z1wdZl+/cHTKnkEeE=
42
+ </data>
43
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
44
+ <data>
45
+ XB0CpueCGugE1l5o54TGTLfU/pE=
46
+ </data>
47
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
48
+ <data>
49
+ BZhhmI9PFwbm2ltySw2UHeotg0w=
50
+ </data>
51
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
52
+ <data>
53
+ XB0CpueCGugE1l5o54TGTLfU/pE=
54
+ </data>
55
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
56
+ <data>
57
+ rLa4jI6zgdECdjLVsuC4JZB7LVk=
58
+ </data>
59
+ <key>Modules/module.modulemap</key>
60
+ <data>
61
+ dl6Oxh9cEECN4Seb0zcU+FAGviM=
62
+ </data>
63
+ <key>PrivacyInfo.xcprivacy</key>
64
+ <data>
65
+ tjIByKiFrCGUX6cBeZ+DUPYa940=
66
+ </data>
67
+ </dict>
68
+ <key>files2</key>
69
+ <dict>
70
+ <key>Headers/GroupLink-Swift.h</key>
71
+ <dict>
72
+ <key>hash2</key>
73
+ <data>
74
+ jl35GK79uXTxVxjYp1M3TNXdwzUtZykZZknv+wVkDho=
75
+ </data>
76
+ </dict>
77
+ <key>Headers/GroupLink.h</key>
78
+ <dict>
79
+ <key>hash2</key>
80
+ <data>
81
+ 8r6qYA4WgPSiyTVOTouwmuwYjwglrn7t3bch0g0S2pM=
82
+ </data>
83
+ </dict>
84
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
85
+ <dict>
86
+ <key>hash2</key>
87
+ <data>
88
+ 1U0k0BvBmJTzenrcAQyhQasLQiuktQfoqK92okaNYkc=
89
+ </data>
90
+ </dict>
91
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
92
+ <dict>
93
+ <key>hash2</key>
94
+ <data>
95
+ e0i3wQx/RN07ar9JrO4ZkiBMXi2oKj0q2BgarPU3Lto=
96
+ </data>
97
+ </dict>
98
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
99
+ <dict>
100
+ <key>hash2</key>
101
+ <data>
102
+ HTportno8yQPTwTv+8+tf7D3qVfNRyskv47McKmFxFg=
103
+ </data>
104
+ </dict>
105
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
106
+ <dict>
107
+ <key>hash2</key>
108
+ <data>
109
+ e0i3wQx/RN07ar9JrO4ZkiBMXi2oKj0q2BgarPU3Lto=
110
+ </data>
111
+ </dict>
112
+ <key>Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
113
+ <dict>
114
+ <key>hash2</key>
115
+ <data>
116
+ n4PFM6bGk/12EXlNJpTxOWCQ/Q+/MlC0VrgOiviRi5E=
117
+ </data>
118
+ </dict>
119
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
120
+ <dict>
121
+ <key>hash2</key>
122
+ <data>
123
+ 1U0k0BvBmJTzenrcAQyhQasLQiuktQfoqK92okaNYkc=
124
+ </data>
125
+ </dict>
126
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
127
+ <dict>
128
+ <key>hash2</key>
129
+ <data>
130
+ H/5cnchP5SW+8N2VKnfveIGrU3iuN8z5Ar7jNc9VAKg=
131
+ </data>
132
+ </dict>
133
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
134
+ <dict>
135
+ <key>hash2</key>
136
+ <data>
137
+ 24dylqX2m8cO/2j2VSlMO8N5wIlERtsruRmyL+Jel/s=
138
+ </data>
139
+ </dict>
140
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
141
+ <dict>
142
+ <key>hash2</key>
143
+ <data>
144
+ H/5cnchP5SW+8N2VKnfveIGrU3iuN8z5Ar7jNc9VAKg=
145
+ </data>
146
+ </dict>
147
+ <key>Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
148
+ <dict>
149
+ <key>hash2</key>
150
+ <data>
151
+ 4BCJ8juagBNDOvvoduFLKt/VWyK+HbC7BnIilrg1xsM=
152
+ </data>
153
+ </dict>
154
+ <key>Modules/module.modulemap</key>
155
+ <dict>
156
+ <key>hash2</key>
157
+ <data>
158
+ JjrI/jrQgIwjWmCHi0EHY13GBkNuohBN1FZodE7YXWY=
159
+ </data>
160
+ </dict>
161
+ <key>PrivacyInfo.xcprivacy</key>
162
+ <dict>
163
+ <key>hash2</key>
164
+ <data>
165
+ DbeK2tsEgOTB1wpoxOr6EWYFkHESkKsOLZWhfCBdTo0=
166
+ </data>
167
+ </dict>
168
+ </dict>
169
+ <key>rules</key>
170
+ <dict>
171
+ <key>^.*</key>
172
+ <true/>
173
+ <key>^.*\.lproj/</key>
174
+ <dict>
175
+ <key>optional</key>
176
+ <true/>
177
+ <key>weight</key>
178
+ <real>1000</real>
179
+ </dict>
180
+ <key>^.*\.lproj/locversion.plist$</key>
181
+ <dict>
182
+ <key>omit</key>
183
+ <true/>
184
+ <key>weight</key>
185
+ <real>1100</real>
186
+ </dict>
187
+ <key>^Base\.lproj/</key>
188
+ <dict>
189
+ <key>weight</key>
190
+ <real>1010</real>
191
+ </dict>
192
+ <key>^version.plist$</key>
193
+ <true/>
194
+ </dict>
195
+ <key>rules2</key>
196
+ <dict>
197
+ <key>.*\.dSYM($|/)</key>
198
+ <dict>
199
+ <key>weight</key>
200
+ <real>11</real>
201
+ </dict>
202
+ <key>^(.*/)?\.DS_Store$</key>
203
+ <dict>
204
+ <key>omit</key>
205
+ <true/>
206
+ <key>weight</key>
207
+ <real>2000</real>
208
+ </dict>
209
+ <key>^.*</key>
210
+ <true/>
211
+ <key>^.*\.lproj/</key>
212
+ <dict>
213
+ <key>optional</key>
214
+ <true/>
215
+ <key>weight</key>
216
+ <real>1000</real>
217
+ </dict>
218
+ <key>^.*\.lproj/locversion.plist$</key>
219
+ <dict>
220
+ <key>omit</key>
221
+ <true/>
222
+ <key>weight</key>
223
+ <real>1100</real>
224
+ </dict>
225
+ <key>^Base\.lproj/</key>
226
+ <dict>
227
+ <key>weight</key>
228
+ <real>1010</real>
229
+ </dict>
230
+ <key>^Info\.plist$</key>
231
+ <dict>
232
+ <key>omit</key>
233
+ <true/>
234
+ <key>weight</key>
235
+ <real>20</real>
236
+ </dict>
237
+ <key>^PkgInfo$</key>
238
+ <dict>
239
+ <key>omit</key>
240
+ <true/>
241
+ <key>weight</key>
242
+ <real>20</real>
243
+ </dict>
244
+ <key>^embedded\.provisionprofile$</key>
245
+ <dict>
246
+ <key>weight</key>
247
+ <real>20</real>
248
+ </dict>
249
+ <key>^version\.plist$</key>
250
+ <dict>
251
+ <key>weight</key>
252
+ <real>20</real>
253
+ </dict>
254
+ </dict>
255
+ </dict>
256
+ </plist>
@@ -39,7 +39,7 @@ RCT_EXPORT_MODULE(RNGroupLinkSDK)
39
39
  // ---------------------------------------------------------------------------
40
40
 
41
41
  - (void)startIOS:(NSString *)withToken {
42
- [GrouplinkBridge startWithToken:withToken];
42
+ [GrouplinkBridge startIOSWithToken:withToken];
43
43
  }
44
44
 
45
45
  - (void)setDevicePushToken:(NSString *)withPushToken {
@@ -58,6 +58,11 @@ RCT_EXPORT_MODULE(RNGroupLinkSDK)
58
58
  [GrouplinkBridge startLocation];
59
59
  }
60
60
 
61
+ - (void)setRemoteIdIOS:(NSString *)remoteId {
62
+ _iosNotificationName = remoteId;
63
+ [GrouplinkBridge setRemoteIdIOS:remoteId];
64
+ }
65
+
61
66
  - (void)setNotificationNameIOS:(NSString *)withNotificationName {
62
67
  _iosNotificationName = withNotificationName;
63
68
  [GrouplinkBridge setNotificationName:withNotificationName];
@@ -73,6 +78,15 @@ RCT_EXPORT_MODULE(RNGroupLinkSDK)
73
78
  }
74
79
  }
75
80
 
81
+ - (void)getDeviceKeyIOS:(RCTPromiseResolveBlock)resolve
82
+ reject:(RCTPromiseRejectBlock)reject {
83
+ [GrouplinkBridge getDeviceKeyOnResult:^(NSString *deviceKey) {
84
+ resolve(deviceKey);
85
+ } onError:^(NSString *errorMessage) {
86
+ resolve(errorMessage);
87
+ }];
88
+ }
89
+
76
90
  - (void)getNotificationNameIOS:(RCTPromiseResolveBlock)resolve
77
91
  reject:(RCTPromiseRejectBlock)reject {
78
92
  resolve(_iosNotificationName);
@@ -87,6 +101,11 @@ RCT_EXPORT_MODULE(RNGroupLinkSDK)
87
101
  reject(@"unsupported", @"getUserIdAndroid is Android only", nil);
88
102
  }
89
103
 
104
+ - (void)getDeviceKeyAndroid:(RCTPromiseResolveBlock)resolve
105
+ reject:(RCTPromiseRejectBlock)reject {
106
+ reject(@"unsupported", @"getDeviceKeyAndroid is Android only", nil);
107
+ }
108
+
90
109
  - (void)startAndroid:(NSString *)token debbugable:(BOOL)debbugable {}
91
110
 
92
111
  - (void)setFirebaseToken:(NSString *)token {}
@@ -131,7 +150,7 @@ RCT_EXPORT_MODULE(RNGroupLinkSDK)
131
150
  // ---------------------------------------------------------------------------
132
151
 
133
152
  RCT_EXPORT_METHOD(startIOS:(NSString *)withToken) {
134
- [GrouplinkBridge startWithToken:withToken];
153
+ [GrouplinkBridge startIOSWithToken:withToken];
135
154
  }
136
155
 
137
156
  RCT_EXPORT_METHOD(setDevicePushToken:(NSString *)withPushToken) {
@@ -150,6 +169,10 @@ RCT_EXPORT_METHOD(startLocationIOS) {
150
169
  [GrouplinkBridge startLocation];
151
170
  }
152
171
 
172
+ RCT_EXPORT_METHOD(setRemoteIdIOS:(NSString *)remoteId) {
173
+ [GrouplinkBridge setRemoteIdIOS:remoteId];
174
+ }
175
+
153
176
  RCT_EXPORT_METHOD(setNotificationNameIOS:(NSString *)withNotificationName) {
154
177
  _iosNotificationName = withNotificationName;
155
178
  [GrouplinkBridge setNotificationName:withNotificationName];
@@ -165,6 +188,15 @@ RCT_EXPORT_METHOD(getUserID:(RCTPromiseResolveBlock)resolve
165
188
  }
166
189
  }
167
190
 
191
+ RCT_EXPORT_METHOD(getDeviceKeyIOS:(RCTPromiseResolveBlock)resolve
192
+ rejecter:(RCTPromiseRejectBlock)reject) {
193
+ [GrouplinkBridge getDeviceKeyOnResult:^(NSString *deviceKey) {
194
+ resolve(deviceKey);
195
+ } onError:^(NSString *errorMessage) {
196
+ resolve(errorMessage);
197
+ }];
198
+ }
199
+
168
200
  RCT_EXPORT_METHOD(getNotificationNameIOS:(RCTPromiseResolveBlock)resolve
169
201
  rejecter:(RCTPromiseRejectBlock)reject) {
170
202
  resolve(_iosNotificationName);
@@ -5,7 +5,8 @@ import GroupLink
5
5
  /// Necessary because GroupLink.xcframework only exports Swift ABI symbols,
6
6
  /// not ObjC class symbols, so direct ObjC++ calls would fail at link time.
7
7
  @objc public class GrouplinkBridge: NSObject {
8
- @objc public static func start(token: String) {
8
+
9
+ @objc public static func startIOS(token: String) {
9
10
  GroupLinkSDK.start(withToken: token)
10
11
  }
11
12
 
@@ -25,10 +26,19 @@ import GroupLink
25
26
  GroupLinkSDK.setNotificationName(name)
26
27
  }
27
28
 
29
+ @objc public static func setRemoteIdIOS(_ remoteId: String) {
30
+ GroupLinkSDK.setRemoteId(remoteId)
31
+ }
32
+
28
33
  @objc public static func getUserID() -> String? {
29
34
  return GroupLinkSDK.getUserID()
30
35
  }
31
36
 
37
+ @objc(getDeviceKeyOnResult:onError:)
38
+ public static func getDeviceKey(onResult: @escaping (String) -> Void, onError: @escaping (String) -> Void) {
39
+ GroupLinkSDK.getDeviceKey(onResult: onResult, onError: onError)
40
+ }
41
+
32
42
  @objc public static func setRemoteNotificationToken(_ token: String) {
33
43
  GroupLinkNotifications.setRemoteNotificationToken(token)
34
44
  }
@@ -10,5 +10,13 @@
10
10
  <integer>0</integer>
11
11
  </dict>
12
12
  </dict>
13
+ <key>SuppressBuildableAutocreation</key>
14
+ <dict>
15
+ <key>58B511DA1A9E6C8500147676</key>
16
+ <dict>
17
+ <key>primary</key>
18
+ <true/>
19
+ </dict>
20
+ </dict>
13
21
  </dict>
14
22
  </plist>
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeGrouplinkSdk.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAuBpCC,gCAAmB,CAACC,YAAY,CAAO,gBAAgB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeGrouplinkSdk.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAuCpCC,gCAAmB,CAACC,YAAY,CAAO,gBAAgB,CAAC","ignoreList":[]}