bridgefy-react-native 1.0.3 → 1.1.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.
- package/android/build.gradle +2 -2
- package/android/gradle.properties +3 -3
- package/android/src/main/java/me/bridgefy/plugin/react_native/BridgefyReactNativeModule.kt +62 -31
- package/ios/BridgefyReactNative.m +3 -1
- package/ios/BridgefyReactNative.swift +20 -13
- package/ios/Frameworks/BridgefySDK.xcframework/Info.plist +5 -5
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64/BridgefySDK.framework/BridgefySDK +0 -0
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64/BridgefySDK.framework/Info.plist +0 -0
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/arm64-apple-ios.abi.json +1833 -1130
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/arm64-apple-ios.private.swiftinterface +15 -7
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/arm64-apple-ios.swiftinterface +15 -7
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64/BridgefySDK.framework/_CodeSignature/CodeResources +11 -11
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64/dSYMs/BridgefySDK.framework.dSYM/Contents/Resources/DWARF/BridgefySDK +0 -0
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/BridgefySDK +0 -0
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Info.plist +0 -0
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1833 -1130
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +15 -7
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +15 -7
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1833 -1130
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +15 -7
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/Modules/BridgefySDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +15 -7
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/BridgefySDK.framework/_CodeSignature/CodeResources +21 -21
- package/ios/Frameworks/BridgefySDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/BridgefySDK.framework.dSYM/Contents/Resources/DWARF/BridgefySDK +0 -0
- package/lib/commonjs/index.js +5 -6
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +5 -6
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +2 -4
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +7 -6
|
@@ -12,18 +12,19 @@ import UIKit
|
|
|
12
12
|
import _Concurrency
|
|
13
13
|
import _StringProcessing
|
|
14
14
|
public class Bridgefy {
|
|
15
|
-
public init(withApiKey apiKey: Swift.String,
|
|
15
|
+
public init(withApiKey apiKey: Swift.String, delegate: any BridgefySDK.BridgefyDelegate, verboseLogging: Swift.Bool = false) throws
|
|
16
16
|
@objc deinit
|
|
17
|
-
public func start()
|
|
17
|
+
public func start(withUserId userId: Foundation.UUID? = nil, andPropagationProfile propagationProfile: BridgefySDK.PropagationProfile = .standard)
|
|
18
18
|
public func stop()
|
|
19
19
|
public func destroySession()
|
|
20
20
|
public func send(_ data: Foundation.Data, using transmissionMode: BridgefySDK.TransmissionMode) throws -> Foundation.UUID
|
|
21
|
-
public func updateLicense()
|
|
22
21
|
public func establishSecureConnection(with userId: Foundation.UUID)
|
|
23
|
-
public
|
|
22
|
+
public func fingerprint(for userId: Foundation.UUID) throws -> BridgefySDK.BridgefyFingerprint?
|
|
23
|
+
public func isFingerprintValid(_ fingerprintData: Foundation.Data, for userId: Foundation.UUID) throws -> Swift.Bool
|
|
24
|
+
public var currentUserId: Foundation.UUID? {
|
|
24
25
|
get
|
|
25
26
|
}
|
|
26
|
-
public var connectedPeers: [Foundation.UUID] {
|
|
27
|
+
public var connectedPeers: [Foundation.UUID]? {
|
|
27
28
|
get
|
|
28
29
|
}
|
|
29
30
|
public var licenseExpirationDate: Foundation.Date? {
|
|
@@ -32,13 +33,16 @@ public class Bridgefy {
|
|
|
32
33
|
}
|
|
33
34
|
public enum BridgefyError : Swift.Error {
|
|
34
35
|
case simulatorIsNotSupported
|
|
36
|
+
case inconsistentUserId
|
|
35
37
|
case notStarted
|
|
36
38
|
case alreadyInstantiated
|
|
37
39
|
case startInProgress
|
|
38
40
|
case alreadyStarted
|
|
41
|
+
case stopInProgress
|
|
42
|
+
case destroySessionInProgress
|
|
39
43
|
case serviceNotStarted
|
|
44
|
+
case invalidApiKey
|
|
40
45
|
case missingBundleID
|
|
41
|
-
case invalidAPIKey
|
|
42
46
|
case internetConnectionRequired
|
|
43
47
|
case sessionError
|
|
44
48
|
case expiredLicense
|
|
@@ -88,7 +92,7 @@ public protocol BridgefyDelegate : AnyObject {
|
|
|
88
92
|
func bridgefyDidStop()
|
|
89
93
|
func bridgefyDidFailToStop(with error: BridgefySDK.BridgefyError)
|
|
90
94
|
func bridgefyDidDestroySession()
|
|
91
|
-
func bridgefyDidFailToDestroySession()
|
|
95
|
+
func bridgefyDidFailToDestroySession(with error: BridgefySDK.BridgefyError)
|
|
92
96
|
func bridgefyDidConnect(with userId: Foundation.UUID)
|
|
93
97
|
func bridgefyDidDisconnect(from userId: Foundation.UUID)
|
|
94
98
|
func bridgefyDidEstablishSecureConnection(with userId: Foundation.UUID)
|
|
@@ -97,5 +101,9 @@ public protocol BridgefyDelegate : AnyObject {
|
|
|
97
101
|
func bridgefyDidFailSendingMessage(with messageId: Foundation.UUID, withError error: BridgefySDK.BridgefyError)
|
|
98
102
|
func bridgefyDidReceiveData(_ data: Foundation.Data, with messageId: Foundation.UUID, using transmissionMode: BridgefySDK.TransmissionMode)
|
|
99
103
|
}
|
|
104
|
+
public struct BridgefyFingerprint {
|
|
105
|
+
public let displayable: Swift.String
|
|
106
|
+
public let scannable: Foundation.Data
|
|
107
|
+
}
|
|
100
108
|
extension BridgefySDK.PropagationProfile : Swift.Equatable {}
|
|
101
109
|
extension BridgefySDK.PropagationProfile : Swift.Hashable {}
|
|
Binary file
|
|
@@ -12,18 +12,19 @@ import UIKit
|
|
|
12
12
|
import _Concurrency
|
|
13
13
|
import _StringProcessing
|
|
14
14
|
public class Bridgefy {
|
|
15
|
-
public init(withApiKey apiKey: Swift.String,
|
|
15
|
+
public init(withApiKey apiKey: Swift.String, delegate: any BridgefySDK.BridgefyDelegate, verboseLogging: Swift.Bool = false) throws
|
|
16
16
|
@objc deinit
|
|
17
|
-
public func start()
|
|
17
|
+
public func start(withUserId userId: Foundation.UUID? = nil, andPropagationProfile propagationProfile: BridgefySDK.PropagationProfile = .standard)
|
|
18
18
|
public func stop()
|
|
19
19
|
public func destroySession()
|
|
20
20
|
public func send(_ data: Foundation.Data, using transmissionMode: BridgefySDK.TransmissionMode) throws -> Foundation.UUID
|
|
21
|
-
public func updateLicense()
|
|
22
21
|
public func establishSecureConnection(with userId: Foundation.UUID)
|
|
23
|
-
public
|
|
22
|
+
public func fingerprint(for userId: Foundation.UUID) throws -> BridgefySDK.BridgefyFingerprint?
|
|
23
|
+
public func isFingerprintValid(_ fingerprintData: Foundation.Data, for userId: Foundation.UUID) throws -> Swift.Bool
|
|
24
|
+
public var currentUserId: Foundation.UUID? {
|
|
24
25
|
get
|
|
25
26
|
}
|
|
26
|
-
public var connectedPeers: [Foundation.UUID] {
|
|
27
|
+
public var connectedPeers: [Foundation.UUID]? {
|
|
27
28
|
get
|
|
28
29
|
}
|
|
29
30
|
public var licenseExpirationDate: Foundation.Date? {
|
|
@@ -32,13 +33,16 @@ public class Bridgefy {
|
|
|
32
33
|
}
|
|
33
34
|
public enum BridgefyError : Swift.Error {
|
|
34
35
|
case simulatorIsNotSupported
|
|
36
|
+
case inconsistentUserId
|
|
35
37
|
case notStarted
|
|
36
38
|
case alreadyInstantiated
|
|
37
39
|
case startInProgress
|
|
38
40
|
case alreadyStarted
|
|
41
|
+
case stopInProgress
|
|
42
|
+
case destroySessionInProgress
|
|
39
43
|
case serviceNotStarted
|
|
44
|
+
case invalidApiKey
|
|
40
45
|
case missingBundleID
|
|
41
|
-
case invalidAPIKey
|
|
42
46
|
case internetConnectionRequired
|
|
43
47
|
case sessionError
|
|
44
48
|
case expiredLicense
|
|
@@ -88,7 +92,7 @@ public protocol BridgefyDelegate : AnyObject {
|
|
|
88
92
|
func bridgefyDidStop()
|
|
89
93
|
func bridgefyDidFailToStop(with error: BridgefySDK.BridgefyError)
|
|
90
94
|
func bridgefyDidDestroySession()
|
|
91
|
-
func bridgefyDidFailToDestroySession()
|
|
95
|
+
func bridgefyDidFailToDestroySession(with error: BridgefySDK.BridgefyError)
|
|
92
96
|
func bridgefyDidConnect(with userId: Foundation.UUID)
|
|
93
97
|
func bridgefyDidDisconnect(from userId: Foundation.UUID)
|
|
94
98
|
func bridgefyDidEstablishSecureConnection(with userId: Foundation.UUID)
|
|
@@ -97,5 +101,9 @@ public protocol BridgefyDelegate : AnyObject {
|
|
|
97
101
|
func bridgefyDidFailSendingMessage(with messageId: Foundation.UUID, withError error: BridgefySDK.BridgefyError)
|
|
98
102
|
func bridgefyDidReceiveData(_ data: Foundation.Data, with messageId: Foundation.UUID, using transmissionMode: BridgefySDK.TransmissionMode)
|
|
99
103
|
}
|
|
104
|
+
public struct BridgefyFingerprint {
|
|
105
|
+
public let displayable: Swift.String
|
|
106
|
+
public let scannable: Foundation.Data
|
|
107
|
+
}
|
|
100
108
|
extension BridgefySDK.PropagationProfile : Swift.Equatable {}
|
|
101
109
|
extension BridgefySDK.PropagationProfile : Swift.Hashable {}
|
|
@@ -14,27 +14,27 @@
|
|
|
14
14
|
</data>
|
|
15
15
|
<key>Info.plist</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
sHMgdUEXM5vx1w9mdP4yYnBr1hY=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
3cRBHGMIUI+/OeZZWXc8179nWtg=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
+meaX7TZyOyll5P8ySGQaejci+I=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
gOIT6JpCBjayx5Mu+yOPJ+oR/AU=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
+meaX7TZyOyll5P8ySGQaejci+I=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.swiftmodule</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
qy9HLtOGUfjG83puPbeCSv7nAKM=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/module.modulemap</key>
|
|
40
40
|
<data>
|
|
@@ -61,35 +61,35 @@
|
|
|
61
61
|
<dict>
|
|
62
62
|
<key>hash2</key>
|
|
63
63
|
<data>
|
|
64
|
-
|
|
64
|
+
yxUixpzs0X7OXrGE3u6umkrYA10pEfPEB0PRt4kvw6o=
|
|
65
65
|
</data>
|
|
66
66
|
</dict>
|
|
67
67
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
68
68
|
<dict>
|
|
69
69
|
<key>hash2</key>
|
|
70
70
|
<data>
|
|
71
|
-
|
|
71
|
+
04z+/TaVhgW5t3W3zQtcac23GdFw8fQ2Op+biKovnnQ=
|
|
72
72
|
</data>
|
|
73
73
|
</dict>
|
|
74
74
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
75
75
|
<dict>
|
|
76
76
|
<key>hash2</key>
|
|
77
77
|
<data>
|
|
78
|
-
|
|
78
|
+
UMHTaRDY3Pf4J9hJuuPtO7o9DYBRKRi/A/rQGUEHDEc=
|
|
79
79
|
</data>
|
|
80
80
|
</dict>
|
|
81
81
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
82
82
|
<dict>
|
|
83
83
|
<key>hash2</key>
|
|
84
84
|
<data>
|
|
85
|
-
|
|
85
|
+
04z+/TaVhgW5t3W3zQtcac23GdFw8fQ2Op+biKovnnQ=
|
|
86
86
|
</data>
|
|
87
87
|
</dict>
|
|
88
88
|
<key>Modules/BridgefySDK.swiftmodule/arm64-apple-ios.swiftmodule</key>
|
|
89
89
|
<dict>
|
|
90
90
|
<key>hash2</key>
|
|
91
91
|
<data>
|
|
92
|
-
|
|
92
|
+
E3WW24tcRRoPsHIk7rKbQcc17TSKyjqCXJ0j6Uae690=
|
|
93
93
|
</data>
|
|
94
94
|
</dict>
|
|
95
95
|
<key>Modules/module.modulemap</key>
|
|
Binary file
|
|
Binary file
|