spotny-sdk 0.3.1 → 0.3.2

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.
Files changed (2) hide show
  1. package/ios/SpotnySdk.mm +8 -5
  2. package/package.json +1 -1
package/ios/SpotnySdk.mm CHANGED
@@ -1,9 +1,12 @@
1
1
  #import "SpotnySdk.h"
2
- // Forward-declare the ObjC protocols that appear in the generated SpotnySdk-Swift.h.
3
- // We do NOT #import KontaktSDK headers here because they use @import internally
4
- // which fails in ObjC++ (.mm) contexts without -fcxx-modules.
5
- // Forward declarations are sufficient — SpotnySdk.mm never calls KTK/CL delegate methods directly.
6
- @protocol CLLocationManagerDelegate;
2
+ // CoreLocation is a system framework whose public headers use #import (not @import),
3
+ // so importing it here is safe in an ObjC++ (.mm) context.
4
+ // This provides CLLocationManager, CLAuthorizationStatus, CLBeacon, CLRegionState, etc.
5
+ #import <CoreLocation/CoreLocation.h>
6
+ // KontaktSDK headers use @import internally and cannot be included in ObjC++.
7
+ // @class / @protocol forward declarations are enough for pointer params in the generated header.
8
+ @class KTKBeaconManager;
9
+ @class KTKBeaconRegion;
7
10
  @protocol KTKBeaconManagerDelegate;
8
11
  // Auto-generated Swift header (contains SpotnyBeaconScanner)
9
12
  #import "SpotnySdk-Swift.h"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spotny-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Beacon Scanner",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",