commit | author | age
|
8fa52d
|
1 |
#if 0 |
L |
2 |
#elif defined(__arm64__) && __arm64__ |
|
3 |
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) |
aca600
|
4 |
#ifndef FIREBASECOREINTERNAL_SWIFT_H |
L |
5 |
#define FIREBASECOREINTERNAL_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 |
|
8fa52d
|
26 |
#pragma clang diagnostic ignored "-Wduplicate-method-match" |
aca600
|
27 |
#pragma clang diagnostic ignored "-Wauto-import" |
8fa52d
|
28 |
#if defined(__OBJC__) |
aca600
|
29 |
#include <Foundation/Foundation.h> |
8fa52d
|
30 |
#endif |
L |
31 |
#if defined(__cplusplus) |
|
32 |
#include <cstdint> |
|
33 |
#include <cstddef> |
|
34 |
#include <cstdbool> |
|
35 |
#else |
aca600
|
36 |
#include <stdint.h> |
L |
37 |
#include <stddef.h> |
|
38 |
#include <stdbool.h> |
8fa52d
|
39 |
#endif |
aca600
|
40 |
|
L |
41 |
#if !defined(SWIFT_TYPEDEFS) |
|
42 |
# define SWIFT_TYPEDEFS 1 |
|
43 |
# if __has_include(<uchar.h>) |
|
44 |
# include <uchar.h> |
|
45 |
# elif !defined(__cplusplus) |
|
46 |
typedef uint_least16_t char16_t; |
|
47 |
typedef uint_least32_t char32_t; |
|
48 |
# endif |
|
49 |
typedef float swift_float2 __attribute__((__ext_vector_type__(2))); |
|
50 |
typedef float swift_float3 __attribute__((__ext_vector_type__(3))); |
|
51 |
typedef float swift_float4 __attribute__((__ext_vector_type__(4))); |
|
52 |
typedef double swift_double2 __attribute__((__ext_vector_type__(2))); |
|
53 |
typedef double swift_double3 __attribute__((__ext_vector_type__(3))); |
|
54 |
typedef double swift_double4 __attribute__((__ext_vector_type__(4))); |
|
55 |
typedef int swift_int2 __attribute__((__ext_vector_type__(2))); |
|
56 |
typedef int swift_int3 __attribute__((__ext_vector_type__(3))); |
|
57 |
typedef int swift_int4 __attribute__((__ext_vector_type__(4))); |
|
58 |
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); |
|
59 |
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); |
|
60 |
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); |
|
61 |
#endif |
|
62 |
|
|
63 |
#if !defined(SWIFT_PASTE) |
|
64 |
# define SWIFT_PASTE_HELPER(x, y) x##y |
|
65 |
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) |
|
66 |
#endif |
|
67 |
#if !defined(SWIFT_METATYPE) |
|
68 |
# define SWIFT_METATYPE(X) Class |
|
69 |
#endif |
|
70 |
#if !defined(SWIFT_CLASS_PROPERTY) |
|
71 |
# if __has_feature(objc_class_property) |
|
72 |
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
|
73 |
# else |
|
74 |
# define SWIFT_CLASS_PROPERTY(...) |
|
75 |
# endif |
|
76 |
#endif |
|
77 |
|
|
78 |
#if __has_attribute(objc_runtime_name) |
|
79 |
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
|
80 |
#else |
|
81 |
# define SWIFT_RUNTIME_NAME(X) |
|
82 |
#endif |
|
83 |
#if __has_attribute(swift_name) |
|
84 |
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
|
85 |
#else |
|
86 |
# define SWIFT_COMPILE_NAME(X) |
|
87 |
#endif |
|
88 |
#if __has_attribute(objc_method_family) |
|
89 |
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
|
90 |
#else |
|
91 |
# define SWIFT_METHOD_FAMILY(X) |
|
92 |
#endif |
|
93 |
#if __has_attribute(noescape) |
|
94 |
# define SWIFT_NOESCAPE __attribute__((noescape)) |
|
95 |
#else |
|
96 |
# define SWIFT_NOESCAPE |
|
97 |
#endif |
|
98 |
#if __has_attribute(ns_consumed) |
|
99 |
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
|
100 |
#else |
|
101 |
# define SWIFT_RELEASES_ARGUMENT |
|
102 |
#endif |
|
103 |
#if __has_attribute(warn_unused_result) |
|
104 |
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
|
105 |
#else |
|
106 |
# define SWIFT_WARN_UNUSED_RESULT |
|
107 |
#endif |
|
108 |
#if __has_attribute(noreturn) |
|
109 |
# define SWIFT_NORETURN __attribute__((noreturn)) |
|
110 |
#else |
|
111 |
# define SWIFT_NORETURN |
|
112 |
#endif |
|
113 |
#if !defined(SWIFT_CLASS_EXTRA) |
|
114 |
# define SWIFT_CLASS_EXTRA |
|
115 |
#endif |
|
116 |
#if !defined(SWIFT_PROTOCOL_EXTRA) |
|
117 |
# define SWIFT_PROTOCOL_EXTRA |
|
118 |
#endif |
|
119 |
#if !defined(SWIFT_ENUM_EXTRA) |
|
120 |
# define SWIFT_ENUM_EXTRA |
|
121 |
#endif |
|
122 |
#if !defined(SWIFT_CLASS) |
|
123 |
# if __has_attribute(objc_subclassing_restricted) |
|
124 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA |
|
125 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
126 |
# else |
|
127 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
128 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
129 |
# endif |
|
130 |
#endif |
|
131 |
#if !defined(SWIFT_RESILIENT_CLASS) |
|
132 |
# if __has_attribute(objc_class_stub) |
|
133 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) |
|
134 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
135 |
# else |
|
136 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) |
|
137 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
138 |
# endif |
|
139 |
#endif |
|
140 |
|
|
141 |
#if !defined(SWIFT_PROTOCOL) |
|
142 |
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
143 |
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
144 |
#endif |
|
145 |
|
|
146 |
#if !defined(SWIFT_EXTENSION) |
|
147 |
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
|
148 |
#endif |
|
149 |
|
|
150 |
#if !defined(OBJC_DESIGNATED_INITIALIZER) |
|
151 |
# if __has_attribute(objc_designated_initializer) |
|
152 |
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
|
153 |
# else |
|
154 |
# define OBJC_DESIGNATED_INITIALIZER |
|
155 |
# endif |
|
156 |
#endif |
|
157 |
#if !defined(SWIFT_ENUM_ATTR) |
|
158 |
# if defined(__has_attribute) && __has_attribute(enum_extensibility) |
|
159 |
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
|
160 |
# else |
|
161 |
# define SWIFT_ENUM_ATTR(_extensibility) |
|
162 |
# endif |
|
163 |
#endif |
|
164 |
#if !defined(SWIFT_ENUM) |
|
165 |
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
166 |
# if __has_feature(generalized_swift_name) |
|
167 |
# 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 |
|
168 |
# else |
|
169 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) |
|
170 |
# endif |
|
171 |
#endif |
|
172 |
#if !defined(SWIFT_UNAVAILABLE) |
|
173 |
# define SWIFT_UNAVAILABLE __attribute__((unavailable)) |
|
174 |
#endif |
|
175 |
#if !defined(SWIFT_UNAVAILABLE_MSG) |
|
176 |
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) |
|
177 |
#endif |
|
178 |
#if !defined(SWIFT_AVAILABILITY) |
|
179 |
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) |
|
180 |
#endif |
|
181 |
#if !defined(SWIFT_WEAK_IMPORT) |
|
182 |
# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) |
|
183 |
#endif |
|
184 |
#if !defined(SWIFT_DEPRECATED) |
|
185 |
# define SWIFT_DEPRECATED __attribute__((deprecated)) |
|
186 |
#endif |
|
187 |
#if !defined(SWIFT_DEPRECATED_MSG) |
|
188 |
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
|
189 |
#endif |
|
190 |
#if __has_feature(attribute_diagnose_if_objc) |
|
191 |
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
|
192 |
#else |
|
193 |
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
|
194 |
#endif |
8fa52d
|
195 |
#if defined(__OBJC__) |
aca600
|
196 |
#if !defined(IBSegueAction) |
L |
197 |
# define IBSegueAction |
8fa52d
|
198 |
#endif |
aca600
|
199 |
#endif |
L |
200 |
#if !defined(SWIFT_EXTERN) |
|
201 |
# if defined(__cplusplus) |
|
202 |
# define SWIFT_EXTERN extern "C" |
|
203 |
# else |
|
204 |
# define SWIFT_EXTERN extern |
|
205 |
# endif |
|
206 |
#endif |
8fa52d
|
207 |
#if !defined(SWIFT_CALL) |
L |
208 |
# define SWIFT_CALL __attribute__((swiftcall)) |
|
209 |
#endif |
|
210 |
#if defined(__cplusplus) |
|
211 |
#if !defined(SWIFT_NOEXCEPT) |
|
212 |
# define SWIFT_NOEXCEPT noexcept |
|
213 |
#endif |
|
214 |
#else |
|
215 |
#if !defined(SWIFT_NOEXCEPT) |
|
216 |
# define SWIFT_NOEXCEPT |
|
217 |
#endif |
|
218 |
#endif |
|
219 |
#if defined(__cplusplus) |
|
220 |
#if !defined(SWIFT_CXX_INT_DEFINED) |
|
221 |
#define SWIFT_CXX_INT_DEFINED |
|
222 |
namespace swift { |
|
223 |
using Int = ptrdiff_t; |
|
224 |
using UInt = size_t; |
|
225 |
} |
|
226 |
#endif |
|
227 |
#endif |
|
228 |
#if defined(__OBJC__) |
aca600
|
229 |
#if __has_feature(modules) |
L |
230 |
#if __has_warning("-Watimport-in-framework-header") |
|
231 |
#pragma clang diagnostic ignored "-Watimport-in-framework-header" |
|
232 |
#endif |
|
233 |
@import ObjectiveC; |
|
234 |
#endif |
|
235 |
|
8fa52d
|
236 |
#endif |
aca600
|
237 |
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
L |
238 |
#pragma clang diagnostic ignored "-Wduplicate-method-arg" |
|
239 |
#if __has_warning("-Wpragma-clang-attribute") |
|
240 |
# pragma clang diagnostic ignored "-Wpragma-clang-attribute" |
|
241 |
#endif |
|
242 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
|
243 |
#pragma clang diagnostic ignored "-Wnullability" |
8fa52d
|
244 |
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
aca600
|
245 |
|
L |
246 |
#if __has_attribute(external_source_symbol) |
|
247 |
# pragma push_macro("any") |
|
248 |
# undef any |
|
249 |
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseCoreInternal",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) |
|
250 |
# pragma pop_macro("any") |
|
251 |
#endif |
|
252 |
|
8fa52d
|
253 |
#if defined(__OBJC__) |
aca600
|
254 |
|
L |
255 |
@class NSString; |
|
256 |
@class FIRHeartbeatsPayload; |
|
257 |
|
|
258 |
/// An object that provides API to log and flush heartbeats from a synchronized storage container. |
|
259 |
SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") |
|
260 |
@interface FIRHeartbeatController : NSObject |
|
261 |
/// Public initializer. |
|
262 |
/// \param id The <code>id</code> to associate this controller’s heartbeat storage with. |
|
263 |
/// |
|
264 |
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; |
|
265 |
/// Asynchronously logs a new heartbeat, if needed. |
|
266 |
/// note: |
|
267 |
/// This API is thread-safe. |
8fa52d
|
268 |
/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged |
L |
269 |
/// heartbeat with. |
aca600
|
270 |
/// |
L |
271 |
- (void)log:(NSString * _Nonnull)agent; |
|
272 |
/// Synchronously flushes heartbeats from storage into a heartbeats payload. |
|
273 |
/// note: |
|
274 |
/// This API is thread-safe. |
|
275 |
/// |
|
276 |
/// returns: |
|
277 |
/// A heartbeats payload for the flushed heartbeat(s). |
|
278 |
- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; |
|
279 |
/// Synchronously flushes the heartbeat for today. |
|
280 |
/// If no heartbeat was logged today, the returned payload is empty. |
|
281 |
/// note: |
|
282 |
/// This API is thread-safe. |
|
283 |
/// |
|
284 |
/// returns: |
|
285 |
/// A heartbeats payload for the flushed heartbeat. |
|
286 |
- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; |
|
287 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
288 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
289 |
@end |
|
290 |
|
|
291 |
|
8fa52d
|
292 |
/// A model object representing a payload of heartbeat data intended for sending in network |
L |
293 |
/// requests. |
aca600
|
294 |
SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") |
L |
295 |
@interface FIRHeartbeatsPayload : NSObject |
|
296 |
/// Returns a processed payload string intended for use in a HTTP header. |
|
297 |
/// |
|
298 |
/// returns: |
|
299 |
/// A string value from the heartbeats payload. |
|
300 |
- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; |
|
301 |
/// A Boolean value indicating whether the payload is empty. |
|
302 |
@property (nonatomic, readonly) BOOL isEmpty; |
|
303 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
304 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
305 |
@end |
|
306 |
|
8fa52d
|
307 |
#endif |
L |
308 |
#if defined(__cplusplus) |
|
309 |
#endif |
aca600
|
310 |
#if __has_attribute(external_source_symbol) |
L |
311 |
# pragma clang attribute pop |
|
312 |
#endif |
|
313 |
#pragma clang diagnostic pop |
|
314 |
#endif |
8fa52d
|
315 |
|
L |
316 |
#elif defined(__x86_64__) && __x86_64__ |
|
317 |
// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) |
|
318 |
#ifndef FIREBASECOREINTERNAL_SWIFT_H |
|
319 |
#define FIREBASECOREINTERNAL_SWIFT_H |
|
320 |
#pragma clang diagnostic push |
|
321 |
#pragma clang diagnostic ignored "-Wgcc-compat" |
|
322 |
|
|
323 |
#if !defined(__has_include) |
|
324 |
# define __has_include(x) 0 |
|
325 |
#endif |
|
326 |
#if !defined(__has_attribute) |
|
327 |
# define __has_attribute(x) 0 |
|
328 |
#endif |
|
329 |
#if !defined(__has_feature) |
|
330 |
# define __has_feature(x) 0 |
|
331 |
#endif |
|
332 |
#if !defined(__has_warning) |
|
333 |
# define __has_warning(x) 0 |
|
334 |
#endif |
|
335 |
|
|
336 |
#if __has_include(<swift/objc-prologue.h>) |
|
337 |
# include <swift/objc-prologue.h> |
|
338 |
#endif |
|
339 |
|
|
340 |
#pragma clang diagnostic ignored "-Wduplicate-method-match" |
|
341 |
#pragma clang diagnostic ignored "-Wauto-import" |
|
342 |
#if defined(__OBJC__) |
|
343 |
#include <Foundation/Foundation.h> |
|
344 |
#endif |
|
345 |
#if defined(__cplusplus) |
|
346 |
#include <cstdint> |
|
347 |
#include <cstddef> |
|
348 |
#include <cstdbool> |
|
349 |
#else |
|
350 |
#include <stdint.h> |
|
351 |
#include <stddef.h> |
|
352 |
#include <stdbool.h> |
|
353 |
#endif |
|
354 |
|
|
355 |
#if !defined(SWIFT_TYPEDEFS) |
|
356 |
# define SWIFT_TYPEDEFS 1 |
|
357 |
# if __has_include(<uchar.h>) |
|
358 |
# include <uchar.h> |
|
359 |
# elif !defined(__cplusplus) |
|
360 |
typedef uint_least16_t char16_t; |
|
361 |
typedef uint_least32_t char32_t; |
|
362 |
# endif |
|
363 |
typedef float swift_float2 __attribute__((__ext_vector_type__(2))); |
|
364 |
typedef float swift_float3 __attribute__((__ext_vector_type__(3))); |
|
365 |
typedef float swift_float4 __attribute__((__ext_vector_type__(4))); |
|
366 |
typedef double swift_double2 __attribute__((__ext_vector_type__(2))); |
|
367 |
typedef double swift_double3 __attribute__((__ext_vector_type__(3))); |
|
368 |
typedef double swift_double4 __attribute__((__ext_vector_type__(4))); |
|
369 |
typedef int swift_int2 __attribute__((__ext_vector_type__(2))); |
|
370 |
typedef int swift_int3 __attribute__((__ext_vector_type__(3))); |
|
371 |
typedef int swift_int4 __attribute__((__ext_vector_type__(4))); |
|
372 |
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); |
|
373 |
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); |
|
374 |
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); |
|
375 |
#endif |
|
376 |
|
|
377 |
#if !defined(SWIFT_PASTE) |
|
378 |
# define SWIFT_PASTE_HELPER(x, y) x##y |
|
379 |
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) |
|
380 |
#endif |
|
381 |
#if !defined(SWIFT_METATYPE) |
|
382 |
# define SWIFT_METATYPE(X) Class |
|
383 |
#endif |
|
384 |
#if !defined(SWIFT_CLASS_PROPERTY) |
|
385 |
# if __has_feature(objc_class_property) |
|
386 |
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
|
387 |
# else |
|
388 |
# define SWIFT_CLASS_PROPERTY(...) |
|
389 |
# endif |
|
390 |
#endif |
|
391 |
|
|
392 |
#if __has_attribute(objc_runtime_name) |
|
393 |
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
|
394 |
#else |
|
395 |
# define SWIFT_RUNTIME_NAME(X) |
|
396 |
#endif |
|
397 |
#if __has_attribute(swift_name) |
|
398 |
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
|
399 |
#else |
|
400 |
# define SWIFT_COMPILE_NAME(X) |
|
401 |
#endif |
|
402 |
#if __has_attribute(objc_method_family) |
|
403 |
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
|
404 |
#else |
|
405 |
# define SWIFT_METHOD_FAMILY(X) |
|
406 |
#endif |
|
407 |
#if __has_attribute(noescape) |
|
408 |
# define SWIFT_NOESCAPE __attribute__((noescape)) |
|
409 |
#else |
|
410 |
# define SWIFT_NOESCAPE |
|
411 |
#endif |
|
412 |
#if __has_attribute(ns_consumed) |
|
413 |
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
|
414 |
#else |
|
415 |
# define SWIFT_RELEASES_ARGUMENT |
|
416 |
#endif |
|
417 |
#if __has_attribute(warn_unused_result) |
|
418 |
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
|
419 |
#else |
|
420 |
# define SWIFT_WARN_UNUSED_RESULT |
|
421 |
#endif |
|
422 |
#if __has_attribute(noreturn) |
|
423 |
# define SWIFT_NORETURN __attribute__((noreturn)) |
|
424 |
#else |
|
425 |
# define SWIFT_NORETURN |
|
426 |
#endif |
|
427 |
#if !defined(SWIFT_CLASS_EXTRA) |
|
428 |
# define SWIFT_CLASS_EXTRA |
|
429 |
#endif |
|
430 |
#if !defined(SWIFT_PROTOCOL_EXTRA) |
|
431 |
# define SWIFT_PROTOCOL_EXTRA |
|
432 |
#endif |
|
433 |
#if !defined(SWIFT_ENUM_EXTRA) |
|
434 |
# define SWIFT_ENUM_EXTRA |
|
435 |
#endif |
|
436 |
#if !defined(SWIFT_CLASS) |
|
437 |
# if __has_attribute(objc_subclassing_restricted) |
|
438 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA |
|
439 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
440 |
# else |
|
441 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
442 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
443 |
# endif |
|
444 |
#endif |
|
445 |
#if !defined(SWIFT_RESILIENT_CLASS) |
|
446 |
# if __has_attribute(objc_class_stub) |
|
447 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) |
|
448 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
449 |
# else |
|
450 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) |
|
451 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
452 |
# endif |
|
453 |
#endif |
|
454 |
|
|
455 |
#if !defined(SWIFT_PROTOCOL) |
|
456 |
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
457 |
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
458 |
#endif |
|
459 |
|
|
460 |
#if !defined(SWIFT_EXTENSION) |
|
461 |
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
|
462 |
#endif |
|
463 |
|
|
464 |
#if !defined(OBJC_DESIGNATED_INITIALIZER) |
|
465 |
# if __has_attribute(objc_designated_initializer) |
|
466 |
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
|
467 |
# else |
|
468 |
# define OBJC_DESIGNATED_INITIALIZER |
|
469 |
# endif |
|
470 |
#endif |
|
471 |
#if !defined(SWIFT_ENUM_ATTR) |
|
472 |
# if defined(__has_attribute) && __has_attribute(enum_extensibility) |
|
473 |
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
|
474 |
# else |
|
475 |
# define SWIFT_ENUM_ATTR(_extensibility) |
|
476 |
# endif |
|
477 |
#endif |
|
478 |
#if !defined(SWIFT_ENUM) |
|
479 |
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
480 |
# if __has_feature(generalized_swift_name) |
|
481 |
# 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 |
|
482 |
# else |
|
483 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) |
|
484 |
# endif |
|
485 |
#endif |
|
486 |
#if !defined(SWIFT_UNAVAILABLE) |
|
487 |
# define SWIFT_UNAVAILABLE __attribute__((unavailable)) |
|
488 |
#endif |
|
489 |
#if !defined(SWIFT_UNAVAILABLE_MSG) |
|
490 |
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) |
|
491 |
#endif |
|
492 |
#if !defined(SWIFT_AVAILABILITY) |
|
493 |
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) |
|
494 |
#endif |
|
495 |
#if !defined(SWIFT_WEAK_IMPORT) |
|
496 |
# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) |
|
497 |
#endif |
|
498 |
#if !defined(SWIFT_DEPRECATED) |
|
499 |
# define SWIFT_DEPRECATED __attribute__((deprecated)) |
|
500 |
#endif |
|
501 |
#if !defined(SWIFT_DEPRECATED_MSG) |
|
502 |
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
|
503 |
#endif |
|
504 |
#if __has_feature(attribute_diagnose_if_objc) |
|
505 |
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
|
506 |
#else |
|
507 |
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
|
508 |
#endif |
|
509 |
#if defined(__OBJC__) |
|
510 |
#if !defined(IBSegueAction) |
|
511 |
# define IBSegueAction |
|
512 |
#endif |
|
513 |
#endif |
|
514 |
#if !defined(SWIFT_EXTERN) |
|
515 |
# if defined(__cplusplus) |
|
516 |
# define SWIFT_EXTERN extern "C" |
|
517 |
# else |
|
518 |
# define SWIFT_EXTERN extern |
|
519 |
# endif |
|
520 |
#endif |
|
521 |
#if !defined(SWIFT_CALL) |
|
522 |
# define SWIFT_CALL __attribute__((swiftcall)) |
|
523 |
#endif |
|
524 |
#if defined(__cplusplus) |
|
525 |
#if !defined(SWIFT_NOEXCEPT) |
|
526 |
# define SWIFT_NOEXCEPT noexcept |
|
527 |
#endif |
|
528 |
#else |
|
529 |
#if !defined(SWIFT_NOEXCEPT) |
|
530 |
# define SWIFT_NOEXCEPT |
|
531 |
#endif |
|
532 |
#endif |
|
533 |
#if defined(__cplusplus) |
|
534 |
#if !defined(SWIFT_CXX_INT_DEFINED) |
|
535 |
#define SWIFT_CXX_INT_DEFINED |
|
536 |
namespace swift { |
|
537 |
using Int = ptrdiff_t; |
|
538 |
using UInt = size_t; |
|
539 |
} |
|
540 |
#endif |
|
541 |
#endif |
|
542 |
#if defined(__OBJC__) |
|
543 |
#if __has_feature(modules) |
|
544 |
#if __has_warning("-Watimport-in-framework-header") |
|
545 |
#pragma clang diagnostic ignored "-Watimport-in-framework-header" |
|
546 |
#endif |
|
547 |
@import ObjectiveC; |
|
548 |
#endif |
|
549 |
|
|
550 |
#endif |
|
551 |
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
|
552 |
#pragma clang diagnostic ignored "-Wduplicate-method-arg" |
|
553 |
#if __has_warning("-Wpragma-clang-attribute") |
|
554 |
# pragma clang diagnostic ignored "-Wpragma-clang-attribute" |
|
555 |
#endif |
|
556 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
|
557 |
#pragma clang diagnostic ignored "-Wnullability" |
|
558 |
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
|
559 |
|
|
560 |
#if __has_attribute(external_source_symbol) |
|
561 |
# pragma push_macro("any") |
|
562 |
# undef any |
|
563 |
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseCoreInternal",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) |
|
564 |
# pragma pop_macro("any") |
|
565 |
#endif |
|
566 |
|
|
567 |
#if defined(__OBJC__) |
|
568 |
|
|
569 |
@class NSString; |
|
570 |
@class FIRHeartbeatsPayload; |
|
571 |
|
|
572 |
/// An object that provides API to log and flush heartbeats from a synchronized storage container. |
|
573 |
SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") |
|
574 |
@interface FIRHeartbeatController : NSObject |
|
575 |
/// Public initializer. |
|
576 |
/// \param id The <code>id</code> to associate this controller’s heartbeat storage with. |
|
577 |
/// |
|
578 |
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; |
|
579 |
/// Asynchronously logs a new heartbeat, if needed. |
|
580 |
/// note: |
|
581 |
/// This API is thread-safe. |
|
582 |
/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged |
|
583 |
/// heartbeat with. |
|
584 |
/// |
|
585 |
- (void)log:(NSString * _Nonnull)agent; |
|
586 |
/// Synchronously flushes heartbeats from storage into a heartbeats payload. |
|
587 |
/// note: |
|
588 |
/// This API is thread-safe. |
|
589 |
/// |
|
590 |
/// returns: |
|
591 |
/// A heartbeats payload for the flushed heartbeat(s). |
|
592 |
- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; |
|
593 |
/// Synchronously flushes the heartbeat for today. |
|
594 |
/// If no heartbeat was logged today, the returned payload is empty. |
|
595 |
/// note: |
|
596 |
/// This API is thread-safe. |
|
597 |
/// |
|
598 |
/// returns: |
|
599 |
/// A heartbeats payload for the flushed heartbeat. |
|
600 |
- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; |
|
601 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
602 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
603 |
@end |
|
604 |
|
|
605 |
|
|
606 |
/// A model object representing a payload of heartbeat data intended for sending in network |
|
607 |
/// requests. |
|
608 |
SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") |
|
609 |
@interface FIRHeartbeatsPayload : NSObject |
|
610 |
/// Returns a processed payload string intended for use in a HTTP header. |
|
611 |
/// |
|
612 |
/// returns: |
|
613 |
/// A string value from the heartbeats payload. |
|
614 |
- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; |
|
615 |
/// A Boolean value indicating whether the payload is empty. |
|
616 |
@property (nonatomic, readonly) BOOL isEmpty; |
|
617 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
618 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
619 |
@end |
|
620 |
|
|
621 |
#endif |
|
622 |
#if defined(__cplusplus) |
|
623 |
#endif |
|
624 |
#if __has_attribute(external_source_symbol) |
|
625 |
# pragma clang attribute pop |
|
626 |
#endif |
|
627 |
#pragma clang diagnostic pop |
|
628 |
#endif |
|
629 |
|
|
630 |
#else |
|
631 |
#error unsupported Swift architecture |
|
632 |
#endif |