@wayq/beekon-rn 0.0.1 → 0.0.3
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 +3 -3
- package/README.md +24 -30
- package/android/build.gradle +3 -3
- package/android/src/main/java/in/wayq/beekonrn/BeekonRnModule.kt +182 -0
- package/android/src/main/java/{com → in}/wayq/beekonrn/BeekonRnPackage.kt +1 -1
- package/ios/BeekonRn.h +5 -1
- package/ios/BeekonRn.mm +15 -25
- package/ios/BeekonRn.swift +96 -116
- package/ios/Frameworks/BeekonKit.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BeekonKit.xcframework/_CodeSignature/CodeResources +105 -42
- package/ios/Frameworks/BeekonKit.xcframework/_CodeSignature/CodeSignature +0 -0
- 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 +2427 -0
- 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 +85 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/PrivacyInfo.xcprivacy +1 -1
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64/BeekonKit.framework/_CodeSignature/CodeResources +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 +2427 -0
- 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 +85 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/Modules/BeekonKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +2427 -0
- 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 +85 -0
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/PrivacyInfo.xcprivacy +1 -1
- package/ios/Frameworks/BeekonKit.xcframework/ios-arm64_x86_64-simulator/BeekonKit.framework/_CodeSignature/CodeResources +69 -3
- package/lib/module/NativeBeekonRn.js +2 -2
- package/lib/module/NativeBeekonRn.js.map +1 -1
- package/lib/module/beekon.js +50 -53
- package/lib/module/beekon.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/mappers.js +49 -21
- package/lib/module/internal/mappers.js.map +1 -1
- package/lib/module/types/config.js +0 -2
- package/lib/module/types/error.js +19 -0
- package/lib/module/types/error.js.map +1 -0
- package/lib/module/types/location.js +2 -0
- package/lib/module/types/{position.js.map → location.js.map} +1 -1
- package/lib/typescript/src/NativeBeekonRn.d.ts +22 -26
- package/lib/typescript/src/NativeBeekonRn.d.ts.map +1 -1
- package/lib/typescript/src/beekon.d.ts +29 -42
- package/lib/typescript/src/beekon.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -3
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/internal/mappers.d.ts +10 -3
- package/lib/typescript/src/internal/mappers.d.ts.map +1 -1
- package/lib/typescript/src/types/config.d.ts +23 -31
- package/lib/typescript/src/types/config.d.ts.map +1 -1
- package/lib/typescript/src/types/error.d.ts +14 -0
- package/lib/typescript/src/types/error.d.ts.map +1 -0
- package/lib/typescript/src/types/location.d.ts +26 -0
- package/lib/typescript/src/types/location.d.ts.map +1 -0
- package/lib/typescript/src/types/state.d.ts +9 -9
- package/lib/typescript/src/types/state.d.ts.map +1 -1
- package/package.json +2 -2
- package/scripts/fetch-beekonkit.sh +5 -2
- package/src/NativeBeekonRn.ts +22 -26
- package/src/beekon.ts +58 -56
- package/src/index.tsx +3 -3
- package/src/internal/mappers.ts +52 -18
- package/src/types/config.ts +23 -32
- package/src/types/error.ts +22 -0
- package/src/types/location.ts +25 -0
- package/src/types/state.ts +13 -7
- package/android/src/main/java/com/wayq/beekonrn/BeekonRnModule.kt +0 -233
- package/ios/Frameworks/BeekonKit.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/lib/module/types/position.js +0 -2
- package/lib/module/types/preset.js +0 -2
- package/lib/module/types/preset.js.map +0 -1
- package/lib/typescript/src/types/position.d.ts +0 -24
- package/lib/typescript/src/types/position.d.ts.map +0 -1
- package/lib/typescript/src/types/preset.d.ts +0 -12
- package/lib/typescript/src/types/preset.d.ts.map +0 -1
- package/src/types/position.ts +0 -23
- package/src/types/preset.ts +0 -11
|
Binary file
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios17.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -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.2.3
|
|
5
|
+
import CoreLocation
|
|
6
|
+
import Foundation
|
|
7
|
+
import Foundation/*.Bundle*/
|
|
8
|
+
import Foundation/*.ProcessInfo*/
|
|
9
|
+
import Foundation/*.URL*/
|
|
10
|
+
import Swift
|
|
11
|
+
import _Concurrency
|
|
12
|
+
import _StringProcessing
|
|
13
|
+
import _SwiftConcurrencyShims
|
|
14
|
+
import os
|
|
15
|
+
@_hasMissingDesignatedInitializers public actor Beekon {
|
|
16
|
+
public static let shared: BeekonKit.Beekon
|
|
17
|
+
public func configure(_ config: BeekonKit.BeekonConfig)
|
|
18
|
+
public func start() async throws
|
|
19
|
+
public func stop() async
|
|
20
|
+
public func locations(from: Foundation.Date, to: Foundation.Date) async throws -> [BeekonKit.Location]
|
|
21
|
+
public var state: _Concurrency.AsyncStream<BeekonKit.BeekonState> {
|
|
22
|
+
get
|
|
23
|
+
}
|
|
24
|
+
public var locations: _Concurrency.AsyncStream<BeekonKit.Location> {
|
|
25
|
+
get
|
|
26
|
+
}
|
|
27
|
+
@objc deinit
|
|
28
|
+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
|
|
29
|
+
@_semantics("defaultActor") nonisolated final public var unownedExecutor: _Concurrency.UnownedSerialExecutor {
|
|
30
|
+
get
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
public struct BeekonConfig : Swift.Sendable, Swift.Equatable, Swift.Hashable {
|
|
34
|
+
public var intervalSeconds: Foundation.TimeInterval
|
|
35
|
+
public var distanceMeters: Swift.Double
|
|
36
|
+
public static let `default`: BeekonKit.BeekonConfig
|
|
37
|
+
public init(intervalSeconds: Foundation.TimeInterval = 30, distanceMeters: Swift.Double = 100)
|
|
38
|
+
public static func == (a: BeekonKit.BeekonConfig, b: BeekonKit.BeekonConfig) -> Swift.Bool
|
|
39
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
40
|
+
public var hashValue: Swift.Int {
|
|
41
|
+
get
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
public enum BeekonError : Swift.Error, Swift.Sendable {
|
|
45
|
+
case permissionDenied
|
|
46
|
+
case locationServicesDisabled
|
|
47
|
+
case storageFailure(any Swift.Error)
|
|
48
|
+
}
|
|
49
|
+
public enum BeekonState : Swift.Sendable, Swift.Equatable, Swift.Hashable {
|
|
50
|
+
case idle
|
|
51
|
+
case tracking
|
|
52
|
+
case stopped(reason: BeekonKit.StopReason)
|
|
53
|
+
public static func == (a: BeekonKit.BeekonState, b: BeekonKit.BeekonState) -> Swift.Bool
|
|
54
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
55
|
+
public var hashValue: Swift.Int {
|
|
56
|
+
get
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
public enum StopReason : Swift.Sendable, Swift.Equatable, Swift.Hashable {
|
|
60
|
+
case user
|
|
61
|
+
case permissionDenied
|
|
62
|
+
case locationServicesDisabled
|
|
63
|
+
public static func == (a: BeekonKit.StopReason, b: BeekonKit.StopReason) -> Swift.Bool
|
|
64
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
65
|
+
public var hashValue: Swift.Int {
|
|
66
|
+
get
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
public struct Location : Swift.Sendable, Swift.Equatable, Swift.Hashable {
|
|
70
|
+
public let lat: Swift.Double
|
|
71
|
+
public let lng: Swift.Double
|
|
72
|
+
public let accuracy: Swift.Double?
|
|
73
|
+
public let speed: Swift.Double?
|
|
74
|
+
public let bearing: Swift.Double?
|
|
75
|
+
public let altitude: Swift.Double?
|
|
76
|
+
public let timestamp: Foundation.Date
|
|
77
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
78
|
+
public init(lat: Swift.Double, lng: Swift.Double, timestamp: Foundation.Date, accuracy: Swift.Double? = nil, speed: Swift.Double? = nil, bearing: Swift.Double? = nil, altitude: Swift.Double? = nil)
|
|
79
|
+
#endif
|
|
80
|
+
public static func == (a: BeekonKit.Location, b: BeekonKit.Location) -> Swift.Bool
|
|
81
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
82
|
+
public var hashValue: Swift.Int {
|
|
83
|
+
get
|
|
84
|
+
}
|
|
85
|
+
}
|