spotny-sdk 0.3.0 → 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.
- package/SpotnySdk.podspec +1 -11
- package/ios/SpotnySdk.h +0 -4
- package/ios/SpotnySdk.mm +9 -1
- package/package.json +1 -1
package/SpotnySdk.podspec
CHANGED
|
@@ -28,17 +28,7 @@ Pod::Spec.new do |s|
|
|
|
28
28
|
|
|
29
29
|
s.pod_target_xcconfig = {
|
|
30
30
|
"SWIFT_VERSION" => "5.0",
|
|
31
|
-
|
|
32
|
-
"CLANG_ENABLE_MODULES" => "YES",
|
|
33
|
-
"CLANG_ENABLE_OBJC_ARC" => "YES",
|
|
34
|
-
"OTHER_CFLAGS" => "$(inherited) -fmodules -fcxx-modules",
|
|
35
|
-
"OTHER_CPLUSPLUSFLAGS" => "$(inherited) -fmodules -fcxx-modules"
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
s.user_target_xcconfig = {
|
|
39
|
-
"CLANG_ENABLE_MODULES" => "YES",
|
|
40
|
-
"OTHER_CFLAGS" => "$(inherited) -fmodules -fcxx-modules",
|
|
41
|
-
"OTHER_CPLUSPLUSFLAGS" => "$(inherited) -fmodules -fcxx-modules"
|
|
31
|
+
"CLANG_ENABLE_MODULES" => "YES"
|
|
42
32
|
}
|
|
43
33
|
|
|
44
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,14 @@
|
|
|
1
1
|
#import "SpotnySdk.h"
|
|
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;
|
|
10
|
+
@protocol KTKBeaconManagerDelegate;
|
|
2
11
|
// Auto-generated Swift header (contains SpotnyBeaconScanner)
|
|
3
|
-
// CoreLocation and KontaktSDK are already imported via SpotnySdk.h
|
|
4
12
|
#import "SpotnySdk-Swift.h"
|
|
5
13
|
|
|
6
14
|
@implementation SpotnySdk {
|