@wayq/beekon-rn 0.0.6 → 0.0.8
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/BeekonRn.podspec +1 -1
- package/CHANGELOG.md +37 -0
- package/android/build.gradle +4 -2
- package/android/src/main/java/in/wayq/beekonrn/BeekonRnModule.kt +51 -0
- package/ios/BeekonRn.mm +10 -0
- package/ios/BeekonRn.swift +87 -2
- package/ios/Frameworks/BeekonKit.xcframework/Info.plist +5 -5
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/BeekonKit +0 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/Info.plist +0 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios.abi.json +1239 -32
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios.swiftinterface +36 -3
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/BeekonKit +0 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Info.plist +0 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios-simulator.abi.json +1239 -32
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +36 -3
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +1239 -32
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +36 -3
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/_CodeSignature/CodeResources +1 -1
- package/lib/module/NativeBeekonRn.js +7 -0
- package/lib/module/NativeBeekonRn.js.map +1 -1
- package/lib/module/beekon.js +35 -1
- package/lib/module/beekon.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/mappers.js +48 -1
- package/lib/module/internal/mappers.js.map +1 -1
- package/lib/module/types/license.js +2 -0
- package/lib/module/types/license.js.map +1 -0
- package/lib/typescript/src/NativeBeekonRn.d.ts +36 -0
- package/lib/typescript/src/NativeBeekonRn.d.ts.map +1 -1
- package/lib/typescript/src/beekon.d.ts +15 -0
- package/lib/typescript/src/beekon.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/internal/mappers.d.ts +8 -1
- package/lib/typescript/src/internal/mappers.d.ts.map +1 -1
- package/lib/typescript/src/types/config.d.ts +13 -0
- package/lib/typescript/src/types/config.d.ts.map +1 -1
- package/lib/typescript/src/types/license.d.ts +50 -0
- package/lib/typescript/src/types/license.d.ts.map +1 -0
- package/package.json +6 -2
- package/scripts/fetch-beekonkit.sh +4 -4
- package/src/NativeBeekonRn.ts +38 -0
- package/src/beekon.ts +38 -0
- package/src/index.tsx +1 -0
- package/src/internal/mappers.ts +50 -0
- package/src/types/config.ts +13 -0
- package/src/types/license.ts +47 -0
|
Binary file
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.3.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.2 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios13.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name BeekonKit -package-name beekon_ios
|
|
4
|
-
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
|
|
5
5
|
@preconcurrency import BackgroundTasks
|
|
6
6
|
import Compression
|
|
7
7
|
@preconcurrency import CoreLocation
|
|
8
8
|
import CoreMotion
|
|
9
|
+
import CryptoKit
|
|
9
10
|
import Darwin
|
|
10
11
|
import Foundation
|
|
11
12
|
import Foundation/*.Bundle*/
|
|
@@ -98,6 +99,13 @@ public struct AuthTokens : Swift.Sendable, Swift.Equatable {
|
|
|
98
99
|
@_hasMissingDesignatedInitializers public actor Beekon {
|
|
99
100
|
public static let shared: BeekonKit.Beekon
|
|
100
101
|
nonisolated public static func registerBackgroundTasks()
|
|
102
|
+
nonisolated public static func setWrapperInfo(product: Swift.String, version: Swift.String)
|
|
103
|
+
public var licenseStatus: BeekonKit.LicenseStatus {
|
|
104
|
+
get
|
|
105
|
+
}
|
|
106
|
+
public var licenseStatusUpdates: _Concurrency.AsyncStream<BeekonKit.LicenseStatus> {
|
|
107
|
+
get
|
|
108
|
+
}
|
|
101
109
|
public func configure(_ config: BeekonKit.BeekonConfig) async
|
|
102
110
|
public func start() async
|
|
103
111
|
public func stop() async
|
|
@@ -140,9 +148,10 @@ public struct BeekonConfig : Swift.Sendable, Swift.Equatable, Swift.Codable {
|
|
|
140
148
|
public var stationaryRadiusMeters: Swift.Double
|
|
141
149
|
public var detectActivity: Swift.Bool
|
|
142
150
|
public var sync: BeekonKit.SyncConfig?
|
|
151
|
+
public var licenseKey: Swift.String?
|
|
143
152
|
public static let minimumLocationIntervalSeconds: Swift.Double
|
|
144
153
|
public static let minimumStationaryRadiusMeters: Swift.Double
|
|
145
|
-
public init(minTimeBetweenLocationsSeconds: Foundation.TimeInterval = 30, minDistanceBetweenLocationsMeters: Swift.Double = 100, accuracyMode: BeekonKit.AccuracyMode = .balanced, whenStationary: BeekonKit.StationaryMode = .pause, stationaryRadiusMeters: Swift.Double = 5, detectActivity: Swift.Bool = false, sync: BeekonKit.SyncConfig? = nil)
|
|
154
|
+
public init(minTimeBetweenLocationsSeconds: Foundation.TimeInterval = 30, minDistanceBetweenLocationsMeters: Swift.Double = 100, accuracyMode: BeekonKit.AccuracyMode = .balanced, whenStationary: BeekonKit.StationaryMode = .pause, stationaryRadiusMeters: Swift.Double = 5, detectActivity: Swift.Bool = false, sync: BeekonKit.SyncConfig? = nil, licenseKey: Swift.String? = nil)
|
|
146
155
|
public init(from decoder: any Swift.Decoder) throws
|
|
147
156
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
148
157
|
public static func == (a: BeekonKit.BeekonConfig, b: BeekonKit.BeekonConfig) -> Swift.Bool
|
|
@@ -212,6 +221,28 @@ public struct GeofenceEvent : Swift.Sendable, Swift.Equatable {
|
|
|
212
221
|
public init(id: Swift.String, geofenceId: Swift.String, type: BeekonKit.Transition, timestamp: Foundation.Date)
|
|
213
222
|
public static func == (a: BeekonKit.GeofenceEvent, b: BeekonKit.GeofenceEvent) -> Swift.Bool
|
|
214
223
|
}
|
|
224
|
+
public enum LicenseStatus : Swift.Sendable, Swift.Equatable {
|
|
225
|
+
case notDetermined
|
|
226
|
+
case licensed(tier: Swift.String, entitlements: [Swift.String])
|
|
227
|
+
case evaluation
|
|
228
|
+
case expired
|
|
229
|
+
case updateEntitlementLapsed
|
|
230
|
+
case invalid(reason: BeekonKit.LicenseInvalidReason)
|
|
231
|
+
public static func == (a: BeekonKit.LicenseStatus, b: BeekonKit.LicenseStatus) -> Swift.Bool
|
|
232
|
+
}
|
|
233
|
+
public enum LicenseInvalidReason : Swift.String, Swift.Sendable, Swift.Equatable {
|
|
234
|
+
case malformed
|
|
235
|
+
case unknownKey
|
|
236
|
+
case badSignature
|
|
237
|
+
case appIdMismatch
|
|
238
|
+
case productMismatch
|
|
239
|
+
case unsupportedVersion
|
|
240
|
+
public init?(rawValue: Swift.String)
|
|
241
|
+
public typealias RawValue = Swift.String
|
|
242
|
+
public var rawValue: Swift.String {
|
|
243
|
+
get
|
|
244
|
+
}
|
|
245
|
+
}
|
|
215
246
|
public struct Location : Swift.Sendable, Swift.Equatable {
|
|
216
247
|
public let id: Swift.String
|
|
217
248
|
public let latitude: Swift.Double
|
|
@@ -303,6 +334,8 @@ extension BeekonKit.AuthBodyFormat : Swift.Hashable {}
|
|
|
303
334
|
extension BeekonKit.AuthBodyFormat : Swift.RawRepresentable {}
|
|
304
335
|
extension BeekonKit.LocationUnavailableReason : Swift.Hashable {}
|
|
305
336
|
extension BeekonKit.StopReason : Swift.RawRepresentable {}
|
|
337
|
+
extension BeekonKit.LicenseInvalidReason : Swift.Hashable {}
|
|
338
|
+
extension BeekonKit.LicenseInvalidReason : Swift.RawRepresentable {}
|
|
306
339
|
extension BeekonKit.LocationQuality : Swift.RawRepresentable {}
|
|
307
340
|
extension BeekonKit.LocationTrigger : Swift.RawRepresentable {}
|
|
308
341
|
extension BeekonKit.MotionState : Swift.RawRepresentable {}
|