react-native-background-location-pro-eval 0.0.0-stage → 1.0.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.
Files changed (24) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +185 -2
  3. package/android/build.gradle +54 -0
  4. package/android/libs/bgtrackkit.aar +0 -0
  5. package/android/src/main/AndroidManifest.xml +1 -0
  6. package/android/src/main/java/com/bglocationdemo/tracking/rn/BackgroundLocationProPackage.kt +20 -0
  7. package/ios/BgTrackKit.xcframework/Info.plist +44 -0
  8. package/ios/BgTrackKit.xcframework/ios-arm64/BgTrackKit.framework/BgTrackKit +0 -0
  9. package/ios/BgTrackKit.xcframework/ios-arm64/BgTrackKit.framework/Headers/BgTrackKit-Swift.h +430 -0
  10. package/ios/BgTrackKit.xcframework/ios-arm64/BgTrackKit.framework/Info.plist +0 -0
  11. package/ios/BgTrackKit.xcframework/ios-arm64/BgTrackKit.framework/Modules/module.modulemap +5 -0
  12. package/ios/BgTrackKit.xcframework/ios-arm64_x86_64-simulator/BgTrackKit.framework/BgTrackKit +0 -0
  13. package/ios/BgTrackKit.xcframework/ios-arm64_x86_64-simulator/BgTrackKit.framework/Headers/BgTrackKit-Swift.h +856 -0
  14. package/ios/BgTrackKit.xcframework/ios-arm64_x86_64-simulator/BgTrackKit.framework/Info.plist +0 -0
  15. package/ios/BgTrackKit.xcframework/ios-arm64_x86_64-simulator/BgTrackKit.framework/Modules/module.modulemap +5 -0
  16. package/ios/BgTrackKit.xcframework/ios-arm64_x86_64-simulator/BgTrackKit.framework/_CodeSignature/CodeResources +101 -0
  17. package/ios/BgTrackShim.m +31 -0
  18. package/ios/RCTLocationTracker.h +12 -0
  19. package/ios/RCTLocationTracker.mm +100 -0
  20. package/package.json +82 -4
  21. package/react-native-background-location-pro-eval.podspec +25 -0
  22. package/react-native.config.js +10 -0
  23. package/src/index.ts +8 -0
  24. package/src/specs/NativeLocationTracker.ts +126 -0
@@ -0,0 +1,430 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)
4
+ #ifndef BGTRACKKIT_SWIFT_H
5
+ #define BGTRACKKIT_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #if defined(__OBJC__)
28
+ #include <Foundation/Foundation.h>
29
+ #endif // defined(__OBJC__)
30
+ #if defined(__cplusplus)
31
+ #include <cstdint>
32
+ #include <cstddef>
33
+ #include <cstring>
34
+ #include <stdlib.h>
35
+ #include <new>
36
+ #include <type_traits>
37
+ #else
38
+ #include <stdint.h>
39
+ #include <stddef.h>
40
+ #include <stdbool.h>
41
+ #include <string.h>
42
+ #endif
43
+ #if defined(__cplusplus)
44
+ #pragma clang diagnostic push
45
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
46
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
47
+ # include <ptrauth.h>
48
+ #else
49
+ #pragma clang diagnostic push
50
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
51
+ # ifndef __ptrauth_swift_value_witness_function_pointer
52
+ # define __ptrauth_swift_value_witness_function_pointer(x)
53
+ # endif
54
+ # ifndef __ptrauth_swift_class_method_pointer
55
+ # define __ptrauth_swift_class_method_pointer(x)
56
+ # endif
57
+ #pragma clang diagnostic pop
58
+ #endif
59
+ #pragma clang diagnostic pop
60
+ #endif
61
+
62
+ #if !defined(SWIFT_TYPEDEFS)
63
+ # define SWIFT_TYPEDEFS 1
64
+ # if __has_include(<uchar.h>)
65
+ # include <uchar.h>
66
+ # elif !defined(__cplusplus)
67
+ typedef unsigned char char8_t;
68
+ typedef uint_least16_t char16_t;
69
+ typedef uint_least32_t char32_t;
70
+ # endif
71
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
72
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
73
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
74
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
75
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
76
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
77
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
78
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
79
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
80
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
81
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
82
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
83
+ #endif
84
+
85
+ #if !defined(SWIFT_PASTE)
86
+ # define SWIFT_PASTE_HELPER(x, y) x##y
87
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
88
+ #endif
89
+ #if !defined(SWIFT_METATYPE)
90
+ # define SWIFT_METATYPE(X) Class
91
+ #endif
92
+ #if !defined(SWIFT_CLASS_PROPERTY)
93
+ # if __has_feature(objc_class_property)
94
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
95
+ # else
96
+ # define SWIFT_CLASS_PROPERTY(...)
97
+ # endif
98
+ #endif
99
+ #if !defined(SWIFT_RUNTIME_NAME)
100
+ # if __has_attribute(objc_runtime_name)
101
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
102
+ # else
103
+ # define SWIFT_RUNTIME_NAME(X)
104
+ # endif
105
+ #endif
106
+ #if !defined(SWIFT_COMPILE_NAME)
107
+ # if __has_attribute(swift_name)
108
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
109
+ # else
110
+ # define SWIFT_COMPILE_NAME(X)
111
+ # endif
112
+ #endif
113
+ #if !defined(SWIFT_METHOD_FAMILY)
114
+ # if __has_attribute(objc_method_family)
115
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
116
+ # else
117
+ # define SWIFT_METHOD_FAMILY(X)
118
+ # endif
119
+ #endif
120
+ #if !defined(SWIFT_NOESCAPE)
121
+ # if __has_attribute(noescape)
122
+ # define SWIFT_NOESCAPE __attribute__((noescape))
123
+ # else
124
+ # define SWIFT_NOESCAPE
125
+ # endif
126
+ #endif
127
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
128
+ # if __has_attribute(ns_consumed)
129
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
130
+ # else
131
+ # define SWIFT_RELEASES_ARGUMENT
132
+ # endif
133
+ #endif
134
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
135
+ # if __has_attribute(warn_unused_result)
136
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
137
+ # else
138
+ # define SWIFT_WARN_UNUSED_RESULT
139
+ # endif
140
+ #endif
141
+ #if !defined(SWIFT_NORETURN)
142
+ # if __has_attribute(noreturn)
143
+ # define SWIFT_NORETURN __attribute__((noreturn))
144
+ # else
145
+ # define SWIFT_NORETURN
146
+ # endif
147
+ #endif
148
+ #if !defined(SWIFT_CLASS_EXTRA)
149
+ # define SWIFT_CLASS_EXTRA
150
+ #endif
151
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
152
+ # define SWIFT_PROTOCOL_EXTRA
153
+ #endif
154
+ #if !defined(SWIFT_ENUM_EXTRA)
155
+ # define SWIFT_ENUM_EXTRA
156
+ #endif
157
+ #if !defined(SWIFT_CLASS)
158
+ # if __has_attribute(objc_subclassing_restricted)
159
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
160
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
161
+ # else
162
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
163
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
164
+ # endif
165
+ #endif
166
+ #if !defined(SWIFT_RESILIENT_CLASS)
167
+ # if __has_attribute(objc_class_stub)
168
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
169
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
170
+ # else
171
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
172
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
173
+ # endif
174
+ #endif
175
+ #if !defined(SWIFT_PROTOCOL)
176
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
177
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
178
+ #endif
179
+ #if !defined(SWIFT_EXTENSION)
180
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
181
+ #endif
182
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
183
+ # if __has_attribute(objc_designated_initializer)
184
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
185
+ # else
186
+ # define OBJC_DESIGNATED_INITIALIZER
187
+ # endif
188
+ #endif
189
+ #if !defined(SWIFT_ENUM_ATTR)
190
+ # if __has_attribute(enum_extensibility)
191
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
192
+ # else
193
+ # define SWIFT_ENUM_ATTR(_extensibility)
194
+ # endif
195
+ #endif
196
+ #if !defined(SWIFT_ENUM)
197
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
198
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
199
+ # if __has_feature(generalized_swift_name)
200
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
201
+ # else
202
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
203
+ # endif
204
+ # else
205
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
206
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
207
+ # endif
208
+ #endif
209
+ #if !defined(SWIFT_ENUM_TAG)
210
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
211
+ # define SWIFT_ENUM_TAG enum
212
+ # else
213
+ # define SWIFT_ENUM_TAG
214
+ # endif
215
+ #endif
216
+ #if !defined(SWIFT_ENUM_FWD_DECL)
217
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
218
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
219
+ # else
220
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
221
+ # endif
222
+ #endif
223
+ #if !defined(SWIFT_UNAVAILABLE)
224
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
225
+ #endif
226
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
227
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
228
+ #endif
229
+ #if !defined(SWIFT_AVAILABILITY)
230
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
231
+ #endif
232
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
233
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
234
+ #endif
235
+ #if !defined(SWIFT_WEAK_IMPORT)
236
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
237
+ #endif
238
+ #if !defined(SWIFT_DEPRECATED)
239
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
240
+ #endif
241
+ #if !defined(SWIFT_DEPRECATED_MSG)
242
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
243
+ #endif
244
+ #if !defined(SWIFT_DEPRECATED_OBJC)
245
+ # if __has_feature(attribute_diagnose_if_objc)
246
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
247
+ # else
248
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
249
+ # endif
250
+ #endif
251
+ #if defined(__OBJC__)
252
+ #if !defined(IBSegueAction)
253
+ # define IBSegueAction
254
+ #endif
255
+ #endif
256
+ #if !defined(SWIFT_EXTERN)
257
+ # if defined(__cplusplus)
258
+ # define SWIFT_EXTERN extern "C"
259
+ # else
260
+ # define SWIFT_EXTERN extern
261
+ # endif
262
+ #endif
263
+ #if !defined(SWIFT_CALL)
264
+ # define SWIFT_CALL __attribute__((swiftcall))
265
+ #endif
266
+ #if !defined(SWIFT_INDIRECT_RESULT)
267
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
268
+ #endif
269
+ #if !defined(SWIFT_CONTEXT)
270
+ # define SWIFT_CONTEXT __attribute__((swift_context))
271
+ #endif
272
+ #if !defined(SWIFT_ERROR_RESULT)
273
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
274
+ #endif
275
+ #if defined(__cplusplus)
276
+ # define SWIFT_NOEXCEPT noexcept
277
+ #else
278
+ # define SWIFT_NOEXCEPT
279
+ #endif
280
+ #if !defined(SWIFT_C_INLINE_THUNK)
281
+ # if __has_attribute(always_inline)
282
+ # if __has_attribute(nodebug)
283
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
284
+ # else
285
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
286
+ # endif
287
+ # else
288
+ # define SWIFT_C_INLINE_THUNK inline
289
+ # endif
290
+ #endif
291
+ #if defined(_WIN32)
292
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
293
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
294
+ #endif
295
+ #else
296
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
297
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
298
+ #endif
299
+ #endif
300
+ #if !__has_feature(nullability)
301
+ # define _Nonnull
302
+ # define _Nullable
303
+ # define _Null_unspecified
304
+ #elif !defined(__OBJC__)
305
+ # pragma clang diagnostic ignored "-Wnullability-extension"
306
+ #endif
307
+ #if !__has_feature(nullability_nullable_result)
308
+ # define _Nullable_result _Nullable
309
+ #endif
310
+ #if __has_feature(objc_modules)
311
+ #if __has_warning("-Watimport-in-framework-header")
312
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
313
+ #endif
314
+ #endif
315
+
316
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
317
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
318
+ #if __has_warning("-Wpragma-clang-attribute")
319
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
320
+ #endif
321
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
322
+ #pragma clang diagnostic ignored "-Wnullability"
323
+ #pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
324
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
325
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
326
+
327
+ #if __has_attribute(external_source_symbol)
328
+ # pragma push_macro("any")
329
+ # undef any
330
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="BgTrackKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
331
+ # pragma pop_macro("any")
332
+ #endif
333
+
334
+ #if defined(__cplusplus)
335
+ extern "C" {
336
+ #endif
337
+
338
+ #if defined(__cplusplus)
339
+ } // extern "C"
340
+ #endif
341
+ #if __has_attribute(external_source_symbol)
342
+ # pragma clang attribute pop
343
+ #endif
344
+ #if defined(__OBJC__)
345
+ #if __has_feature(objc_modules)
346
+ #if __has_warning("-Watimport-in-framework-header")
347
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
348
+ #endif
349
+ @import ObjectiveC;
350
+ #endif
351
+
352
+ #endif // defined(__OBJC__)
353
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
354
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
355
+ #if __has_warning("-Wpragma-clang-attribute")
356
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
357
+ #endif
358
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
359
+ #pragma clang diagnostic ignored "-Wnullability"
360
+ #pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
361
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
362
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
363
+
364
+ #if __has_attribute(external_source_symbol)
365
+ # pragma push_macro("any")
366
+ # undef any
367
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="BgTrackKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
368
+ # pragma pop_macro("any")
369
+ #endif
370
+
371
+ #if defined(__OBJC__)
372
+
373
+ @protocol BGTrackingEventSink;
374
+ @class NSString;
375
+ @class NSDictionary;
376
+ /// Everything the <code>LocationTracker</code> TurboModule does, in Swift. JS only steers and observes;
377
+ /// the pipeline runs in [LocationEngine] whether or not React is alive.
378
+ /// Methods may be called from any thread; work that touches CoreLocation or UIKit hops to main.
379
+ SWIFT_CLASS_NAMED("TrackingController")
380
+ @interface BGTrackingController : NSObject
381
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BGTrackingController * _Nonnull shared;)
382
+ + (BGTrackingController * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
383
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
384
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
385
+ - (void)attach:(id <BGTrackingEventSink> _Nonnull)sink;
386
+ - (void)detach:(id <BGTrackingEventSink> _Nonnull)sink;
387
+ /// App-launch bootstrap the drop-in shim calls on <code>UIApplicationDidFinishLaunching</code>, so the host
388
+ /// app needs no AppDelegate edits: registers the BGTask, reconnects the background upload
389
+ /// session, and revives tracking if it was desired.
390
+ - (void)bootstrap;
391
+ /// Called by the shim from <code>+load</code>.
392
+ - (void)applyRuntimeProfile:(NSInteger)profile;
393
+ /// Forwarded by the shim from <code>application(_:handleEventsForBackgroundURLSession:)</code>.
394
+ - (void)handleBackgroundURLSession:(NSString * _Nonnull)identifier completion:(void (^ _Nonnull)(void))completion;
395
+ - (void)startTracking:(NSString * _Nonnull)serverUrl;
396
+ - (void)stopTracking;
397
+ /// Synchronous JSI call; reads only in-memory state and UserDefaults.
398
+ - (NSDictionary * _Nonnull)status SWIFT_WARN_UNUSED_RESULT;
399
+ - (void)setTrackingProfile:(NSString * _Nonnull)profile;
400
+ /// Android-only tier; iOS requests Motion & Fitness lazily from the adaptive profile.
401
+ - (void)setMotionPermissionOptIn:(BOOL)enabled;
402
+ - (void)setSyncPolicy:(double)batchSize maxBackoffMs:(double)maxBackoffMs maxAttempts:(double)maxAttempts;
403
+ - (void)setDemoMode:(BOOL)enabled;
404
+ - (void)syncNow;
405
+ /// iOS has no battery-optimization exemption; Low Power Mode and Background App Refresh live in Settings.
406
+ - (void)openSettings;
407
+ - (void)requestLocationPermission:(BOOL)always;
408
+ /// Called from <code>didFinishLaunching</code>, including headless relaunches by significant-change monitoring.
409
+ - (void)resumeIfDesired:(NSString * _Nonnull)reason;
410
+ @end
411
+
412
+ /// Implemented by the ObjC++ TurboModule; receives payloads already shaped like the JS spec.
413
+ SWIFT_PROTOCOL_NAMED("TrackingEventSink")
414
+ @protocol BGTrackingEventSink <NSObject>
415
+ - (void)onLocationUpdate:(NSDictionary * _Nonnull)event;
416
+ - (void)onSyncStatus:(NSDictionary * _Nonnull)event;
417
+ @end
418
+
419
+ #endif // defined(__OBJC__)
420
+ #if __has_attribute(external_source_symbol)
421
+ # pragma clang attribute pop
422
+ #endif
423
+ #if defined(__cplusplus)
424
+ #endif
425
+ #pragma clang diagnostic pop
426
+ #endif
427
+
428
+ #else
429
+ #error unsupported Swift architecture
430
+ #endif
@@ -0,0 +1,5 @@
1
+ framework module BgTrackKit {
2
+ header "BgTrackKit-Swift.h"
3
+ requires objc
4
+ export *
5
+ }