@grouplinknetwork/rn-grouplink-sdk 2.6.0 → 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.
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/grouplinksdk/GrouplinkSdkModule.java +29 -0
- package/grouplink-sdk.podspec +5 -1
- package/ios/Frameworks/GroupLink.xcframework/Info.plist +44 -0
- package/ios/Frameworks/GroupLink.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/GroupLink.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/Frameworks/GroupLink.xcframework/_CodeSignature/CodeResources +574 -0
- package/ios/Frameworks/GroupLink.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/GroupLink +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink-Swift.h +443 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Headers/GroupLink.h +18 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Info.plist +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.abi.json +6487 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.private.swiftinterface +90 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios.swiftinterface +90 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/Modules/module.modulemap +10 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/PrivacyInfo.xcprivacy +74 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64/GroupLink.framework/_CodeSignature/CodeResources +201 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/GroupLink +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink-Swift.h +882 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Headers/GroupLink.h +18 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Info.plist +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.abi.json +6487 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +90 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/arm64-apple-ios-simulator.swiftinterface +90 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.abi.json +6487 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +90 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/GroupLink.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +90 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/Modules/module.modulemap +10 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/PrivacyInfo.xcprivacy +74 -0
- package/ios/Frameworks/GroupLink.xcframework/ios-arm64_x86_64-simulator/GroupLink.framework/_CodeSignature/CodeResources +256 -0
- package/ios/GrouplinkSdk.mm +23 -0
- package/ios/GrouplinkSdk.swift +5 -0
- package/ios/GrouplinkSdk.xcodeproj/project.xcworkspace/xcuserdata/gabrieltorelo.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/GrouplinkSdk.xcodeproj/xcuserdata/gabrieltorelo.xcuserdatad/xcschemes/xcschememanagement.plist +8 -0
- package/lib/commonjs/NativeGrouplinkSdk.js.map +1 -1
- package/lib/commonjs/index.js +9 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/NativeGrouplinkSdk.js.map +1 -1
- package/lib/module/index.js +8 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/NativeGrouplinkSdk.d.ts +2 -0
- package/lib/typescript/NativeGrouplinkSdk.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/NativeGrouplinkSdk.ts +2 -0
- package/src/index.tsx +10 -0
|
@@ -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 arm64-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 {}
|
|
Binary file
|
|
@@ -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 arm64-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 {}
|