spotny-sdk 0.2.9 → 0.3.1

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.

Potentially problematic release.


This version of spotny-sdk might be problematic. Click here for more details.

package/SpotnySdk.podspec CHANGED
@@ -28,9 +28,7 @@ Pod::Spec.new do |s|
28
28
 
29
29
  s.pod_target_xcconfig = {
30
30
  "SWIFT_VERSION" => "5.0",
31
- # KontaktSDK headers use @import internally — enable modules for ObjC++ compatibility
32
- "CLANG_ENABLE_MODULES" => "YES",
33
- "CLANG_ENABLE_OBJC_ARC" => "YES"
31
+ "CLANG_ENABLE_MODULES" => "YES"
34
32
  }
35
33
 
36
34
  install_modules_dependencies(s)
package/ios/SpotnySdk.h CHANGED
@@ -1,9 +1,5 @@
1
1
  #import <SpotnySdkSpec/SpotnySdkSpec.h>
2
2
  #import <React/RCTEventEmitter.h>
3
- // Required so that the auto-generated SpotnySdk-Swift.h can reference
4
- // CLLocationManagerDelegate and KTKBeaconManagerDelegate from any ObjC context.
5
- #import <CoreLocation/CoreLocation.h>
6
- #import <KontaktSDK/KontaktSDK.h>
7
3
 
8
4
  /**
9
5
  * SpotnySdk is both a Turbo Module (NativeSpotnySdkSpec) and an RCTEventEmitter
package/ios/SpotnySdk.mm CHANGED
@@ -1,6 +1,11 @@
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;
7
+ @protocol KTKBeaconManagerDelegate;
2
8
  // Auto-generated Swift header (contains SpotnyBeaconScanner)
3
- // CoreLocation and KontaktSDK are already imported via SpotnySdk.h
4
9
  #import "SpotnySdk-Swift.h"
5
10
 
6
11
  @implementation SpotnySdk {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spotny-sdk",
3
- "version": "0.2.9",
3
+ "version": "0.3.1",
4
4
  "description": "Beacon Scanner",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",