spotny-sdk 1.0.31 → 1.0.32

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.
@@ -50,13 +50,11 @@ public class SpotnyBeaconScanner: NSObject {
50
50
  private var lastRangedEmit: Date = .distantPast
51
51
 
52
52
  // ── Configuration ────────────────────────────────────────────────────────────
53
- // backendURL and kontaktAPIKey are fixed not overridable by consumers.
54
- // backendURL is var to allow owner-only debug override via superDebugConfig in initialize().
53
+ // backendURL is owner-only overridable via superDebugConfig in initialize().
55
54
  private var backendURL: String = "https://api.spotny.app"
56
55
  /// When true, full API response bodies (success and error) are printed to the console.
57
56
  private var debugMode: Bool = false
58
57
  private let apiBasePath: String = "/api/app/sdk"
59
- private let kontaktAPIKey: String = "mgrz08TOKNHafeY02cWIs9mxUHbynNQJ"
60
58
  private var maxDetectionDistance: Double = 8.0
61
59
  /// Multiplier applied to raw RSSI-derived distance. Default 1.0 — CLBeacon.accuracy
62
60
  /// already accounts for TX power via Apple's measuredPower algorithm, so no correction
@@ -116,10 +114,6 @@ public class SpotnyBeaconScanner: NSObject {
116
114
  // MARK: - Setup
117
115
 
118
116
  private func setupManagers() {
119
- // Initialise the Kontakt.io SDK with the API key before creating any manager
120
- Kontakt.setAPIKey(kontaktAPIKey)
121
- print("✅ SpotnySDK: Kontakt.io SDK initialised")
122
-
123
117
  locationManager = CLLocationManager()
124
118
  locationManager.delegate = self
125
119
  // allowsBackgroundLocationUpdates = true requires the app to declare the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spotny-sdk",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Beacon Scanner",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",