From 7cda921ad870caf1ddd718fcc71da3124b6f01f6 Mon Sep 17 00:00:00 2001 From: firebase-workflow-trigger-bot Date: Thu, 3 Aug 2023 21:47:24 +0000 Subject: [PATCH 01/11] Update mobile dependencies - Thu Aug 03 2023 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Android - com.google.firebase.firebase_bom → 32.2.2 ### iOS - Firebase/Analytics → 10.13.0 - Firebase/AppCheck → 10.13.0 - Firebase/Auth → 10.13.0 - Firebase/Core → 10.13.0 - Firebase/CoreOnly → 10.13.0 - Firebase/Crashlytics → 10.13.0 - Firebase/Database → 10.13.0 - Firebase/DynamicLinks → 10.13.0 - Firebase/Firestore → 10.13.0 - Firebase/Functions → 10.13.0 - Firebase/Installations → 10.13.0 - Firebase/Messaging → 10.13.0 - Firebase/RemoteConfig → 10.13.0 - Firebase/Storage → 10.13.0 - Google-Mobile-Ads-SDK → 10.9.0 > Created by [Update Android and iOS dependencies workflow](https://github.com/firebase/firebase-cpp-sdk/actions/runs/5755777170). --- Android/firebase_dependencies.gradle | 2 +- analytics/integration_test/Podfile | 4 +- analytics/ios_headers/FIREventNames.h | 2 +- analytics/ios_headers/FIRParameterNames.h | 2 +- analytics/ios_headers/FIRUserPropertyNames.h | 2 +- app/app_resources/build.gradle | 2 +- app/google_api_resources/build.gradle | 2 +- app/integration_test/Podfile | 2 +- app/invites_resources/build.gradle | 2 +- app_check/app_check_resources/build.gradle | 2 +- app_check/integration_test/Podfile | 20 +- auth/auth_resources/build.gradle | 2 +- auth/integration_test/Podfile | 4 +- cmake/external/firestore.cmake | 2 +- database/database_resources/build.gradle | 2 +- database/integration_test/Podfile | 8 +- dynamic_links/integration_test/Podfile | 2 +- firestore/firestore_resources/build.gradle | 2 +- firestore/integration_test/Podfile | 8 +- firestore/integration_test_internal/Podfile | 8 +- functions/integration_test/Podfile | 8 +- gma/gma_resources/build.gradle | 2 +- gma/integration_test/Podfile | 4 +- installations/integration_test/Podfile | 4 +- ios_pod/Podfile | 28 +- .../FirebaseAnalyticsSwift-Swift.h | 51 +- .../FirebaseCoreInternal-Swift.h | 118 +++- .../FirebaseDatabaseSwift-Swift.h | 52 +- .../FirebaseFirestoreSwift-Swift.h | 52 +- .../swift_headers/FirebaseFunctions-Swift.h | 305 ++++++--- .../FirebaseInAppMessagingSwift-Swift.h | 51 +- .../FirebaseMLModelDownloader-Swift.h | 52 +- .../FirebaseRemoteConfigSwift-Swift.h | 52 +- .../swift_headers/FirebaseSharedSwift-Swift.h | 51 +- ios_pod/swift_headers/FirebaseStorage-Swift.h | 648 +++++++++++------- ios_pod/swift_headers/SwiftProtobuf-Swift.h | 51 +- messaging/integration_test/Podfile | 4 +- messaging/messaging_java/build.gradle | 2 +- .../Android/firebase_dependencies.gradle | 2 +- release_build_files/readme.md | 70 +- remote_config/integration_test/Podfile | 4 +- .../remote_config_resources/build.gradle | 2 +- storage/integration_test/Podfile | 8 +- storage/storage_resources/build.gradle | 2 +- 44 files changed, 1171 insertions(+), 532 deletions(-) diff --git a/Android/firebase_dependencies.gradle b/Android/firebase_dependencies.gradle index a2f751f0a2..2481bd4c38 100644 --- a/Android/firebase_dependencies.gradle +++ b/Android/firebase_dependencies.gradle @@ -158,7 +158,7 @@ project.afterEvaluate { // Add the bill-of-materials project.dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') } for (String lib : firebaseCpp.dependencies.libSet) { // Generate and include the proguard file diff --git a/analytics/integration_test/Podfile b/analytics/integration_test/Podfile index 31bec9d850..2bd2ef9ca3 100644 --- a/analytics/integration_test/Podfile +++ b/analytics/integration_test/Podfile @@ -5,12 +5,12 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/Analytics', '10.12.0' + pod 'Firebase/Analytics', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/Analytics', '10.12.0' + pod 'Firebase/Analytics', '10.13.0' end post_install do |installer| diff --git a/analytics/ios_headers/FIREventNames.h b/analytics/ios_headers/FIREventNames.h index 9d677883f0..317bfab42d 100644 --- a/analytics/ios_headers/FIREventNames.h +++ b/analytics/ios_headers/FIREventNames.h @@ -1,6 +1,6 @@ // Copyright 2023 Google LLC -// Copied from Firebase Analytics iOS SDK 10.12.0. +// Copied from Firebase Analytics iOS SDK 10.13.0. /// @file FIREventNames.h /// diff --git a/analytics/ios_headers/FIRParameterNames.h b/analytics/ios_headers/FIRParameterNames.h index 65f7e3ea7c..c6664d14f7 100644 --- a/analytics/ios_headers/FIRParameterNames.h +++ b/analytics/ios_headers/FIRParameterNames.h @@ -1,6 +1,6 @@ // Copyright 2023 Google LLC -// Copied from Firebase Analytics iOS SDK 10.12.0. +// Copied from Firebase Analytics iOS SDK 10.13.0. /// @file FIRParameterNames.h /// diff --git a/analytics/ios_headers/FIRUserPropertyNames.h b/analytics/ios_headers/FIRUserPropertyNames.h index 935289b468..00851e1395 100644 --- a/analytics/ios_headers/FIRUserPropertyNames.h +++ b/analytics/ios_headers/FIRUserPropertyNames.h @@ -1,6 +1,6 @@ // Copyright 2023 Google LLC -// Copied from Firebase Analytics iOS SDK 10.12.0. +// Copied from Firebase Analytics iOS SDK 10.13.0. /// @file FIRUserPropertyNames.h /// diff --git a/app/app_resources/build.gradle b/app/app_resources/build.gradle index f0d956e39c..6fecf213be 100644 --- a/app/app_resources/build.gradle +++ b/app/app_resources/build.gradle @@ -50,7 +50,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' } diff --git a/app/google_api_resources/build.gradle b/app/google_api_resources/build.gradle index 721547e028..f299d7ac6a 100644 --- a/app/google_api_resources/build.gradle +++ b/app/google_api_resources/build.gradle @@ -53,7 +53,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.android.gms:play-services-base:18.2.0' implementation project(':app:app_resources') diff --git a/app/integration_test/Podfile b/app/integration_test/Podfile index 68829105b6..d0c27722ff 100644 --- a/app/integration_test/Podfile +++ b/app/integration_test/Podfile @@ -4,7 +4,7 @@ platform :ios, '11.0' use_frameworks! :linkage => :static target 'integration_test' do - pod 'Firebase/Analytics', '10.12.0' + pod 'Firebase/Analytics', '10.13.0' end post_install do |installer| diff --git a/app/invites_resources/build.gradle b/app/invites_resources/build.gradle index 3e906204d9..90e7eaa71e 100644 --- a/app/invites_resources/build.gradle +++ b/app/invites_resources/build.gradle @@ -49,7 +49,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-dynamic-links' implementation project(':app:app_resources') diff --git a/app_check/app_check_resources/build.gradle b/app_check/app_check_resources/build.gradle index 29f4663f6e..56fd0ab30a 100644 --- a/app_check/app_check_resources/build.gradle +++ b/app_check/app_check_resources/build.gradle @@ -49,7 +49,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-appcheck' } diff --git a/app_check/integration_test/Podfile b/app_check/integration_test/Podfile index 23b6635378..a809bb6f62 100644 --- a/app_check/integration_test/Podfile +++ b/app_check/integration_test/Podfile @@ -4,20 +4,20 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/AppCheck', '10.12.0' - pod 'Firebase/Database', '10.12.0' - pod 'Firebase/Auth', '10.12.0' - pod 'Firebase/Storage', '10.12.0' - pod 'Firebase/Functions', '10.12.0' + pod 'Firebase/AppCheck', '10.13.0' + pod 'Firebase/Database', '10.13.0' + pod 'Firebase/Auth', '10.13.0' + pod 'Firebase/Storage', '10.13.0' + pod 'Firebase/Functions', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/AppCheck', '10.12.0' - pod 'Firebase/Database', '10.12.0' - pod 'Firebase/Auth', '10.12.0' - pod 'Firebase/Storage', '10.12.0' - pod 'Firebase/Functions', '10.12.0' + pod 'Firebase/AppCheck', '10.13.0' + pod 'Firebase/Database', '10.13.0' + pod 'Firebase/Auth', '10.13.0' + pod 'Firebase/Storage', '10.13.0' + pod 'Firebase/Functions', '10.13.0' end post_install do |installer| diff --git a/auth/auth_resources/build.gradle b/auth/auth_resources/build.gradle index 2a39b9b0a1..1f5801963e 100644 --- a/auth/auth_resources/build.gradle +++ b/auth/auth_resources/build.gradle @@ -49,7 +49,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-auth' implementation project(':app:app_resources') diff --git a/auth/integration_test/Podfile b/auth/integration_test/Podfile index 30d8c003c4..0a7cf70936 100644 --- a/auth/integration_test/Podfile +++ b/auth/integration_test/Podfile @@ -4,12 +4,12 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Auth', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Auth', '10.13.0' end post_install do |installer| diff --git a/cmake/external/firestore.cmake b/cmake/external/firestore.cmake index b38c6beb3b..5715648693 100644 --- a/cmake/external/firestore.cmake +++ b/cmake/external/firestore.cmake @@ -20,7 +20,7 @@ endif() # If the format of the line below changes, then be sure to update # https://github.com/firebase/firebase-cpp-sdk/blob/fd054fa016/.github/workflows/update-dependencies.yml#L81 -set(version CocoaPods-10.12.0) +set(version CocoaPods-10.13.0) function(GetReleasedDep) message("Getting released firebase-ios-sdk @ ${version}") diff --git a/database/database_resources/build.gradle b/database/database_resources/build.gradle index 4d7cdccedb..02b23cb111 100644 --- a/database/database_resources/build.gradle +++ b/database/database_resources/build.gradle @@ -45,7 +45,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-database' //implementation project(':app:app_resources') diff --git a/database/integration_test/Podfile b/database/integration_test/Podfile index bfbd81bc49..beea7f84d9 100644 --- a/database/integration_test/Podfile +++ b/database/integration_test/Podfile @@ -4,14 +4,14 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/Database', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Database', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/Database', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Database', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end post_install do |installer| diff --git a/dynamic_links/integration_test/Podfile b/dynamic_links/integration_test/Podfile index 7dfa40e9c8..9dff3be5be 100644 --- a/dynamic_links/integration_test/Podfile +++ b/dynamic_links/integration_test/Podfile @@ -4,7 +4,7 @@ platform :ios, '11.0' use_frameworks! :linkage => :static target 'integration_test' do - pod 'Firebase/DynamicLinks', '10.12.0' + pod 'Firebase/DynamicLinks', '10.13.0' end post_install do |installer| diff --git a/firestore/firestore_resources/build.gradle b/firestore/firestore_resources/build.gradle index d559110b87..9f4bfd98ab 100644 --- a/firestore/firestore_resources/build.gradle +++ b/firestore/firestore_resources/build.gradle @@ -53,7 +53,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-firestore' } diff --git a/firestore/integration_test/Podfile b/firestore/integration_test/Podfile index eb8a2fe9ef..89a8007786 100644 --- a/firestore/integration_test/Podfile +++ b/firestore/integration_test/Podfile @@ -4,14 +4,14 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/Firestore', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Firestore', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/Firestore', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Firestore', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end post_install do |installer| diff --git a/firestore/integration_test_internal/Podfile b/firestore/integration_test_internal/Podfile index 7d87a571b6..3cbb9cce62 100644 --- a/firestore/integration_test_internal/Podfile +++ b/firestore/integration_test_internal/Podfile @@ -4,14 +4,14 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/Firestore', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Firestore', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/Firestore', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Firestore', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end post_install do |installer| diff --git a/functions/integration_test/Podfile b/functions/integration_test/Podfile index aa8a3c7f5d..22ef139816 100644 --- a/functions/integration_test/Podfile +++ b/functions/integration_test/Podfile @@ -4,14 +4,14 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/Functions', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Functions', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/Functions', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Functions', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end post_install do |installer| diff --git a/gma/gma_resources/build.gradle b/gma/gma_resources/build.gradle index 8bf2bc611f..79dc1bb0a8 100644 --- a/gma/gma_resources/build.gradle +++ b/gma/gma_resources/build.gradle @@ -45,7 +45,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.android.gms:play-services-ads:22.2.0' } diff --git a/gma/integration_test/Podfile b/gma/integration_test/Podfile index 3943eeadd6..8f9a305cdf 100644 --- a/gma/integration_test/Podfile +++ b/gma/integration_test/Podfile @@ -4,8 +4,8 @@ platform :ios, '11.0' use_frameworks! :linkage => :static target 'integration_test' do - pod 'Firebase/CoreOnly', '10.12.0' - pod 'Google-Mobile-Ads-SDK', '10.8.0' + pod 'Firebase/CoreOnly', '10.13.0' + pod 'Google-Mobile-Ads-SDK', '10.9.0' end post_install do |installer| diff --git a/installations/integration_test/Podfile b/installations/integration_test/Podfile index 7a73a24d5e..5c001d5b3a 100644 --- a/installations/integration_test/Podfile +++ b/installations/integration_test/Podfile @@ -4,8 +4,8 @@ platform :ios, '11.0' use_frameworks! :linkage => :static target 'integration_test' do - pod 'Firebase/Analytics', '10.12.0' - pod 'Firebase/Installations', '10.12.0' + pod 'Firebase/Analytics', '10.13.0' + pod 'Firebase/Installations', '10.13.0' end post_install do |installer| diff --git a/ios_pod/Podfile b/ios_pod/Podfile index f45fd75556..85d0daf610 100644 --- a/ios_pod/Podfile +++ b/ios_pod/Podfile @@ -3,20 +3,20 @@ platform :ios, '11.0' use_frameworks! target 'GetPods' do - pod 'Firebase/Core', '10.12.0' + pod 'Firebase/Core', '10.13.0' - pod 'Google-Mobile-Ads-SDK', '10.8.0' - pod 'Firebase/Analytics', '10.12.0' - pod 'Firebase/AppCheck', '10.12.0' - pod 'Firebase/Auth', '10.12.0' - pod 'Firebase/Crashlytics', '10.12.0' - pod 'Firebase/Database', '10.12.0' - pod 'Firebase/DynamicLinks', '10.12.0' - pod 'Firebase/Firestore', '10.12.0' - pod 'Firebase/Functions', '10.12.0' - pod 'Firebase/Installations', '10.12.0' - pod 'Firebase/Messaging', '10.12.0' - pod 'Firebase/RemoteConfig', '10.12.0' - pod 'Firebase/Storage', '10.12.0' + pod 'Google-Mobile-Ads-SDK', '10.9.0' + pod 'Firebase/Analytics', '10.13.0' + pod 'Firebase/AppCheck', '10.13.0' + pod 'Firebase/Auth', '10.13.0' + pod 'Firebase/Crashlytics', '10.13.0' + pod 'Firebase/Database', '10.13.0' + pod 'Firebase/DynamicLinks', '10.13.0' + pod 'Firebase/Firestore', '10.13.0' + pod 'Firebase/Functions', '10.13.0' + pod 'Firebase/Installations', '10.13.0' + pod 'Firebase/Messaging', '10.13.0' + pod 'Firebase/RemoteConfig', '10.13.0' + pod 'Firebase/Storage', '10.13.0' end diff --git a/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h b/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h index 4ef68a494a..52b966d3eb 100644 --- a/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h @@ -1,8 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 -// clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASEANALYTICSSWIFT_SWIFT_H #define FIREBASEANALYTICSSWIFT_SWIFT_H #pragma clang diagnostic push @@ -25,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -203,9 +214,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -213,12 +226,35 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -226,6 +262,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") @@ -239,8 +276,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma pop_macro("any") #endif +#if defined(__OBJC__) +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h b/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h index 04f937100e..f6f5f4460a 100644 --- a/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h +++ b/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h @@ -1,7 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASECOREINTERNAL_SWIFT_H #define FIREBASECOREINTERNAL_SWIFT_H #pragma clang diagnostic push @@ -24,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -113,18 +125,22 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_CLASS) #if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS(SWIFT_NAME) \ + SWIFT_RUNTIME_NAME(SWIFT_NAME) \ + __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ + __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ + SWIFT_CLASS_EXTRA #else #define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ + SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA #endif #endif #if !defined(SWIFT_RESILIENT_CLASS) #if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ + SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) #define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) #else @@ -134,8 +150,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#define SWIFT_PROTOCOL(SWIFT_NAME) \ + SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ + SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) @@ -151,7 +169,8 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_ENUM_ATTR) #if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +#define SWIFT_ENUM_ATTR(_extensibility) \ + __attribute__((enum_extensibility(_extensibility))) #else #define SWIFT_ENUM_ATTR(_extensibility) #endif @@ -161,9 +180,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); enum _name : _type _name; \ enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type #if __has_feature(generalized_swift_name) -#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 +#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 #else #define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ SWIFT_ENUM(_type, _name, _extensibility) @@ -176,7 +196,8 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#define SWIFT_AVAILABILITY(plat, ...) \ + __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) #define SWIFT_WEAK_IMPORT __attribute__((weak_import)) @@ -188,13 +209,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -202,6 +226,28 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" @@ -209,6 +255,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); @import ObjectiveC; #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -216,31 +263,40 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") #undef any -#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)) +#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)) #pragma pop_macro("any") #endif +#if defined(__OBJC__) + @class NSString; @class FIRHeartbeatsPayload; -/// An object that provides API to log and flush heartbeats from a synchronized storage container. +/// An object that provides API to log and flush heartbeats from a synchronized +/// storage container. SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") @interface FIRHeartbeatController : NSObject /// Public initializer. -/// \param id The id to associate this controller’s heartbeat storage with. +/// \param id The id to associate this controller’s heartbeat +/// storage with. /// -- (nonnull instancetype)initWithId:(NSString* _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)initWithId:(NSString* _Nonnull)id + OBJC_DESIGNATED_INITIALIZER; /// Asynchronously logs a new heartbeat, if needed. /// note: /// This API is thread-safe. -/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the +/// logged heartbeat with. /// - (void)log:(NSString* _Nonnull)agent; /// Synchronously flushes heartbeats from storage into a heartbeats payload. @@ -257,13 +313,14 @@ SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") /// /// returns: /// A heartbeats payload for the flushed heartbeat. -- (FIRHeartbeatsPayload* _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (FIRHeartbeatsPayload* _Nonnull) + flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -/// A model object representing a payload of heartbeat data intended for sending in network -/// requests. +/// A model object representing a payload of heartbeat data intended for sending +/// in network requests. SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") @interface FIRHeartbeatsPayload : NSObject /// Returns a processed payload string intended for use in a HTTP header. @@ -277,8 +334,15 @@ SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h b/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h index 6e0deec083..ddcc7578f0 100644 --- a/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h @@ -1,8 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 -// clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASEDATABASESWIFT_SWIFT_H #define FIREBASEDATABASESWIFT_SWIFT_H #pragma clang diagnostic push @@ -25,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -203,9 +214,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -213,12 +226,35 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -226,6 +262,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") @@ -239,8 +276,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma pop_macro("any") #endif +#if defined(__OBJC__) + +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h b/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h index 263646d1ad..48786238e2 100644 --- a/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h @@ -1,8 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 -// clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASEFIRESTORESWIFT_SWIFT_H #define FIREBASEFIRESTORESWIFT_SWIFT_H #pragma clang diagnostic push @@ -25,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -203,9 +214,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -213,12 +226,35 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -226,6 +262,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") @@ -239,8 +276,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma pop_macro("any") #endif +#if defined(__OBJC__) + +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseFunctions-Swift.h b/ios_pod/swift_headers/FirebaseFunctions-Swift.h index 4cbd092ca8..1d2a58f014 100644 --- a/ios_pod/swift_headers/FirebaseFunctions-Swift.h +++ b/ios_pod/swift_headers/FirebaseFunctions-Swift.h @@ -1,7 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASEFUNCTIONS_SWIFT_H #define FIREBASEFUNCTIONS_SWIFT_H #pragma clang diagnostic push @@ -24,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -113,18 +125,22 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_CLASS) #if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS(SWIFT_NAME) \ + SWIFT_RUNTIME_NAME(SWIFT_NAME) \ + __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ + __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ + SWIFT_CLASS_EXTRA #else #define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ + SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA #endif #endif #if !defined(SWIFT_RESILIENT_CLASS) #if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ + SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) #define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) #else @@ -134,8 +150,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#define SWIFT_PROTOCOL(SWIFT_NAME) \ + SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ + SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) @@ -151,7 +169,8 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_ENUM_ATTR) #if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +#define SWIFT_ENUM_ATTR(_extensibility) \ + __attribute__((enum_extensibility(_extensibility))) #else #define SWIFT_ENUM_ATTR(_extensibility) #endif @@ -161,9 +180,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); enum _name : _type _name; \ enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type #if __has_feature(generalized_swift_name) -#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 +#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 #else #define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ SWIFT_ENUM(_type, _name, _extensibility) @@ -176,7 +196,8 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#define SWIFT_AVAILABILITY(plat, ...) \ + __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) #define SWIFT_WEAK_IMPORT __attribute__((weak_import)) @@ -188,13 +209,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -202,6 +226,28 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" @@ -210,6 +256,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); @import ObjectiveC; #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -217,81 +264,95 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") #undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseFunctions", generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma clang attribute push( \ + __attribute__((external_source_symbol( \ + language = "Swift", defined_in = "FirebaseFunctions", \ + generated_declaration))), \ + apply_to = any(function, enum, objc_interface, objc_category, \ + objc_protocol)) #pragma pop_macro("any") #endif +#if defined(__OBJC__) @class FIRApp; @class NSString; @class FIRHTTPSCallable; @class FIRHTTPSCallableOptions; @class NSURL; -/// Functions is the client for Cloud Functions for a Firebase project. +/// Functions is the client for Cloud Functions for a Firebase +/// project. SWIFT_CLASS_NAMED("Functions") @interface FIRFunctions : NSObject -/// Creates a Cloud Functions client using the default or returns a pre-existing instance if it -/// already exists. +/// Creates a Cloud Functions client using the default or returns a pre-existing +/// instance if it already exists. /// /// returns: -/// A shared Functions instance initialized with the default FirebaseApp. +/// A shared Functions instance initialized with the default +/// FirebaseApp. + (FIRFunctions* _Nonnull)functions SWIFT_WARN_UNUSED_RESULT; -/// Creates a Cloud Functions client with the given app, or returns a pre-existing -/// instance if one already exists. -/// \param app The app for the Firebase project. +/// Creates a Cloud Functions client with the given app, or returns a +/// pre-existing instance if one already exists. \param app The app for the +/// Firebase project. /// /// /// returns: -/// A shared Functions instance initialized with the specified FirebaseApp. -+ (FIRFunctions* _Nonnull)functionsForApp:(FIRApp* _Nonnull)app SWIFT_WARN_UNUSED_RESULT; +/// A shared Functions instance initialized with the specified +/// FirebaseApp. ++ (FIRFunctions* _Nonnull)functionsForApp:(FIRApp* _Nonnull)app + SWIFT_WARN_UNUSED_RESULT; /// Creates a Cloud Functions client with the default app and given region. -/// \param region The region for the HTTP trigger, such as us-central1. +/// \param region The region for the HTTP trigger, such as +/// us-central1. /// /// /// returns: -/// A shared Functions instance initialized with the default FirebaseApp and a custom -/// region. -+ (FIRFunctions* _Nonnull)functionsForRegion:(NSString* _Nonnull)region SWIFT_WARN_UNUSED_RESULT; -/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing -/// instance if one already exists. -/// \param customDomain A custom domain for the HTTP trigger, such as “https //mydomain.com”. +/// A shared Functions instance initialized with the default +/// FirebaseApp and a custom region. ++ (FIRFunctions* _Nonnull)functionsForRegion:(NSString* _Nonnull)region + SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a +/// pre-existing instance if one already exists. \param customDomain A custom +/// domain for the HTTP trigger, such as “https //mydomain.com”. /// /// /// returns: -/// A shared Functions instance initialized with the default FirebaseApp and a custom -/// HTTP trigger domain. -+ (FIRFunctions* _Nonnull)functionsForCustomDomain:(NSString* _Nonnull)customDomain - SWIFT_WARN_UNUSED_RESULT; -/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing -/// instance if one already exists. -/// \param app The app for the Firebase project. +/// A shared Functions instance initialized with the default +/// FirebaseApp and a custom HTTP trigger domain. ++ (FIRFunctions* _Nonnull)functionsForCustomDomain: + (NSString* _Nonnull)customDomain SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a +/// pre-existing instance if one already exists. \param app The app for the +/// Firebase project. /// -/// \param region The region for the HTTP trigger, such as us-central1. +/// \param region The region for the HTTP trigger, such as +/// us-central1. /// /// /// returns: /// An instance of Functions with a custom app and region. + (FIRFunctions* _Nonnull)functionsForApp:(FIRApp* _Nonnull)app - region:(NSString* _Nonnull)region SWIFT_WARN_UNUSED_RESULT; -/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing -/// instance if one already exists. -/// \param app The app for the Firebase project. + region:(NSString* _Nonnull)region + SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a +/// pre-existing instance if one already exists. \param app The app for the +/// Firebase project. /// /// \param customDomain A custom domain for the HTTP trigger, such as /// https://mydomain.com. /// /// /// returns: -/// An instance of Functions with a custom app and HTTP trigger domain. +/// An instance of Functions with a custom app and HTTP trigger +/// domain. + (FIRFunctions* _Nonnull)functionsForApp:(FIRApp* _Nonnull)app - customDomain:(NSString* _Nonnull)customDomain SWIFT_WARN_UNUSED_RESULT; + customDomain:(NSString* _Nonnull)customDomain + SWIFT_WARN_UNUSED_RESULT; /// Creates a reference to the Callable HTTPS trigger with the given name. /// \param name The name of the Callable HTTPS trigger. /// @@ -300,16 +361,18 @@ SWIFT_CLASS_NAMED("Functions") /// A reference to a Callable HTTPS trigger. - (FIRHTTPSCallable* _Nonnull)HTTPSCallableWithName:(NSString* _Nonnull)name SWIFT_WARN_UNUSED_RESULT; -/// Creates a reference to the Callable HTTPS trigger with the given name and configuration options. -/// \param name The name of the Callable HTTPS trigger. +/// Creates a reference to the Callable HTTPS trigger with the given name and +/// configuration options. \param name The name of the Callable HTTPS trigger. /// -/// \param options The options with which to customize the Callable HTTPS trigger. +/// \param options The options with which to customize the Callable HTTPS +/// trigger. /// /// /// returns: /// A reference to a Callable HTTPS trigger. -- (FIRHTTPSCallable* _Nonnull)HTTPSCallableWithName:(NSString* _Nonnull)name - options:(FIRHTTPSCallableOptions* _Nonnull)options +- (FIRHTTPSCallable* _Nonnull) + HTTPSCallableWithName:(NSString* _Nonnull)name + options:(FIRHTTPSCallableOptions* _Nonnull)options SWIFT_WARN_UNUSED_RESULT; /// Creates a reference to the Callable HTTPS trigger with the given name. /// \param url The URL of the Callable HTTPS trigger. @@ -317,20 +380,23 @@ SWIFT_CLASS_NAMED("Functions") /// /// returns: /// A reference to a Callable HTTPS trigger. -- (FIRHTTPSCallable* _Nonnull)HTTPSCallableWithURL:(NSURL* _Nonnull)url SWIFT_WARN_UNUSED_RESULT; -/// Creates a reference to the Callable HTTPS trigger with the given name and configuration options. -/// \param url The URL of the Callable HTTPS trigger. +- (FIRHTTPSCallable* _Nonnull)HTTPSCallableWithURL:(NSURL* _Nonnull)url + SWIFT_WARN_UNUSED_RESULT; +/// Creates a reference to the Callable HTTPS trigger with the given name and +/// configuration options. \param url The URL of the Callable HTTPS trigger. /// -/// \param options The options with which to customize the Callable HTTPS trigger. +/// \param options The options with which to customize the Callable HTTPS +/// trigger. /// /// /// returns: /// A reference to a Callable HTTPS trigger. -- (FIRHTTPSCallable* _Nonnull)HTTPSCallableWithURL:(NSURL* _Nonnull)url - options:(FIRHTTPSCallableOptions* _Nonnull)options +- (FIRHTTPSCallable* _Nonnull) + HTTPSCallableWithURL:(NSURL* _Nonnull)url + options:(FIRHTTPSCallableOptions* _Nonnull)options SWIFT_WARN_UNUSED_RESULT; -/// Changes this instance to point to a Cloud Functions emulator running locally. -/// See https://firebase.google.com/docs/functions/local-emulator +/// Changes this instance to point to a Cloud Functions emulator running +/// locally. See https://firebase.google.com/docs/functions/local-emulator /// \param host The host of the local emulator, such as “localhost”. /// /// \param port The port of the local emulator, for example 5005. @@ -340,10 +406,12 @@ SWIFT_CLASS_NAMED("Functions") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -/// The set of error status codes that can be returned from a Callable HTTPS tigger. These are the -/// canonical error codes for Google APIs, as documented here: +/// The set of error status codes that can be returned from a Callable HTTPS +/// tigger. These are the canonical error codes for Google APIs, as documented +/// here: /// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto#L26 -typedef SWIFT_ENUM_NAMED(NSInteger, FIRFunctionsErrorCode, "FunctionsErrorCode", open){ +typedef SWIFT_ENUM_NAMED(NSInteger, FIRFunctionsErrorCode, "FunctionsErrorCode", + open){ /// The operation completed successfully. FIRFunctionsErrorCodeOK = 0, /// The operation was cancelled (typically by the caller). @@ -352,14 +420,16 @@ typedef SWIFT_ENUM_NAMED(NSInteger, FIRFunctionsErrorCode, "FunctionsErrorCode", FIRFunctionsErrorCodeUnknown = 2, /// Client specified an invalid argument. Note that this differs from /// FailedPrecondition. - /// InvalidArgument indicates arguments that are problematic regardless of the - /// state of the + /// InvalidArgument indicates arguments that are problematic + /// regardless of the state of the /// system (e.g., an invalid field name). FIRFunctionsErrorCodeInvalidArgument = 3, - /// Deadline expired before operation could complete. For operations that change the state of - /// the - /// system, this error may be returned even if the operation has completed successfully. For - /// example, a successful response from a server could have been delayed long enough for the + /// Deadline expired before operation could complete. For operations that + /// change the state of the + /// system, this error may be returned even if the operation has completed + /// successfully. For + /// example, a successful response from a server could have been delayed + /// long enough for the /// deadline to expire. FIRFunctionsErrorCodeDeadlineExceeded = 4, /// Some requested document was not found. @@ -368,36 +438,40 @@ typedef SWIFT_ENUM_NAMED(NSInteger, FIRFunctionsErrorCode, "FunctionsErrorCode", FIRFunctionsErrorCodeAlreadyExists = 6, /// The caller does not have permission to execute the specified operation. FIRFunctionsErrorCodePermissionDenied = 7, - /// Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file - /// system + /// Some resource has been exhausted, perhaps a per-user quota, or perhaps + /// the entire file system /// is out of space. FIRFunctionsErrorCodeResourceExhausted = 8, - /// Operation was rejected because the system is not in a state required for the operation’s + /// Operation was rejected because the system is not in a state required for + /// the operation’s /// execution. FIRFunctionsErrorCodeFailedPrecondition = 9, - /// The operation was aborted, typically due to a concurrency issue like transaction aborts, - /// etc. + /// The operation was aborted, typically due to a concurrency issue like + /// transaction aborts, etc. FIRFunctionsErrorCodeAborted = 10, /// Operation was attempted past the valid range. FIRFunctionsErrorCodeOutOfRange = 11, /// Operation is not implemented or not supported/enabled. FIRFunctionsErrorCodeUnimplemented = 12, - /// Internal errors. Means some invariant expected by underlying system has been broken. If you + /// Internal errors. Means some invariant expected by underlying system has + /// been broken. If you /// see one of these errors, something is very broken. FIRFunctionsErrorCodeInternal = 13, - /// The service is currently unavailable. This is a most likely a transient condition and may be + /// The service is currently unavailable. This is a most likely a transient + /// condition and may be /// corrected by retrying with a backoff. FIRFunctionsErrorCodeUnavailable = 14, /// Unrecoverable data loss or corruption. FIRFunctionsErrorCodeDataLoss = 15, - /// The request does not have valid authentication credentials for the operation. + /// The request does not have valid authentication credentials for the + /// operation. FIRFunctionsErrorCodeUnauthenticated = 16, }; @class FIRHTTPSCallableResult; -/// A HTTPSCallable is a reference to a particular Callable HTTPS trigger in Cloud -/// Functions. +/// A HTTPSCallable is a reference to a particular Callable HTTPS +/// trigger in Cloud Functions. SWIFT_CLASS_NAMED("HTTPSCallable") @interface FIRHTTPSCallable : NSObject /// The timeout to use when calling the function. Defaults to 70 seconds. @@ -412,36 +486,41 @@ SWIFT_CLASS_NAMED("HTTPSCallable") /// String /// ///
  • -/// NSNumber, or any Swift numeric type bridgeable to NSNumber +/// NSNumber, or any Swift numeric type bridgeable to +/// NSNumber ///
  • ///
  • -/// [Any], where the contained objects are also one of these types. +/// [Any], where the contained objects are also one of these +/// types. ///
  • ///
  • /// [String: Any] where the values are also one of these types. ///
  • /// -/// The request to the Cloud Functions backend made by this method automatically includes a -/// Firebase Installations ID token to identify the app instance. If a user is logged in with -/// Firebase Auth, an auth ID token for the user is also automatically included. -/// Firebase Cloud Messaging sends data to the Firebase backend periodically to collect information -/// regarding the app instance. To stop this, see Messaging.deleteData(). It -/// resumes with a new FCM Token the next time you call this method. -/// \param data Parameters to pass to the trigger. +/// The request to the Cloud Functions backend made by this method automatically +/// includes a Firebase Installations ID token to identify the app instance. If +/// a user is logged in with Firebase Auth, an auth ID token for the user is +/// also automatically included. Firebase Cloud Messaging sends data to the +/// Firebase backend periodically to collect information regarding the app +/// instance. To stop this, see Messaging.deleteData(). It resumes +/// with a new FCM Token the next time you call this method. \param data +/// Parameters to pass to the trigger. /// /// \param completion The block to call when the HTTPS request has completed. /// - (void)callWithObject:(id _Nullable)data - completion: - (void (^_Nonnull)(FIRHTTPSCallableResult* _Nullable, NSError* _Nullable))completion; -/// Executes this Callable HTTPS trigger asynchronously. This API should only be used from -/// Objective-C. The request to the Cloud Functions backend made by this method automatically -/// includes a Firebase Installations ID token to identify the app instance. If a user is logged in -/// with Firebase Auth, an auth ID token for the user is also automatically included. Firebase Cloud -/// Messaging sends data to the Firebase backend periodically to collect information regarding the -/// app instance. To stop this, see Messaging.deleteData(). It resumes with a new FCM -/// Token the next time you call this method. \param completion The block to call when the HTTPS -/// request has completed. + completion:(void (^_Nonnull)(FIRHTTPSCallableResult* _Nullable, + NSError* _Nullable))completion; +/// Executes this Callable HTTPS trigger asynchronously. This API should only be +/// used from Objective-C. The request to the Cloud Functions backend made by +/// this method automatically includes a Firebase Installations ID token to +/// identify the app instance. If a user is logged in with Firebase Auth, an +/// auth ID token for the user is also automatically included. Firebase Cloud +/// Messaging sends data to the Firebase backend periodically to collect +/// information regarding the app instance. To stop this, see +/// Messaging.deleteData(). It resumes with a new FCM Token the +/// next time you call this method. \param completion The block to call when the +/// HTTPS request has completed. /// - (void)callWithCompletion:(void (^_Nonnull)(FIRHTTPSCallableResult* _Nullable, NSError* _Nullable))completion; @@ -452,11 +531,12 @@ SWIFT_CLASS_NAMED("HTTPSCallable") /// Configuration options for a HTTPSCallable instance. SWIFT_CLASS_NAMED("HTTPSCallableOptions") @interface FIRHTTPSCallableOptions : NSObject -/// Whether or not to protect the callable function with a limited-use App Check token. +/// Whether or not to protect the callable function with a limited-use App Check +/// token. @property(nonatomic, readonly) BOOL requireLimitedUseAppCheckTokens; /// Designated initializer. -/// \param requireLimitedUseAppCheckTokens A boolean used to decide whether or not to -/// protect the callable function with a limited use App Check token. +/// \param requireLimitedUseAppCheckTokens A boolean used to decide whether or +/// not to protect the callable function with a limited use App Check token. /// - (nonnull instancetype)initWithRequireLimitedUseAppCheckTokens: (BOOL)requireLimitedUseAppCheckTokens OBJC_DESIGNATED_INITIALIZER; @@ -464,20 +544,29 @@ SWIFT_CLASS_NAMED("HTTPSCallableOptions") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -/// A HTTPSCallableResult contains the result of calling a HTTPSCallable. +/// A HTTPSCallableResult contains the result of calling a +/// HTTPSCallable. SWIFT_CLASS_NAMED("HTTPSCallableResult") @interface FIRHTTPSCallableResult : NSObject /// The data that was returned from the Callable HTTPS trigger. -/// The data is in the form of native objects. For example, if your trigger returned an -/// array, this object would be an Array. If your trigger returned a JavaScript -/// object with keys and values, this object would be an instance of [String: Any]. +/// The data is in the form of native objects. For example, if your trigger +/// returned an array, this object would be an Array. If your +/// trigger returned a JavaScript object with keys and values, this object would +/// be an instance of [String: Any]. @property(nonatomic, readonly) id _Nonnull data; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h b/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h index 4385483012..fb3c932155 100644 --- a/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h @@ -1,8 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 -// clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASEINAPPMESSAGINGSWIFT_SWIFT_H #define FIREBASEINAPPMESSAGINGSWIFT_SWIFT_H #pragma clang diagnostic push @@ -25,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -203,9 +214,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -213,12 +226,35 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -226,6 +262,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") @@ -240,8 +277,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma pop_macro("any") #endif +#if defined(__OBJC__) +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h b/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h index 32272ef80a..0e5794908d 100644 --- a/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h +++ b/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h @@ -1,8 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 -// clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASEMLMODELDOWNLOADER_SWIFT_H #define FIREBASEMLMODELDOWNLOADER_SWIFT_H #pragma clang diagnostic push @@ -25,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -203,9 +214,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -213,12 +226,35 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -226,6 +262,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") @@ -239,8 +276,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma pop_macro("any") #endif +#if defined(__OBJC__) + +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h b/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h index e10f33c736..3f9dc697ef 100644 --- a/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h @@ -1,8 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 -// clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASEREMOTECONFIGSWIFT_SWIFT_H #define FIREBASEREMOTECONFIGSWIFT_SWIFT_H #pragma clang diagnostic push @@ -25,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -203,9 +214,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -213,12 +226,35 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -226,6 +262,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") @@ -239,8 +276,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma pop_macro("any") #endif +#if defined(__OBJC__) + +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h b/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h index b5a37ed830..05637e6b53 100644 --- a/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h @@ -1,8 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 -// clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASESHAREDSWIFT_SWIFT_H #define FIREBASESHAREDSWIFT_SWIFT_H #pragma clang diagnostic push @@ -25,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -203,9 +214,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -213,12 +226,35 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -226,6 +262,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") @@ -239,8 +276,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma pop_macro("any") #endif +#if defined(__OBJC__) +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/FirebaseStorage-Swift.h b/ios_pod/swift_headers/FirebaseStorage-Swift.h index 2ca8b040aa..8899440e1a 100644 --- a/ios_pod/swift_headers/FirebaseStorage-Swift.h +++ b/ios_pod/swift_headers/FirebaseStorage-Swift.h @@ -1,7 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef FIREBASESTORAGE_SWIFT_H #define FIREBASESTORAGE_SWIFT_H #pragma clang diagnostic push @@ -24,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -113,18 +125,22 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_CLASS) #if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS(SWIFT_NAME) \ + SWIFT_RUNTIME_NAME(SWIFT_NAME) \ + __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ + __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ + SWIFT_CLASS_EXTRA #else #define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ + SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA #endif #endif #if !defined(SWIFT_RESILIENT_CLASS) #if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ + SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) #define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) #else @@ -134,8 +150,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#define SWIFT_PROTOCOL(SWIFT_NAME) \ + SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ + SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) @@ -151,7 +169,8 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_ENUM_ATTR) #if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +#define SWIFT_ENUM_ATTR(_extensibility) \ + __attribute__((enum_extensibility(_extensibility))) #else #define SWIFT_ENUM_ATTR(_extensibility) #endif @@ -161,9 +180,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); enum _name : _type _name; \ enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type #if __has_feature(generalized_swift_name) -#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 +#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 #else #define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ SWIFT_ENUM(_type, _name, _extensibility) @@ -176,7 +196,8 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#define SWIFT_AVAILABILITY(plat, ...) \ + __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) #define SWIFT_WEAK_IMPORT __attribute__((weak_import)) @@ -188,13 +209,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -202,6 +226,28 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" @@ -211,6 +257,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); @import ObjectiveC; #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -218,67 +265,79 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") #undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", defined_in = "FirebaseStorage", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma clang attribute push( \ + __attribute__((external_source_symbol( \ + language = "Swift", defined_in = "FirebaseStorage", \ + generated_declaration))), \ + apply_to = any(function, enum, objc_interface, objc_category, \ + objc_protocol)) #pragma pop_macro("any") #endif +#if defined(__OBJC__) @class NSString; @class FIRApp; @class FIRStorageReference; -/// Firebase Storage is a service that supports uploading and downloading binary objects, -/// such as images, videos, and other files to Google Cloud Storage. Instances of -/// Storage are not thread-safe. If you call Storage.storage(), the -/// instance will initialize with the default FirebaseApp, -/// FirebaseApp.app(), and the storage location will come from the provided +/// Firebase Storage is a service that supports uploading and downloading binary +/// objects, such as images, videos, and other files to Google Cloud Storage. +/// Instances of Storage are not thread-safe. If you call +/// Storage.storage(), the instance will initialize with the +/// default FirebaseApp, FirebaseApp.app(), and the +/// storage location will come from the provided /// GoogleService-Info.plist. /// If you provide a custom instance of FirebaseApp, -/// the storage location will be specified via the FirebaseOptions.storageBucket -/// property. +/// the storage location will be specified via the +/// FirebaseOptions.storageBucket property. SWIFT_CLASS_NAMED("Storage") @interface FIRStorage : NSObject /// The default Storage instance. /// /// returns: -/// An instance of Storage, configured with the default FirebaseApp. +/// An instance of Storage, configured with the default +/// FirebaseApp. + (FIRStorage *_Nonnull)storage SWIFT_WARN_UNUSED_RESULT; -/// A method used to create Storage instances initialized with a custom storage bucket -/// URL. Any StorageReferences generated from this instance of Storage -/// will reference files and directories within the specified bucket. \param url The -/// gs:// URL to your Firebase Storage bucket. +/// A method used to create Storage instances initialized with a +/// custom storage bucket URL. Any StorageReferences generated from +/// this instance of Storage will reference files and directories +/// within the specified bucket. \param url The gs:// URL to your +/// Firebase Storage bucket. /// /// /// returns: /// A Storage instance, configured with the custom storage bucket. -+ (FIRStorage *_Nonnull)storageWithURL:(NSString *_Nonnull)url SWIFT_WARN_UNUSED_RESULT; -/// Creates an instance of Storage, configured with a custom FirebaseApp. -/// StorageReferences generated from a resulting instance will reference files in the -/// Firebase project associated with custom FirebaseApp. \param app The custom ++ (FIRStorage *_Nonnull)storageWithURL:(NSString *_Nonnull)url + SWIFT_WARN_UNUSED_RESULT; +/// Creates an instance of Storage, configured with a custom +/// FirebaseApp. StorageReferences generated from a +/// resulting instance will reference files in the Firebase project associated +/// with custom FirebaseApp. \param app The custom /// FirebaseApp used for initialization. /// /// /// returns: -/// A Storage instance, configured with the custom FirebaseApp. -+ (FIRStorage *_Nonnull)storageForApp:(FIRApp *_Nonnull)app SWIFT_WARN_UNUSED_RESULT; -/// Creates an instance of Storage, configured with a custom FirebaseApp -/// and a custom storage bucket URL. \param app The custom FirebaseApp used for -/// initialization. +/// A Storage instance, configured with the custom +/// FirebaseApp. ++ (FIRStorage *_Nonnull)storageForApp:(FIRApp *_Nonnull)app + SWIFT_WARN_UNUSED_RESULT; +/// Creates an instance of Storage, configured with a custom +/// FirebaseApp and a custom storage bucket URL. \param app The +/// custom FirebaseApp used for initialization. /// /// \param url The gs:// url to your Firebase Storage bucket. /// /// /// returns: -/// the Storage instance, configured with the custom FirebaseApp and -/// storage bucket URL. +/// the Storage instance, configured with the custom +/// FirebaseApp and storage bucket URL. + (FIRStorage *_Nonnull)storageForApp:(FIRApp *_Nonnull)app - URL:(NSString *_Nonnull)url SWIFT_WARN_UNUSED_RESULT; + URL:(NSString *_Nonnull)url + SWIFT_WARN_UNUSED_RESULT; /// The FirebaseApp associated with this Storage instance. @property(nonatomic, readonly, strong) FIRApp *_Nonnull app; /// The maximum time in seconds to retry an upload if a failure occurs. @@ -287,48 +346,51 @@ SWIFT_CLASS_NAMED("Storage") /// The maximum time in seconds to retry a download if a failure occurs. /// Defaults to 10 minutes (600 seconds). @property(nonatomic) NSTimeInterval maxDownloadRetryTime; -/// The maximum time in seconds to retry operations other than upload and download if a failure -/// occurs. Defaults to 2 minutes (120 seconds). +/// The maximum time in seconds to retry operations other than upload and +/// download if a failure occurs. Defaults to 2 minutes (120 seconds). @property(nonatomic) NSTimeInterval maxOperationRetryTime; -/// Specify the maximum upload chunk size. Values less than 256K (262144) will be rounded up to -/// 256K. Values above 256K will be rounded down to the nearest 256K multiple. The default is no -/// maximum. +/// Specify the maximum upload chunk size. Values less than 256K (262144) will +/// be rounded up to 256K. Values above 256K will be rounded down to the nearest +/// 256K multiple. The default is no maximum. @property(nonatomic) int64_t uploadChunkSizeBytes; -/// A DispatchQueue that all developer callbacks are fired on. Defaults to the main -/// queue. +/// A DispatchQueue that all developer callbacks are fired on. +/// Defaults to the main queue. @property(nonatomic, strong) dispatch_queue_t _Nonnull callbackQueue; -/// Creates a StorageReference initialized at the root Firebase Storage location. +/// Creates a StorageReference initialized at the root Firebase +/// Storage location. /// /// returns: -/// An instance of StorageReference referencing the root of the storage bucket. +/// An instance of StorageReference referencing the root of the +/// storage bucket. - (FIRStorageReference *_Nonnull)reference SWIFT_WARN_UNUSED_RESULT; -/// Creates a StorageReference given a gs://, http://, or -/// https:// URL pointing to a Firebase Storage location. For example, you can pass in -/// an https:// download URL retrieved from -/// StorageReference.downloadURL(completion:) or the gs:// URL from -/// StorageReference.description. +/// Creates a StorageReference given a gs://, http://, +/// or https:// URL pointing to a Firebase Storage location. For +/// example, you can pass in an https:// download URL retrieved +/// from StorageReference.downloadURL(completion:) or the +/// gs:// URL from StorageReference.description. /// \param url A gs // or https:// URL to initialize the reference with. /// /// /// throws: -/// Throws a fatal error if url is not associated with the FirebaseApp -/// used to initialize this Storage instance. +/// Throws a fatal error if url is not associated with the +/// FirebaseApp used to initialize this Storage instance. /// /// returns: /// An instance of StorageReference at the given child path. -- (FIRStorageReference *_Nonnull)referenceForURL:(NSString *_Nonnull)url SWIFT_WARN_UNUSED_RESULT; -/// Creates a StorageReference initialized at a location specified by the -/// path parameter. \param path A relative path from the root of the storage bucket, -/// for instance @“path/to/object”. +- (FIRStorageReference *_Nonnull)referenceForURL:(NSString *_Nonnull)url + SWIFT_WARN_UNUSED_RESULT; +/// Creates a StorageReference initialized at a location specified +/// by the path parameter. \param path A relative path from the +/// root of the storage bucket, for instance @“path/to/object”. /// /// /// returns: /// An instance of StorageReference pointing to the given path. - (FIRStorageReference *_Nonnull)referenceWithPath:(NSString *_Nonnull)path SWIFT_WARN_UNUSED_RESULT; -/// Configures the Storage SDK to use an emulated backend instead of the default remote backend. -/// This method should be called before invoking any other methods on a new instance of -/// Storage. +/// Configures the Storage SDK to use an emulated backend instead of the default +/// remote backend. This method should be called before invoking any other +/// methods on a new instance of Storage. - (void)useEmulatorWithHost:(NSString *_Nonnull)host port:(NSInteger)port; - (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; @@ -337,10 +399,10 @@ SWIFT_CLASS_NAMED("Storage") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -/// Defines task operations such as pause, resume, cancel, and enqueue for all tasks. -/// All tasks are required to implement enqueue, which begins the task, and may optionally -/// implement pause, resume, and cancel, which operate on the task to pause, resume, and cancel -/// operations. +/// Defines task operations such as pause, resume, cancel, and enqueue for all +/// tasks. All tasks are required to implement enqueue, which begins the task, +/// and may optionally implement pause, resume, and cancel, which operate on the +/// task to pause, resume, and cancel operations. SWIFT_PROTOCOL_NAMED("StorageTaskManagement") @protocol FIRStorageTaskManagement /// Prepares a task and begins execution. @@ -357,28 +419,31 @@ SWIFT_PROTOCOL_NAMED("StorageTaskManagement") @class FIRStorageTaskSnapshot; /// A superclass to all Storage tasks, including StorageUploadTask -/// and StorageDownloadTask, to provide state transitions, event raising, and common -/// storage for metadata and errors. Callbacks are always fired on the developer-specified callback -/// queue. If no queue is specified, it defaults to the main queue. This class is not thread safe, -/// so only call methods on the main thread. +/// and StorageDownloadTask, to provide state transitions, event +/// raising, and common storage for metadata and errors. Callbacks are always +/// fired on the developer-specified callback queue. If no queue is specified, +/// it defaults to the main queue. This class is not thread safe, so only call +/// methods on the main thread. SWIFT_CLASS_NAMED("StorageTask") @interface FIRStorageTask : NSObject /// An immutable view of the task and associated metadata, progress, error, etc. -@property(nonatomic, readonly, strong) FIRStorageTaskSnapshot *_Nonnull snapshot; +@property(nonatomic, readonly, strong) + FIRStorageTaskSnapshot *_Nonnull snapshot; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end enum FIRStorageTaskStatus : NSInteger; -/// An extended StorageTask providing observable semantics that can be used for -/// responding to changes in task state. Observers produce a StorageHandle, which is -/// used to keep track of and remove specific observers at a later date. This class is not thread -/// safe and can only be called on the main thread. +/// An extended StorageTask providing observable semantics that can +/// be used for responding to changes in task state. Observers produce a +/// StorageHandle, which is used to keep track of and remove +/// specific observers at a later date. This class is not thread safe and can +/// only be called on the main thread. SWIFT_CLASS_NAMED("StorageObservableTask") @interface FIRStorageObservableTask : FIRStorageTask -/// Observes changes in the upload status: Resume, Pause, Progress, Success, and Failure. -/// \param status The StorageTaskStatus change to observe. +/// Observes changes in the upload status: Resume, Pause, Progress, Success, and +/// Failure. \param status The StorageTaskStatus change to observe. /// /// \param handler A callback that fires every time the status event occurs, /// containing a StorageTaskSnapshot describing task state. @@ -386,8 +451,9 @@ SWIFT_CLASS_NAMED("StorageObservableTask") /// /// returns: /// A task handle that can be used to remove the observer at a later date. -- (NSString *_Nonnull)observeStatus:(enum FIRStorageTaskStatus)status - handler:(void (^_Nonnull)(FIRStorageTaskSnapshot *_Nonnull))handler; +- (NSString *_Nonnull) + observeStatus:(enum FIRStorageTaskStatus)status + handler:(void (^_Nonnull)(FIRStorageTaskSnapshot *_Nonnull))handler; /// Removes the single observer with the provided handle. /// \param handle The handle of the task to remove. /// @@ -400,19 +466,23 @@ SWIFT_CLASS_NAMED("StorageObservableTask") - (void)removeAllObservers; @end -/// StorageDownloadTask implements resumable downloads from an object in Firebase -/// Storage. Downloads can be returned on completion with a completion handler, and can be monitored -/// by attaching observers, or controlled by calling pause(), resume(), -/// or cancel(). -/// Downloads can currently be returned as Data in memory, or as a URL to -/// a file on disk. Downloads are performed on a background queue, and callbacks are raised on the -/// developer specified callbackQueue in Storage, or the main queue if left -/// unspecified. Currently all downloads must be initiated and managed on the main queue. +/// StorageDownloadTask implements resumable downloads from an +/// object in Firebase Storage. Downloads can be returned on completion with a +/// completion handler, and can be monitored by attaching observers, or +/// controlled by calling pause(), resume(), or +/// cancel(). Downloads can currently be returned as +/// Data in memory, or as a URL to a file on disk. +/// Downloads are performed on a background queue, and callbacks are raised on +/// the developer specified callbackQueue in Storage, or the main +/// queue if left unspecified. Currently all downloads must be initiated and +/// managed on the main queue. SWIFT_CLASS_NAMED("StorageDownloadTask") -@interface FIRStorageDownloadTask : FIRStorageObservableTask +@interface FIRStorageDownloadTask + : FIRStorageObservableTask /// Prepares a task and begins execution. - (void)enqueue; -/// Pauses a task currently in progress. Calling this on a paused task has no effect. +/// Pauses a task currently in progress. Calling this on a paused task has no +/// effect. - (void)pause; /// Cancels a task. - (void)cancel; @@ -420,11 +490,13 @@ SWIFT_CLASS_NAMED("StorageDownloadTask") - (void)resume; @end -/// Adds wrappers for common Firebase Storage errors (including creating errors from GCS errors). -/// For more information on unwrapping GCS errors, see the GCS errors docs: -/// https://cloud.google.com/storage/docs/json_api/v1/status-codes -/// This is never publicly exposed to end developers (as they will simply see an NSError). -typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageErrorCode, "StorageErrorCode", open){ +/// Adds wrappers for common Firebase Storage errors (including creating errors +/// from GCS errors). For more information on unwrapping GCS errors, see the GCS +/// errors docs: https://cloud.google.com/storage/docs/json_api/v1/status-codes +/// This is never publicly exposed to end developers (as they will simply see an +/// NSError). +typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageErrorCode, "StorageErrorCode", + open){ FIRStorageErrorCodeUnknown = -13000, FIRStorageErrorCodeObjectNotFound = -13010, FIRStorageErrorCodeBucketNotFound = -13011, @@ -438,23 +510,27 @@ typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageErrorCode, "StorageErrorCode", ope FIRStorageErrorCodeCancelled = -13040, FIRStorageErrorCodeInvalidArgument = -13050, }; -static NSString *_Nonnull const FIRStorageErrorCodeDomain = @"FirebaseStorage.StorageErrorCode"; +static NSString *_Nonnull const FIRStorageErrorCodeDomain = + @"FirebaseStorage.StorageErrorCode"; -/// Contains the prefixes and items returned by a StorageReference.list() call. +/// Contains the prefixes and items returned by a +/// StorageReference.list() call. SWIFT_CLASS_NAMED("StorageListResult") @interface FIRStorageListResult : NSObject /// The prefixes (folders) returned by a list() operation. /// /// returns: /// A list of prefixes (folders). -@property(nonatomic, readonly, copy) NSArray *_Nonnull prefixes; +@property(nonatomic, readonly, copy) + NSArray *_Nonnull prefixes; /// The objects (files) returned by a list() operation. /// /// returns: /// A page token if more results are available. -@property(nonatomic, readonly, copy) NSArray *_Nonnull items; -/// Returns a token that can be used to resume a previous list() operation. -/// nil indicates that there are no more results. +@property(nonatomic, readonly, copy) + NSArray *_Nonnull items; +/// Returns a token that can be used to resume a previous list() +/// operation. nil indicates that there are no more results. /// /// returns: /// A page token if more results are available. @@ -466,10 +542,10 @@ SWIFT_CLASS_NAMED("StorageListResult") @class NSDate; -/// Class which represents the metadata on an object in Firebase Storage. This metadata is -/// returned on successful operations, and can be used to retrieve download URLs, content types, -/// and a Storage reference to the object in question. Full documentation can be found at the GCS -/// Objects#resource docs. +/// Class which represents the metadata on an object in Firebase Storage. This +/// metadata is returned on successful operations, and can be used to retrieve +/// download URLs, content types, and a Storage reference to the object in +/// question. Full documentation can be found at the GCS Objects#resource docs. /// @see https://cloud.google.com/storage/docs/json_api/v1/objects#resource SWIFT_CLASS_NAMED("StorageMetadata") @interface FIRStorageMetadata : NSObject @@ -490,14 +566,18 @@ SWIFT_CLASS_NAMED("StorageMetadata") /// The content generation of this object. Used for object versioning. @property(nonatomic, readonly) int64_t generation; /// User-provided metadata, in key/value pairs. -@property(nonatomic, copy) NSDictionary *_Nullable customMetadata; +@property(nonatomic, copy) + NSDictionary *_Nullable customMetadata; /// The version of the metadata for this object at this generation. Used -/// for preconditions and for detecting changes in metadata. A metageneration number is only -/// meaningful in the context of a particular generation of a particular object. +/// for preconditions and for detecting changes in metadata. A metageneration +/// number is only meaningful in the context of a particular generation of a +/// particular object. @property(nonatomic, readonly) int64_t metageneration; -/// The name of this object, in gs://bucket/path/to/object.txt, this is object.txt. +/// The name of this object, in gs://bucket/path/to/object.txt, this is +/// object.txt. @property(nonatomic, readonly, copy) NSString *_Nullable name; -/// The full path of this object, in gs://bucket/path/to/object.txt, this is path/to/object.txt. +/// The full path of this object, in gs://bucket/path/to/object.txt, this is +/// path/to/object.txt. @property(nonatomic, readonly, copy) NSString *_Nullable path; /// Content-Length of the data in bytes. @property(nonatomic, readonly) int64_t size; @@ -510,16 +590,19 @@ SWIFT_CLASS_NAMED("StorageMetadata") FIRStorageReference *_Nullable storageReference SWIFT_DEPRECATED; /// Creates a Dictionary from the contents of the metadata. /// @return A Dictionary that represents the contents of the metadata. -- (NSDictionary *_Nonnull)dictionaryRepresentation SWIFT_WARN_UNUSED_RESULT; +- (NSDictionary *_Nonnull) + dictionaryRepresentation SWIFT_WARN_UNUSED_RESULT; /// Determines if the current metadata represents a “file”. @property(nonatomic, readonly) BOOL isFile; /// Determines if the current metadata represents a “folder”. @property(nonatomic, readonly) BOOL isFolder; - (nonnull instancetype)init; /// Creates an instance of StorageMetadata from the contents of a dictionary. -/// @return An instance of StorageMetadata that represents the contents of a dictionary. +/// @return An instance of StorageMetadata that represents the contents of a +/// dictionary. - (nonnull instancetype)initWithDictionary: - (NSDictionary *_Nonnull)dictionary OBJC_DESIGNATED_INITIALIZER; + (NSDictionary *_Nonnull)dictionary + OBJC_DESIGNATED_INITIALIZER; - (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; @property(nonatomic, readonly) NSUInteger hash; @@ -530,43 +613,44 @@ SWIFT_CLASS_NAMED("StorageMetadata") @class FIRStorageUploadTask; @class NSURL; -/// StorageReference represents a reference to a Google Cloud Storage object. -/// Developers can upload and download objects, as well as get/set object metadata, and delete an -/// object at the path. See the Cloud docs for more details: https://cloud.google.com/storage/ +/// StorageReference represents a reference to a Google Cloud +/// Storage object. Developers can upload and download objects, as well as +/// get/set object metadata, and delete an object at the path. See the Cloud +/// docs for more details: https://cloud.google.com/storage/ SWIFT_CLASS_NAMED("StorageReference") @interface FIRStorageReference : NSObject /// The Storage service object which created this reference. @property(nonatomic, readonly, strong) FIRStorage *_Nonnull storage; /// The name of the Google Cloud Storage bucket associated with this reference. -/// For example, in gs://bucket/path/to/object.txt, the bucket would be ‘bucket’. +/// For example, in gs://bucket/path/to/object.txt, the bucket +/// would be ‘bucket’. @property(nonatomic, readonly, copy) NSString *_Nonnull bucket; /// The full path to this object, not including the Google Cloud Storage bucket. /// In gs://bucket/path/to/object.txt, the full path would be: /// path/to/object.txt @property(nonatomic, readonly, copy) NSString *_Nonnull fullPath; /// The short name of the object associated with this reference. -/// In gs://bucket/path/to/object.txt, the name of the object would be -/// object.txt. +/// In gs://bucket/path/to/object.txt, the name of the object would +/// be object.txt. @property(nonatomic, readonly, copy) NSString *_Nonnull name; /// Creates a new StorageReference pointing to the root object. /// /// returns: /// A new StorageReference pointing to the root object. - (FIRStorageReference *_Nonnull)root SWIFT_WARN_UNUSED_RESULT; -/// Creates a new StorageReference pointing to the parent of the current reference -/// or nil if this instance references the root location. -/// For example: -/// path = foo/bar/baz parent = foo/bar -/// path = foo parent = (root) -/// path = (root) parent = nil +/// Creates a new StorageReference pointing to the parent of the +/// current reference or nil if this instance references the root +/// location. For example: path = foo/bar/baz parent = foo/bar path = foo +/// parent = (root) path = (root) parent = nil /// /// returns: -/// A new StorageReference pointing to the parent of the current reference. +/// A new StorageReference pointing to the parent of the current +/// reference. - (FIRStorageReference *_Nullable)parent SWIFT_WARN_UNUSED_RESULT; -/// Creates a new StorageReference pointing to a child object of the current reference. -/// path = foo child = bar newPath = foo/bar -/// path = foo/bar child = baz ntask.impl.snapshotwPath = foo/bar/baz -/// All leading and trailing slashes will be removed, and consecutive slashes will be +/// Creates a new StorageReference pointing to a child object of +/// the current reference. path = foo child = bar newPath = foo/bar path +/// = foo/bar child = baz ntask.impl.snapshotwPath = foo/bar/baz All leading +/// and trailing slashes will be removed, and consecutive slashes will be /// compressed to single slashes. For example: /// child = /foo/bar newPath = foo/bar /// child = foo/bar/ newPath = foo/bar @@ -575,190 +659,217 @@ SWIFT_CLASS_NAMED("StorageReference") /// /// /// returns: -/// A new StorageReference pointing to a child location of the current reference. -- (FIRStorageReference *_Nonnull)child:(NSString *_Nonnull)path SWIFT_WARN_UNUSED_RESULT; -/// Asynchronously uploads data to the currently specified StorageReference, -/// without additional metadata. -/// This is not recommended for large files, and one should instead upload a file from disk. +/// A new StorageReference pointing to a child location of the +/// current reference. +- (FIRStorageReference *_Nonnull)child:(NSString *_Nonnull)path + SWIFT_WARN_UNUSED_RESULT; +/// Asynchronously uploads data to the currently specified +/// StorageReference, without additional metadata. This is not +/// recommended for large files, and one should instead upload a file from disk. /// \param uploadData The data to upload. /// -/// \param metadata StorageMetadata containing additional information (MIME type, etc.) -/// about the object being uploaded. +/// \param metadata StorageMetadata containing additional +/// information (MIME type, etc.) about the object being uploaded. /// /// /// returns: -/// An instance of StorageUploadTask, which can be used to monitor or manage the -/// upload. +/// An instance of StorageUploadTask, which can be used to monitor +/// or manage the upload. - (FIRStorageUploadTask *_Nonnull)putData:(NSData *_Nonnull)uploadData - metadata:(FIRStorageMetadata *_Nullable)metadata; -/// Asynchronously uploads data to the currently specified StorageReference. -/// This is not recommended for large files, and one should instead upload a file from disk. -/// \param uploadData The data to upload. + metadata: + (FIRStorageMetadata *_Nullable)metadata; +/// Asynchronously uploads data to the currently specified +/// StorageReference. This is not recommended for large files, and +/// one should instead upload a file from disk. \param uploadData The data to +/// upload. /// /// /// returns: -/// An instance of StorageUploadTask, which can be used to monitor or manage the -/// upload. +/// An instance of StorageUploadTask, which can be used to monitor +/// or manage the upload. - (FIRStorageUploadTask *_Nonnull)putData:(NSData *_Nonnull)uploadData; -/// Asynchronously uploads data to the currently specified StorageReference. -/// This is not recommended for large files, and one should instead upload a file from disk. -/// \param uploadData The data to upload. +/// Asynchronously uploads data to the currently specified +/// StorageReference. This is not recommended for large files, and +/// one should instead upload a file from disk. \param uploadData The data to +/// upload. /// -/// \param metadata StorageMetadata containing additional information (MIME type, etc.) -/// about the object being uploaded. +/// \param metadata StorageMetadata containing additional +/// information (MIME type, etc.) about the object being uploaded. /// -/// \param completion A closure that either returns the object metadata on success, -/// or an error on failure. +/// \param completion A closure that either returns the object metadata on +/// success, or an error on failure. /// /// /// returns: -/// An instance of StorageUploadTask, which can be used to monitor or manage the -/// upload. -- (FIRStorageUploadTask *_Nonnull)putData:(NSData *_Nonnull)uploadData - metadata:(FIRStorageMetadata *_Nullable)metadata - completion:(void (^_Nullable)(FIRStorageMetadata *_Nullable, - NSError *_Nullable))completion; -/// Asynchronously uploads a file to the currently specified StorageReference. -/// putData should be used instead of putFile in Extensions. -/// \param fileURL A URL representing the system file path of the object to be uploaded. -/// -/// \param metadata StorageMetadata containing additional information (MIME type, etc.) -/// about the object being uploaded. +/// An instance of StorageUploadTask, which can be used to monitor +/// or manage the upload. +- (FIRStorageUploadTask *_Nonnull) + putData:(NSData *_Nonnull)uploadData + metadata:(FIRStorageMetadata *_Nullable)metadata + completion:(void (^_Nullable)(FIRStorageMetadata *_Nullable, + NSError *_Nullable))completion; +/// Asynchronously uploads a file to the currently specified +/// StorageReference. putData should be used instead +/// of putFile in Extensions. \param fileURL A URL representing the +/// system file path of the object to be uploaded. +/// +/// \param metadata StorageMetadata containing additional +/// information (MIME type, etc.) about the object being uploaded. /// /// /// returns: -/// An instance of StorageUploadTask, which can be used to monitor or manage the -/// upload. +/// An instance of StorageUploadTask, which can be used to monitor +/// or manage the upload. - (FIRStorageUploadTask *_Nonnull)putFile:(NSURL *_Nonnull)fileURL - metadata:(FIRStorageMetadata *_Nullable)metadata; -/// Asynchronously uploads a file to the currently specified StorageReference, -/// without additional metadata. -/// putData should be used instead of putFile in Extensions. -/// @param fileURL A URL representing the system file path of the object to be uploaded. -/// @return An instance of StorageUploadTask, which can be used to monitor or manage the upload. + metadata: + (FIRStorageMetadata *_Nullable)metadata; +/// Asynchronously uploads a file to the currently specified +/// StorageReference, without additional metadata. +/// putData should be used instead of putFile in +/// Extensions. +/// @param fileURL A URL representing the system file path of the object to be +/// uploaded. +/// @return An instance of StorageUploadTask, which can be used to monitor or +/// manage the upload. - (FIRStorageUploadTask *_Nonnull)putFile:(NSURL *_Nonnull)fileURL; -/// Asynchronously uploads a file to the currently specified StorageReference. -/// putData should be used instead of putFile in Extensions. -/// \param fileURL A URL representing the system file path of the object to be uploaded. +/// Asynchronously uploads a file to the currently specified +/// StorageReference. putData should be used instead +/// of putFile in Extensions. \param fileURL A URL representing the +/// system file path of the object to be uploaded. /// -/// \param metadata StorageMetadata containing additional information (MIME type, etc.) -/// about the object being uploaded. +/// \param metadata StorageMetadata containing additional +/// information (MIME type, etc.) about the object being uploaded. /// -/// \param completion A completion block that either returns the object metadata on success, -/// or an error on failure. +/// \param completion A completion block that either returns the object metadata +/// on success, or an error on failure. /// /// /// returns: -/// An instance of StorageUploadTask, which can be used to monitor or manage the -/// upload. -- (FIRStorageUploadTask *_Nonnull)putFile:(NSURL *_Nonnull)fileURL - metadata:(FIRStorageMetadata *_Nullable)metadata - completion:(void (^_Nullable)(FIRStorageMetadata *_Nullable, - NSError *_Nullable))completion; -/// Asynchronously downloads the object at the StorageReference to a Data -/// instance in memory. A Data buffer of the provided max size will be allocated, so -/// ensure that the device has enough free memory to complete the download. For downloading large -/// files, write(toFile:) may be a better option. \param maxSize The maximum size in -/// bytes to download. If the download exceeds this size, the task will be cancelled and an error -/// will be returned. -/// -/// \param completion A completion block that either returns the object data on success, -/// or an error on failure. +/// An instance of StorageUploadTask, which can be used to monitor +/// or manage the upload. +- (FIRStorageUploadTask *_Nonnull) + putFile:(NSURL *_Nonnull)fileURL + metadata:(FIRStorageMetadata *_Nullable)metadata + completion:(void (^_Nullable)(FIRStorageMetadata *_Nullable, + NSError *_Nullable))completion; +/// Asynchronously downloads the object at the StorageReference to +/// a Data instance in memory. A Data buffer of the +/// provided max size will be allocated, so ensure that the device has enough +/// free memory to complete the download. For downloading large files, +/// write(toFile:) may be a better option. \param maxSize The +/// maximum size in bytes to download. If the download exceeds this size, the +/// task will be cancelled and an error will be returned. +/// +/// \param completion A completion block that either returns the object data on +/// success, or an error on failure. /// /// /// returns: -/// An StorageDownloadTask that can be used to monitor or manage the download. +/// An StorageDownloadTask that can be used to monitor or manage +/// the download. - (FIRStorageDownloadTask *_Nonnull) dataWithMaxSize:(int64_t)maxSize - completion:(void (^_Nonnull)(NSData *_Nullable, NSError *_Nullable))completion; + completion:(void (^_Nonnull)(NSData *_Nullable, + NSError *_Nullable))completion; /// Asynchronously retrieves a long lived download URL with a revokable token. -/// This can be used to share the file with others, but can be revoked by a developer -/// in the Firebase Console. -/// \param completion A completion block that either returns the URL on success, -/// or an error on failure. -/// -- (void)downloadURLWithCompletion:(void (^_Nonnull)(NSURL *_Nullable, - NSError *_Nullable))completion; -/// Asynchronously downloads the object at the current path to a specified system filepath. -///
      +/// This can be used to share the file with others, but can be revoked by a +/// developer in the Firebase Console. \param completion A completion block that +/// either returns the URL on success, or an error on failure. +/// +- (void)downloadURLWithCompletion: + (void (^_Nonnull)(NSURL *_Nullable, NSError *_Nullable))completion; +/// Asynchronously downloads the object at the current path to a specified +/// system filepath.
        ///
      • -/// Returns An StorageDownloadTask that can be used to monitor or manage the -/// download. +/// Returns An StorageDownloadTask that can be used to monitor +/// or manage the download. ///
      • ///
      -/// \param fileURL A file system URL representing the path the object should be downloaded to. +/// \param fileURL A file system URL representing the path the object should be +/// downloaded to. /// - (FIRStorageDownloadTask *_Nonnull)writeToFile:(NSURL *_Nonnull)fileURL; -/// Asynchronously downloads the object at the current path to a specified system filepath. -/// \param fileURL A file system URL representing the path the object should be downloaded to. +/// Asynchronously downloads the object at the current path to a specified +/// system filepath. \param fileURL A file system URL representing the path the +/// object should be downloaded to. /// -/// \param completion A closure that fires when the file download completes, passed either -/// a URL pointing to the file path of the downloaded file on success, -/// or an error on failure. +/// \param completion A closure that fires when the file download completes, +/// passed either a URL pointing to the file path of the downloaded file on +/// success, or an error on failure. /// /// /// returns: -/// A StorageDownloadTask that can be used to monitor or manage the download. -- (FIRStorageDownloadTask *_Nonnull)writeToFile:(NSURL *_Nonnull)fileURL - completion:(void (^_Nullable)(NSURL *_Nullable, - NSError *_Nullable))completion; -/// Lists all items (files) and prefixes (folders) under this StorageReference. -/// This is a helper method for calling list() repeatedly until there are no more -/// results. Consistency of the result is not guaranteed if objects are inserted or removed while +/// A StorageDownloadTask that can be used to monitor or manage the +/// download. +- (FIRStorageDownloadTask *_Nonnull) + writeToFile:(NSURL *_Nonnull)fileURL + completion: + (void (^_Nullable)(NSURL *_Nullable, NSError *_Nullable))completion; +/// Lists all items (files) and prefixes (folders) under this +/// StorageReference. This is a helper method for calling +/// list() repeatedly until there are no more results. Consistency +/// of the result is not guaranteed if objects are inserted or removed while /// this operation is executing. All results are buffered in memory. -/// listAll(completion:) is only available for projects using Firebase Rules Version 2. -/// \param completion A completion handler that will be invoked with all items and prefixes under -/// the current StorageReference. +/// listAll(completion:) is only available for projects using +/// Firebase Rules Version 2. \param completion A completion handler that will +/// be invoked with all items and prefixes under the current +/// StorageReference. /// - (void)listAllWithCompletion:(void (^_Nonnull)(FIRStorageListResult *_Nullable, NSError *_Nullable))completion; -/// List up to maxResults items (files) and prefixes (folders) under this -/// StorageReference. “/” is treated as a path delimiter. Firebase Storage does not support -/// unsupported object paths that end with “/” or contain two consecutive “/“s. All invalid objects -/// in GCS will be filtered. list(maxResults:completion:) is only available for -/// projects using Firebase Rules Version 2. \param maxResults The maximum number of results to -/// return in a single page. Must be greater than 0 and at most 1000. -/// -/// \param completion A completion handler that will be invoked with up to maxResults -/// items and prefixes under the current StorageReference. +/// List up to maxResults items (files) and prefixes (folders) +/// under this StorageReference. “/” is treated as a path delimiter. Firebase +/// Storage does not support unsupported object paths that end with “/” or +/// contain two consecutive “/“s. All invalid objects in GCS will be filtered. +/// list(maxResults:completion:) is only available for projects +/// using Firebase Rules Version 2. \param maxResults The maximum number of +/// results to return in a single page. Must be greater than 0 and at most 1000. +/// +/// \param completion A completion handler that will be invoked with up to +/// maxResults items and prefixes under the current +/// StorageReference. /// - (void)listWithMaxResults:(int64_t)maxResults completion:(void (^_Nonnull)(FIRStorageListResult *_Nullable, NSError *_Nullable))completion; -/// Resumes a previous call to list(maxResults:completion:), starting after a -/// pagination token. Returns the next set of items (files) and prefixes (folders) under this -/// StorageReference. “/” is treated as a path delimiter. Storage does not support -/// unsupported object paths that end with “/” or contain two consecutive “/“s. All invalid objects -/// in GCS will be filtered. list(maxResults:pageToken:completion:)is only available -/// for projects using Firebase Rules Version 2. \param maxResults The maximum number of results to -/// return in a single page. Must be greater than 0 and at most 1000. +/// Resumes a previous call to list(maxResults:completion:), +/// starting after a pagination token. Returns the next set of items (files) and +/// prefixes (folders) under this StorageReference. “/” is treated +/// as a path delimiter. Storage does not support unsupported object paths that +/// end with “/” or contain two consecutive “/“s. All invalid objects in GCS +/// will be filtered. list(maxResults:pageToken:completion:)is only +/// available for projects using Firebase Rules Version 2. \param maxResults The +/// maximum number of results to return in a single page. Must be greater than 0 +/// and at most 1000. /// /// \param pageToken A page token from a previous call to list. /// -/// \param completion A completion handler that will be invoked with the next items and prefixes -/// under the current StorageReference. +/// \param completion A completion handler that will be invoked with the next +/// items and prefixes under the current StorageReference. /// - (void)listWithMaxResults:(int64_t)maxResults pageToken:(NSString *_Nonnull)pageToken completion:(void (^_Nonnull)(FIRStorageListResult *_Nullable, NSError *_Nullable))completion; /// Retrieves metadata associated with an object at the current path. -/// \param completion A completion block which returns the object metadata on success, -/// or an error on failure. +/// \param completion A completion block which returns the object metadata on +/// success, or an error on failure. /// - (void)metadataWithCompletion:(void (^_Nonnull)(FIRStorageMetadata *_Nullable, NSError *_Nullable))completion; /// Updates the metadata associated with an object at the current path. -/// \param metadata A StorageMetadata object with the metadata to update. +/// \param metadata A StorageMetadata object with the metadata to +/// update. /// -/// \param completion A completion block which returns the StorageMetadata on success, -/// or an error on failure. +/// \param completion A completion block which returns the +/// StorageMetadata on success, or an error on failure. /// - (void)updateMetadata:(FIRStorageMetadata *_Nonnull)metadata - completion: - (void (^_Nullable)(FIRStorageMetadata *_Nullable, NSError *_Nullable))completion; + completion:(void (^_Nullable)(FIRStorageMetadata *_Nullable, + NSError *_Nullable))completion; /// Deletes the object at the current path. -/// \param completion A completion block which returns a nonnull error on failure. +/// \param completion A completion block which returns a nonnull error on +/// failure. /// - (void)deleteWithCompletion:(void (^_Nullable)(NSError *_Nullable))completion; - (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; @@ -784,7 +895,8 @@ SWIFT_CLASS_NAMED("StorageTaskSnapshot") @property(nonatomic, readonly, strong) FIRStorageReference *_Nonnull reference; /// An object which tracks the progress of an upload or download. @property(nonatomic, readonly, strong) NSProgress *_Nullable progress; -/// An error raised during task execution, or nil if no error occurred. +/// An error raised during task execution, or nil if no error +/// occurred. @property(nonatomic, readonly) NSError *_Nullable error; /// The status of the task. @property(nonatomic, readonly) enum FIRStorageTaskStatus status; @@ -793,22 +905,25 @@ SWIFT_CLASS_NAMED("StorageTaskSnapshot") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageTaskStatus, "StorageTaskStatus", open){ +typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageTaskStatus, "StorageTaskStatus", + open){ FIRStorageTaskStatusUnknown = 0, FIRStorageTaskStatusResume = 1, FIRStorageTaskStatusProgress = 2, FIRStorageTaskStatusPause = 3, FIRStorageTaskStatusSuccess = 4, FIRStorageTaskStatusFailure = 5, }; -/// StorageUploadTask implements resumable uploads to a file in Firebase Storage. -/// Uploads can be returned on completion with a completion callback, and can be monitored -/// by attaching observers, or controlled by calling pause(), resume(), -/// or cancel(). -/// Uploads can be initialized from Data in memory, or a URL to a file on disk. -/// Uploads are performed on a background queue, and callbacks are raised on the developer -/// specified callbackQueue in Storage, or the main queue if unspecified. +/// StorageUploadTask implements resumable uploads to a file in +/// Firebase Storage. Uploads can be returned on completion with a completion +/// callback, and can be monitored by attaching observers, or controlled by +/// calling pause(), resume(), or +/// cancel(). Uploads can be initialized from Data in +/// memory, or a URL to a file on disk. Uploads are performed on a background +/// queue, and callbacks are raised on the developer specified +/// callbackQueue in Storage, or the main queue if unspecified. /// Currently all uploads must be initiated and managed on the main queue. SWIFT_CLASS_NAMED("StorageUploadTask") -@interface FIRStorageUploadTask : FIRStorageObservableTask +@interface FIRStorageUploadTask + : FIRStorageObservableTask /// Prepares a task and begins execution. - (void)enqueue; /// Pauses a task currently in progress. @@ -819,8 +934,15 @@ SWIFT_CLASS_NAMED("StorageUploadTask") - (void)resume; @end +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_pod/swift_headers/SwiftProtobuf-Swift.h b/ios_pod/swift_headers/SwiftProtobuf-Swift.h index a9edf66a0e..8d6e6af5a5 100644 --- a/ios_pod/swift_headers/SwiftProtobuf-Swift.h +++ b/ios_pod/swift_headers/SwiftProtobuf-Swift.h @@ -1,8 +1,10 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ // Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.12.0. +// Copied from Firebase iOS SDK 10.13.0. -// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 -// clang-1316.0.20.8) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 +// clang-1400.0.29.51) #ifndef SWIFTPROTOBUF_SWIFT_H #define SWIFTPROTOBUF_SWIFT_H #pragma clang diagnostic push @@ -25,11 +27,20 @@ #include #endif +#pragma clang diagnostic ignored "-Wduplicate-method-match" #pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) #include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else #include #include #include +#endif #if !defined(SWIFT_TYPEDEFS) #define SWIFT_TYPEDEFS 1 @@ -203,9 +214,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #else #define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) #if !defined(IBSegueAction) #define IBSegueAction #endif +#endif #if !defined(SWIFT_EXTERN) #if defined(__cplusplus) #define SWIFT_EXTERN extern "C" @@ -213,12 +226,35 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #define SWIFT_EXTERN extern #endif #endif +#if !defined(SWIFT_CALL) +#define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +#define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} // namespace swift +#endif +#endif +#if defined(__OBJC__) #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif #endif +#endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -226,6 +262,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) #pragma push_macro("any") @@ -239,8 +276,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma pop_macro("any") #endif +#if defined(__OBJC__) +#endif +#if defined(__cplusplus) +#endif #if __has_attribute(external_source_symbol) #pragma clang attribute pop #endif #pragma clang diagnostic pop #endif + +#else +#error unsupported Swift architecture +#endif diff --git a/messaging/integration_test/Podfile b/messaging/integration_test/Podfile index 7ed460008d..6e4903f8b2 100644 --- a/messaging/integration_test/Podfile +++ b/messaging/integration_test/Podfile @@ -4,12 +4,12 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/Messaging', '10.12.0' + pod 'Firebase/Messaging', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/Messaging', '10.12.0' + pod 'Firebase/Messaging', '10.13.0' end post_install do |installer| diff --git a/messaging/messaging_java/build.gradle b/messaging/messaging_java/build.gradle index 1c510bb14b..5289dac1a8 100644 --- a/messaging/messaging_java/build.gradle +++ b/messaging/messaging_java/build.gradle @@ -55,7 +55,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-messaging' implementation 'com.google.flatbuffers:flatbuffers-java:1.12.0' diff --git a/release_build_files/Android/firebase_dependencies.gradle b/release_build_files/Android/firebase_dependencies.gradle index 72c9ad0c9f..67d8d1120f 100644 --- a/release_build_files/Android/firebase_dependencies.gradle +++ b/release_build_files/Android/firebase_dependencies.gradle @@ -131,7 +131,7 @@ project.afterEvaluate { // Add the bill-of-materials project.dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') } for (String lib : firebaseCpp.dependencies.libSet) { // Messaging includes an aar, which to be depended on properly requires diff --git a/release_build_files/readme.md b/release_build_files/readme.md index 24f7ac2017..4a061c96d3 100644 --- a/release_build_files/readme.md +++ b/release_build_files/readme.md @@ -86,7 +86,7 @@ distributed as part of the core Firebase Feature | Required Libraries and Gradle Packages -------------------------- | -------------------------------------- -All Firebase SDKs | platform(com.google.firebase:firebase-bom:32.2.0) +All Firebase SDKs | platform(com.google.firebase:firebase-bom:32.2.2) | | (Android Bill of Materials) Firebase Analytics | libfirebase_analytics.a | | libfirebase_app.a @@ -228,49 +228,49 @@ Feature | Required Frameworks and Cocoapods -------------------------- | --------------------------------------- Firebase Analytics | firebase_analytics.xcframework | | firebase.xcframework -| | Firebase/Analytics Cocoapod (10.12.0) +| | Firebase/Analytics Cocoapod (10.13.0) Firebase App Check | firebase_app_check.xcframework | | firebase.xcframework -| | Firebase/AppCheck Cocoapod (10.12.0) +| | Firebase/AppCheck Cocoapod (10.13.0) Firebase Authentication | firebase_auth.xcframework | | firebase.xcframework -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Auth Cocoapod (10.13.0) Firebase Dynamic Links | firebase_dynamic_links.xcframework | | firebase.xcframework -| | Firebase/DynamicLinks Cocoapod (10.12.0) +| | Firebase/DynamicLinks Cocoapod (10.13.0) Cloud Firestore | firebase_firestore.xcframework | | firebase_auth.xcframework | | firebase.xcframework -| | Firebase/Firestore Cocoapod (10.12.0) -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Firestore Cocoapod (10.13.0) +| | Firebase/Auth Cocoapod (10.13.0) Firebase Functions | firebase_functions.xcframework | | firebase_auth.xcframework (optional) | | firebase.xcframework -| | Firebase/Functions Cocoapod (10.12.0) -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Functions Cocoapod (10.13.0) +| | Firebase/Auth Cocoapod (10.13.0) Google Mobile Ads | firebase_gma.xcframework | | firebase.xcframework -| | Firebase/CoreOnly Cocoapod (10.12.0) -| | Google-Mobile-Ads-SDK Cocoapod (10.8.0) +| | Firebase/CoreOnly Cocoapod (10.13.0) +| | Google-Mobile-Ads-SDK Cocoapod (10.9.0) Firebase Installations | firebase_installations.xcframework | | firebase.xcframework -| | FirebaseInstallations Cocoapod (10.12.0) +| | FirebaseInstallations Cocoapod (10.13.0) Firebase Cloud Messaging | firebase_messaging.xcframework | | firebase.xcframework -| | Firebase/Messaging Cocoapod (10.12.0) +| | Firebase/Messaging Cocoapod (10.13.0) Firebase Realtime Database | firebase_database.xcframework | | firebase_auth.xcframework | | firebase.xcframework -| | Firebase/Database Cocoapod (10.12.0) -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Database Cocoapod (10.13.0) +| | Firebase/Auth Cocoapod (10.13.0) Firebase Remote Config | firebase_remote_config.xcframework | | firebase.xcframework -| | Firebase/RemoteConfig Cocoapod (10.12.0) +| | Firebase/RemoteConfig Cocoapod (10.13.0) Firebase Storage | firebase_storage.xcframework | | firebase_auth.xcframework | | firebase.xcframework -| | Firebase/Storage Cocoapod (10.12.0) -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Storage Cocoapod (10.13.0) +| | Firebase/Auth Cocoapod (10.13.0) Important: Each version of the Firebase C++ SDK supports a specific version of the Firebase iOS SDK. Please ensure that you reference the Cocoapod versions @@ -290,49 +290,49 @@ Feature | Required Libraries and Cocoapods -------------------------- | ----------------------------------------- Firebase Analytics | libfirebase_analytics.a | | libfirebase_app.a -| | Firebase/Analytics Cocoapod (10.12.0) +| | Firebase/Analytics Cocoapod (10.13.0) Firebase App Check | firebase_app_check.xcframework | | firebase.xcframework -| | Firebase/AppCheck Cocoapod (10.12.0) +| | Firebase/AppCheck Cocoapod (10.13.0) Firebase Authentication | libfirebase_auth.a | | libfirebase_app.a -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Auth Cocoapod (10.13.0) Firebase Dynamic Links | libfirebase_dynamic_links.a | | libfirebase_app.a -| | Firebase/DynamicLinks Cocoapod (10.12.0) +| | Firebase/DynamicLinks Cocoapod (10.13.0) Cloud Firestore | libfirebase_firestore.a | | libfirebase_app.a | | libfirebase_auth.a -| | Firebase/Firestore Cocoapod (10.12.0) -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Firestore Cocoapod (10.13.0) +| | Firebase/Auth Cocoapod (10.13.0) Firebase Functions | libfirebase_functions.a | | libfirebase_app.a | | libfirebase_auth.a (optional) -| | Firebase/Functions Cocoapod (10.12.0) -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Functions Cocoapod (10.13.0) +| | Firebase/Auth Cocoapod (10.13.0) Google Mobile Ads | libfirebase_gma.a | | libfirebase_app.a -| | Firebase/CoreOnly Cocoapod (10.12.0) -| | Google-Mobile-Ads-SDK Cocoapod (10.8.0) +| | Firebase/CoreOnly Cocoapod (10.13.0) +| | Google-Mobile-Ads-SDK Cocoapod (10.9.0) Firebase Installations | libfirebase_installations.a | | libfirebase_app.a -| | FirebaseInstallations Cocoapod (10.12.0) +| | FirebaseInstallations Cocoapod (10.13.0) Firebase Cloud Messaging | libfirebase_messaging.a | | libfirebase_app.a -| | Firebase/CloudMessaging Cocoapod (10.12.0) +| | Firebase/CloudMessaging Cocoapod (10.13.0) Firebase Realtime Database | libfirebase_database.a | | libfirebase_app.a | | libfirebase_auth.a -| | Firebase/Database Cocoapod (10.12.0) -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Database Cocoapod (10.13.0) +| | Firebase/Auth Cocoapod (10.13.0) Firebase Remote Config | libfirebase_remote_config.a | | libfirebase_app.a -| | Firebase/RemoteConfig Cocoapod (10.12.0) +| | Firebase/RemoteConfig Cocoapod (10.13.0) Firebase Storage | libfirebase_storage.a | | libfirebase_app.a | | libfirebase_auth.a -| | Firebase/Storage Cocoapod (10.12.0) -| | Firebase/Auth Cocoapod (10.12.0) +| | Firebase/Storage Cocoapod (10.13.0) +| | Firebase/Auth Cocoapod (10.13.0) Important: Each version of the Firebase C++ SDK supports a specific version of the Firebase iOS SDK. Please ensure that you reference the Cocoapod versions diff --git a/remote_config/integration_test/Podfile b/remote_config/integration_test/Podfile index 8270b8f5d7..0c0ee247d1 100644 --- a/remote_config/integration_test/Podfile +++ b/remote_config/integration_test/Podfile @@ -4,12 +4,12 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/RemoteConfig', '10.12.0' + pod 'Firebase/RemoteConfig', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/RemoteConfig', '10.12.0' + pod 'Firebase/RemoteConfig', '10.13.0' end post_install do |installer| diff --git a/remote_config/remote_config_resources/build.gradle b/remote_config/remote_config_resources/build.gradle index bf99ad1014..cf94b86b23 100644 --- a/remote_config/remote_config_resources/build.gradle +++ b/remote_config/remote_config_resources/build.gradle @@ -49,7 +49,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-config' } diff --git a/storage/integration_test/Podfile b/storage/integration_test/Podfile index deb9c56c6f..1c27de3760 100644 --- a/storage/integration_test/Podfile +++ b/storage/integration_test/Podfile @@ -4,14 +4,14 @@ use_frameworks! :linkage => :static target 'integration_test' do platform :ios, '11.0' - pod 'Firebase/Storage', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Storage', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end target 'integration_test_tvos' do platform :tvos, '12.0' - pod 'Firebase/Storage', '10.12.0' - pod 'Firebase/Auth', '10.12.0' + pod 'Firebase/Storage', '10.13.0' + pod 'Firebase/Auth', '10.13.0' end post_install do |installer| diff --git a/storage/storage_resources/build.gradle b/storage/storage_resources/build.gradle index 3f286e93fb..7e5ca796e2 100644 --- a/storage/storage_resources/build.gradle +++ b/storage/storage_resources/build.gradle @@ -49,7 +49,7 @@ android { } dependencies { - implementation platform('com.google.firebase:firebase-bom:32.2.0') + implementation platform('com.google.firebase:firebase-bom:32.2.2') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-storage' } From 62e2e205891bbbb7a155b28cfc552f692bdb1131 Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Thu, 3 Aug 2023 17:23:22 -0700 Subject: [PATCH 02/11] Ensure using a Swift bridging header that supports both arm64 and x86_64. --- .github/workflows/update-dependencies.yml | 2 +- .../FirebaseAnalyticsSwift-Swift.h | 497 +++-- .../FirebaseCoreInternal-Swift.h | 580 ++++-- .../FirebaseDatabaseSwift-Swift.h | 502 +++-- .../FirebaseFirestoreSwift-Swift.h | 526 +++-- .../swift_headers/FirebaseFunctions-Swift.h | 1024 ++++++--- .../FirebaseInAppMessagingSwift-Swift.h | 498 +++-- .../FirebaseMLModelDownloader-Swift.h | 500 +++-- .../FirebaseRemoteConfigSwift-Swift.h | 502 +++-- .../swift_headers/FirebaseSharedSwift-Swift.h | 497 +++-- ios_pod/swift_headers/FirebaseStorage-Swift.h | 1840 ++++++++++++----- ios_pod/swift_headers/SwiftProtobuf-Swift.h | 497 +++-- 12 files changed, 5391 insertions(+), 2074 deletions(-) diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 9ce467996d..f40aa5743d 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -142,7 +142,7 @@ jobs: cd - # Copy all *-Swift.h header files into ios_pod/swift_headers/ echo "Copying headers..." - find "${ziptmp}" -name '*-Swift.h' -print0 | xargs -0 -n 1 -J REPLACETEXT cp -f REPLACETEXT ios_pod/swift_headers/ + find "${ziptmp}" -name '*-Swift.h' -path '*ios*arm64*x86_64*simulator*' -print0 | xargs -0 -n 1 -J REPLACETEXT cp -f REPLACETEXT ios_pod/swift_headers/ copyright_line="// Copyright $(date +%Y) Google LLC" # Add a note to each file about its source. for ios_header in ios_pod/swift_headers/*.h; do diff --git a/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h b/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h index 52b966d3eb..aa4872633c 100644 --- a/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASEANALYTICSSWIFT_SWIFT_H #define FIREBASEANALYTICSSWIFT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,451 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseAnalyticsSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASEANALYTICSSWIFT_SWIFT_H +#define FIREBASEANALYTICSSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +#include +#include +#include #endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +482,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -258,22 +496,17 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseAnalyticsSwift", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseAnalyticsSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) @@ -281,7 +514,7 @@ using UInt = size_t; #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h b/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h index f6f5f4460a..663a0fa0e3 100644 --- a/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h +++ b/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASECOREINTERNAL_SWIFT_H #define FIREBASECOREINTERNAL_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,505 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# 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)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +@class NSString; +@class FIRHeartbeatsPayload; + +/// An object that provides API to log and flush heartbeats from a synchronized storage container. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") +@interface FIRHeartbeatController : NSObject +/// Public initializer. +/// \param id The id to associate this controller’s heartbeat storage with. +/// +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +/// Asynchronously logs a new heartbeat, if needed. +/// note: +/// This API is thread-safe. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged +/// heartbeat with. +/// +- (void)log:(NSString * _Nonnull)agent; +/// Synchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +/// Synchronously flushes the heartbeat for today. +/// If no heartbeat was logged today, the returned payload is empty. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat. +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A model object representing a payload of heartbeat data intended for sending in network +/// requests. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") +@interface FIRHeartbeatsPayload : NSObject +/// Returns a processed payload string intended for use in a HTTP header. +/// +/// returns: +/// A string value from the heartbeats payload. +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value indicating whether the payload is empty. +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASECOREINTERNAL_SWIFT_H +#define FIREBASECOREINTERNAL_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +#include +#include +#include #endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +536,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -259,22 +551,17 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#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)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# 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)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) @@ -282,30 +569,27 @@ using UInt = size_t; @class NSString; @class FIRHeartbeatsPayload; -/// An object that provides API to log and flush heartbeats from a synchronized -/// storage container. +/// An object that provides API to log and flush heartbeats from a synchronized storage container. SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") @interface FIRHeartbeatController : NSObject /// Public initializer. -/// \param id The id to associate this controller’s heartbeat -/// storage with. +/// \param id The id to associate this controller’s heartbeat storage with. /// -- (nonnull instancetype)initWithId:(NSString* _Nonnull)id - OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; /// Asynchronously logs a new heartbeat, if needed. /// note: /// This API is thread-safe. -/// \param agent The string agent (i.e. Firebase User Agent) to associate the -/// logged heartbeat with. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged +/// heartbeat with. /// -- (void)log:(NSString* _Nonnull)agent; +- (void)log:(NSString * _Nonnull)agent; /// Synchronously flushes heartbeats from storage into a heartbeats payload. /// note: /// This API is thread-safe. /// /// returns: /// A heartbeats payload for the flushed heartbeat(s). -- (FIRHeartbeatsPayload* _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; /// Synchronously flushes the heartbeat for today. /// If no heartbeat was logged today, the returned payload is empty. /// note: @@ -313,23 +597,23 @@ SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") /// /// returns: /// A heartbeats payload for the flushed heartbeat. -- (FIRHeartbeatsPayload* _Nonnull) - flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -/// A model object representing a payload of heartbeat data intended for sending -/// in network requests. + +/// A model object representing a payload of heartbeat data intended for sending in network +/// requests. SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") @interface FIRHeartbeatsPayload : NSObject /// Returns a processed payload string intended for use in a HTTP header. /// /// returns: /// A string value from the heartbeats payload. -- (NSString* _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; /// A Boolean value indicating whether the payload is empty. -@property(nonatomic, readonly) BOOL isEmpty; +@property (nonatomic, readonly) BOOL isEmpty; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -338,7 +622,7 @@ SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h b/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h index ddcc7578f0..c0f8584947 100644 --- a/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASEDATABASESWIFT_SWIFT_H #define FIREBASEDATABASESWIFT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,454 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction #endif #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept +#endif #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseDatabaseSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + + + +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASEDATABASESWIFT_SWIFT_H +#define FIREBASEDATABASESWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else +#include +#include +#include +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +485,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -258,31 +499,28 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseDatabaseSwift", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseDatabaseSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) + + #endif #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h b/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h index 48786238e2..6c547ad142 100644 --- a/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASEFIRESTORESWIFT_SWIFT_H #define FIREBASEFIRESTORESWIFT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,466 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction #endif #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept +#endif #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseFirestoreSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + + + + + + + + + + + + + + + +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASEFIRESTORESWIFT_SWIFT_H +#define FIREBASEFIRESTORESWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else +#include +#include +#include +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +497,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -258,31 +511,40 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseFirestoreSwift", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseFirestoreSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) + + + + + + + + + + + + + + #endif #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseFunctions-Swift.h b/ios_pod/swift_headers/FirebaseFunctions-Swift.h index 1d2a58f014..411dc8f16d 100644 --- a/ios_pod/swift_headers/FirebaseFunctions-Swift.h +++ b/ios_pod/swift_headers/FirebaseFunctions-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASEFUNCTIONS_SWIFT_H #define FIREBASEFUNCTIONS_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,683 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseFunctions",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) +@class FIRApp; +@class NSString; +@class FIRHTTPSCallable; +@class FIRHTTPSCallableOptions; +@class NSURL; + +/// Functions is the client for Cloud Functions for a Firebase project. +SWIFT_CLASS_NAMED("Functions") +@interface FIRFunctions : NSObject +/// Creates a Cloud Functions client using the default or returns a pre-existing instance if it already exists. +/// +/// returns: +/// A shared Functions instance initialized with the default FirebaseApp. ++ (FIRFunctions * _Nonnull)functions SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app, or returns a pre-existing +/// instance if one already exists. +/// \param app The app for the Firebase project. +/// +/// +/// returns: +/// A shared Functions instance initialized with the specified FirebaseApp. ++ (FIRFunctions * _Nonnull)functionsForApp:(FIRApp * _Nonnull)app SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the default app and given region. +/// \param region The region for the HTTP trigger, such as us-central1. +/// +/// +/// returns: +/// A shared Functions instance initialized with the default FirebaseApp and a custom region. ++ (FIRFunctions * _Nonnull)functionsForRegion:(NSString * _Nonnull)region SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing +/// instance if one already exists. +/// \param customDomain A custom domain for the HTTP trigger, such as “https //mydomain.com”. +/// +/// +/// returns: +/// A shared Functions instance initialized with the default FirebaseApp and a custom HTTP trigger domain. ++ (FIRFunctions * _Nonnull)functionsForCustomDomain:(NSString * _Nonnull)customDomain SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing +/// instance if one already exists. +/// \param app The app for the Firebase project. +/// +/// \param region The region for the HTTP trigger, such as us-central1. +/// +/// +/// returns: +/// An instance of Functions with a custom app and region. ++ (FIRFunctions * _Nonnull)functionsForApp:(FIRApp * _Nonnull)app region:(NSString * _Nonnull)region SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing +/// instance if one already exists. +/// \param app The app for the Firebase project. +/// +/// \param customDomain A custom domain for the HTTP trigger, such as https://mydomain.com. +/// +/// +/// returns: +/// An instance of Functions with a custom app and HTTP trigger domain. ++ (FIRFunctions * _Nonnull)functionsForApp:(FIRApp * _Nonnull)app customDomain:(NSString * _Nonnull)customDomain SWIFT_WARN_UNUSED_RESULT; +/// Creates a reference to the Callable HTTPS trigger with the given name. +/// \param name The name of the Callable HTTPS trigger. +/// +/// +/// returns: +/// A reference to a Callable HTTPS trigger. +- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithName:(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT; +/// Creates a reference to the Callable HTTPS trigger with the given name and configuration +/// options. +/// \param name The name of the Callable HTTPS trigger. +/// +/// \param options The options with which to customize the Callable HTTPS trigger. +/// +/// +/// returns: +/// A reference to a Callable HTTPS trigger. +- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithName:(NSString * _Nonnull)name options:(FIRHTTPSCallableOptions * _Nonnull)options SWIFT_WARN_UNUSED_RESULT; +/// Creates a reference to the Callable HTTPS trigger with the given name. +/// \param url The URL of the Callable HTTPS trigger. +/// +/// +/// returns: +/// A reference to a Callable HTTPS trigger. +- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +/// Creates a reference to the Callable HTTPS trigger with the given name and configuration +/// options. +/// \param url The URL of the Callable HTTPS trigger. +/// +/// \param options The options with which to customize the Callable HTTPS trigger. +/// +/// +/// returns: +/// A reference to a Callable HTTPS trigger. +- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithURL:(NSURL * _Nonnull)url options:(FIRHTTPSCallableOptions * _Nonnull)options SWIFT_WARN_UNUSED_RESULT; +/// Changes this instance to point to a Cloud Functions emulator running locally. +/// See https://firebase.google.com/docs/functions/local-emulator +/// \param host The host of the local emulator, such as “localhost”. +/// +/// \param port The port of the local emulator, for example 5005. +/// +- (void)useEmulatorWithHost:(NSString * _Nonnull)host port:(NSInteger)port; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// The set of error status codes that can be returned from a Callable HTTPS tigger. These are the +/// canonical error codes for Google APIs, as documented here: +/// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto#L26 +typedef SWIFT_ENUM_NAMED(NSInteger, FIRFunctionsErrorCode, "FunctionsErrorCode", open) { +/// The operation completed successfully. + FIRFunctionsErrorCodeOK = 0, +/// The operation was cancelled (typically by the caller). + FIRFunctionsErrorCodeCancelled = 1, +/// Unknown error or an error from a different error domain. + FIRFunctionsErrorCodeUnknown = 2, +/// Client specified an invalid argument. Note that this differs from FailedPrecondition. +/// InvalidArgument indicates arguments that are problematic regardless of the state of the +/// system (e.g., an invalid field name). + FIRFunctionsErrorCodeInvalidArgument = 3, +/// Deadline expired before operation could complete. For operations that change the state of the +/// system, this error may be returned even if the operation has completed successfully. For +/// example, a successful response from a server could have been delayed long enough for the +/// deadline to expire. + FIRFunctionsErrorCodeDeadlineExceeded = 4, +/// Some requested document was not found. + FIRFunctionsErrorCodeNotFound = 5, +/// Some document that we attempted to create already exists. + FIRFunctionsErrorCodeAlreadyExists = 6, +/// The caller does not have permission to execute the specified operation. + FIRFunctionsErrorCodePermissionDenied = 7, +/// Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system +/// is out of space. + FIRFunctionsErrorCodeResourceExhausted = 8, +/// Operation was rejected because the system is not in a state required for the operation’s +/// execution. + FIRFunctionsErrorCodeFailedPrecondition = 9, +/// The operation was aborted, typically due to a concurrency issue like transaction aborts, etc. + FIRFunctionsErrorCodeAborted = 10, +/// Operation was attempted past the valid range. + FIRFunctionsErrorCodeOutOfRange = 11, +/// Operation is not implemented or not supported/enabled. + FIRFunctionsErrorCodeUnimplemented = 12, +/// Internal errors. Means some invariant expected by underlying system has been broken. If you +/// see one of these errors, something is very broken. + FIRFunctionsErrorCodeInternal = 13, +/// The service is currently unavailable. This is a most likely a transient condition and may be +/// corrected by retrying with a backoff. + FIRFunctionsErrorCodeUnavailable = 14, +/// Unrecoverable data loss or corruption. + FIRFunctionsErrorCodeDataLoss = 15, +/// The request does not have valid authentication credentials for the operation. + FIRFunctionsErrorCodeUnauthenticated = 16, +}; + +@class FIRHTTPSCallableResult; + +/// A HTTPSCallable is a reference to a particular Callable HTTPS trigger in Cloud Functions. +SWIFT_CLASS_NAMED("HTTPSCallable") +@interface FIRHTTPSCallable : NSObject +/// The timeout to use when calling the function. Defaults to 70 seconds. +@property (nonatomic) NSTimeInterval timeoutInterval; +/// Executes this Callable HTTPS trigger asynchronously. +/// The data passed into the trigger can be any of the following types: +///
        +///
      • +/// nil or NSNull +///
      • +///
      • +/// String +///
      • +///
      • +/// NSNumber, or any Swift numeric type bridgeable to NSNumber +///
      • +///
      • +/// [Any], where the contained objects are also one of these types. +///
      • +///
      • +/// [String: Any] where the values are also one of these types. +///
      • +///
      +/// The request to the Cloud Functions backend made by this method automatically includes a +/// Firebase Installations ID token to identify the app instance. If a user is logged in with +/// Firebase Auth, an auth ID token for the user is also automatically included. +/// Firebase Cloud Messaging sends data to the Firebase backend periodically to collect information +/// regarding the app instance. To stop this, see Messaging.deleteData(). It +/// resumes with a new FCM Token the next time you call this method. +/// \param data Parameters to pass to the trigger. +/// +/// \param completion The block to call when the HTTPS request has completed. +/// +- (void)callWithObject:(id _Nullable)data completion:(void (^ _Nonnull)(FIRHTTPSCallableResult * _Nullable, NSError * _Nullable))completion; +/// Executes this Callable HTTPS trigger asynchronously. This API should only be used from Objective-C. +/// The request to the Cloud Functions backend made by this method automatically includes a +/// Firebase Installations ID token to identify the app instance. If a user is logged in with +/// Firebase Auth, an auth ID token for the user is also automatically included. +/// Firebase Cloud Messaging sends data to the Firebase backend periodically to collect information +/// regarding the app instance. To stop this, see Messaging.deleteData(). It +/// resumes with a new FCM Token the next time you call this method. +/// \param completion The block to call when the HTTPS request has completed. +/// +- (void)callWithCompletion:(void (^ _Nonnull)(FIRHTTPSCallableResult * _Nullable, NSError * _Nullable))completion; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// Configuration options for a HTTPSCallable instance. +SWIFT_CLASS_NAMED("HTTPSCallableOptions") +@interface FIRHTTPSCallableOptions : NSObject +/// Whether or not to protect the callable function with a limited-use App Check token. +@property (nonatomic, readonly) BOOL requireLimitedUseAppCheckTokens; +/// Designated initializer. +/// \param requireLimitedUseAppCheckTokens A boolean used to decide whether or not to +/// protect the callable function with a limited use App Check token. +/// +- (nonnull instancetype)initWithRequireLimitedUseAppCheckTokens:(BOOL)requireLimitedUseAppCheckTokens OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A HTTPSCallableResult contains the result of calling a HTTPSCallable. +SWIFT_CLASS_NAMED("HTTPSCallableResult") +@interface FIRHTTPSCallableResult : NSObject +/// The data that was returned from the Callable HTTPS trigger. +/// The data is in the form of native objects. For example, if your trigger returned an +/// array, this object would be an Array. If your trigger returned a JavaScript object with +/// keys and values, this object would be an instance of [String: Any]. +@property (nonatomic, readonly) id _Nonnull data; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASEFUNCTIONS_SWIFT_H +#define FIREBASEFUNCTIONS_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else +#include +#include +#include +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +# define SWIFT_RELEASES_ARGUMENT #endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +714,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -260,22 +730,17 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseFunctions", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseFunctions",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) @@ -285,197 +750,158 @@ using UInt = size_t; @class FIRHTTPSCallableOptions; @class NSURL; -/// Functions is the client for Cloud Functions for a Firebase -/// project. +/// Functions is the client for Cloud Functions for a Firebase project. SWIFT_CLASS_NAMED("Functions") @interface FIRFunctions : NSObject -/// Creates a Cloud Functions client using the default or returns a pre-existing -/// instance if it already exists. +/// Creates a Cloud Functions client using the default or returns a pre-existing instance if it already exists. /// /// returns: -/// A shared Functions instance initialized with the default -/// FirebaseApp. -+ (FIRFunctions* _Nonnull)functions SWIFT_WARN_UNUSED_RESULT; -/// Creates a Cloud Functions client with the given app, or returns a -/// pre-existing instance if one already exists. \param app The app for the -/// Firebase project. +/// A shared Functions instance initialized with the default FirebaseApp. ++ (FIRFunctions * _Nonnull)functions SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app, or returns a pre-existing +/// instance if one already exists. +/// \param app The app for the Firebase project. /// /// /// returns: -/// A shared Functions instance initialized with the specified -/// FirebaseApp. -+ (FIRFunctions* _Nonnull)functionsForApp:(FIRApp* _Nonnull)app - SWIFT_WARN_UNUSED_RESULT; +/// A shared Functions instance initialized with the specified FirebaseApp. ++ (FIRFunctions * _Nonnull)functionsForApp:(FIRApp * _Nonnull)app SWIFT_WARN_UNUSED_RESULT; /// Creates a Cloud Functions client with the default app and given region. -/// \param region The region for the HTTP trigger, such as -/// us-central1. +/// \param region The region for the HTTP trigger, such as us-central1. /// /// /// returns: -/// A shared Functions instance initialized with the default -/// FirebaseApp and a custom region. -+ (FIRFunctions* _Nonnull)functionsForRegion:(NSString* _Nonnull)region - SWIFT_WARN_UNUSED_RESULT; -/// Creates a Cloud Functions client with the given app and region, or returns a -/// pre-existing instance if one already exists. \param customDomain A custom -/// domain for the HTTP trigger, such as “https //mydomain.com”. +/// A shared Functions instance initialized with the default FirebaseApp and a custom region. ++ (FIRFunctions * _Nonnull)functionsForRegion:(NSString * _Nonnull)region SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing +/// instance if one already exists. +/// \param customDomain A custom domain for the HTTP trigger, such as “https //mydomain.com”. /// /// /// returns: -/// A shared Functions instance initialized with the default -/// FirebaseApp and a custom HTTP trigger domain. -+ (FIRFunctions* _Nonnull)functionsForCustomDomain: - (NSString* _Nonnull)customDomain SWIFT_WARN_UNUSED_RESULT; -/// Creates a Cloud Functions client with the given app and region, or returns a -/// pre-existing instance if one already exists. \param app The app for the -/// Firebase project. +/// A shared Functions instance initialized with the default FirebaseApp and a custom HTTP trigger domain. ++ (FIRFunctions * _Nonnull)functionsForCustomDomain:(NSString * _Nonnull)customDomain SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing +/// instance if one already exists. +/// \param app The app for the Firebase project. /// -/// \param region The region for the HTTP trigger, such as -/// us-central1. +/// \param region The region for the HTTP trigger, such as us-central1. /// /// /// returns: /// An instance of Functions with a custom app and region. -+ (FIRFunctions* _Nonnull)functionsForApp:(FIRApp* _Nonnull)app - region:(NSString* _Nonnull)region - SWIFT_WARN_UNUSED_RESULT; -/// Creates a Cloud Functions client with the given app and region, or returns a -/// pre-existing instance if one already exists. \param app The app for the -/// Firebase project. ++ (FIRFunctions * _Nonnull)functionsForApp:(FIRApp * _Nonnull)app region:(NSString * _Nonnull)region SWIFT_WARN_UNUSED_RESULT; +/// Creates a Cloud Functions client with the given app and region, or returns a pre-existing +/// instance if one already exists. +/// \param app The app for the Firebase project. /// -/// \param customDomain A custom domain for the HTTP trigger, such as -/// https://mydomain.com. +/// \param customDomain A custom domain for the HTTP trigger, such as https://mydomain.com. /// /// /// returns: -/// An instance of Functions with a custom app and HTTP trigger -/// domain. -+ (FIRFunctions* _Nonnull)functionsForApp:(FIRApp* _Nonnull)app - customDomain:(NSString* _Nonnull)customDomain - SWIFT_WARN_UNUSED_RESULT; +/// An instance of Functions with a custom app and HTTP trigger domain. ++ (FIRFunctions * _Nonnull)functionsForApp:(FIRApp * _Nonnull)app customDomain:(NSString * _Nonnull)customDomain SWIFT_WARN_UNUSED_RESULT; /// Creates a reference to the Callable HTTPS trigger with the given name. /// \param name The name of the Callable HTTPS trigger. /// /// /// returns: /// A reference to a Callable HTTPS trigger. -- (FIRHTTPSCallable* _Nonnull)HTTPSCallableWithName:(NSString* _Nonnull)name - SWIFT_WARN_UNUSED_RESULT; -/// Creates a reference to the Callable HTTPS trigger with the given name and -/// configuration options. \param name The name of the Callable HTTPS trigger. +- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithName:(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT; +/// Creates a reference to the Callable HTTPS trigger with the given name and configuration +/// options. +/// \param name The name of the Callable HTTPS trigger. /// -/// \param options The options with which to customize the Callable HTTPS -/// trigger. +/// \param options The options with which to customize the Callable HTTPS trigger. /// /// /// returns: /// A reference to a Callable HTTPS trigger. -- (FIRHTTPSCallable* _Nonnull) - HTTPSCallableWithName:(NSString* _Nonnull)name - options:(FIRHTTPSCallableOptions* _Nonnull)options - SWIFT_WARN_UNUSED_RESULT; +- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithName:(NSString * _Nonnull)name options:(FIRHTTPSCallableOptions * _Nonnull)options SWIFT_WARN_UNUSED_RESULT; /// Creates a reference to the Callable HTTPS trigger with the given name. /// \param url The URL of the Callable HTTPS trigger. /// /// /// returns: /// A reference to a Callable HTTPS trigger. -- (FIRHTTPSCallable* _Nonnull)HTTPSCallableWithURL:(NSURL* _Nonnull)url - SWIFT_WARN_UNUSED_RESULT; -/// Creates a reference to the Callable HTTPS trigger with the given name and -/// configuration options. \param url The URL of the Callable HTTPS trigger. +- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithURL:(NSURL * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +/// Creates a reference to the Callable HTTPS trigger with the given name and configuration +/// options. +/// \param url The URL of the Callable HTTPS trigger. /// -/// \param options The options with which to customize the Callable HTTPS -/// trigger. +/// \param options The options with which to customize the Callable HTTPS trigger. /// /// /// returns: /// A reference to a Callable HTTPS trigger. -- (FIRHTTPSCallable* _Nonnull) - HTTPSCallableWithURL:(NSURL* _Nonnull)url - options:(FIRHTTPSCallableOptions* _Nonnull)options - SWIFT_WARN_UNUSED_RESULT; -/// Changes this instance to point to a Cloud Functions emulator running -/// locally. See https://firebase.google.com/docs/functions/local-emulator +- (FIRHTTPSCallable * _Nonnull)HTTPSCallableWithURL:(NSURL * _Nonnull)url options:(FIRHTTPSCallableOptions * _Nonnull)options SWIFT_WARN_UNUSED_RESULT; +/// Changes this instance to point to a Cloud Functions emulator running locally. +/// See https://firebase.google.com/docs/functions/local-emulator /// \param host The host of the local emulator, such as “localhost”. /// /// \param port The port of the local emulator, for example 5005. /// -- (void)useEmulatorWithHost:(NSString* _Nonnull)host port:(NSInteger)port; +- (void)useEmulatorWithHost:(NSString * _Nonnull)host port:(NSInteger)port; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -/// The set of error status codes that can be returned from a Callable HTTPS -/// tigger. These are the canonical error codes for Google APIs, as documented -/// here: +/// The set of error status codes that can be returned from a Callable HTTPS tigger. These are the +/// canonical error codes for Google APIs, as documented here: /// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto#L26 -typedef SWIFT_ENUM_NAMED(NSInteger, FIRFunctionsErrorCode, "FunctionsErrorCode", - open){ - /// The operation completed successfully. - FIRFunctionsErrorCodeOK = 0, - /// The operation was cancelled (typically by the caller). - FIRFunctionsErrorCodeCancelled = 1, - /// Unknown error or an error from a different error domain. - FIRFunctionsErrorCodeUnknown = 2, - /// Client specified an invalid argument. Note that this differs from - /// FailedPrecondition. - /// InvalidArgument indicates arguments that are problematic - /// regardless of the state of the - /// system (e.g., an invalid field name). - FIRFunctionsErrorCodeInvalidArgument = 3, - /// Deadline expired before operation could complete. For operations that - /// change the state of the - /// system, this error may be returned even if the operation has completed - /// successfully. For - /// example, a successful response from a server could have been delayed - /// long enough for the - /// deadline to expire. - FIRFunctionsErrorCodeDeadlineExceeded = 4, - /// Some requested document was not found. - FIRFunctionsErrorCodeNotFound = 5, - /// Some document that we attempted to create already exists. - FIRFunctionsErrorCodeAlreadyExists = 6, - /// The caller does not have permission to execute the specified operation. - FIRFunctionsErrorCodePermissionDenied = 7, - /// Some resource has been exhausted, perhaps a per-user quota, or perhaps - /// the entire file system - /// is out of space. - FIRFunctionsErrorCodeResourceExhausted = 8, - /// Operation was rejected because the system is not in a state required for - /// the operation’s - /// execution. - FIRFunctionsErrorCodeFailedPrecondition = 9, - /// The operation was aborted, typically due to a concurrency issue like - /// transaction aborts, etc. - FIRFunctionsErrorCodeAborted = 10, - /// Operation was attempted past the valid range. - FIRFunctionsErrorCodeOutOfRange = 11, - /// Operation is not implemented or not supported/enabled. - FIRFunctionsErrorCodeUnimplemented = 12, - /// Internal errors. Means some invariant expected by underlying system has - /// been broken. If you - /// see one of these errors, something is very broken. - FIRFunctionsErrorCodeInternal = 13, - /// The service is currently unavailable. This is a most likely a transient - /// condition and may be - /// corrected by retrying with a backoff. - FIRFunctionsErrorCodeUnavailable = 14, - /// Unrecoverable data loss or corruption. - FIRFunctionsErrorCodeDataLoss = 15, - /// The request does not have valid authentication credentials for the - /// operation. - FIRFunctionsErrorCodeUnauthenticated = 16, +typedef SWIFT_ENUM_NAMED(NSInteger, FIRFunctionsErrorCode, "FunctionsErrorCode", open) { +/// The operation completed successfully. + FIRFunctionsErrorCodeOK = 0, +/// The operation was cancelled (typically by the caller). + FIRFunctionsErrorCodeCancelled = 1, +/// Unknown error or an error from a different error domain. + FIRFunctionsErrorCodeUnknown = 2, +/// Client specified an invalid argument. Note that this differs from FailedPrecondition. +/// InvalidArgument indicates arguments that are problematic regardless of the state of the +/// system (e.g., an invalid field name). + FIRFunctionsErrorCodeInvalidArgument = 3, +/// Deadline expired before operation could complete. For operations that change the state of the +/// system, this error may be returned even if the operation has completed successfully. For +/// example, a successful response from a server could have been delayed long enough for the +/// deadline to expire. + FIRFunctionsErrorCodeDeadlineExceeded = 4, +/// Some requested document was not found. + FIRFunctionsErrorCodeNotFound = 5, +/// Some document that we attempted to create already exists. + FIRFunctionsErrorCodeAlreadyExists = 6, +/// The caller does not have permission to execute the specified operation. + FIRFunctionsErrorCodePermissionDenied = 7, +/// Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system +/// is out of space. + FIRFunctionsErrorCodeResourceExhausted = 8, +/// Operation was rejected because the system is not in a state required for the operation’s +/// execution. + FIRFunctionsErrorCodeFailedPrecondition = 9, +/// The operation was aborted, typically due to a concurrency issue like transaction aborts, etc. + FIRFunctionsErrorCodeAborted = 10, +/// Operation was attempted past the valid range. + FIRFunctionsErrorCodeOutOfRange = 11, +/// Operation is not implemented or not supported/enabled. + FIRFunctionsErrorCodeUnimplemented = 12, +/// Internal errors. Means some invariant expected by underlying system has been broken. If you +/// see one of these errors, something is very broken. + FIRFunctionsErrorCodeInternal = 13, +/// The service is currently unavailable. This is a most likely a transient condition and may be +/// corrected by retrying with a backoff. + FIRFunctionsErrorCodeUnavailable = 14, +/// Unrecoverable data loss or corruption. + FIRFunctionsErrorCodeDataLoss = 15, +/// The request does not have valid authentication credentials for the operation. + FIRFunctionsErrorCodeUnauthenticated = 16, }; @class FIRHTTPSCallableResult; -/// A HTTPSCallable is a reference to a particular Callable HTTPS -/// trigger in Cloud Functions. +/// A HTTPSCallable is a reference to a particular Callable HTTPS trigger in Cloud Functions. SWIFT_CLASS_NAMED("HTTPSCallable") @interface FIRHTTPSCallable : NSObject /// The timeout to use when calling the function. Defaults to 70 seconds. -@property(nonatomic) NSTimeInterval timeoutInterval; +@property (nonatomic) NSTimeInterval timeoutInterval; /// Executes this Callable HTTPS trigger asynchronously. /// The data passed into the trigger can be any of the following types: ///
        @@ -486,74 +912,64 @@ SWIFT_CLASS_NAMED("HTTPSCallable") /// String /// ///
      • -/// NSNumber, or any Swift numeric type bridgeable to -/// NSNumber +/// NSNumber, or any Swift numeric type bridgeable to NSNumber ///
      • ///
      • -/// [Any], where the contained objects are also one of these -/// types. +/// [Any], where the contained objects are also one of these types. ///
      • ///
      • /// [String: Any] where the values are also one of these types. ///
      • ///
      -/// The request to the Cloud Functions backend made by this method automatically -/// includes a Firebase Installations ID token to identify the app instance. If -/// a user is logged in with Firebase Auth, an auth ID token for the user is -/// also automatically included. Firebase Cloud Messaging sends data to the -/// Firebase backend periodically to collect information regarding the app -/// instance. To stop this, see Messaging.deleteData(). It resumes -/// with a new FCM Token the next time you call this method. \param data -/// Parameters to pass to the trigger. +/// The request to the Cloud Functions backend made by this method automatically includes a +/// Firebase Installations ID token to identify the app instance. If a user is logged in with +/// Firebase Auth, an auth ID token for the user is also automatically included. +/// Firebase Cloud Messaging sends data to the Firebase backend periodically to collect information +/// regarding the app instance. To stop this, see Messaging.deleteData(). It +/// resumes with a new FCM Token the next time you call this method. +/// \param data Parameters to pass to the trigger. /// /// \param completion The block to call when the HTTPS request has completed. /// -- (void)callWithObject:(id _Nullable)data - completion:(void (^_Nonnull)(FIRHTTPSCallableResult* _Nullable, - NSError* _Nullable))completion; -/// Executes this Callable HTTPS trigger asynchronously. This API should only be -/// used from Objective-C. The request to the Cloud Functions backend made by -/// this method automatically includes a Firebase Installations ID token to -/// identify the app instance. If a user is logged in with Firebase Auth, an -/// auth ID token for the user is also automatically included. Firebase Cloud -/// Messaging sends data to the Firebase backend periodically to collect -/// information regarding the app instance. To stop this, see -/// Messaging.deleteData(). It resumes with a new FCM Token the -/// next time you call this method. \param completion The block to call when the -/// HTTPS request has completed. -/// -- (void)callWithCompletion:(void (^_Nonnull)(FIRHTTPSCallableResult* _Nullable, - NSError* _Nullable))completion; +- (void)callWithObject:(id _Nullable)data completion:(void (^ _Nonnull)(FIRHTTPSCallableResult * _Nullable, NSError * _Nullable))completion; +/// Executes this Callable HTTPS trigger asynchronously. This API should only be used from Objective-C. +/// The request to the Cloud Functions backend made by this method automatically includes a +/// Firebase Installations ID token to identify the app instance. If a user is logged in with +/// Firebase Auth, an auth ID token for the user is also automatically included. +/// Firebase Cloud Messaging sends data to the Firebase backend periodically to collect information +/// regarding the app instance. To stop this, see Messaging.deleteData(). It +/// resumes with a new FCM Token the next time you call this method. +/// \param completion The block to call when the HTTPS request has completed. +/// +- (void)callWithCompletion:(void (^ _Nonnull)(FIRHTTPSCallableResult * _Nullable, NSError * _Nullable))completion; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end + /// Configuration options for a HTTPSCallable instance. SWIFT_CLASS_NAMED("HTTPSCallableOptions") @interface FIRHTTPSCallableOptions : NSObject -/// Whether or not to protect the callable function with a limited-use App Check -/// token. -@property(nonatomic, readonly) BOOL requireLimitedUseAppCheckTokens; +/// Whether or not to protect the callable function with a limited-use App Check token. +@property (nonatomic, readonly) BOOL requireLimitedUseAppCheckTokens; /// Designated initializer. -/// \param requireLimitedUseAppCheckTokens A boolean used to decide whether or -/// not to protect the callable function with a limited use App Check token. +/// \param requireLimitedUseAppCheckTokens A boolean used to decide whether or not to +/// protect the callable function with a limited use App Check token. /// -- (nonnull instancetype)initWithRequireLimitedUseAppCheckTokens: - (BOOL)requireLimitedUseAppCheckTokens OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)initWithRequireLimitedUseAppCheckTokens:(BOOL)requireLimitedUseAppCheckTokens OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -/// A HTTPSCallableResult contains the result of calling a -/// HTTPSCallable. + +/// A HTTPSCallableResult contains the result of calling a HTTPSCallable. SWIFT_CLASS_NAMED("HTTPSCallableResult") @interface FIRHTTPSCallableResult : NSObject /// The data that was returned from the Callable HTTPS trigger. -/// The data is in the form of native objects. For example, if your trigger -/// returned an array, this object would be an Array. If your -/// trigger returned a JavaScript object with keys and values, this object would -/// be an instance of [String: Any]. -@property(nonatomic, readonly) id _Nonnull data; +/// The data is in the form of native objects. For example, if your trigger returned an +/// array, this object would be an Array. If your trigger returned a JavaScript object with +/// keys and values, this object would be an instance of [String: Any]. +@property (nonatomic, readonly) id _Nonnull data; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -562,7 +978,7 @@ SWIFT_CLASS_NAMED("HTTPSCallableResult") #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h b/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h index fb3c932155..d2af1b5634 100644 --- a/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASEINAPPMESSAGINGSWIFT_SWIFT_H #define FIREBASEINAPPMESSAGINGSWIFT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,451 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseInAppMessagingSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASEINAPPMESSAGINGSWIFT_SWIFT_H +#define FIREBASEINAPPMESSAGINGSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +#include +#include +#include #endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +482,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -258,23 +496,17 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", \ - defined_in = "FirebaseInAppMessagingSwift", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseInAppMessagingSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) @@ -282,7 +514,7 @@ using UInt = size_t; #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h b/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h index 0e5794908d..35321258b7 100644 --- a/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h +++ b/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASEMLMODELDOWNLOADER_SWIFT_H #define FIREBASEMLMODELDOWNLOADER_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,453 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction #endif #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept +#endif #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseMLModelDownloader",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + + +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASEMLMODELDOWNLOADER_SWIFT_H +#define FIREBASEMLMODELDOWNLOADER_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +#include +#include +#include +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class #endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +484,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -258,31 +498,27 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseMLModelDownloader", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseMLModelDownloader",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) + #endif #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h b/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h index 3f9dc697ef..420822559a 100644 --- a/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASEREMOTECONFIGSWIFT_SWIFT_H #define FIREBASEREMOTECONFIGSWIFT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,454 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction #endif #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept +#endif #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseRemoteConfigSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + + + +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASEREMOTECONFIGSWIFT_SWIFT_H +#define FIREBASEREMOTECONFIGSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else +#include +#include +#include +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +485,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -258,31 +499,28 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseRemoteConfigSwift", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseRemoteConfigSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) + + #endif #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h b/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h index 05637e6b53..4b7ae4643d 100644 --- a/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASESHAREDSWIFT_SWIFT_H #define FIREBASESHAREDSWIFT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,451 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseSharedSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASESHAREDSWIFT_SWIFT_H +#define FIREBASESHAREDSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +#include +#include +#include #endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +482,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -258,22 +496,17 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseSharedSwift", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseSharedSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) @@ -281,7 +514,7 @@ using UInt = size_t; #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/FirebaseStorage-Swift.h b/ios_pod/swift_headers/FirebaseStorage-Swift.h index 8899440e1a..eb7a268be0 100644 --- a/ios_pod/swift_headers/FirebaseStorage-Swift.h +++ b/ios_pod/swift_headers/FirebaseStorage-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASESTORAGE_SWIFT_H #define FIREBASESTORAGE_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,1019 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction #endif #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept +#endif #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Dispatch; +@import Foundation; +@import ObjectiveC; +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseStorage",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) +@class NSString; +@class FIRApp; +@class FIRStorageReference; + +/// Firebase Storage is a service that supports uploading and downloading binary objects, +/// such as images, videos, and other files to Google Cloud Storage. Instances of Storage +/// are not thread-safe. +/// If you call Storage.storage(), the instance will initialize with the default FirebaseApp, +/// FirebaseApp.app(), and the storage location will come from the provided +/// GoogleService-Info.plist. +/// If you provide a custom instance of FirebaseApp, +/// the storage location will be specified via the FirebaseOptions.storageBucket property. +SWIFT_CLASS_NAMED("Storage") +@interface FIRStorage : NSObject +/// The default Storage instance. +/// +/// returns: +/// An instance of Storage, configured with the default FirebaseApp. ++ (FIRStorage * _Nonnull)storage SWIFT_WARN_UNUSED_RESULT; +/// A method used to create Storage instances initialized with a custom storage bucket URL. +/// Any StorageReferences generated from this instance of Storage will reference files +/// and directories within the specified bucket. +/// \param url The gs:// URL to your Firebase Storage bucket. +/// +/// +/// returns: +/// A Storage instance, configured with the custom storage bucket. ++ (FIRStorage * _Nonnull)storageWithURL:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +/// Creates an instance of Storage, configured with a custom FirebaseApp. StorageReferences +/// generated from a resulting instance will reference files in the Firebase project +/// associated with custom FirebaseApp. +/// \param app The custom FirebaseApp used for initialization. +/// +/// +/// returns: +/// A Storage instance, configured with the custom FirebaseApp. ++ (FIRStorage * _Nonnull)storageForApp:(FIRApp * _Nonnull)app SWIFT_WARN_UNUSED_RESULT; +/// Creates an instance of Storage, configured with a custom FirebaseApp and a custom storage +/// bucket URL. +/// \param app The custom FirebaseApp used for initialization. +/// +/// \param url The gs:// url to your Firebase Storage bucket. +/// +/// +/// returns: +/// the Storage instance, configured with the custom FirebaseApp and storage bucket URL. ++ (FIRStorage * _Nonnull)storageForApp:(FIRApp * _Nonnull)app URL:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +/// The FirebaseApp associated with this Storage instance. +@property (nonatomic, readonly, strong) FIRApp * _Nonnull app; +/// The maximum time in seconds to retry an upload if a failure occurs. +/// Defaults to 10 minutes (600 seconds). +@property (nonatomic) NSTimeInterval maxUploadRetryTime; +/// The maximum time in seconds to retry a download if a failure occurs. +/// Defaults to 10 minutes (600 seconds). +@property (nonatomic) NSTimeInterval maxDownloadRetryTime; +/// The maximum time in seconds to retry operations other than upload and download if a failure occurs. +/// Defaults to 2 minutes (120 seconds). +@property (nonatomic) NSTimeInterval maxOperationRetryTime; +/// Specify the maximum upload chunk size. Values less than 256K (262144) will be rounded up to 256K. Values +/// above 256K will be rounded down to the nearest 256K multiple. The default is no maximum. +@property (nonatomic) int64_t uploadChunkSizeBytes; +/// A DispatchQueue that all developer callbacks are fired on. Defaults to the main queue. +@property (nonatomic, strong) dispatch_queue_t _Nonnull callbackQueue; +/// Creates a StorageReference initialized at the root Firebase Storage location. +/// +/// returns: +/// An instance of StorageReference referencing the root of the storage bucket. +- (FIRStorageReference * _Nonnull)reference SWIFT_WARN_UNUSED_RESULT; +/// Creates a StorageReference given a gs://, http://, or https:// URL pointing to a +/// Firebase Storage location. For example, you can pass in an https:// download URL retrieved from +/// StorageReference.downloadURL(completion:) or the gs:// URL from +/// StorageReference.description. +/// \param url A gs // or https:// URL to initialize the reference with. +/// +/// +/// throws: +/// Throws a fatal error if url is not associated with the FirebaseApp used to initialize +/// this Storage instance. +/// +/// returns: +/// An instance of StorageReference at the given child path. +- (FIRStorageReference * _Nonnull)referenceForURL:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +/// Creates a StorageReference initialized at a location specified by the path parameter. +/// \param path A relative path from the root of the storage bucket, +/// for instance @“path/to/object”. +/// +/// +/// returns: +/// An instance of StorageReference pointing to the given path. +- (FIRStorageReference * _Nonnull)referenceWithPath:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT; +/// Configures the Storage SDK to use an emulated backend instead of the default remote backend. +/// This method should be called before invoking any other methods on a new instance of Storage. +- (void)useEmulatorWithHost:(NSString * _Nonnull)host port:(NSInteger)port; +- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +@property (nonatomic, readonly) NSUInteger hash; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// Defines task operations such as pause, resume, cancel, and enqueue for all tasks. +/// All tasks are required to implement enqueue, which begins the task, and may optionally +/// implement pause, resume, and cancel, which operate on the task to pause, resume, and cancel +/// operations. +SWIFT_PROTOCOL_NAMED("StorageTaskManagement") +@protocol FIRStorageTaskManagement +/// Prepares a task and begins execution. +- (void)enqueue; +@optional +/// Pauses a task currently in progress. +- (void)pause; +/// Cancels a task. +- (void)cancel; +/// Resumes a paused task. +- (void)resume; +@end + +@class FIRStorageTaskSnapshot; + +/// A superclass to all Storage tasks, including StorageUploadTask +/// and StorageDownloadTask, to provide state transitions, event raising, and common storage +/// for metadata and errors. +/// Callbacks are always fired on the developer-specified callback queue. +/// If no queue is specified, it defaults to the main queue. +/// This class is not thread safe, so only call methods on the main thread. +SWIFT_CLASS_NAMED("StorageTask") +@interface FIRStorageTask : NSObject +/// An immutable view of the task and associated metadata, progress, error, etc. +@property (nonatomic, readonly, strong) FIRStorageTaskSnapshot * _Nonnull snapshot; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +enum FIRStorageTaskStatus : NSInteger; + +/// An extended StorageTask providing observable semantics that can be used for responding to changes +/// in task state. +/// Observers produce a StorageHandle, which is used to keep track of and remove specific +/// observers at a later date. +/// This class is not thread safe and can only be called on the main thread. +SWIFT_CLASS_NAMED("StorageObservableTask") +@interface FIRStorageObservableTask : FIRStorageTask +/// Observes changes in the upload status: Resume, Pause, Progress, Success, and Failure. +/// \param status The StorageTaskStatus change to observe. +/// +/// \param handler A callback that fires every time the status event occurs, +/// containing a StorageTaskSnapshot describing task state. +/// +/// +/// returns: +/// A task handle that can be used to remove the observer at a later date. +- (NSString * _Nonnull)observeStatus:(enum FIRStorageTaskStatus)status handler:(void (^ _Nonnull)(FIRStorageTaskSnapshot * _Nonnull))handler; +/// Removes the single observer with the provided handle. +/// \param handle The handle of the task to remove. +/// +- (void)removeObserverWithHandle:(NSString * _Nonnull)handle; +/// Removes all observers for a single status. +/// \param status A StorageTaskStatus to remove all listeners for. +/// +- (void)removeAllObserversForStatus:(enum FIRStorageTaskStatus)status; +/// Removes all observers. +- (void)removeAllObservers; +@end + + +/// StorageDownloadTask implements resumable downloads from an object in Firebase Storage. +/// Downloads can be returned on completion with a completion handler, and can be monitored +/// by attaching observers, or controlled by calling pause(), resume(), +/// or cancel(). +/// Downloads can currently be returned as Data in memory, or as a URL to a file on disk. +/// Downloads are performed on a background queue, and callbacks are raised on the developer +/// specified callbackQueue in Storage, or the main queue if left unspecified. +/// Currently all downloads must be initiated and managed on the main queue. +SWIFT_CLASS_NAMED("StorageDownloadTask") +@interface FIRStorageDownloadTask : FIRStorageObservableTask +/// Prepares a task and begins execution. +- (void)enqueue; +/// Pauses a task currently in progress. Calling this on a paused task has no effect. +- (void)pause; +/// Cancels a task. +- (void)cancel; +/// Resumes a paused task. Calling this on a running task has no effect. +- (void)resume; +@end + +/// Adds wrappers for common Firebase Storage errors (including creating errors from GCS errors). +/// For more information on unwrapping GCS errors, see the GCS errors docs: +/// https://cloud.google.com/storage/docs/json_api/v1/status-codes +/// This is never publicly exposed to end developers (as they will simply see an NSError). +typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageErrorCode, "StorageErrorCode", open) { + FIRStorageErrorCodeUnknown = -13000, + FIRStorageErrorCodeObjectNotFound = -13010, + FIRStorageErrorCodeBucketNotFound = -13011, + FIRStorageErrorCodeProjectNotFound = -13012, + FIRStorageErrorCodeQuotaExceeded = -13013, + FIRStorageErrorCodeUnauthenticated = -13020, + FIRStorageErrorCodeUnauthorized = -13021, + FIRStorageErrorCodeRetryLimitExceeded = -13030, + FIRStorageErrorCodeNonMatchingChecksum = -13031, + FIRStorageErrorCodeDownloadSizeExceeded = -13032, + FIRStorageErrorCodeCancelled = -13040, + FIRStorageErrorCodeInvalidArgument = -13050, +}; +static NSString * _Nonnull const FIRStorageErrorCodeDomain = @"FirebaseStorage.StorageErrorCode"; + + +/// Contains the prefixes and items returned by a StorageReference.list() call. +SWIFT_CLASS_NAMED("StorageListResult") +@interface FIRStorageListResult : NSObject +/// The prefixes (folders) returned by a list() operation. +/// +/// returns: +/// A list of prefixes (folders). +@property (nonatomic, readonly, copy) NSArray * _Nonnull prefixes; +/// The objects (files) returned by a list() operation. +/// +/// returns: +/// A page token if more results are available. +@property (nonatomic, readonly, copy) NSArray * _Nonnull items; +/// Returns a token that can be used to resume a previous list() operation. nil +/// indicates that there are no more results. +/// +/// returns: +/// A page token if more results are available. +@property (nonatomic, readonly, copy) NSString * _Nullable pageToken; +- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class NSDate; + +/// Class which represents the metadata on an object in Firebase Storage. This metadata is +/// returned on successful operations, and can be used to retrieve download URLs, content types, +/// and a Storage reference to the object in question. Full documentation can be found at the GCS +/// Objects#resource docs. +/// @see https://cloud.google.com/storage/docs/json_api/v1/objects#resource +SWIFT_CLASS_NAMED("StorageMetadata") +@interface FIRStorageMetadata : NSObject +/// The name of the bucket containing this object. +@property (nonatomic, readonly, copy) NSString * _Nonnull bucket; +/// Cache-Control directive for the object data. +@property (nonatomic, copy) NSString * _Nullable cacheControl; +/// Content-Disposition of the object data. +@property (nonatomic, copy) NSString * _Nullable contentDisposition; +/// Content-Encoding of the object data. +@property (nonatomic, copy) NSString * _Nullable contentEncoding; +/// Content-Language of the object data. +@property (nonatomic, copy) NSString * _Nullable contentLanguage; +/// Content-Type of the object data. +@property (nonatomic, copy) NSString * _Nullable contentType; +/// MD5 hash of the data; encoded using base64. +@property (nonatomic, readonly, copy) NSString * _Nullable md5Hash; +/// The content generation of this object. Used for object versioning. +@property (nonatomic, readonly) int64_t generation; +/// User-provided metadata, in key/value pairs. +@property (nonatomic, copy) NSDictionary * _Nullable customMetadata; +/// The version of the metadata for this object at this generation. Used +/// for preconditions and for detecting changes in metadata. A metageneration number is only +/// meaningful in the context of a particular generation of a particular object. +@property (nonatomic, readonly) int64_t metageneration; +/// The name of this object, in gs://bucket/path/to/object.txt, this is object.txt. +@property (nonatomic, readonly, copy) NSString * _Nullable name; +/// The full path of this object, in gs://bucket/path/to/object.txt, this is path/to/object.txt. +@property (nonatomic, readonly, copy) NSString * _Nullable path; +/// Content-Length of the data in bytes. +@property (nonatomic, readonly) int64_t size; +/// The creation time of the object in RFC 3339 format. +@property (nonatomic, readonly, copy) NSDate * _Nullable timeCreated; +/// The modification time of the object metadata in RFC 3339 format. +@property (nonatomic, readonly, copy) NSDate * _Nullable updated; +/// Never used API +@property (nonatomic, readonly, strong) FIRStorageReference * _Nullable storageReference SWIFT_DEPRECATED; +/// Creates a Dictionary from the contents of the metadata. +/// @return A Dictionary that represents the contents of the metadata. +- (NSDictionary * _Nonnull)dictionaryRepresentation SWIFT_WARN_UNUSED_RESULT; +/// Determines if the current metadata represents a “file”. +@property (nonatomic, readonly) BOOL isFile; +/// Determines if the current metadata represents a “folder”. +@property (nonatomic, readonly) BOOL isFolder; +- (nonnull instancetype)init; +/// Creates an instance of StorageMetadata from the contents of a dictionary. +/// @return An instance of StorageMetadata that represents the contents of a dictionary. +- (nonnull instancetype)initWithDictionary:(NSDictionary * _Nonnull)dictionary OBJC_DESIGNATED_INITIALIZER; +- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +@property (nonatomic, readonly) NSUInteger hash; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +@end + + +@class NSData; +@class FIRStorageUploadTask; +@class NSURL; + +/// StorageReference represents a reference to a Google Cloud Storage object. Developers can +/// upload and download objects, as well as get/set object metadata, and delete an object at the +/// path. See the Cloud docs for more details: https://cloud.google.com/storage/ +SWIFT_CLASS_NAMED("StorageReference") +@interface FIRStorageReference : NSObject +/// The Storage service object which created this reference. +@property (nonatomic, readonly, strong) FIRStorage * _Nonnull storage; +/// The name of the Google Cloud Storage bucket associated with this reference. +/// For example, in gs://bucket/path/to/object.txt, the bucket would be ‘bucket’. +@property (nonatomic, readonly, copy) NSString * _Nonnull bucket; +/// The full path to this object, not including the Google Cloud Storage bucket. +/// In gs://bucket/path/to/object.txt, the full path would be: path/to/object.txt +@property (nonatomic, readonly, copy) NSString * _Nonnull fullPath; +/// The short name of the object associated with this reference. +/// In gs://bucket/path/to/object.txt, the name of the object would be object.txt. +@property (nonatomic, readonly, copy) NSString * _Nonnull name; +/// Creates a new StorageReference pointing to the root object. +/// +/// returns: +/// A new StorageReference pointing to the root object. +- (FIRStorageReference * _Nonnull)root SWIFT_WARN_UNUSED_RESULT; +/// Creates a new StorageReference pointing to the parent of the current reference +/// or nil if this instance references the root location. +/// For example: +/// path = foo/bar/baz parent = foo/bar +/// path = foo parent = (root) +/// path = (root) parent = nil +/// +/// returns: +/// A new StorageReference pointing to the parent of the current reference. +- (FIRStorageReference * _Nullable)parent SWIFT_WARN_UNUSED_RESULT; +/// Creates a new StorageReference pointing to a child object of the current reference. +/// path = foo child = bar newPath = foo/bar +/// path = foo/bar child = baz ntask.impl.snapshotwPath = foo/bar/baz +/// All leading and trailing slashes will be removed, and consecutive slashes will be +/// compressed to single slashes. For example: +/// child = /foo/bar newPath = foo/bar +/// child = foo/bar/ newPath = foo/bar +/// child = foo///bar newPath = foo/bar +/// \param path The path to append to the current path. +/// +/// +/// returns: +/// A new StorageReference pointing to a child location of the current reference. +- (FIRStorageReference * _Nonnull)child:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT; +/// Asynchronously uploads data to the currently specified StorageReference, +/// without additional metadata. +/// This is not recommended for large files, and one should instead upload a file from disk. +/// \param uploadData The data to upload. +/// +/// \param metadata StorageMetadata containing additional information (MIME type, etc.) +/// about the object being uploaded. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putData:(NSData * _Nonnull)uploadData metadata:(FIRStorageMetadata * _Nullable)metadata; +/// Asynchronously uploads data to the currently specified StorageReference. +/// This is not recommended for large files, and one should instead upload a file from disk. +/// \param uploadData The data to upload. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putData:(NSData * _Nonnull)uploadData; +/// Asynchronously uploads data to the currently specified StorageReference. +/// This is not recommended for large files, and one should instead upload a file from disk. +/// \param uploadData The data to upload. +/// +/// \param metadata StorageMetadata containing additional information (MIME type, etc.) +/// about the object being uploaded. +/// +/// \param completion A closure that either returns the object metadata on success, +/// or an error on failure. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putData:(NSData * _Nonnull)uploadData metadata:(FIRStorageMetadata * _Nullable)metadata completion:(void (^ _Nullable)(FIRStorageMetadata * _Nullable, NSError * _Nullable))completion; +/// Asynchronously uploads a file to the currently specified StorageReference. +/// putData should be used instead of putFile in Extensions. +/// \param fileURL A URL representing the system file path of the object to be uploaded. +/// +/// \param metadata StorageMetadata containing additional information (MIME type, etc.) +/// about the object being uploaded. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putFile:(NSURL * _Nonnull)fileURL metadata:(FIRStorageMetadata * _Nullable)metadata; +/// Asynchronously uploads a file to the currently specified StorageReference, +/// without additional metadata. +/// putData should be used instead of putFile in Extensions. +/// @param fileURL A URL representing the system file path of the object to be uploaded. +/// @return An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putFile:(NSURL * _Nonnull)fileURL; +/// Asynchronously uploads a file to the currently specified StorageReference. +/// putData should be used instead of putFile in Extensions. +/// \param fileURL A URL representing the system file path of the object to be uploaded. +/// +/// \param metadata StorageMetadata containing additional information (MIME type, etc.) +/// about the object being uploaded. +/// +/// \param completion A completion block that either returns the object metadata on success, +/// or an error on failure. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putFile:(NSURL * _Nonnull)fileURL metadata:(FIRStorageMetadata * _Nullable)metadata completion:(void (^ _Nullable)(FIRStorageMetadata * _Nullable, NSError * _Nullable))completion; +/// Asynchronously downloads the object at the StorageReference to a Data instance in memory. +/// A Data buffer of the provided max size will be allocated, so ensure that the device has enough free +/// memory to complete the download. For downloading large files, write(toFile:) may be a better option. +/// \param maxSize The maximum size in bytes to download. If the download exceeds this size, +/// the task will be cancelled and an error will be returned. +/// +/// \param completion A completion block that either returns the object data on success, +/// or an error on failure. +/// +/// +/// returns: +/// An StorageDownloadTask that can be used to monitor or manage the download. +- (FIRStorageDownloadTask * _Nonnull)dataWithMaxSize:(int64_t)maxSize completion:(void (^ _Nonnull)(NSData * _Nullable, NSError * _Nullable))completion; +/// Asynchronously retrieves a long lived download URL with a revokable token. +/// This can be used to share the file with others, but can be revoked by a developer +/// in the Firebase Console. +/// \param completion A completion block that either returns the URL on success, +/// or an error on failure. +/// +- (void)downloadURLWithCompletion:(void (^ _Nonnull)(NSURL * _Nullable, NSError * _Nullable))completion; +/// Asynchronously downloads the object at the current path to a specified system filepath. +///
        +///
      • +/// Returns An StorageDownloadTask that can be used to monitor or manage the download. +///
      • +///
      +/// \param fileURL A file system URL representing the path the object should be downloaded to. +/// +- (FIRStorageDownloadTask * _Nonnull)writeToFile:(NSURL * _Nonnull)fileURL; +/// Asynchronously downloads the object at the current path to a specified system filepath. +/// \param fileURL A file system URL representing the path the object should be downloaded to. +/// +/// \param completion A closure that fires when the file download completes, passed either +/// a URL pointing to the file path of the downloaded file on success, +/// or an error on failure. +/// +/// +/// returns: +/// A StorageDownloadTask that can be used to monitor or manage the download. +- (FIRStorageDownloadTask * _Nonnull)writeToFile:(NSURL * _Nonnull)fileURL completion:(void (^ _Nullable)(NSURL * _Nullable, NSError * _Nullable))completion; +/// Lists all items (files) and prefixes (folders) under this StorageReference. +/// This is a helper method for calling list() repeatedly until there are no more results. +/// Consistency of the result is not guaranteed if objects are inserted or removed while this +/// operation is executing. All results are buffered in memory. +/// listAll(completion:) is only available for projects using Firebase Rules Version 2. +/// \param completion A completion handler that will be invoked with all items and prefixes under +/// the current StorageReference. +/// +- (void)listAllWithCompletion:(void (^ _Nonnull)(FIRStorageListResult * _Nullable, NSError * _Nullable))completion; +/// List up to maxResults items (files) and prefixes (folders) under this StorageReference. +/// “/” is treated as a path delimiter. Firebase Storage does not support unsupported object +/// paths that end with “/” or contain two consecutive “/“s. All invalid objects in GCS will be +/// filtered. +/// list(maxResults:completion:) is only available for projects using Firebase Rules Version 2. +/// \param maxResults The maximum number of results to return in a single page. Must be greater +/// than 0 and at most 1000. +/// +/// \param completion A completion handler that will be invoked with up to maxResults items and +/// prefixes under the current StorageReference. +/// +- (void)listWithMaxResults:(int64_t)maxResults completion:(void (^ _Nonnull)(FIRStorageListResult * _Nullable, NSError * _Nullable))completion; +/// Resumes a previous call to list(maxResults:completion:), starting after a pagination token. +/// Returns the next set of items (files) and prefixes (folders) under this StorageReference. +/// “/” is treated as a path delimiter. Storage does not support unsupported object +/// paths that end with “/” or contain two consecutive “/“s. All invalid objects in GCS will be +/// filtered. +/// list(maxResults:pageToken:completion:)is only available for projects using Firebase Rules +/// Version 2. +/// \param maxResults The maximum number of results to return in a single page. Must be greater +/// than 0 and at most 1000. +/// +/// \param pageToken A page token from a previous call to list. +/// +/// \param completion A completion handler that will be invoked with the next items and prefixes +/// under the current StorageReference. +/// +- (void)listWithMaxResults:(int64_t)maxResults pageToken:(NSString * _Nonnull)pageToken completion:(void (^ _Nonnull)(FIRStorageListResult * _Nullable, NSError * _Nullable))completion; +/// Retrieves metadata associated with an object at the current path. +/// \param completion A completion block which returns the object metadata on success, +/// or an error on failure. +/// +- (void)metadataWithCompletion:(void (^ _Nonnull)(FIRStorageMetadata * _Nullable, NSError * _Nullable))completion; +/// Updates the metadata associated with an object at the current path. +/// \param metadata A StorageMetadata object with the metadata to update. +/// +/// \param completion A completion block which returns the StorageMetadata on success, +/// or an error on failure. +/// +- (void)updateMetadata:(FIRStorageMetadata * _Nonnull)metadata completion:(void (^ _Nullable)(FIRStorageMetadata * _Nullable, NSError * _Nullable))completion; +/// Deletes the object at the current path. +/// \param completion A completion block which returns a nonnull error on failure. +/// +- (void)deleteWithCompletion:(void (^ _Nullable)(NSError * _Nullable))completion; +- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +@property (nonatomic, readonly) NSUInteger hash; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + + + +@class NSProgress; + +/// StorageTaskSnapshot represents an immutable view of a task. +/// A snapshot contains a task, storage reference, metadata (if it exists), +/// progress, and an error (if one occurred). +SWIFT_CLASS_NAMED("StorageTaskSnapshot") +@interface FIRStorageTaskSnapshot : NSObject +/// The task this snapshot represents. +@property (nonatomic, readonly, strong) FIRStorageTask * _Nonnull task; +/// Metadata returned by the task, or nil if no metadata returned. +@property (nonatomic, readonly, strong) FIRStorageMetadata * _Nullable metadata; +/// The StorageReference this task operates on. +@property (nonatomic, readonly, strong) FIRStorageReference * _Nonnull reference; +/// An object which tracks the progress of an upload or download. +@property (nonatomic, readonly, strong) NSProgress * _Nullable progress; +/// An error raised during task execution, or nil if no error occurred. +@property (nonatomic, readonly) NSError * _Nullable error; +/// The status of the task. +@property (nonatomic, readonly) enum FIRStorageTaskStatus status; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageTaskStatus, "StorageTaskStatus", open) { + FIRStorageTaskStatusUnknown = 0, + FIRStorageTaskStatusResume = 1, + FIRStorageTaskStatusProgress = 2, + FIRStorageTaskStatusPause = 3, + FIRStorageTaskStatusSuccess = 4, + FIRStorageTaskStatusFailure = 5, +}; + + +/// StorageUploadTask implements resumable uploads to a file in Firebase Storage. +/// Uploads can be returned on completion with a completion callback, and can be monitored +/// by attaching observers, or controlled by calling pause(), resume(), +/// or cancel(). +/// Uploads can be initialized from Data in memory, or a URL to a file on disk. +/// Uploads are performed on a background queue, and callbacks are raised on the developer +/// specified callbackQueue in Storage, or the main queue if unspecified. +/// Currently all uploads must be initiated and managed on the main queue. +SWIFT_CLASS_NAMED("StorageUploadTask") +@interface FIRStorageUploadTask : FIRStorageObservableTask +/// Prepares a task and begins execution. +- (void)enqueue; +/// Pauses a task currently in progress. +- (void)pause; +/// Cancels a task. +- (void)cancel; +/// Resumes a paused task. +- (void)resume; +@end + +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef FIREBASESTORAGE_SWIFT_H +#define FIREBASESTORAGE_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +#include +#include +#include +#endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif #endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +1050,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -261,22 +1067,17 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseStorage", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseStorage",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) @@ -284,125 +1085,107 @@ using UInt = size_t; @class FIRApp; @class FIRStorageReference; -/// Firebase Storage is a service that supports uploading and downloading binary -/// objects, such as images, videos, and other files to Google Cloud Storage. -/// Instances of Storage are not thread-safe. If you call -/// Storage.storage(), the instance will initialize with the -/// default FirebaseApp, FirebaseApp.app(), and the -/// storage location will come from the provided +/// Firebase Storage is a service that supports uploading and downloading binary objects, +/// such as images, videos, and other files to Google Cloud Storage. Instances of Storage +/// are not thread-safe. +/// If you call Storage.storage(), the instance will initialize with the default FirebaseApp, +/// FirebaseApp.app(), and the storage location will come from the provided /// GoogleService-Info.plist. /// If you provide a custom instance of FirebaseApp, -/// the storage location will be specified via the -/// FirebaseOptions.storageBucket property. +/// the storage location will be specified via the FirebaseOptions.storageBucket property. SWIFT_CLASS_NAMED("Storage") @interface FIRStorage : NSObject /// The default Storage instance. /// /// returns: -/// An instance of Storage, configured with the default -/// FirebaseApp. -+ (FIRStorage *_Nonnull)storage SWIFT_WARN_UNUSED_RESULT; -/// A method used to create Storage instances initialized with a -/// custom storage bucket URL. Any StorageReferences generated from -/// this instance of Storage will reference files and directories -/// within the specified bucket. \param url The gs:// URL to your -/// Firebase Storage bucket. +/// An instance of Storage, configured with the default FirebaseApp. ++ (FIRStorage * _Nonnull)storage SWIFT_WARN_UNUSED_RESULT; +/// A method used to create Storage instances initialized with a custom storage bucket URL. +/// Any StorageReferences generated from this instance of Storage will reference files +/// and directories within the specified bucket. +/// \param url The gs:// URL to your Firebase Storage bucket. /// /// /// returns: /// A Storage instance, configured with the custom storage bucket. -+ (FIRStorage *_Nonnull)storageWithURL:(NSString *_Nonnull)url - SWIFT_WARN_UNUSED_RESULT; -/// Creates an instance of Storage, configured with a custom -/// FirebaseApp. StorageReferences generated from a -/// resulting instance will reference files in the Firebase project associated -/// with custom FirebaseApp. \param app The custom -/// FirebaseApp used for initialization. ++ (FIRStorage * _Nonnull)storageWithURL:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +/// Creates an instance of Storage, configured with a custom FirebaseApp. StorageReferences +/// generated from a resulting instance will reference files in the Firebase project +/// associated with custom FirebaseApp. +/// \param app The custom FirebaseApp used for initialization. /// /// /// returns: -/// A Storage instance, configured with the custom -/// FirebaseApp. -+ (FIRStorage *_Nonnull)storageForApp:(FIRApp *_Nonnull)app - SWIFT_WARN_UNUSED_RESULT; -/// Creates an instance of Storage, configured with a custom -/// FirebaseApp and a custom storage bucket URL. \param app The -/// custom FirebaseApp used for initialization. +/// A Storage instance, configured with the custom FirebaseApp. ++ (FIRStorage * _Nonnull)storageForApp:(FIRApp * _Nonnull)app SWIFT_WARN_UNUSED_RESULT; +/// Creates an instance of Storage, configured with a custom FirebaseApp and a custom storage +/// bucket URL. +/// \param app The custom FirebaseApp used for initialization. /// /// \param url The gs:// url to your Firebase Storage bucket. /// /// /// returns: -/// the Storage instance, configured with the custom -/// FirebaseApp and storage bucket URL. -+ (FIRStorage *_Nonnull)storageForApp:(FIRApp *_Nonnull)app - URL:(NSString *_Nonnull)url - SWIFT_WARN_UNUSED_RESULT; +/// the Storage instance, configured with the custom FirebaseApp and storage bucket URL. ++ (FIRStorage * _Nonnull)storageForApp:(FIRApp * _Nonnull)app URL:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; /// The FirebaseApp associated with this Storage instance. -@property(nonatomic, readonly, strong) FIRApp *_Nonnull app; +@property (nonatomic, readonly, strong) FIRApp * _Nonnull app; /// The maximum time in seconds to retry an upload if a failure occurs. /// Defaults to 10 minutes (600 seconds). -@property(nonatomic) NSTimeInterval maxUploadRetryTime; +@property (nonatomic) NSTimeInterval maxUploadRetryTime; /// The maximum time in seconds to retry a download if a failure occurs. /// Defaults to 10 minutes (600 seconds). -@property(nonatomic) NSTimeInterval maxDownloadRetryTime; -/// The maximum time in seconds to retry operations other than upload and -/// download if a failure occurs. Defaults to 2 minutes (120 seconds). -@property(nonatomic) NSTimeInterval maxOperationRetryTime; -/// Specify the maximum upload chunk size. Values less than 256K (262144) will -/// be rounded up to 256K. Values above 256K will be rounded down to the nearest -/// 256K multiple. The default is no maximum. -@property(nonatomic) int64_t uploadChunkSizeBytes; -/// A DispatchQueue that all developer callbacks are fired on. -/// Defaults to the main queue. -@property(nonatomic, strong) dispatch_queue_t _Nonnull callbackQueue; -/// Creates a StorageReference initialized at the root Firebase -/// Storage location. -/// -/// returns: -/// An instance of StorageReference referencing the root of the -/// storage bucket. -- (FIRStorageReference *_Nonnull)reference SWIFT_WARN_UNUSED_RESULT; -/// Creates a StorageReference given a gs://, http://, -/// or https:// URL pointing to a Firebase Storage location. For -/// example, you can pass in an https:// download URL retrieved -/// from StorageReference.downloadURL(completion:) or the -/// gs:// URL from StorageReference.description. +@property (nonatomic) NSTimeInterval maxDownloadRetryTime; +/// The maximum time in seconds to retry operations other than upload and download if a failure occurs. +/// Defaults to 2 minutes (120 seconds). +@property (nonatomic) NSTimeInterval maxOperationRetryTime; +/// Specify the maximum upload chunk size. Values less than 256K (262144) will be rounded up to 256K. Values +/// above 256K will be rounded down to the nearest 256K multiple. The default is no maximum. +@property (nonatomic) int64_t uploadChunkSizeBytes; +/// A DispatchQueue that all developer callbacks are fired on. Defaults to the main queue. +@property (nonatomic, strong) dispatch_queue_t _Nonnull callbackQueue; +/// Creates a StorageReference initialized at the root Firebase Storage location. +/// +/// returns: +/// An instance of StorageReference referencing the root of the storage bucket. +- (FIRStorageReference * _Nonnull)reference SWIFT_WARN_UNUSED_RESULT; +/// Creates a StorageReference given a gs://, http://, or https:// URL pointing to a +/// Firebase Storage location. For example, you can pass in an https:// download URL retrieved from +/// StorageReference.downloadURL(completion:) or the gs:// URL from +/// StorageReference.description. /// \param url A gs // or https:// URL to initialize the reference with. /// /// /// throws: -/// Throws a fatal error if url is not associated with the -/// FirebaseApp used to initialize this Storage instance. +/// Throws a fatal error if url is not associated with the FirebaseApp used to initialize +/// this Storage instance. /// /// returns: /// An instance of StorageReference at the given child path. -- (FIRStorageReference *_Nonnull)referenceForURL:(NSString *_Nonnull)url - SWIFT_WARN_UNUSED_RESULT; -/// Creates a StorageReference initialized at a location specified -/// by the path parameter. \param path A relative path from the -/// root of the storage bucket, for instance @“path/to/object”. +- (FIRStorageReference * _Nonnull)referenceForURL:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +/// Creates a StorageReference initialized at a location specified by the path parameter. +/// \param path A relative path from the root of the storage bucket, +/// for instance @“path/to/object”. /// /// /// returns: /// An instance of StorageReference pointing to the given path. -- (FIRStorageReference *_Nonnull)referenceWithPath:(NSString *_Nonnull)path - SWIFT_WARN_UNUSED_RESULT; -/// Configures the Storage SDK to use an emulated backend instead of the default -/// remote backend. This method should be called before invoking any other -/// methods on a new instance of Storage. -- (void)useEmulatorWithHost:(NSString *_Nonnull)host port:(NSInteger)port; +- (FIRStorageReference * _Nonnull)referenceWithPath:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT; +/// Configures the Storage SDK to use an emulated backend instead of the default remote backend. +/// This method should be called before invoking any other methods on a new instance of Storage. +- (void)useEmulatorWithHost:(NSString * _Nonnull)host port:(NSInteger)port; - (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; -@property(nonatomic, readonly) NSUInteger hash; +@property (nonatomic, readonly) NSUInteger hash; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -/// Defines task operations such as pause, resume, cancel, and enqueue for all -/// tasks. All tasks are required to implement enqueue, which begins the task, -/// and may optionally implement pause, resume, and cancel, which operate on the -/// task to pause, resume, and cancel operations. + +/// Defines task operations such as pause, resume, cancel, and enqueue for all tasks. +/// All tasks are required to implement enqueue, which begins the task, and may optionally +/// implement pause, resume, and cancel, which operate on the task to pause, resume, and cancel +/// operations. SWIFT_PROTOCOL_NAMED("StorageTaskManagement") @protocol FIRStorageTaskManagement /// Prepares a task and begins execution. @@ -419,31 +1202,30 @@ SWIFT_PROTOCOL_NAMED("StorageTaskManagement") @class FIRStorageTaskSnapshot; /// A superclass to all Storage tasks, including StorageUploadTask -/// and StorageDownloadTask, to provide state transitions, event -/// raising, and common storage for metadata and errors. Callbacks are always -/// fired on the developer-specified callback queue. If no queue is specified, -/// it defaults to the main queue. This class is not thread safe, so only call -/// methods on the main thread. +/// and StorageDownloadTask, to provide state transitions, event raising, and common storage +/// for metadata and errors. +/// Callbacks are always fired on the developer-specified callback queue. +/// If no queue is specified, it defaults to the main queue. +/// This class is not thread safe, so only call methods on the main thread. SWIFT_CLASS_NAMED("StorageTask") @interface FIRStorageTask : NSObject /// An immutable view of the task and associated metadata, progress, error, etc. -@property(nonatomic, readonly, strong) - FIRStorageTaskSnapshot *_Nonnull snapshot; +@property (nonatomic, readonly, strong) FIRStorageTaskSnapshot * _Nonnull snapshot; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end enum FIRStorageTaskStatus : NSInteger; -/// An extended StorageTask providing observable semantics that can -/// be used for responding to changes in task state. Observers produce a -/// StorageHandle, which is used to keep track of and remove -/// specific observers at a later date. This class is not thread safe and can -/// only be called on the main thread. +/// An extended StorageTask providing observable semantics that can be used for responding to changes +/// in task state. +/// Observers produce a StorageHandle, which is used to keep track of and remove specific +/// observers at a later date. +/// This class is not thread safe and can only be called on the main thread. SWIFT_CLASS_NAMED("StorageObservableTask") @interface FIRStorageObservableTask : FIRStorageTask -/// Observes changes in the upload status: Resume, Pause, Progress, Success, and -/// Failure. \param status The StorageTaskStatus change to observe. +/// Observes changes in the upload status: Resume, Pause, Progress, Success, and Failure. +/// \param status The StorageTaskStatus change to observe. /// /// \param handler A callback that fires every time the status event occurs, /// containing a StorageTaskSnapshot describing task state. @@ -451,13 +1233,11 @@ SWIFT_CLASS_NAMED("StorageObservableTask") /// /// returns: /// A task handle that can be used to remove the observer at a later date. -- (NSString *_Nonnull) - observeStatus:(enum FIRStorageTaskStatus)status - handler:(void (^_Nonnull)(FIRStorageTaskSnapshot *_Nonnull))handler; +- (NSString * _Nonnull)observeStatus:(enum FIRStorageTaskStatus)status handler:(void (^ _Nonnull)(FIRStorageTaskSnapshot * _Nonnull))handler; /// Removes the single observer with the provided handle. -/// \param handle The handle of the task to remove. +/// \param handle The handle of the task to remove. /// -- (void)removeObserverWithHandle:(NSString *_Nonnull)handle; +- (void)removeObserverWithHandle:(NSString * _Nonnull)handle; /// Removes all observers for a single status. /// \param status A StorageTaskStatus to remove all listeners for. /// @@ -466,23 +1246,20 @@ SWIFT_CLASS_NAMED("StorageObservableTask") - (void)removeAllObservers; @end -/// StorageDownloadTask implements resumable downloads from an -/// object in Firebase Storage. Downloads can be returned on completion with a -/// completion handler, and can be monitored by attaching observers, or -/// controlled by calling pause(), resume(), or -/// cancel(). Downloads can currently be returned as -/// Data in memory, or as a URL to a file on disk. -/// Downloads are performed on a background queue, and callbacks are raised on -/// the developer specified callbackQueue in Storage, or the main -/// queue if left unspecified. Currently all downloads must be initiated and -/// managed on the main queue. + +/// StorageDownloadTask implements resumable downloads from an object in Firebase Storage. +/// Downloads can be returned on completion with a completion handler, and can be monitored +/// by attaching observers, or controlled by calling pause(), resume(), +/// or cancel(). +/// Downloads can currently be returned as Data in memory, or as a URL to a file on disk. +/// Downloads are performed on a background queue, and callbacks are raised on the developer +/// specified callbackQueue in Storage, or the main queue if left unspecified. +/// Currently all downloads must be initiated and managed on the main queue. SWIFT_CLASS_NAMED("StorageDownloadTask") -@interface FIRStorageDownloadTask - : FIRStorageObservableTask +@interface FIRStorageDownloadTask : FIRStorageObservableTask /// Prepares a task and begins execution. - (void)enqueue; -/// Pauses a task currently in progress. Calling this on a paused task has no -/// effect. +/// Pauses a task currently in progress. Calling this on a paused task has no effect. - (void)pause; /// Cancels a task. - (void)cancel; @@ -490,51 +1267,46 @@ SWIFT_CLASS_NAMED("StorageDownloadTask") - (void)resume; @end -/// Adds wrappers for common Firebase Storage errors (including creating errors -/// from GCS errors). For more information on unwrapping GCS errors, see the GCS -/// errors docs: https://cloud.google.com/storage/docs/json_api/v1/status-codes -/// This is never publicly exposed to end developers (as they will simply see an -/// NSError). -typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageErrorCode, "StorageErrorCode", - open){ - FIRStorageErrorCodeUnknown = -13000, - FIRStorageErrorCodeObjectNotFound = -13010, - FIRStorageErrorCodeBucketNotFound = -13011, - FIRStorageErrorCodeProjectNotFound = -13012, - FIRStorageErrorCodeQuotaExceeded = -13013, - FIRStorageErrorCodeUnauthenticated = -13020, - FIRStorageErrorCodeUnauthorized = -13021, - FIRStorageErrorCodeRetryLimitExceeded = -13030, - FIRStorageErrorCodeNonMatchingChecksum = -13031, - FIRStorageErrorCodeDownloadSizeExceeded = -13032, - FIRStorageErrorCodeCancelled = -13040, - FIRStorageErrorCodeInvalidArgument = -13050, +/// Adds wrappers for common Firebase Storage errors (including creating errors from GCS errors). +/// For more information on unwrapping GCS errors, see the GCS errors docs: +/// https://cloud.google.com/storage/docs/json_api/v1/status-codes +/// This is never publicly exposed to end developers (as they will simply see an NSError). +typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageErrorCode, "StorageErrorCode", open) { + FIRStorageErrorCodeUnknown = -13000, + FIRStorageErrorCodeObjectNotFound = -13010, + FIRStorageErrorCodeBucketNotFound = -13011, + FIRStorageErrorCodeProjectNotFound = -13012, + FIRStorageErrorCodeQuotaExceeded = -13013, + FIRStorageErrorCodeUnauthenticated = -13020, + FIRStorageErrorCodeUnauthorized = -13021, + FIRStorageErrorCodeRetryLimitExceeded = -13030, + FIRStorageErrorCodeNonMatchingChecksum = -13031, + FIRStorageErrorCodeDownloadSizeExceeded = -13032, + FIRStorageErrorCodeCancelled = -13040, + FIRStorageErrorCodeInvalidArgument = -13050, }; -static NSString *_Nonnull const FIRStorageErrorCodeDomain = - @"FirebaseStorage.StorageErrorCode"; +static NSString * _Nonnull const FIRStorageErrorCodeDomain = @"FirebaseStorage.StorageErrorCode"; -/// Contains the prefixes and items returned by a -/// StorageReference.list() call. + +/// Contains the prefixes and items returned by a StorageReference.list() call. SWIFT_CLASS_NAMED("StorageListResult") @interface FIRStorageListResult : NSObject /// The prefixes (folders) returned by a list() operation. /// /// returns: /// A list of prefixes (folders). -@property(nonatomic, readonly, copy) - NSArray *_Nonnull prefixes; +@property (nonatomic, readonly, copy) NSArray * _Nonnull prefixes; /// The objects (files) returned by a list() operation. /// /// returns: /// A page token if more results are available. -@property(nonatomic, readonly, copy) - NSArray *_Nonnull items; -/// Returns a token that can be used to resume a previous list() -/// operation. nil indicates that there are no more results. +@property (nonatomic, readonly, copy) NSArray * _Nonnull items; +/// Returns a token that can be used to resume a previous list() operation. nil +/// indicates that there are no more results. /// /// returns: /// A page token if more results are available. -@property(nonatomic, readonly, copy) NSString *_Nullable pageToken; +@property (nonatomic, readonly, copy) NSString * _Nullable pageToken; - (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @@ -542,344 +1314,284 @@ SWIFT_CLASS_NAMED("StorageListResult") @class NSDate; -/// Class which represents the metadata on an object in Firebase Storage. This -/// metadata is returned on successful operations, and can be used to retrieve -/// download URLs, content types, and a Storage reference to the object in -/// question. Full documentation can be found at the GCS Objects#resource docs. +/// Class which represents the metadata on an object in Firebase Storage. This metadata is +/// returned on successful operations, and can be used to retrieve download URLs, content types, +/// and a Storage reference to the object in question. Full documentation can be found at the GCS +/// Objects#resource docs. /// @see https://cloud.google.com/storage/docs/json_api/v1/objects#resource SWIFT_CLASS_NAMED("StorageMetadata") @interface FIRStorageMetadata : NSObject /// The name of the bucket containing this object. -@property(nonatomic, readonly, copy) NSString *_Nonnull bucket; +@property (nonatomic, readonly, copy) NSString * _Nonnull bucket; /// Cache-Control directive for the object data. -@property(nonatomic, copy) NSString *_Nullable cacheControl; +@property (nonatomic, copy) NSString * _Nullable cacheControl; /// Content-Disposition of the object data. -@property(nonatomic, copy) NSString *_Nullable contentDisposition; +@property (nonatomic, copy) NSString * _Nullable contentDisposition; /// Content-Encoding of the object data. -@property(nonatomic, copy) NSString *_Nullable contentEncoding; +@property (nonatomic, copy) NSString * _Nullable contentEncoding; /// Content-Language of the object data. -@property(nonatomic, copy) NSString *_Nullable contentLanguage; +@property (nonatomic, copy) NSString * _Nullable contentLanguage; /// Content-Type of the object data. -@property(nonatomic, copy) NSString *_Nullable contentType; +@property (nonatomic, copy) NSString * _Nullable contentType; /// MD5 hash of the data; encoded using base64. -@property(nonatomic, readonly, copy) NSString *_Nullable md5Hash; +@property (nonatomic, readonly, copy) NSString * _Nullable md5Hash; /// The content generation of this object. Used for object versioning. -@property(nonatomic, readonly) int64_t generation; +@property (nonatomic, readonly) int64_t generation; /// User-provided metadata, in key/value pairs. -@property(nonatomic, copy) - NSDictionary *_Nullable customMetadata; +@property (nonatomic, copy) NSDictionary * _Nullable customMetadata; /// The version of the metadata for this object at this generation. Used -/// for preconditions and for detecting changes in metadata. A metageneration -/// number is only meaningful in the context of a particular generation of a -/// particular object. -@property(nonatomic, readonly) int64_t metageneration; -/// The name of this object, in gs://bucket/path/to/object.txt, this is -/// object.txt. -@property(nonatomic, readonly, copy) NSString *_Nullable name; -/// The full path of this object, in gs://bucket/path/to/object.txt, this is -/// path/to/object.txt. -@property(nonatomic, readonly, copy) NSString *_Nullable path; +/// for preconditions and for detecting changes in metadata. A metageneration number is only +/// meaningful in the context of a particular generation of a particular object. +@property (nonatomic, readonly) int64_t metageneration; +/// The name of this object, in gs://bucket/path/to/object.txt, this is object.txt. +@property (nonatomic, readonly, copy) NSString * _Nullable name; +/// The full path of this object, in gs://bucket/path/to/object.txt, this is path/to/object.txt. +@property (nonatomic, readonly, copy) NSString * _Nullable path; /// Content-Length of the data in bytes. -@property(nonatomic, readonly) int64_t size; +@property (nonatomic, readonly) int64_t size; /// The creation time of the object in RFC 3339 format. -@property(nonatomic, readonly, copy) NSDate *_Nullable timeCreated; +@property (nonatomic, readonly, copy) NSDate * _Nullable timeCreated; /// The modification time of the object metadata in RFC 3339 format. -@property(nonatomic, readonly, copy) NSDate *_Nullable updated; +@property (nonatomic, readonly, copy) NSDate * _Nullable updated; /// Never used API -@property(nonatomic, readonly, strong) - FIRStorageReference *_Nullable storageReference SWIFT_DEPRECATED; +@property (nonatomic, readonly, strong) FIRStorageReference * _Nullable storageReference SWIFT_DEPRECATED; /// Creates a Dictionary from the contents of the metadata. /// @return A Dictionary that represents the contents of the metadata. -- (NSDictionary *_Nonnull) - dictionaryRepresentation SWIFT_WARN_UNUSED_RESULT; +- (NSDictionary * _Nonnull)dictionaryRepresentation SWIFT_WARN_UNUSED_RESULT; /// Determines if the current metadata represents a “file”. -@property(nonatomic, readonly) BOOL isFile; +@property (nonatomic, readonly) BOOL isFile; /// Determines if the current metadata represents a “folder”. -@property(nonatomic, readonly) BOOL isFolder; +@property (nonatomic, readonly) BOOL isFolder; - (nonnull instancetype)init; /// Creates an instance of StorageMetadata from the contents of a dictionary. -/// @return An instance of StorageMetadata that represents the contents of a -/// dictionary. -- (nonnull instancetype)initWithDictionary: - (NSDictionary *_Nonnull)dictionary - OBJC_DESIGNATED_INITIALIZER; +/// @return An instance of StorageMetadata that represents the contents of a dictionary. +- (nonnull instancetype)initWithDictionary:(NSDictionary * _Nonnull)dictionary OBJC_DESIGNATED_INITIALIZER; - (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; -@property(nonatomic, readonly) NSUInteger hash; -@property(nonatomic, readonly, copy) NSString *_Nonnull description; +@property (nonatomic, readonly) NSUInteger hash; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; @end + @class NSData; @class FIRStorageUploadTask; @class NSURL; -/// StorageReference represents a reference to a Google Cloud -/// Storage object. Developers can upload and download objects, as well as -/// get/set object metadata, and delete an object at the path. See the Cloud -/// docs for more details: https://cloud.google.com/storage/ +/// StorageReference represents a reference to a Google Cloud Storage object. Developers can +/// upload and download objects, as well as get/set object metadata, and delete an object at the +/// path. See the Cloud docs for more details: https://cloud.google.com/storage/ SWIFT_CLASS_NAMED("StorageReference") @interface FIRStorageReference : NSObject /// The Storage service object which created this reference. -@property(nonatomic, readonly, strong) FIRStorage *_Nonnull storage; +@property (nonatomic, readonly, strong) FIRStorage * _Nonnull storage; /// The name of the Google Cloud Storage bucket associated with this reference. -/// For example, in gs://bucket/path/to/object.txt, the bucket -/// would be ‘bucket’. -@property(nonatomic, readonly, copy) NSString *_Nonnull bucket; +/// For example, in gs://bucket/path/to/object.txt, the bucket would be ‘bucket’. +@property (nonatomic, readonly, copy) NSString * _Nonnull bucket; /// The full path to this object, not including the Google Cloud Storage bucket. -/// In gs://bucket/path/to/object.txt, the full path would be: -/// path/to/object.txt -@property(nonatomic, readonly, copy) NSString *_Nonnull fullPath; +/// In gs://bucket/path/to/object.txt, the full path would be: path/to/object.txt +@property (nonatomic, readonly, copy) NSString * _Nonnull fullPath; /// The short name of the object associated with this reference. -/// In gs://bucket/path/to/object.txt, the name of the object would -/// be object.txt. -@property(nonatomic, readonly, copy) NSString *_Nonnull name; +/// In gs://bucket/path/to/object.txt, the name of the object would be object.txt. +@property (nonatomic, readonly, copy) NSString * _Nonnull name; /// Creates a new StorageReference pointing to the root object. /// /// returns: /// A new StorageReference pointing to the root object. -- (FIRStorageReference *_Nonnull)root SWIFT_WARN_UNUSED_RESULT; -/// Creates a new StorageReference pointing to the parent of the -/// current reference or nil if this instance references the root -/// location. For example: path = foo/bar/baz parent = foo/bar path = foo -/// parent = (root) path = (root) parent = nil -/// -/// returns: -/// A new StorageReference pointing to the parent of the current -/// reference. -- (FIRStorageReference *_Nullable)parent SWIFT_WARN_UNUSED_RESULT; -/// Creates a new StorageReference pointing to a child object of -/// the current reference. path = foo child = bar newPath = foo/bar path -/// = foo/bar child = baz ntask.impl.snapshotwPath = foo/bar/baz All leading -/// and trailing slashes will be removed, and consecutive slashes will be +- (FIRStorageReference * _Nonnull)root SWIFT_WARN_UNUSED_RESULT; +/// Creates a new StorageReference pointing to the parent of the current reference +/// or nil if this instance references the root location. +/// For example: +/// path = foo/bar/baz parent = foo/bar +/// path = foo parent = (root) +/// path = (root) parent = nil +/// +/// returns: +/// A new StorageReference pointing to the parent of the current reference. +- (FIRStorageReference * _Nullable)parent SWIFT_WARN_UNUSED_RESULT; +/// Creates a new StorageReference pointing to a child object of the current reference. +/// path = foo child = bar newPath = foo/bar +/// path = foo/bar child = baz ntask.impl.snapshotwPath = foo/bar/baz +/// All leading and trailing slashes will be removed, and consecutive slashes will be /// compressed to single slashes. For example: /// child = /foo/bar newPath = foo/bar /// child = foo/bar/ newPath = foo/bar /// child = foo///bar newPath = foo/bar -/// \param path The path to append to the current path. +/// \param path The path to append to the current path. /// /// /// returns: -/// A new StorageReference pointing to a child location of the -/// current reference. -- (FIRStorageReference *_Nonnull)child:(NSString *_Nonnull)path - SWIFT_WARN_UNUSED_RESULT; -/// Asynchronously uploads data to the currently specified -/// StorageReference, without additional metadata. This is not -/// recommended for large files, and one should instead upload a file from disk. +/// A new StorageReference pointing to a child location of the current reference. +- (FIRStorageReference * _Nonnull)child:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT; +/// Asynchronously uploads data to the currently specified StorageReference, +/// without additional metadata. +/// This is not recommended for large files, and one should instead upload a file from disk. /// \param uploadData The data to upload. /// -/// \param metadata StorageMetadata containing additional -/// information (MIME type, etc.) about the object being uploaded. -/// -/// -/// returns: -/// An instance of StorageUploadTask, which can be used to monitor -/// or manage the upload. -- (FIRStorageUploadTask *_Nonnull)putData:(NSData *_Nonnull)uploadData - metadata: - (FIRStorageMetadata *_Nullable)metadata; -/// Asynchronously uploads data to the currently specified -/// StorageReference. This is not recommended for large files, and -/// one should instead upload a file from disk. \param uploadData The data to -/// upload. -/// -/// -/// returns: -/// An instance of StorageUploadTask, which can be used to monitor -/// or manage the upload. -- (FIRStorageUploadTask *_Nonnull)putData:(NSData *_Nonnull)uploadData; -/// Asynchronously uploads data to the currently specified -/// StorageReference. This is not recommended for large files, and -/// one should instead upload a file from disk. \param uploadData The data to -/// upload. -/// -/// \param metadata StorageMetadata containing additional -/// information (MIME type, etc.) about the object being uploaded. -/// -/// \param completion A closure that either returns the object metadata on -/// success, or an error on failure. -/// -/// -/// returns: -/// An instance of StorageUploadTask, which can be used to monitor -/// or manage the upload. -- (FIRStorageUploadTask *_Nonnull) - putData:(NSData *_Nonnull)uploadData - metadata:(FIRStorageMetadata *_Nullable)metadata - completion:(void (^_Nullable)(FIRStorageMetadata *_Nullable, - NSError *_Nullable))completion; -/// Asynchronously uploads a file to the currently specified -/// StorageReference. putData should be used instead -/// of putFile in Extensions. \param fileURL A URL representing the -/// system file path of the object to be uploaded. -/// -/// \param metadata StorageMetadata containing additional -/// information (MIME type, etc.) about the object being uploaded. -/// -/// -/// returns: -/// An instance of StorageUploadTask, which can be used to monitor -/// or manage the upload. -- (FIRStorageUploadTask *_Nonnull)putFile:(NSURL *_Nonnull)fileURL - metadata: - (FIRStorageMetadata *_Nullable)metadata; -/// Asynchronously uploads a file to the currently specified -/// StorageReference, without additional metadata. -/// putData should be used instead of putFile in -/// Extensions. -/// @param fileURL A URL representing the system file path of the object to be -/// uploaded. -/// @return An instance of StorageUploadTask, which can be used to monitor or -/// manage the upload. -- (FIRStorageUploadTask *_Nonnull)putFile:(NSURL *_Nonnull)fileURL; -/// Asynchronously uploads a file to the currently specified -/// StorageReference. putData should be used instead -/// of putFile in Extensions. \param fileURL A URL representing the -/// system file path of the object to be uploaded. -/// -/// \param metadata StorageMetadata containing additional -/// information (MIME type, etc.) about the object being uploaded. -/// -/// \param completion A completion block that either returns the object metadata -/// on success, or an error on failure. -/// -/// -/// returns: -/// An instance of StorageUploadTask, which can be used to monitor -/// or manage the upload. -- (FIRStorageUploadTask *_Nonnull) - putFile:(NSURL *_Nonnull)fileURL - metadata:(FIRStorageMetadata *_Nullable)metadata - completion:(void (^_Nullable)(FIRStorageMetadata *_Nullable, - NSError *_Nullable))completion; -/// Asynchronously downloads the object at the StorageReference to -/// a Data instance in memory. A Data buffer of the -/// provided max size will be allocated, so ensure that the device has enough -/// free memory to complete the download. For downloading large files, -/// write(toFile:) may be a better option. \param maxSize The -/// maximum size in bytes to download. If the download exceeds this size, the -/// task will be cancelled and an error will be returned. -/// -/// \param completion A completion block that either returns the object data on -/// success, or an error on failure. -/// -/// -/// returns: -/// An StorageDownloadTask that can be used to monitor or manage -/// the download. -- (FIRStorageDownloadTask *_Nonnull) - dataWithMaxSize:(int64_t)maxSize - completion:(void (^_Nonnull)(NSData *_Nullable, - NSError *_Nullable))completion; +/// \param metadata StorageMetadata containing additional information (MIME type, etc.) +/// about the object being uploaded. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putData:(NSData * _Nonnull)uploadData metadata:(FIRStorageMetadata * _Nullable)metadata; +/// Asynchronously uploads data to the currently specified StorageReference. +/// This is not recommended for large files, and one should instead upload a file from disk. +/// \param uploadData The data to upload. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putData:(NSData * _Nonnull)uploadData; +/// Asynchronously uploads data to the currently specified StorageReference. +/// This is not recommended for large files, and one should instead upload a file from disk. +/// \param uploadData The data to upload. +/// +/// \param metadata StorageMetadata containing additional information (MIME type, etc.) +/// about the object being uploaded. +/// +/// \param completion A closure that either returns the object metadata on success, +/// or an error on failure. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putData:(NSData * _Nonnull)uploadData metadata:(FIRStorageMetadata * _Nullable)metadata completion:(void (^ _Nullable)(FIRStorageMetadata * _Nullable, NSError * _Nullable))completion; +/// Asynchronously uploads a file to the currently specified StorageReference. +/// putData should be used instead of putFile in Extensions. +/// \param fileURL A URL representing the system file path of the object to be uploaded. +/// +/// \param metadata StorageMetadata containing additional information (MIME type, etc.) +/// about the object being uploaded. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putFile:(NSURL * _Nonnull)fileURL metadata:(FIRStorageMetadata * _Nullable)metadata; +/// Asynchronously uploads a file to the currently specified StorageReference, +/// without additional metadata. +/// putData should be used instead of putFile in Extensions. +/// @param fileURL A URL representing the system file path of the object to be uploaded. +/// @return An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putFile:(NSURL * _Nonnull)fileURL; +/// Asynchronously uploads a file to the currently specified StorageReference. +/// putData should be used instead of putFile in Extensions. +/// \param fileURL A URL representing the system file path of the object to be uploaded. +/// +/// \param metadata StorageMetadata containing additional information (MIME type, etc.) +/// about the object being uploaded. +/// +/// \param completion A completion block that either returns the object metadata on success, +/// or an error on failure. +/// +/// +/// returns: +/// An instance of StorageUploadTask, which can be used to monitor or manage the upload. +- (FIRStorageUploadTask * _Nonnull)putFile:(NSURL * _Nonnull)fileURL metadata:(FIRStorageMetadata * _Nullable)metadata completion:(void (^ _Nullable)(FIRStorageMetadata * _Nullable, NSError * _Nullable))completion; +/// Asynchronously downloads the object at the StorageReference to a Data instance in memory. +/// A Data buffer of the provided max size will be allocated, so ensure that the device has enough free +/// memory to complete the download. For downloading large files, write(toFile:) may be a better option. +/// \param maxSize The maximum size in bytes to download. If the download exceeds this size, +/// the task will be cancelled and an error will be returned. +/// +/// \param completion A completion block that either returns the object data on success, +/// or an error on failure. +/// +/// +/// returns: +/// An StorageDownloadTask that can be used to monitor or manage the download. +- (FIRStorageDownloadTask * _Nonnull)dataWithMaxSize:(int64_t)maxSize completion:(void (^ _Nonnull)(NSData * _Nullable, NSError * _Nullable))completion; /// Asynchronously retrieves a long lived download URL with a revokable token. -/// This can be used to share the file with others, but can be revoked by a -/// developer in the Firebase Console. \param completion A completion block that -/// either returns the URL on success, or an error on failure. -/// -- (void)downloadURLWithCompletion: - (void (^_Nonnull)(NSURL *_Nullable, NSError *_Nullable))completion; -/// Asynchronously downloads the object at the current path to a specified -/// system filepath.
        +/// This can be used to share the file with others, but can be revoked by a developer +/// in the Firebase Console. +/// \param completion A completion block that either returns the URL on success, +/// or an error on failure. +/// +- (void)downloadURLWithCompletion:(void (^ _Nonnull)(NSURL * _Nullable, NSError * _Nullable))completion; +/// Asynchronously downloads the object at the current path to a specified system filepath. +///
          ///
        • -/// Returns An StorageDownloadTask that can be used to monitor -/// or manage the download. +/// Returns An StorageDownloadTask that can be used to monitor or manage the download. ///
        • ///
        -/// \param fileURL A file system URL representing the path the object should be -/// downloaded to. -/// -- (FIRStorageDownloadTask *_Nonnull)writeToFile:(NSURL *_Nonnull)fileURL; -/// Asynchronously downloads the object at the current path to a specified -/// system filepath. \param fileURL A file system URL representing the path the -/// object should be downloaded to. -/// -/// \param completion A closure that fires when the file download completes, -/// passed either a URL pointing to the file path of the downloaded file on -/// success, or an error on failure. -/// -/// -/// returns: -/// A StorageDownloadTask that can be used to monitor or manage the -/// download. -- (FIRStorageDownloadTask *_Nonnull) - writeToFile:(NSURL *_Nonnull)fileURL - completion: - (void (^_Nullable)(NSURL *_Nullable, NSError *_Nullable))completion; -/// Lists all items (files) and prefixes (folders) under this -/// StorageReference. This is a helper method for calling -/// list() repeatedly until there are no more results. Consistency -/// of the result is not guaranteed if objects are inserted or removed while -/// this operation is executing. All results are buffered in memory. -/// listAll(completion:) is only available for projects using -/// Firebase Rules Version 2. \param completion A completion handler that will -/// be invoked with all items and prefixes under the current -/// StorageReference. -/// -- (void)listAllWithCompletion:(void (^_Nonnull)(FIRStorageListResult *_Nullable, - NSError *_Nullable))completion; -/// List up to maxResults items (files) and prefixes (folders) -/// under this StorageReference. “/” is treated as a path delimiter. Firebase -/// Storage does not support unsupported object paths that end with “/” or -/// contain two consecutive “/“s. All invalid objects in GCS will be filtered. -/// list(maxResults:completion:) is only available for projects -/// using Firebase Rules Version 2. \param maxResults The maximum number of -/// results to return in a single page. Must be greater than 0 and at most 1000. -/// -/// \param completion A completion handler that will be invoked with up to -/// maxResults items and prefixes under the current -/// StorageReference. -/// -- (void)listWithMaxResults:(int64_t)maxResults - completion:(void (^_Nonnull)(FIRStorageListResult *_Nullable, - NSError *_Nullable))completion; -/// Resumes a previous call to list(maxResults:completion:), -/// starting after a pagination token. Returns the next set of items (files) and -/// prefixes (folders) under this StorageReference. “/” is treated -/// as a path delimiter. Storage does not support unsupported object paths that -/// end with “/” or contain two consecutive “/“s. All invalid objects in GCS -/// will be filtered. list(maxResults:pageToken:completion:)is only -/// available for projects using Firebase Rules Version 2. \param maxResults The -/// maximum number of results to return in a single page. Must be greater than 0 -/// and at most 1000. +/// \param fileURL A file system URL representing the path the object should be downloaded to. +/// +- (FIRStorageDownloadTask * _Nonnull)writeToFile:(NSURL * _Nonnull)fileURL; +/// Asynchronously downloads the object at the current path to a specified system filepath. +/// \param fileURL A file system URL representing the path the object should be downloaded to. +/// +/// \param completion A closure that fires when the file download completes, passed either +/// a URL pointing to the file path of the downloaded file on success, +/// or an error on failure. +/// +/// +/// returns: +/// A StorageDownloadTask that can be used to monitor or manage the download. +- (FIRStorageDownloadTask * _Nonnull)writeToFile:(NSURL * _Nonnull)fileURL completion:(void (^ _Nullable)(NSURL * _Nullable, NSError * _Nullable))completion; +/// Lists all items (files) and prefixes (folders) under this StorageReference. +/// This is a helper method for calling list() repeatedly until there are no more results. +/// Consistency of the result is not guaranteed if objects are inserted or removed while this +/// operation is executing. All results are buffered in memory. +/// listAll(completion:) is only available for projects using Firebase Rules Version 2. +/// \param completion A completion handler that will be invoked with all items and prefixes under +/// the current StorageReference. +/// +- (void)listAllWithCompletion:(void (^ _Nonnull)(FIRStorageListResult * _Nullable, NSError * _Nullable))completion; +/// List up to maxResults items (files) and prefixes (folders) under this StorageReference. +/// “/” is treated as a path delimiter. Firebase Storage does not support unsupported object +/// paths that end with “/” or contain two consecutive “/“s. All invalid objects in GCS will be +/// filtered. +/// list(maxResults:completion:) is only available for projects using Firebase Rules Version 2. +/// \param maxResults The maximum number of results to return in a single page. Must be greater +/// than 0 and at most 1000. +/// +/// \param completion A completion handler that will be invoked with up to maxResults items and +/// prefixes under the current StorageReference. +/// +- (void)listWithMaxResults:(int64_t)maxResults completion:(void (^ _Nonnull)(FIRStorageListResult * _Nullable, NSError * _Nullable))completion; +/// Resumes a previous call to list(maxResults:completion:), starting after a pagination token. +/// Returns the next set of items (files) and prefixes (folders) under this StorageReference. +/// “/” is treated as a path delimiter. Storage does not support unsupported object +/// paths that end with “/” or contain two consecutive “/“s. All invalid objects in GCS will be +/// filtered. +/// list(maxResults:pageToken:completion:)is only available for projects using Firebase Rules +/// Version 2. +/// \param maxResults The maximum number of results to return in a single page. Must be greater +/// than 0 and at most 1000. /// /// \param pageToken A page token from a previous call to list. /// -/// \param completion A completion handler that will be invoked with the next -/// items and prefixes under the current StorageReference. +/// \param completion A completion handler that will be invoked with the next items and prefixes +/// under the current StorageReference. /// -- (void)listWithMaxResults:(int64_t)maxResults - pageToken:(NSString *_Nonnull)pageToken - completion:(void (^_Nonnull)(FIRStorageListResult *_Nullable, - NSError *_Nullable))completion; +- (void)listWithMaxResults:(int64_t)maxResults pageToken:(NSString * _Nonnull)pageToken completion:(void (^ _Nonnull)(FIRStorageListResult * _Nullable, NSError * _Nullable))completion; /// Retrieves metadata associated with an object at the current path. -/// \param completion A completion block which returns the object metadata on -/// success, or an error on failure. +/// \param completion A completion block which returns the object metadata on success, +/// or an error on failure. /// -- (void)metadataWithCompletion:(void (^_Nonnull)(FIRStorageMetadata *_Nullable, - NSError *_Nullable))completion; +- (void)metadataWithCompletion:(void (^ _Nonnull)(FIRStorageMetadata * _Nullable, NSError * _Nullable))completion; /// Updates the metadata associated with an object at the current path. -/// \param metadata A StorageMetadata object with the metadata to -/// update. +/// \param metadata A StorageMetadata object with the metadata to update. /// -/// \param completion A completion block which returns the -/// StorageMetadata on success, or an error on failure. +/// \param completion A completion block which returns the StorageMetadata on success, +/// or an error on failure. /// -- (void)updateMetadata:(FIRStorageMetadata *_Nonnull)metadata - completion:(void (^_Nullable)(FIRStorageMetadata *_Nullable, - NSError *_Nullable))completion; +- (void)updateMetadata:(FIRStorageMetadata * _Nonnull)metadata completion:(void (^ _Nullable)(FIRStorageMetadata * _Nullable, NSError * _Nullable))completion; /// Deletes the object at the current path. -/// \param completion A completion block which returns a nonnull error on -/// failure. +/// \param completion A completion block which returns a nonnull error on failure. /// -- (void)deleteWithCompletion:(void (^_Nullable)(NSError *_Nullable))completion; +- (void)deleteWithCompletion:(void (^ _Nullable)(NSError * _Nullable))completion; - (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; -@property(nonatomic, readonly) NSUInteger hash; -@property(nonatomic, readonly, copy) NSString *_Nonnull description; +@property (nonatomic, readonly) NSUInteger hash; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end + + + + @class NSProgress; /// StorageTaskSnapshot represents an immutable view of a task. @@ -888,42 +1600,42 @@ SWIFT_CLASS_NAMED("StorageReference") SWIFT_CLASS_NAMED("StorageTaskSnapshot") @interface FIRStorageTaskSnapshot : NSObject /// The task this snapshot represents. -@property(nonatomic, readonly, strong) FIRStorageTask *_Nonnull task; +@property (nonatomic, readonly, strong) FIRStorageTask * _Nonnull task; /// Metadata returned by the task, or nil if no metadata returned. -@property(nonatomic, readonly, strong) FIRStorageMetadata *_Nullable metadata; +@property (nonatomic, readonly, strong) FIRStorageMetadata * _Nullable metadata; /// The StorageReference this task operates on. -@property(nonatomic, readonly, strong) FIRStorageReference *_Nonnull reference; +@property (nonatomic, readonly, strong) FIRStorageReference * _Nonnull reference; /// An object which tracks the progress of an upload or download. -@property(nonatomic, readonly, strong) NSProgress *_Nullable progress; -/// An error raised during task execution, or nil if no error -/// occurred. -@property(nonatomic, readonly) NSError *_Nullable error; +@property (nonatomic, readonly, strong) NSProgress * _Nullable progress; +/// An error raised during task execution, or nil if no error occurred. +@property (nonatomic, readonly) NSError * _Nullable error; /// The status of the task. -@property(nonatomic, readonly) enum FIRStorageTaskStatus status; -@property(nonatomic, readonly, copy) NSString *_Nonnull description; +@property (nonatomic, readonly) enum FIRStorageTaskStatus status; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end -typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageTaskStatus, "StorageTaskStatus", - open){ - FIRStorageTaskStatusUnknown = 0, FIRStorageTaskStatusResume = 1, - FIRStorageTaskStatusProgress = 2, FIRStorageTaskStatusPause = 3, - FIRStorageTaskStatusSuccess = 4, FIRStorageTaskStatusFailure = 5, +typedef SWIFT_ENUM_NAMED(NSInteger, FIRStorageTaskStatus, "StorageTaskStatus", open) { + FIRStorageTaskStatusUnknown = 0, + FIRStorageTaskStatusResume = 1, + FIRStorageTaskStatusProgress = 2, + FIRStorageTaskStatusPause = 3, + FIRStorageTaskStatusSuccess = 4, + FIRStorageTaskStatusFailure = 5, }; -/// StorageUploadTask implements resumable uploads to a file in -/// Firebase Storage. Uploads can be returned on completion with a completion -/// callback, and can be monitored by attaching observers, or controlled by -/// calling pause(), resume(), or -/// cancel(). Uploads can be initialized from Data in -/// memory, or a URL to a file on disk. Uploads are performed on a background -/// queue, and callbacks are raised on the developer specified -/// callbackQueue in Storage, or the main queue if unspecified. + +/// StorageUploadTask implements resumable uploads to a file in Firebase Storage. +/// Uploads can be returned on completion with a completion callback, and can be monitored +/// by attaching observers, or controlled by calling pause(), resume(), +/// or cancel(). +/// Uploads can be initialized from Data in memory, or a URL to a file on disk. +/// Uploads are performed on a background queue, and callbacks are raised on the developer +/// specified callbackQueue in Storage, or the main queue if unspecified. /// Currently all uploads must be initiated and managed on the main queue. SWIFT_CLASS_NAMED("StorageUploadTask") -@interface FIRStorageUploadTask - : FIRStorageObservableTask +@interface FIRStorageUploadTask : FIRStorageObservableTask /// Prepares a task and begins execution. - (void)enqueue; /// Pauses a task currently in progress. @@ -938,7 +1650,7 @@ SWIFT_CLASS_NAMED("StorageUploadTask") #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif diff --git a/ios_pod/swift_headers/SwiftProtobuf-Swift.h b/ios_pod/swift_headers/SwiftProtobuf-Swift.h index 8d6e6af5a5..7e3ce4dcf6 100644 --- a/ios_pod/swift_headers/SwiftProtobuf-Swift.h +++ b/ios_pod/swift_headers/SwiftProtobuf-Swift.h @@ -1,30 +1,26 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.13.0. - -// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 -// clang-1400.0.29.51) +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef SWIFTPROTOBUF_SWIFT_H #define SWIFTPROTOBUF_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" #if !defined(__has_include) -#define __has_include(x) 0 +# define __has_include(x) 0 #endif #if !defined(__has_attribute) -#define __has_attribute(x) 0 +# define __has_attribute(x) 0 #endif #if !defined(__has_feature) -#define __has_feature(x) 0 +# define __has_feature(x) 0 #endif #if !defined(__has_warning) -#define __has_warning(x) 0 +# define __has_warning(x) 0 #endif #if __has_include() -#include +# include #endif #pragma clang diagnostic ignored "-Wduplicate-method-match" @@ -33,209 +29,451 @@ #include #endif #if defined(__cplusplus) -#include -#include #include +#include +#include #else -#include -#include #include +#include +#include #endif #if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; -#endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(SWIFT_PASTE) -#define SWIFT_PASTE_HELPER(x, y) x##y -#define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) #endif #if !defined(SWIFT_METATYPE) -#define SWIFT_METATYPE(X) Class +# define SWIFT_METATYPE(X) Class #endif #if !defined(SWIFT_CLASS_PROPERTY) -#if __has_feature(objc_class_property) -#define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -#else -#define SWIFT_CLASS_PROPERTY(...) -#endif +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif #endif #if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else -#define SWIFT_RUNTIME_NAME(X) +# define SWIFT_RUNTIME_NAME(X) #endif #if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else -#define SWIFT_COMPILE_NAME(X) +# define SWIFT_COMPILE_NAME(X) #endif #if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else -#define SWIFT_METHOD_FAMILY(X) +# define SWIFT_METHOD_FAMILY(X) #endif #if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) +# define SWIFT_NOESCAPE __attribute__((noescape)) #else -#define SWIFT_NOESCAPE +# define SWIFT_NOESCAPE #endif #if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) #else -#define SWIFT_RELEASES_ARGUMENT +# define SWIFT_RELEASES_ARGUMENT #endif #if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else -#define SWIFT_WARN_UNUSED_RESULT +# define SWIFT_WARN_UNUSED_RESULT #endif #if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) +# define SWIFT_NORETURN __attribute__((noreturn)) #else -#define SWIFT_NORETURN +# define SWIFT_NORETURN #endif #if !defined(SWIFT_CLASS_EXTRA) -#define SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_EXTRA #endif #if !defined(SWIFT_PROTOCOL_EXTRA) -#define SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_ENUM_EXTRA) -#define SWIFT_ENUM_EXTRA +# define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -#if __has_attribute(objc_subclassing_restricted) -#define SWIFT_CLASS(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) \ - SWIFT_CLASS_EXTRA -#else -#define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#define SWIFT_CLASS_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -#endif +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif #endif #if !defined(SWIFT_RESILIENT_CLASS) -#if __has_attribute(objc_class_stub) -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) \ - SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) \ - __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -#else -#define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -#define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -#endif +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif #endif #if !defined(SWIFT_PROTOCOL) -#define SWIFT_PROTOCOL(SWIFT_NAME) \ - SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) \ - SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA #endif #if !defined(SWIFT_EXTENSION) -#define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -#if __has_attribute(objc_designated_initializer) -#define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define OBJC_DESIGNATED_INITIALIZER +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif +#if defined(__OBJC__) +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if !defined(SWIFT_CALL) +# define SWIFT_CALL __attribute__((swiftcall)) +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept #endif -#if !defined(SWIFT_ENUM_ATTR) -#if defined(__has_attribute) && __has_attribute(enum_extensibility) -#define SWIFT_ENUM_ATTR(_extensibility) \ - __attribute__((enum_extensibility(_extensibility))) #else -#define SWIFT_ENUM_ATTR(_extensibility) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT #endif #endif -#if !defined(SWIFT_ENUM) -#define SWIFT_ENUM(_type, _name, _extensibility) \ - enum _name : _type _name; \ - enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -#if __has_feature(generalized_swift_name) -#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 +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#endif +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SwiftProtobuf",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) +#ifndef SWIFTPROTOBUF_SWIFT_H +#define SWIFTPROTOBUF_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include #else -#define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) \ - SWIFT_ENUM(_type, _name, _extensibility) +#include +#include +#include #endif + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# 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 +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif #endif #if !defined(SWIFT_UNAVAILABLE) -#define SWIFT_UNAVAILABLE __attribute__((unavailable)) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) #endif #if !defined(SWIFT_UNAVAILABLE_MSG) -#define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) #endif #if !defined(SWIFT_AVAILABILITY) -#define SWIFT_AVAILABILITY(plat, ...) \ - __attribute__((availability(plat, __VA_ARGS__))) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) #endif #if !defined(SWIFT_WEAK_IMPORT) -#define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) #endif #if !defined(SWIFT_DEPRECATED) -#define SWIFT_DEPRECATED __attribute__((deprecated)) +# define SWIFT_DEPRECATED __attribute__((deprecated)) #endif #if !defined(SWIFT_DEPRECATED_MSG) -#define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif #if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) #else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) #endif #if defined(__OBJC__) #if !defined(IBSegueAction) -#define IBSegueAction +# define IBSegueAction #endif #endif #if !defined(SWIFT_EXTERN) -#if defined(__cplusplus) -#define SWIFT_EXTERN extern "C" -#else -#define SWIFT_EXTERN extern -#endif +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif #endif #if !defined(SWIFT_CALL) -#define SWIFT_CALL __attribute__((swiftcall)) +# define SWIFT_CALL __attribute__((swiftcall)) #endif #if defined(__cplusplus) #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT noexcept +# define SWIFT_NOEXCEPT noexcept #endif #else #if !defined(SWIFT_NOEXCEPT) -#define SWIFT_NOEXCEPT +# define SWIFT_NOEXCEPT #endif #endif #if defined(__cplusplus) @@ -244,7 +482,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); namespace swift { using Int = ptrdiff_t; using UInt = size_t; -} // namespace swift +} #endif #endif #if defined(__OBJC__) @@ -258,22 +496,17 @@ using UInt = size_t; #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") -#pragma clang diagnostic ignored "-Wpragma-clang-attribute" +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "SwiftProtobuf", \ - generated_declaration))), \ - apply_to = any(function, enum, objc_interface, objc_category, \ - objc_protocol)) -#pragma pop_macro("any") +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="SwiftProtobuf",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") #endif #if defined(__OBJC__) @@ -281,7 +514,7 @@ using UInt = size_t; #if defined(__cplusplus) #endif #if __has_attribute(external_source_symbol) -#pragma clang attribute pop +# pragma clang attribute pop #endif #pragma clang diagnostic pop #endif From 6ce5b23b3fe01322e0d9da2e0ad9451950801ef6 Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Thu, 3 Aug 2023 20:29:20 -0700 Subject: [PATCH 03/11] Add release note about i386 no longer being supported. --- build_scripts/ios/Info.plist | 5 ++--- build_scripts/ios/build.sh | 14 ++++++-------- build_scripts/tvos/Info_ios_and_tvos.plist | 3 +-- build_scripts/tvos/build.sh | 2 +- release_build_files/readme.md | 5 ++++- scripts/gha/build_ios_tvos.py | 14 +++++++------- 6 files changed, 21 insertions(+), 22 deletions(-) diff --git a/build_scripts/ios/Info.plist b/build_scripts/ios/Info.plist index 92f3bb83db..b8f87a7b13 100644 --- a/build_scripts/ios/Info.plist +++ b/build_scripts/ios/Info.plist @@ -6,13 +6,12 @@ LibraryIdentifier - ios-arm64_i386_x86_64-simulator + ios-arm64_x86_64-simulator LibraryPath LIBRARY_PATH SupportedArchitectures arm64 - i386 x86_64 SupportedPlatform @@ -39,4 +38,4 @@ XCFrameworkFormatVersion 1.0 - \ No newline at end of file + diff --git a/build_scripts/ios/build.sh b/build_scripts/ios/build.sh index 95d134a23d..477d45c19e 100755 --- a/build_scripts/ios/build.sh +++ b/build_scripts/ios/build.sh @@ -3,7 +3,7 @@ # Copyright 2020 Google LLC # # Script to build iOS XCFrameworks -# If built for all architectures (arm64 armv7 x86_64 i386), +# If built for all architectures (arm64 armv7 x86_64), # it will build universal framework as well # @@ -24,9 +24,9 @@ usage(){ set -e readonly SUPPORTED_PLATFORMS=(device simulator) -readonly SUPPORTED_ARCHITECTURES=(arm64 armv7 x86_64 i386) +readonly SUPPORTED_ARCHITECTURES=(arm64 armv7 x86_64) readonly DEVICE_ARCHITECTURES=(arm64 armv7) -readonly SIMULATOR_ARCHITECTURES=(arm64 x86_64 i386) +readonly SIMULATOR_ARCHITECTURES=(arm64 x86_64) readonly SUPPORTED_TARGETS=(firebase_analytics firebase_auth firebase_app_check firebase_database firebase_dynamic_links firebase_firestore firebase_functions firebase_gma firebase_installations firebase_messaging firebase_remote_config firebase_storage) # build default value @@ -198,7 +198,7 @@ if ${cmakeBuild}; then done done - # if we built for all architectures (arm64 armv7 x86_64 i386) + # if we built for all architectures (arm64 armv7 x86_64) # build universal framework as well if [[ ${#architectures[@]} < ${#SUPPORTED_ARCHITECTURES[@]} ]]; then exit 0 @@ -210,7 +210,6 @@ if ${cmakeBuild}; then libsubpath="${target}.framework/${target}" lipo -create "device-arm64/${libsubpath}" \ "device-armv7/${libsubpath}" \ - "simulator-i386/${libsubpath}" \ "simulator-x86_64/${libsubpath}" \ -output "universal/${libsubpath}" done @@ -235,10 +234,9 @@ if ${cmakeBuild}; then -output "${outputdir}/${target}" elif [[ "${platform}" == "simulator" ]]; then - outputdir="${xcframeworkspath}/${target}.xcframework/ios-arm64_i386_x86_64-simulator/${target}.framework" + outputdir="${xcframeworkspath}/${target}.xcframework/ios-arm64_x86_64-simulator/${target}.framework" mkdir -p ${outputdir} lipo -create "${frameworkspath}/simulator-arm64/${libsubpath}" \ - "${frameworkspath}/simulator-i386/${libsubpath}" \ "${frameworkspath}/simulator-x86_64/${libsubpath}" \ -output "${outputdir}/${target}" fi @@ -256,7 +254,7 @@ if ${cmakeBuild}; then cp -R ${frameworkspath}/device-arm64/firebase.framework/Headers \ ${xcframeworkspath}/firebase.xcframework/ios-arm64_armv7/firebase.framework/Headers cp -R ${frameworkspath}/device-arm64/firebase.framework/Headers \ - ${xcframeworkspath}/firebase.xcframework/ios-arm64_i386_x86_64-simulator/firebase.framework/Headers + ${xcframeworkspath}/firebase.xcframework/ios-arm64_x86_64-simulator/firebase.framework/Headers fi echo "xcframeworks build end & ready to use" fi diff --git a/build_scripts/tvos/Info_ios_and_tvos.plist b/build_scripts/tvos/Info_ios_and_tvos.plist index 9095d8a567..0559d37bcd 100644 --- a/build_scripts/tvos/Info_ios_and_tvos.plist +++ b/build_scripts/tvos/Info_ios_and_tvos.plist @@ -6,13 +6,12 @@ LibraryIdentifier - ios-arm64_i386_x86_64-simulator + ios-arm64_x86_64-simulator LibraryPath LIBRARY_PATH SupportedArchitectures arm64 - i386 x86_64 SupportedPlatform diff --git a/build_scripts/tvos/build.sh b/build_scripts/tvos/build.sh index bf79551ad7..c47f93042d 100755 --- a/build_scripts/tvos/build.sh +++ b/build_scripts/tvos/build.sh @@ -200,7 +200,7 @@ if ${cmakeBuild}; then done done - # if we built for all architectures (arm64 armv7 x86_64 i386) + # if we built for all architectures (arm64 armv7 x86_64) # build universal framework as well if [[ ${#architectures[@]} < ${#SUPPORTED_ARCHITECTURES[@]} ]]; then exit 0 diff --git a/release_build_files/readme.md b/release_build_files/readme.md index 4a061c96d3..8fad17416e 100644 --- a/release_build_files/readme.md +++ b/release_build_files/readme.md @@ -627,8 +627,11 @@ workflow use only during the development of your app, not for publicly shipping code. ## Release Notes -### Upcoming Release +### 11.4.0 - Changes + - General (Android): Update to Firebase Android BoM version 32.2.2. + - General (iOS): Update to Firebase Cocoapods version 10.13.0. + - General (iOS): 32-bit (i386) iOS simulator builds are no longer supported. - GMA (Android): Fixed a crash when initializing GMA without a Firebase App. ### 11.3.0 diff --git a/scripts/gha/build_ios_tvos.py b/scripts/gha/build_ios_tvos.py index 8b4dfa2d75..a8c5326b2c 100644 --- a/scripts/gha/build_ios_tvos.py +++ b/scripts/gha/build_ios_tvos.py @@ -59,7 +59,7 @@ 'toolchain' : 'cmake/toolchains/ios.cmake', }, 'simulator': { - 'architectures' : ('arm64', 'x86_64', 'i386'), + 'architectures' : ('arm64', 'x86_64'), 'toolchain': 'cmake/toolchains/ios_simulator.cmake', } }, @@ -140,7 +140,7 @@ def build_universal_framework(frameworks_path, targets): - firebase.framework - firebase_analytics.framework ... - - simulator-i386 + - simulator-x86_64 ... - tvos - device-arm64 @@ -154,7 +154,7 @@ def build_universal_framework(frameworks_path, targets): - ios - device-arm64 ... - - simulator-i386 + - simulator-x86_64 ... ... - universal <-------------- Newly created @@ -291,7 +291,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist, - firebase.framework - firebase_analytics.framework ... - - simulator-i386 + - simulator-x86_64 ... - tvos - device-arm64 @@ -308,7 +308,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist, - firebase.framework - firebase <---- - Headers <---- - - ios-arm64_i386_x86_64-simulator <--- + - ios-arm64_x86_64-simulator <--- - firebase.framework - firebase - Headers @@ -323,7 +323,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist, - ios-arm64_armv7 - firebase_auth.framework - firebase_auth - - ios-arm64_i386_x86_64-simulator + - ios-arm64_x86_64-simulator - firebase_auth.framework - firebase_auth - tvos-arm64 @@ -584,7 +584,7 @@ def parse_cmdline_args(): default=('device', 'simulator'), help='List of platforms to build for.') parser.add_argument('-a', '--architecture', nargs='+', - default=('arm64', 'armv7', 'x86_64', 'i386'), + default=('arm64', 'armv7', 'x86_64'), help='List of architectures to build for.') parser.add_argument('-t', '--target', nargs='+', default=( 'firebase_analytics', 'firebase_app_check', From 561b38c63eadb8de67e431eef589372a54fec0b6 Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Thu, 3 Aug 2023 20:45:37 -0700 Subject: [PATCH 04/11] Remove armv7 as well. --- build_scripts/ios/build.sh | 16 +++++++--------- ios_pod/swift_headers/FirebaseStorage-Swift.h | 2 ++ release_build_files/readme.md | 2 +- scripts/gha/build_ios_tvos.py | 18 +++++++++--------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/build_scripts/ios/build.sh b/build_scripts/ios/build.sh index 477d45c19e..12ac66e93b 100755 --- a/build_scripts/ios/build.sh +++ b/build_scripts/ios/build.sh @@ -3,7 +3,7 @@ # Copyright 2020 Google LLC # # Script to build iOS XCFrameworks -# If built for all architectures (arm64 armv7 x86_64), +# If built for all architectures (arm64 x86_64), # it will build universal framework as well # @@ -24,8 +24,8 @@ usage(){ set -e readonly SUPPORTED_PLATFORMS=(device simulator) -readonly SUPPORTED_ARCHITECTURES=(arm64 armv7 x86_64) -readonly DEVICE_ARCHITECTURES=(arm64 armv7) +readonly SUPPORTED_ARCHITECTURES=(arm64 x86_64) +readonly DEVICE_ARCHITECTURES=(arm64) readonly SIMULATOR_ARCHITECTURES=(arm64 x86_64) readonly SUPPORTED_TARGETS=(firebase_analytics firebase_auth firebase_app_check firebase_database firebase_dynamic_links firebase_firestore firebase_functions firebase_gma firebase_installations firebase_messaging firebase_remote_config firebase_storage) @@ -198,7 +198,7 @@ if ${cmakeBuild}; then done done - # if we built for all architectures (arm64 armv7 x86_64) + # if we built for all architectures (arm64 x86_64) # build universal framework as well if [[ ${#architectures[@]} < ${#SUPPORTED_ARCHITECTURES[@]} ]]; then exit 0 @@ -209,7 +209,6 @@ if ${cmakeBuild}; then mkdir -p universal/${target}.framework libsubpath="${target}.framework/${target}" lipo -create "device-arm64/${libsubpath}" \ - "device-armv7/${libsubpath}" \ "simulator-x86_64/${libsubpath}" \ -output "universal/${libsubpath}" done @@ -227,10 +226,9 @@ if ${cmakeBuild}; then for target in ${targets[@]}; do libsubpath="${target}.framework/${target}" if [[ "${platform}" == "device" ]]; then - outputdir="${xcframeworkspath}/${target}.xcframework/ios-arm64_armv7/${target}.framework" + outputdir="${xcframeworkspath}/${target}.xcframework/ios-arm64/${target}.framework" mkdir -p ${outputdir} lipo -create "${frameworkspath}/device-arm64/${libsubpath}" \ - "${frameworkspath}/device-armv7/${libsubpath}" \ -output "${outputdir}/${target}" elif [[ "${platform}" == "simulator" ]]; then @@ -250,9 +248,9 @@ if ${cmakeBuild}; then done # create Headers for xcframework - if [[ ! -d "${xcframeworkspath}/firebase.xcframework/ios-arm64_armv7/firebase.framework/Headers" ]]; then + if [[ ! -d "${xcframeworkspath}/firebase.xcframework/ios-arm64/firebase.framework/Headers" ]]; then cp -R ${frameworkspath}/device-arm64/firebase.framework/Headers \ - ${xcframeworkspath}/firebase.xcframework/ios-arm64_armv7/firebase.framework/Headers + ${xcframeworkspath}/firebase.xcframework/ios-arm64/firebase.framework/Headers cp -R ${frameworkspath}/device-arm64/firebase.framework/Headers \ ${xcframeworkspath}/firebase.xcframework/ios-arm64_x86_64-simulator/firebase.framework/Headers fi diff --git a/ios_pod/swift_headers/FirebaseStorage-Swift.h b/ios_pod/swift_headers/FirebaseStorage-Swift.h index eb7a268be0..4370228548 100644 --- a/ios_pod/swift_headers/FirebaseStorage-Swift.h +++ b/ios_pod/swift_headers/FirebaseStorage-Swift.h @@ -1,4 +1,6 @@ #if 0 +#elif defined(__armv7__) && __armv7__ +#error OOPS WE ARE BUILDING FOR 32-BIT #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASESTORAGE_SWIFT_H diff --git a/release_build_files/readme.md b/release_build_files/readme.md index 8fad17416e..15827c0fb9 100644 --- a/release_build_files/readme.md +++ b/release_build_files/readme.md @@ -631,7 +631,7 @@ code. - Changes - General (Android): Update to Firebase Android BoM version 32.2.2. - General (iOS): Update to Firebase Cocoapods version 10.13.0. - - General (iOS): 32-bit (i386) iOS simulator builds are no longer supported. + - General (iOS): 32-bit iOS builds (i386 and armv7) are no longer supported. - GMA (Android): Fixed a crash when initializing GMA without a Firebase App. ### 11.3.0 diff --git a/scripts/gha/build_ios_tvos.py b/scripts/gha/build_ios_tvos.py index a8c5326b2c..1e5c1cfc97 100644 --- a/scripts/gha/build_ios_tvos.py +++ b/scripts/gha/build_ios_tvos.py @@ -55,7 +55,7 @@ 'firebase_installations', 'firebase_messaging', 'firebase_remote_config', 'firebase_storage'), 'device': { - 'architectures' : ('arm64', 'armv7'), + 'architectures' : ('arm64'), 'toolchain' : 'cmake/toolchains/ios.cmake', }, 'simulator': { @@ -127,7 +127,7 @@ def arrange_frameworks(archive_output_path): def build_universal_framework(frameworks_path, targets): """Create universal frameworks if possible. - If all architectures (eg: arm64, armv7 etc) and platforms (device, simulator) + If all architectures (eg: arm64, etc) and platforms (device, simulator) were built, combine all of the libraries into a single universal framework. Args: frameworks_path (str): Root path containing subdirectories for each @@ -178,7 +178,7 @@ def build_universal_framework(frameworks_path, targets): framework_os_path = os.path.join(frameworks_path, apple_os) # Extract list of all built platform-architecture combinations into a map. # Map looks like this, - # {'device': ['arm64', 'armv7'], 'simulator': ['x86_64']} + # {'device': ['arm64''], 'simulator': ['x86_64']} platform_variant_architecture_dirs = os.listdir(framework_os_path) platform_variant_arch_map = defaultdict(list) for variant_architecture in platform_variant_architecture_dirs: @@ -273,7 +273,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist, """Build xcframeworks combining libraries for different operating systems. Combine frameworks for different operating systems (ios, tvos), architectures - (arm64, armv7, x86_64 etc) per platform variant (device, simulator). + (arm64, x86_64 etc) per platform variant (device, simulator). This makes it super convenient for developers to use a single deliverable in XCode and develop for multiple platforms/operating systems in one project. @@ -304,7 +304,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist, Output: /xcframeworks <----------- - firebase.xcframework - Info.plist <----------- - - ios-arm64_armv7 <-- + - ios-arm64 <-- - firebase.framework - firebase <---- - Headers <---- @@ -320,7 +320,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist, ... - firebase_auth.xcframework <-- - Info.plist - - ios-arm64_armv7 + - ios-arm64 - firebase_auth.framework - firebase_auth - ios-arm64_x86_64-simulator @@ -340,7 +340,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist, platform_variant_architecture_dirs = os.listdir(framework_os_path) # Extract list of all built platform-architecture combinations into a map. # Map looks like this, - # {'device': ['arm64', 'armv7'], 'simulator': ['x86_64']} + # {'device': ['arm64'], 'simulator': ['x86_64']} platform_variant_arch_map = defaultdict(list) for variant_architecture in platform_variant_architecture_dirs: # Skip directories not of the format platform-arch (eg: universal) @@ -385,7 +385,7 @@ def build_xcframeworks(frameworks_path, xcframeworks_path, template_info_plist, # device is treated as default platform variant and we do not add any # suffix at the end. For all other variants, add them as suffix. xcframework_key_parts.append(platform_variant) - # Eg: ios-arm64_armv7, tvos-x86_64-simulator + # Eg: ios-arm64, tvos-x86_64-simulator xcframework_key = '-'.join(xcframework_key_parts) # /xcframeworks/.xcframework/-/ @@ -584,7 +584,7 @@ def parse_cmdline_args(): default=('device', 'simulator'), help='List of platforms to build for.') parser.add_argument('-a', '--architecture', nargs='+', - default=('arm64', 'armv7', 'x86_64'), + default=('arm64', 'x86_64'), help='List of architectures to build for.') parser.add_argument('-t', '--target', nargs='+', default=( 'firebase_analytics', 'firebase_app_check', From f6253086fedd5c95abefc321474e28b4e79dd1d3 Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Thu, 3 Aug 2023 20:46:15 -0700 Subject: [PATCH 05/11] Remove debug ifdef --- ios_pod/swift_headers/FirebaseStorage-Swift.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/ios_pod/swift_headers/FirebaseStorage-Swift.h b/ios_pod/swift_headers/FirebaseStorage-Swift.h index 4370228548..eb7a268be0 100644 --- a/ios_pod/swift_headers/FirebaseStorage-Swift.h +++ b/ios_pod/swift_headers/FirebaseStorage-Swift.h @@ -1,6 +1,4 @@ #if 0 -#elif defined(__armv7__) && __armv7__ -#error OOPS WE ARE BUILDING FOR 32-BIT #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) #ifndef FIREBASESTORAGE_SWIFT_H From 744565e6aa0328a46fae2102201325d8f80a6f0c Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Thu, 3 Aug 2023 20:50:14 -0700 Subject: [PATCH 06/11] Fix script since single value tuple doesn't work --- scripts/gha/build_ios_tvos.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/gha/build_ios_tvos.py b/scripts/gha/build_ios_tvos.py index 1e5c1cfc97..bf67f598db 100644 --- a/scripts/gha/build_ios_tvos.py +++ b/scripts/gha/build_ios_tvos.py @@ -55,11 +55,11 @@ 'firebase_installations', 'firebase_messaging', 'firebase_remote_config', 'firebase_storage'), 'device': { - 'architectures' : ('arm64'), + 'architectures' : ['arm64'], 'toolchain' : 'cmake/toolchains/ios.cmake', }, 'simulator': { - 'architectures' : ('arm64', 'x86_64'), + 'architectures' : ['arm64', 'x86_64'], 'toolchain': 'cmake/toolchains/ios_simulator.cmake', } }, @@ -71,12 +71,12 @@ 'firebase_messaging', 'firebase_remote_config', 'firebase_storage'), 'device': { - 'architectures' : ('arm64',), + 'architectures' : ['arm64'], 'toolchain' : 'cmake/toolchains/apple.toolchain.cmake', 'toolchain_platform': 'TVOS', }, 'simulator': { - 'architectures' : ('x86_64',), + 'architectures' : ['x86_64', 'arm64'], 'toolchain' : 'cmake/toolchains/apple.toolchain.cmake', 'toolchain_platform': 'SIMULATOR_TVOS' } From e6e9f339ceb646d488982fa503d5f6b4d084e6f3 Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Fri, 4 Aug 2023 11:06:47 -0700 Subject: [PATCH 07/11] Remove more armv7 references. --- app/src/tests/runner/ios/Info.plist | 4 ++-- build_scripts/ios/Info.plist | 3 +-- build_scripts/tvos/Info_ios_and_tvos.plist | 3 +-- .../integration_testing/gameloop_apple/gameloop/Info.plist | 2 +- .../ui_testing/uitest_apple/FirebaseCppUITestApp/Info.plist | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/app/src/tests/runner/ios/Info.plist b/app/src/tests/runner/ios/Info.plist index 7b5e300a2b..a71b32aedb 100644 --- a/app/src/tests/runner/ios/Info.plist +++ b/app/src/tests/runner/ios/Info.plist @@ -30,7 +30,7 @@ Main UIRequiredDeviceCapabilities - armv7 + arm64 UISupportedInterfaceOrientations @@ -46,4 +46,4 @@ UIInterfaceOrientationLandscapeRight - \ No newline at end of file + diff --git a/build_scripts/ios/Info.plist b/build_scripts/ios/Info.plist index b8f87a7b13..ba4d5c05b0 100644 --- a/build_scripts/ios/Info.plist +++ b/build_scripts/ios/Info.plist @@ -21,13 +21,12 @@ LibraryIdentifier - ios-arm64_armv7 + ios-arm64 LibraryPath LIBRARY_PATH SupportedArchitectures arm64 - armv7 SupportedPlatform ios diff --git a/build_scripts/tvos/Info_ios_and_tvos.plist b/build_scripts/tvos/Info_ios_and_tvos.plist index 0559d37bcd..0cb263b90d 100644 --- a/build_scripts/tvos/Info_ios_and_tvos.plist +++ b/build_scripts/tvos/Info_ios_and_tvos.plist @@ -21,13 +21,12 @@ LibraryIdentifier - ios-arm64_armv7 + ios-arm64 LibraryPath LIBRARY_PATH SupportedArchitectures arm64 - armv7 SupportedPlatform ios diff --git a/scripts/gha/integration_testing/gameloop_apple/gameloop/Info.plist b/scripts/gha/integration_testing/gameloop_apple/gameloop/Info.plist index 0b5df7a546..056f2004e6 100644 --- a/scripts/gha/integration_testing/gameloop_apple/gameloop/Info.plist +++ b/scripts/gha/integration_testing/gameloop_apple/gameloop/Info.plist @@ -28,7 +28,7 @@ Main UIRequiredDeviceCapabilities - armv7 + arm64 UISupportedInterfaceOrientations diff --git a/scripts/gha/ui_testing/uitest_apple/FirebaseCppUITestApp/Info.plist b/scripts/gha/ui_testing/uitest_apple/FirebaseCppUITestApp/Info.plist index 16be3b6811..b6caf756b8 100644 --- a/scripts/gha/ui_testing/uitest_apple/FirebaseCppUITestApp/Info.plist +++ b/scripts/gha/ui_testing/uitest_apple/FirebaseCppUITestApp/Info.plist @@ -26,7 +26,7 @@ Main UIRequiredDeviceCapabilities - armv7 + arm64 UISupportedInterfaceOrientations From d42186caac32cf8c3dfaf3f45304e4cff1b7a27c Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Fri, 4 Aug 2023 14:08:50 -0700 Subject: [PATCH 08/11] Remove extra tvOS simulator. --- scripts/gha/build_ios_tvos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gha/build_ios_tvos.py b/scripts/gha/build_ios_tvos.py index bf67f598db..d314024e58 100644 --- a/scripts/gha/build_ios_tvos.py +++ b/scripts/gha/build_ios_tvos.py @@ -76,7 +76,7 @@ 'toolchain_platform': 'TVOS', }, 'simulator': { - 'architectures' : ['x86_64', 'arm64'], + 'architectures' : ['x86_64'], 'toolchain' : 'cmake/toolchains/apple.toolchain.cmake', 'toolchain_platform': 'SIMULATOR_TVOS' } From 194246404d04ac27fa7eb87527997d4c39cc2d3f Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Fri, 4 Aug 2023 16:39:49 -0700 Subject: [PATCH 09/11] Revert "Remove extra tvOS simulator." This reverts commit d42186caac32cf8c3dfaf3f45304e4cff1b7a27c. --- scripts/gha/build_ios_tvos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gha/build_ios_tvos.py b/scripts/gha/build_ios_tvos.py index d314024e58..bf67f598db 100644 --- a/scripts/gha/build_ios_tvos.py +++ b/scripts/gha/build_ios_tvos.py @@ -76,7 +76,7 @@ 'toolchain_platform': 'TVOS', }, 'simulator': { - 'architectures' : ['x86_64'], + 'architectures' : ['x86_64', 'arm64'], 'toolchain' : 'cmake/toolchains/apple.toolchain.cmake', 'toolchain_platform': 'SIMULATOR_TVOS' } From 90e862022d90ae02fda27590cf7f938e37f4d4a8 Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Fri, 4 Aug 2023 16:39:59 -0700 Subject: [PATCH 10/11] Revert "Revert "Remove extra tvOS simulator."" This reverts commit 194246404d04ac27fa7eb87527997d4c39cc2d3f. --- scripts/gha/build_ios_tvos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gha/build_ios_tvos.py b/scripts/gha/build_ios_tvos.py index bf67f598db..d314024e58 100644 --- a/scripts/gha/build_ios_tvos.py +++ b/scripts/gha/build_ios_tvos.py @@ -76,7 +76,7 @@ 'toolchain_platform': 'TVOS', }, 'simulator': { - 'architectures' : ['x86_64', 'arm64'], + 'architectures' : ['x86_64'], 'toolchain' : 'cmake/toolchains/apple.toolchain.cmake', 'toolchain_platform': 'SIMULATOR_TVOS' } From ec862684b4c3c525e7e2458a84bc5884b447fa1c Mon Sep 17 00:00:00 2001 From: Jon Simantov Date: Sat, 5 Aug 2023 18:25:16 -0700 Subject: [PATCH 11/11] Fix copyright line. --- ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseCoreInternal-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseFunctions-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseSharedSwift-Swift.h | 3 +++ ios_pod/swift_headers/FirebaseStorage-Swift.h | 3 +++ ios_pod/swift_headers/SwiftProtobuf-Swift.h | 3 +++ 11 files changed, 33 insertions(+) diff --git a/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h b/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h index aa4872633c..75a6cfd445 100644 --- a/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h b/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h index 663a0fa0e3..900a26353e 100644 --- a/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h +++ b/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h b/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h index c0f8584947..6858831af3 100644 --- a/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h b/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h index 6c547ad142..4a0c82b7e6 100644 --- a/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseFunctions-Swift.h b/ios_pod/swift_headers/FirebaseFunctions-Swift.h index 411dc8f16d..30701d8af1 100644 --- a/ios_pod/swift_headers/FirebaseFunctions-Swift.h +++ b/ios_pod/swift_headers/FirebaseFunctions-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h b/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h index d2af1b5634..ce52b04787 100644 --- a/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h b/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h index 35321258b7..b404b4e97b 100644 --- a/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h +++ b/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h b/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h index 420822559a..9d335c54d5 100644 --- a/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h b/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h index 4b7ae4643d..5e028d4fde 100644 --- a/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h +++ b/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/FirebaseStorage-Swift.h b/ios_pod/swift_headers/FirebaseStorage-Swift.h index eb7a268be0..f9e5c97b1d 100644 --- a/ios_pod/swift_headers/FirebaseStorage-Swift.h +++ b/ios_pod/swift_headers/FirebaseStorage-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51) diff --git a/ios_pod/swift_headers/SwiftProtobuf-Swift.h b/ios_pod/swift_headers/SwiftProtobuf-Swift.h index 7e3ce4dcf6..fb5b1f0f2c 100644 --- a/ios_pod/swift_headers/SwiftProtobuf-Swift.h +++ b/ios_pod/swift_headers/SwiftProtobuf-Swift.h @@ -1,3 +1,6 @@ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.13.0. + #if 0 #elif defined(__arm64__) && __arm64__ // Generated by Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)