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,856 @@
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
+ #elif defined(__x86_64__) && __x86_64__
429
+ // Generated by Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)
430
+ #ifndef BGTRACKKIT_SWIFT_H
431
+ #define BGTRACKKIT_SWIFT_H
432
+ #pragma clang diagnostic push
433
+ #pragma clang diagnostic ignored "-Wgcc-compat"
434
+
435
+ #if !defined(__has_include)
436
+ # define __has_include(x) 0
437
+ #endif
438
+ #if !defined(__has_attribute)
439
+ # define __has_attribute(x) 0
440
+ #endif
441
+ #if !defined(__has_feature)
442
+ # define __has_feature(x) 0
443
+ #endif
444
+ #if !defined(__has_warning)
445
+ # define __has_warning(x) 0
446
+ #endif
447
+
448
+ #if __has_include(<swift/objc-prologue.h>)
449
+ # include <swift/objc-prologue.h>
450
+ #endif
451
+
452
+ #pragma clang diagnostic ignored "-Wauto-import"
453
+ #if defined(__OBJC__)
454
+ #include <Foundation/Foundation.h>
455
+ #endif // defined(__OBJC__)
456
+ #if defined(__cplusplus)
457
+ #include <cstdint>
458
+ #include <cstddef>
459
+ #include <cstring>
460
+ #include <stdlib.h>
461
+ #include <new>
462
+ #include <type_traits>
463
+ #else
464
+ #include <stdint.h>
465
+ #include <stddef.h>
466
+ #include <stdbool.h>
467
+ #include <string.h>
468
+ #endif
469
+ #if defined(__cplusplus)
470
+ #pragma clang diagnostic push
471
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
472
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
473
+ # include <ptrauth.h>
474
+ #else
475
+ #pragma clang diagnostic push
476
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
477
+ # ifndef __ptrauth_swift_value_witness_function_pointer
478
+ # define __ptrauth_swift_value_witness_function_pointer(x)
479
+ # endif
480
+ # ifndef __ptrauth_swift_class_method_pointer
481
+ # define __ptrauth_swift_class_method_pointer(x)
482
+ # endif
483
+ #pragma clang diagnostic pop
484
+ #endif
485
+ #pragma clang diagnostic pop
486
+ #endif
487
+
488
+ #if !defined(SWIFT_TYPEDEFS)
489
+ # define SWIFT_TYPEDEFS 1
490
+ # if __has_include(<uchar.h>)
491
+ # include <uchar.h>
492
+ # elif !defined(__cplusplus)
493
+ typedef unsigned char char8_t;
494
+ typedef uint_least16_t char16_t;
495
+ typedef uint_least32_t char32_t;
496
+ # endif
497
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
498
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
499
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
500
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
501
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
502
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
503
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
504
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
505
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
506
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
507
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
508
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
509
+ #endif
510
+
511
+ #if !defined(SWIFT_PASTE)
512
+ # define SWIFT_PASTE_HELPER(x, y) x##y
513
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
514
+ #endif
515
+ #if !defined(SWIFT_METATYPE)
516
+ # define SWIFT_METATYPE(X) Class
517
+ #endif
518
+ #if !defined(SWIFT_CLASS_PROPERTY)
519
+ # if __has_feature(objc_class_property)
520
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
521
+ # else
522
+ # define SWIFT_CLASS_PROPERTY(...)
523
+ # endif
524
+ #endif
525
+ #if !defined(SWIFT_RUNTIME_NAME)
526
+ # if __has_attribute(objc_runtime_name)
527
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
528
+ # else
529
+ # define SWIFT_RUNTIME_NAME(X)
530
+ # endif
531
+ #endif
532
+ #if !defined(SWIFT_COMPILE_NAME)
533
+ # if __has_attribute(swift_name)
534
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
535
+ # else
536
+ # define SWIFT_COMPILE_NAME(X)
537
+ # endif
538
+ #endif
539
+ #if !defined(SWIFT_METHOD_FAMILY)
540
+ # if __has_attribute(objc_method_family)
541
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
542
+ # else
543
+ # define SWIFT_METHOD_FAMILY(X)
544
+ # endif
545
+ #endif
546
+ #if !defined(SWIFT_NOESCAPE)
547
+ # if __has_attribute(noescape)
548
+ # define SWIFT_NOESCAPE __attribute__((noescape))
549
+ # else
550
+ # define SWIFT_NOESCAPE
551
+ # endif
552
+ #endif
553
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
554
+ # if __has_attribute(ns_consumed)
555
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
556
+ # else
557
+ # define SWIFT_RELEASES_ARGUMENT
558
+ # endif
559
+ #endif
560
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
561
+ # if __has_attribute(warn_unused_result)
562
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
563
+ # else
564
+ # define SWIFT_WARN_UNUSED_RESULT
565
+ # endif
566
+ #endif
567
+ #if !defined(SWIFT_NORETURN)
568
+ # if __has_attribute(noreturn)
569
+ # define SWIFT_NORETURN __attribute__((noreturn))
570
+ # else
571
+ # define SWIFT_NORETURN
572
+ # endif
573
+ #endif
574
+ #if !defined(SWIFT_CLASS_EXTRA)
575
+ # define SWIFT_CLASS_EXTRA
576
+ #endif
577
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
578
+ # define SWIFT_PROTOCOL_EXTRA
579
+ #endif
580
+ #if !defined(SWIFT_ENUM_EXTRA)
581
+ # define SWIFT_ENUM_EXTRA
582
+ #endif
583
+ #if !defined(SWIFT_CLASS)
584
+ # if __has_attribute(objc_subclassing_restricted)
585
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
586
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
587
+ # else
588
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
589
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
590
+ # endif
591
+ #endif
592
+ #if !defined(SWIFT_RESILIENT_CLASS)
593
+ # if __has_attribute(objc_class_stub)
594
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
595
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
596
+ # else
597
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
598
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
599
+ # endif
600
+ #endif
601
+ #if !defined(SWIFT_PROTOCOL)
602
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
603
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
604
+ #endif
605
+ #if !defined(SWIFT_EXTENSION)
606
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
607
+ #endif
608
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
609
+ # if __has_attribute(objc_designated_initializer)
610
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
611
+ # else
612
+ # define OBJC_DESIGNATED_INITIALIZER
613
+ # endif
614
+ #endif
615
+ #if !defined(SWIFT_ENUM_ATTR)
616
+ # if __has_attribute(enum_extensibility)
617
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
618
+ # else
619
+ # define SWIFT_ENUM_ATTR(_extensibility)
620
+ # endif
621
+ #endif
622
+ #if !defined(SWIFT_ENUM)
623
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
624
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
625
+ # if __has_feature(generalized_swift_name)
626
+ # 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
627
+ # else
628
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
629
+ # endif
630
+ # else
631
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
632
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
633
+ # endif
634
+ #endif
635
+ #if !defined(SWIFT_ENUM_TAG)
636
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
637
+ # define SWIFT_ENUM_TAG enum
638
+ # else
639
+ # define SWIFT_ENUM_TAG
640
+ # endif
641
+ #endif
642
+ #if !defined(SWIFT_ENUM_FWD_DECL)
643
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
644
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
645
+ # else
646
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
647
+ # endif
648
+ #endif
649
+ #if !defined(SWIFT_UNAVAILABLE)
650
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
651
+ #endif
652
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
653
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
654
+ #endif
655
+ #if !defined(SWIFT_AVAILABILITY)
656
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
657
+ #endif
658
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
659
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
660
+ #endif
661
+ #if !defined(SWIFT_WEAK_IMPORT)
662
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
663
+ #endif
664
+ #if !defined(SWIFT_DEPRECATED)
665
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
666
+ #endif
667
+ #if !defined(SWIFT_DEPRECATED_MSG)
668
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
669
+ #endif
670
+ #if !defined(SWIFT_DEPRECATED_OBJC)
671
+ # if __has_feature(attribute_diagnose_if_objc)
672
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
673
+ # else
674
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
675
+ # endif
676
+ #endif
677
+ #if defined(__OBJC__)
678
+ #if !defined(IBSegueAction)
679
+ # define IBSegueAction
680
+ #endif
681
+ #endif
682
+ #if !defined(SWIFT_EXTERN)
683
+ # if defined(__cplusplus)
684
+ # define SWIFT_EXTERN extern "C"
685
+ # else
686
+ # define SWIFT_EXTERN extern
687
+ # endif
688
+ #endif
689
+ #if !defined(SWIFT_CALL)
690
+ # define SWIFT_CALL __attribute__((swiftcall))
691
+ #endif
692
+ #if !defined(SWIFT_INDIRECT_RESULT)
693
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
694
+ #endif
695
+ #if !defined(SWIFT_CONTEXT)
696
+ # define SWIFT_CONTEXT __attribute__((swift_context))
697
+ #endif
698
+ #if !defined(SWIFT_ERROR_RESULT)
699
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
700
+ #endif
701
+ #if defined(__cplusplus)
702
+ # define SWIFT_NOEXCEPT noexcept
703
+ #else
704
+ # define SWIFT_NOEXCEPT
705
+ #endif
706
+ #if !defined(SWIFT_C_INLINE_THUNK)
707
+ # if __has_attribute(always_inline)
708
+ # if __has_attribute(nodebug)
709
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
710
+ # else
711
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
712
+ # endif
713
+ # else
714
+ # define SWIFT_C_INLINE_THUNK inline
715
+ # endif
716
+ #endif
717
+ #if defined(_WIN32)
718
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
719
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
720
+ #endif
721
+ #else
722
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
723
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
724
+ #endif
725
+ #endif
726
+ #if !__has_feature(nullability)
727
+ # define _Nonnull
728
+ # define _Nullable
729
+ # define _Null_unspecified
730
+ #elif !defined(__OBJC__)
731
+ # pragma clang diagnostic ignored "-Wnullability-extension"
732
+ #endif
733
+ #if !__has_feature(nullability_nullable_result)
734
+ # define _Nullable_result _Nullable
735
+ #endif
736
+ #if __has_feature(objc_modules)
737
+ #if __has_warning("-Watimport-in-framework-header")
738
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
739
+ #endif
740
+ #endif
741
+
742
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
743
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
744
+ #if __has_warning("-Wpragma-clang-attribute")
745
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
746
+ #endif
747
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
748
+ #pragma clang diagnostic ignored "-Wnullability"
749
+ #pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
750
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
751
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
752
+
753
+ #if __has_attribute(external_source_symbol)
754
+ # pragma push_macro("any")
755
+ # undef any
756
+ # 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))
757
+ # pragma pop_macro("any")
758
+ #endif
759
+
760
+ #if defined(__cplusplus)
761
+ extern "C" {
762
+ #endif
763
+
764
+ #if defined(__cplusplus)
765
+ } // extern "C"
766
+ #endif
767
+ #if __has_attribute(external_source_symbol)
768
+ # pragma clang attribute pop
769
+ #endif
770
+ #if defined(__OBJC__)
771
+ #if __has_feature(objc_modules)
772
+ #if __has_warning("-Watimport-in-framework-header")
773
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
774
+ #endif
775
+ @import ObjectiveC;
776
+ #endif
777
+
778
+ #endif // defined(__OBJC__)
779
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
780
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
781
+ #if __has_warning("-Wpragma-clang-attribute")
782
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
783
+ #endif
784
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
785
+ #pragma clang diagnostic ignored "-Wnullability"
786
+ #pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
787
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
788
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
789
+
790
+ #if __has_attribute(external_source_symbol)
791
+ # pragma push_macro("any")
792
+ # undef any
793
+ # 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))
794
+ # pragma pop_macro("any")
795
+ #endif
796
+
797
+ #if defined(__OBJC__)
798
+
799
+ @protocol BGTrackingEventSink;
800
+ @class NSString;
801
+ @class NSDictionary;
802
+ /// Everything the <code>LocationTracker</code> TurboModule does, in Swift. JS only steers and observes;
803
+ /// the pipeline runs in [LocationEngine] whether or not React is alive.
804
+ /// Methods may be called from any thread; work that touches CoreLocation or UIKit hops to main.
805
+ SWIFT_CLASS_NAMED("TrackingController")
806
+ @interface BGTrackingController : NSObject
807
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BGTrackingController * _Nonnull shared;)
808
+ + (BGTrackingController * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
809
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
810
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
811
+ - (void)attach:(id <BGTrackingEventSink> _Nonnull)sink;
812
+ - (void)detach:(id <BGTrackingEventSink> _Nonnull)sink;
813
+ /// App-launch bootstrap the drop-in shim calls on <code>UIApplicationDidFinishLaunching</code>, so the host
814
+ /// app needs no AppDelegate edits: registers the BGTask, reconnects the background upload
815
+ /// session, and revives tracking if it was desired.
816
+ - (void)bootstrap;
817
+ /// Called by the shim from <code>+load</code>.
818
+ - (void)applyRuntimeProfile:(NSInteger)profile;
819
+ /// Forwarded by the shim from <code>application(_:handleEventsForBackgroundURLSession:)</code>.
820
+ - (void)handleBackgroundURLSession:(NSString * _Nonnull)identifier completion:(void (^ _Nonnull)(void))completion;
821
+ - (void)startTracking:(NSString * _Nonnull)serverUrl;
822
+ - (void)stopTracking;
823
+ /// Synchronous JSI call; reads only in-memory state and UserDefaults.
824
+ - (NSDictionary * _Nonnull)status SWIFT_WARN_UNUSED_RESULT;
825
+ - (void)setTrackingProfile:(NSString * _Nonnull)profile;
826
+ /// Android-only tier; iOS requests Motion & Fitness lazily from the adaptive profile.
827
+ - (void)setMotionPermissionOptIn:(BOOL)enabled;
828
+ - (void)setSyncPolicy:(double)batchSize maxBackoffMs:(double)maxBackoffMs maxAttempts:(double)maxAttempts;
829
+ - (void)setDemoMode:(BOOL)enabled;
830
+ - (void)syncNow;
831
+ /// iOS has no battery-optimization exemption; Low Power Mode and Background App Refresh live in Settings.
832
+ - (void)openSettings;
833
+ - (void)requestLocationPermission:(BOOL)always;
834
+ /// Called from <code>didFinishLaunching</code>, including headless relaunches by significant-change monitoring.
835
+ - (void)resumeIfDesired:(NSString * _Nonnull)reason;
836
+ @end
837
+
838
+ /// Implemented by the ObjC++ TurboModule; receives payloads already shaped like the JS spec.
839
+ SWIFT_PROTOCOL_NAMED("TrackingEventSink")
840
+ @protocol BGTrackingEventSink <NSObject>
841
+ - (void)onLocationUpdate:(NSDictionary * _Nonnull)event;
842
+ - (void)onSyncStatus:(NSDictionary * _Nonnull)event;
843
+ @end
844
+
845
+ #endif // defined(__OBJC__)
846
+ #if __has_attribute(external_source_symbol)
847
+ # pragma clang attribute pop
848
+ #endif
849
+ #if defined(__cplusplus)
850
+ #endif
851
+ #pragma clang diagnostic pop
852
+ #endif
853
+
854
+ #else
855
+ #error unsupported Swift architecture
856
+ #endif