From 70e3cb21024c5dcc78e6dd1c9f047329d8aa35ab Mon Sep 17 00:00:00 2001 From: a-maurice Date: Wed, 26 Aug 2026 17:37:11 -0700 Subject: [PATCH 1/2] Change iOS builds to use SPM --- .github/workflows/update-dependencies.yml | 100 +- CMakeLists.txt | 2 +- analytics/CMakeLists.txt | 23 +- app/CMakeLists.txt | 15 +- app_check/CMakeLists.txt | 10 +- auth/CMakeLists.txt | 8 +- build_scripts/ios/install_prereqs.sh | 9 +- build_scripts/tvos/install_prereqs.sh | 9 +- database/CMakeLists.txt | 4 +- firestore/CMakeLists.txt | 27 +- functions/CMakeLists.txt | 8 +- installations/CMakeLists.txt | 4 +- ios_spm/CMakeLists.txt | 203 + ios_spm/Package.swift | 49 + ios_spm/readme.md | 15 + .../swift_headers/FirebaseAnalytics-Swift.h | 688 ++ .../FirebaseAnalyticsSwift-Swift.h | 578 ++ ios_spm/swift_headers/FirebaseAuth-Swift.h | 5796 +++++++++++++++++ .../FirebaseCoreInternal-Swift.h | 814 +++ .../swift_headers/FirebaseDatabase-Swift.h | 688 ++ .../FirebaseDatabaseSwift-Swift.h | 578 ++ .../swift_headers/FirebaseFirestore-Swift.h | 704 ++ .../FirebaseFirestoreSwift-Swift.h | 578 ++ .../swift_headers/FirebaseFunctions-Swift.h | 1254 ++++ .../FirebaseInAppMessaging-Swift.h | 688 ++ .../FirebaseInAppMessagingSwift-Swift.h | 578 ++ .../FirebaseMLModelDownloader-Swift.h | 688 ++ .../FirebaseRemoteConfig-Swift.h | 688 ++ .../FirebaseRemoteConfigSwift-Swift.h | 578 ++ .../swift_headers/FirebaseSessions-Swift.h | 784 +++ .../swift_headers/FirebaseSharedSwift-Swift.h | 688 ++ ios_spm/swift_headers/FirebaseStorage-Swift.h | 2006 ++++++ ios_spm/swift_headers/Promises-Swift.h | 686 ++ ios_spm/swift_headers/SwiftProtobuf-Swift.h | 684 ++ messaging/CMakeLists.txt | 4 +- remote_config/CMakeLists.txt | 4 +- scripts/format_code.py | 2 +- scripts/gha/build_ios_tvos.py | 6 +- scripts/gha/lint_commenter.py | 2 +- scripts/gha/print_matrix_configuration.py | 4 +- scripts/update_android_ios_dependencies.py | 330 +- storage/CMakeLists.txt | 6 +- ump/CMakeLists.txt | 9 +- 43 files changed, 20253 insertions(+), 346 deletions(-) create mode 100644 ios_spm/CMakeLists.txt create mode 100644 ios_spm/Package.swift create mode 100644 ios_spm/readme.md create mode 100644 ios_spm/swift_headers/FirebaseAnalytics-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseAnalyticsSwift-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseAuth-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseCoreInternal-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseDatabase-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseDatabaseSwift-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseFirestore-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseFirestoreSwift-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseFunctions-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseInAppMessaging-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseInAppMessagingSwift-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseMLModelDownloader-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseRemoteConfig-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseRemoteConfigSwift-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseSessions-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseSharedSwift-Swift.h create mode 100644 ios_spm/swift_headers/FirebaseStorage-Swift.h create mode 100644 ios_spm/swift_headers/Promises-Swift.h create mode 100644 ios_spm/swift_headers/SwiftProtobuf-Swift.h diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index d5a8a7abeb..1816eed5ba 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -80,84 +80,64 @@ jobs: python scripts/update_android_ios_dependencies.py --skip_android --logfile=${UPDATE_LOGFILE} echo "CHOSEN_DEPS=iOS" >> $GITHUB_ENV fi - # iOS: Update Firestore external version to match Firestore Cocoapod version. - firestore_version=$(grep "pod 'Firebase/Firestore'" ios_pod/Podfile | sed "s/.*'\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)'.*/\1/") - echo "Setting Firestore external version to ${firestore_version}" - sed -i~ "s/^set(version [^)]*)/set(version CocoaPods-${firestore_version})/i" cmake/external/firestore.cmake - # iOS: Update Analytics header files, used for generating constants. - analytics_version=$(grep "pod 'Firebase/Analytics'" ios_pod/Podfile | sed "s/.*'\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)'.*/\1/") - if [[ "$(uname)" == "Darwin"* ]]; then - echo "Updating Analytics iOS headers from version ${analytics_version}" - # Unfortunately we can't just download these headers from GitHub, as - # Analytics is closed-source. If it becomes open-source, we could just - # download the header files from the iOS SDK's release branch. So instead, - # download the Firebase Analytics cocoapod (via a stub project) and get the - # header from there. This will only work on macOS. - podtmp="$(mktemp -d)" - cd "${podtmp}" - # Generate a Podfile for Firebase/Analytics. Use the Specs.git - # source to avoid any propagation delays due to CocoaPods mirror. - echo "source 'https://github.com/CocoaPods/Specs.git'" > Podfile - echo "platform :ios, '15.0'" >> Podfile - echo "pod 'Firebase/Analytics', '${analytics_version}'" >> Podfile - pod repo update - pod install || true # ignore error since there is no Xcode project - declare -a header_dirs - # Get all of the framework header directories from the xcframework. - header_dirs=(Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.xcframework/*/FirebaseAnalytics.framework/Headers) - # Just use the first directory found, the headers should be the same across - # all of the frameworks. - header_dir="${header_dirs[0]}" - cd - - cd analytics/ios_headers - for ios_header in *.h; do - # Each file in this directory matches a file in the Analytics iOS SDK. - cp -vf "${podtmp}/${header_dir}/${ios_header}" . - # If the file doesn't have a Google copyright, add one. - if ! grep -q "^// Copyright [0-9]* Google LLC" "${ios_header}"; then - copyright_line="// Copyright $(date +%Y) Google LLC\n" - else - copyright_line= - fi - # Add a note to each file about its source. - sed -i~ "s|^/// @file|${copyright_line}\n// Copied from Firebase Analytics iOS SDK ${analytics_version}.\n\n/// @file|" "${ios_header}" - rm -f "${ios_header}~" # remove backup file that sed generated - python ../../scripts/format_code.py --f "${ios_header}" - done - cd - - rm -rf "${podtmp}" - fi + # iOS: Update Firestore external version to match Firebase iOS SDK version. + firebase_ios_version=$(grep "firebase-ios-sdk.git" ios_spm/Package.swift | sed 's/.*exact: "\([^"]*\)".*/\1/') + echo "Setting Firestore external version to ${firebase_ios_version}" + sed -i~ "s/^set(version [^)]*)/set(version CocoaPods-${firebase_ios_version})/i" cmake/external/firestore.cmake - # Download the zip distribution and get the Swift header files. - core_version=$(grep "pod 'Firebase/Core'" ios_pod/Podfile | sed "s/.*'\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)'.*/\1/") - echo "Getting Swift header files from Firebase iOS SDK ${core_version} zip distribution" + # Download the Firebase iOS prebuilt zip distribution for Analytics and Swift headers. + echo "Downloading Firebase iOS SDK ${firebase_ios_version} prebuilt zip distribution" ziptmp="$(mktemp -d)" - # The version might be named vX.Y.Z or simply X.Y.Z, check which exists. declare -a zip_urls - zip_urls=("https://github.com/firebase/firebase-ios-sdk/releases/download/v${core_version}/Firebase.zip" "https://github.com/firebase/firebase-ios-sdk/releases/download/${core_version}/Firebase.zip") + zip_urls=("https://github.com/firebase/firebase-ios-sdk/releases/download/v${firebase_ios_version}/Firebase.zip" "https://github.com/firebase/firebase-ios-sdk/releases/download/${firebase_ios_version}/Firebase.zip") for try_url in ${zip_urls[@]} error; do curl -H 'Authorization: token ${{ github.token }}' -L -f "${try_url}" -o "${ziptmp}/Firebase.zip" 2> /dev/null && break done if [[ "${try_url}" == "error" ]]; then - echo "::error ::Could not download Firebase iOS prebuilt zip file, skipping Swift headers." + echo "::error ::Could not download Firebase iOS prebuilt zip file, skipping iOS headers update." else cd "${ziptmp}" echo "Unzipping..." - unzip -q Firebase.zip '*-Swift.h' + unzip -q Firebase.zip cd - - # Copy all *-Swift.h header files into ios_pod/swift_headers/ - echo "Copying 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/ + + # iOS: Update Analytics header files, used for generating constants. + echo "Updating Analytics iOS headers from version ${firebase_ios_version}" + declare -a header_dirs + header_dirs=("${ziptmp}"/FirebaseAnalytics/FirebaseAnalytics.xcframework/*/FirebaseAnalytics.framework/Headers) + if [[ -d "${header_dirs[0]}" ]]; then + header_dir="${header_dirs[0]}" + cd analytics/ios_headers + for ios_header in *.h; do + if [[ -f "${header_dir}/${ios_header}" ]]; then + cp -vf "${header_dir}/${ios_header}" . + if ! grep -q "^// Copyright [0-9]* Google LLC" "${ios_header}"; then + copyright_line="// Copyright $(date +%Y) Google LLC\n" + else + copyright_line= + fi + sed -i~ "s|^/// @file|${copyright_line}\n// Copied from Firebase Analytics iOS SDK ${firebase_ios_version}.\n\n/// @file|" "${ios_header}" + rm -f "${ios_header}~" + python ../../scripts/format_code.py --f "${ios_header}" + fi + done + cd - + fi + + # Copy all *-Swift.h header files into ios_spm/swift_headers/ + echo "Copying Swift bridging headers..." + mkdir -p ios_spm/swift_headers + find "${ziptmp}" -name '*-Swift.h' -path '*ios*arm64*x86_64*simulator*' -print0 | xargs -0 -n 1 -J REPLACETEXT cp -f REPLACETEXT ios_spm/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 + for ios_header in ios_spm/swift_headers/*.h; do if ! grep -q "^// Copied from Firebase iOS SDK" "${ios_header}"; then - sed -i~ "s|^// Generated by Apple Swift|${copyright_line}\n// Copied from Firebase iOS SDK ${core_version}.\n\n// Generated by Apple Swift|" "${ios_header}" + sed -i~ "s|^// Generated by Apple Swift|${copyright_line}\n// Copied from Firebase iOS SDK ${firebase_ios_version}.\n\n// Generated by Apple Swift|" "${ios_header}" fi python3 scripts/format_code.py --f "${ios_header}" done fi - rm -rf ${ziptmp} + rm -rf "${ziptmp}" elif [[ ${GITHUB_EVENT_INPUTS_UPDATEANDROID} -eq 1 ]]; then # Update Android only echo "Updating Android dependencies only" diff --git a/CMakeLists.txt b/CMakeLists.txt index bfd9306cc9..7cd1a549a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -601,7 +601,7 @@ if(MSVC) add_definitions(-DNOMINMAX) endif() -add_subdirectory(ios_pod) +add_subdirectory(ios_spm) # If we're building tests, we need to include the 'testing' folder before any # of the tests actually get built. diff --git a/analytics/CMakeLists.txt b/analytics/CMakeLists.txt index 48d21a8942..f45af19e64 100644 --- a/analytics/CMakeLists.txt +++ b/analytics/CMakeLists.txt @@ -149,13 +149,7 @@ elseif(IOS) target_include_directories(firebase_analytics PRIVATE "${CMAKE_CURRENT_BINARY_DIR}") endif() - # Swift needs to find the FirebaseAnalytics module from CocoaPods - set(pods_dir "${FIREBASE_POD_DIR}/Pods") - - # Point to the base directories containing the .xcframework folders. - # Xcode natively handles XCFrameworks and will pick the right slice automatically. - # Determine the xcframework architecture slice based on the target platform - # and if it is running on simulator or device. + # Swift needs to find the FirebaseAnalytics module from SwiftPM artifacts string(TOLOWER "${CMAKE_OSX_SYSROOT}" sysroot_lower) if(CMAKE_SYSTEM_NAME STREQUAL "tvOS") if(sysroot_lower MATCHES "simulator") @@ -171,9 +165,15 @@ elseif(IOS) endif() endif() - set(analytics_framework_dir "${pods_dir}/FirebaseAnalytics/Frameworks/FirebaseAnalytics.xcframework/${analytics_slice}") - set(measurement_framework_dir "${pods_dir}/GoogleAppMeasurement/Frameworks/GoogleAppMeasurement.xcframework/${analytics_slice}") + set(analytics_framework_dir "${FIREBASE_SPM_ARTIFACTS_DIR}/firebase-ios-sdk/FirebaseAnalytics/FirebaseAnalytics.xcframework/${analytics_slice}") + set(measurement_framework_dir "${FIREBASE_SPM_ARTIFACTS_DIR}/googleappmeasurement/GoogleAppMeasurement/GoogleAppMeasurement.xcframework/${analytics_slice}") + target_include_directories(firebase_analytics + PUBLIC + "${analytics_framework_dir}/FirebaseAnalytics.framework/Headers" + "${measurement_framework_dir}/GoogleAppMeasurement.framework/Headers" + ) + target_compile_options(firebase_analytics PRIVATE $<$:-F${analytics_framework_dir}> @@ -191,11 +191,12 @@ elseif(IOS) XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "YES" ) - setup_pod_headers( + setup_spm_headers( firebase_analytics - POD_NAMES + MODULES FirebaseCore FirebaseAnalytics + GoogleAppMeasurement ) if (FIREBASE_XCODE_TARGET_FORMAT STREQUAL "frameworks") diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index d68b303c46..5c5d735e7e 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -376,13 +376,10 @@ elseif(IOS) # Xcode 14 and is completely unsupported by modern Swift toolchains. target_compile_options(firebase_app PUBLIC $<$>:-fobjc-arc>) - # Add empty include path to get root include folder '.' - setup_pod_headers( + setup_spm_headers( firebase_app - POD_NAMES - . + MODULES FirebaseCore - FirebaseInstanceID ) else() target_link_libraries(firebase_app @@ -469,10 +466,10 @@ if (IOS) ${FIREBASE_SOURCE_DIR}/firestore/src/include/firebase/firestore/transaction.h ${FIREBASE_SOURCE_DIR}/firestore/src/include/firebase/firestore/transaction_options.h ${FIREBASE_SOURCE_DIR}/firestore/src/include/firebase/firestore/write_batch.h - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestoreInternal/Firestore/core/include/firebase/firestore/firestore_errors.h - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestoreInternal/Firestore/core/include/firebase/firestore/firestore_version.h - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestoreInternal/Firestore/core/include/firebase/firestore/geo_point.h - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestoreInternal/Firestore/core/include/firebase/firestore/timestamp.h) + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/core/include/firebase/firestore/firestore_errors.h + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/core/include/firebase/firestore/firestore_version.h + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/core/include/firebase/firestore/geo_point.h + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/core/include/firebase/firestore/timestamp.h) set(functions_HDRS ${FIREBASE_SOURCE_DIR}/functions/src/include/firebase/functions.h ${FIREBASE_SOURCE_DIR}/functions/src/include/firebase/functions/callable_reference.h diff --git a/app_check/CMakeLists.txt b/app_check/CMakeLists.txt index a1fea32ad1..f27cc4a870 100644 --- a/app_check/CMakeLists.txt +++ b/app_check/CMakeLists.txt @@ -155,7 +155,7 @@ target_include_directories(firebase_app_check ${CMAKE_CURRENT_LIST_DIR}/src/include PRIVATE ${FIREBASE_CPP_SDK_ROOT_DIR} - ${FIREBASE_CPP_SDK_ROOT_DIR}/ios_pod/swift_headers + ${FIREBASE_SPM_SWIFT_HEADERS_DIR} ) target_compile_definitions(firebase_app_check PRIVATE @@ -171,13 +171,13 @@ elseif(IOS) target_link_libraries(firebase_app_check PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_app_check - POD_NAMES + INCLUDE_PRIVATE_HEADERS + MODULES FirebaseCore FirebaseAppCheck - FirebaseAppCheckInterop/FirebaseAppCheck/Interop - INCLUDE_PRIVATE_HEADERS + FirebaseAppCheckInterop ) if (FIREBASE_XCODE_TARGET_FORMAT STREQUAL "frameworks") diff --git a/auth/CMakeLists.txt b/auth/CMakeLists.txt index 235c85d695..2c1dbe3be3 100644 --- a/auth/CMakeLists.txt +++ b/auth/CMakeLists.txt @@ -174,7 +174,7 @@ target_include_directories(firebase_auth ${CMAKE_CURRENT_LIST_DIR}/src/include PRIVATE ${FIREBASE_CPP_SDK_ROOT_DIR} - ${FIREBASE_CPP_SDK_ROOT_DIR}/ios_pod/swift_headers + ${FIREBASE_SPM_SWIFT_HEADERS_DIR} ${additional_include_DIR} ) target_compile_definitions(firebase_auth @@ -191,12 +191,12 @@ elseif(IOS) target_link_libraries(firebase_auth PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_auth - POD_NAMES + MODULES FirebaseCore FirebaseAuth - FirebaseAuthInterop/FirebaseAuth/Interop + FirebaseAuthInterop ) if (FIREBASE_XCODE_TARGET_FORMAT STREQUAL "frameworks") set_target_properties(firebase_auth PROPERTIES diff --git a/build_scripts/ios/install_prereqs.sh b/build_scripts/ios/install_prereqs.sh index 1c90d918ab..29d678e85f 100755 --- a/build_scripts/ios/install_prereqs.sh +++ b/build_scripts/ios/install_prereqs.sh @@ -36,11 +36,8 @@ if [[ -z $(xcode-select -p) || ! -d $(xcode-select -p) ]]; then exit 1 fi -if [[ -z $(which pod) ]]; then - echo "Cocoapods not detected, installing..." - sudo gem install cocoapods +if [[ -z $(which swift) ]]; then + echo "Error, swift compiler not installed or not in PATH." + exit 1 fi -echo "Updating Cocoapods repo..." -pod repo update - diff --git a/build_scripts/tvos/install_prereqs.sh b/build_scripts/tvos/install_prereqs.sh index 13f724aecb..929e26f42d 100755 --- a/build_scripts/tvos/install_prereqs.sh +++ b/build_scripts/tvos/install_prereqs.sh @@ -36,11 +36,8 @@ if [[ -z $(xcode-select -p) || ! -d $(xcode-select -p) ]]; then exit 1 fi -if [[ -z $(which pod) ]]; then - echo "Cocoapods not detected, installing..." - sudo gem install cocoapods +if [[ -z $(which swift) ]]; then + echo "Error, swift compiler not installed or not in PATH." + exit 1 fi -echo "Updating Cocoapods repo..." -pod repo update - diff --git a/database/CMakeLists.txt b/database/CMakeLists.txt index d66b52433f..1df98b1f3e 100644 --- a/database/CMakeLists.txt +++ b/database/CMakeLists.txt @@ -226,9 +226,9 @@ elseif(IOS) target_link_libraries(firebase_database PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_database - POD_NAMES + MODULES FirebaseCore FirebaseDatabase ) diff --git a/firestore/CMakeLists.txt b/firestore/CMakeLists.txt index ae22ddd8ea..a278e26c96 100644 --- a/firestore/CMakeLists.txt +++ b/firestore/CMakeLists.txt @@ -336,21 +336,20 @@ target_include_directories(firebase_firestore if(IOS) target_include_directories(firebase_firestore PUBLIC - # The Firestore core on iOS comes via the FirebaseFirestore CocoaPod, and + # The Firestore core on iOS comes via the FirebaseFirestore Swift Package, and # public headers should come from there. - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestore/Firestore/core/include - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestoreInternal/Firestore/core/include - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestore/Firestore/Protos/nanopb - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/core/include + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/Protos/nanopb PRIVATE # Additionally, the core C++ API is not declared publicly within the - # FirebaseFirestore pod, so depend on headers available in the source + # FirebaseFirestore package, so depend on headers available in the source # distribution. - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestore - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestoreInternal + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/FirebaseFirestoreInternal ) set(FIREBASE_FIRESTORE_CORE_HEADER_DIR - ${FIREBASE_POD_DIR}/Pods/FirebaseFirestoreInternal/Firestore/core/include + ${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/core/include ) else() @@ -425,19 +424,17 @@ elseif(IOS) target_link_libraries(firebase_firestore PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_firestore INCLUDE_PRIVATE_HEADERS - POD_NAMES + MODULES FirebaseCore FirebaseFirestore FirebaseFirestoreInternal + FirebaseAuthInterop abseil nanopb - gRPC-C++ - gRPC-Core - FirebaseAuthInterop/FirebaseAuth/Interop - FirebaseCoreExtension/FirebaseCore/Extension + gRPC ) if (FIREBASE_XCODE_TARGET_FORMAT STREQUAL "frameworks") diff --git a/functions/CMakeLists.txt b/functions/CMakeLists.txt index 7fe1ceb927..62d3b0fe06 100644 --- a/functions/CMakeLists.txt +++ b/functions/CMakeLists.txt @@ -75,7 +75,7 @@ target_include_directories(firebase_functions ${CMAKE_CURRENT_LIST_DIR}/src/include PRIVATE ${FIREBASE_CPP_SDK_ROOT_DIR} - ${FIREBASE_CPP_SDK_ROOT_DIR}/ios_pod/swift_headers + ${FIREBASE_SPM_SWIFT_HEADERS_DIR} ) target_compile_definitions(firebase_functions PRIVATE @@ -89,11 +89,11 @@ elseif(IOS) target_compile_options(firebase_functions PUBLIC "-fobjc-arc" "-fembed-bitcode") target_link_libraries(firebase_functions - PUBLIC "-fembed-bitcode") + PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_functions - POD_NAMES + MODULES FirebaseCore FirebaseFunctions ) diff --git a/installations/CMakeLists.txt b/installations/CMakeLists.txt index ca7741c94d..1ead2dfd92 100644 --- a/installations/CMakeLists.txt +++ b/installations/CMakeLists.txt @@ -74,9 +74,9 @@ elseif(IOS) target_link_libraries(firebase_installations PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_installations - POD_NAMES + MODULES FirebaseCore FirebaseInstallations ) diff --git a/ios_spm/CMakeLists.txt b/ios_spm/CMakeLists.txt new file mode 100644 index 0000000000..a54c7039ae --- /dev/null +++ b/ios_spm/CMakeLists.txt @@ -0,0 +1,203 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +if(NOT IOS) + return() +endif() + +# Global variables for Swift Package Manager paths +set(FIREBASE_SPM_DIR "${CMAKE_CURRENT_BINARY_DIR}" CACHE STRING "Directory for Swift Package Manager resolution" FORCE) +set(FIREBASE_SPM_CHECKOUTS_DIR "${FIREBASE_SPM_DIR}/.build/checkouts" CACHE STRING "Path to SwiftPM package checkouts" FORCE) +set(FIREBASE_SPM_ARTIFACTS_DIR "${FIREBASE_SPM_DIR}/.build/artifacts" CACHE STRING "Path to SwiftPM binary artifacts" FORCE) +set(FIREBASE_SPM_SWIFT_HEADERS_DIR "${CMAKE_CURRENT_LIST_DIR}/swift_headers" CACHE STRING "Path to Swift bridging headers" FORCE) + +# Copy Package.swift to the build directory for resolution +file(COPY "${CMAKE_CURRENT_LIST_DIR}/Package.swift" DESTINATION "${FIREBASE_SPM_DIR}") + +message(STATUS "Resolving Swift Package dependencies for iOS/tvOS...") + +execute_process( + COMMAND ${CMAKE_COMMAND} -E env + GIT_CONFIG_COUNT=1 + GIT_CONFIG_KEY_0=safe.bareRepository + GIT_CONFIG_VALUE_0=all + swift package --package-path "${FIREBASE_SPM_DIR}" resolve + RESULT_VARIABLE spm_result + OUTPUT_VARIABLE spm_output + ERROR_VARIABLE spm_error +) + +if(NOT spm_result EQUAL 0) + message(FATAL_ERROR "Failed to resolve Swift packages via SwiftPM:\n${spm_error}\n${spm_output}") +endif() + +message(STATUS "Swift Package dependencies resolved successfully.") + +# Sets up a target with the include directories for the specified SwiftPM modules. +# +# Usage: setup_spm_headers( +# MODULES [...] +# [INCLUDE_PRIVATE_HEADERS] +# ) +# +# Args: +# target_name: Name of target to add includes to +# MODULES: Array of module names to configure (e.g. FirebaseCore, FirebaseAuth, etc.) +# INCLUDE_PRIVATE_HEADERS: Optional flag to also include internal / extension headers +# +function(setup_spm_headers target_name) + set(multi MODULES) + set(options INCLUDE_PRIVATE_HEADERS) + + cmake_parse_arguments(SETUP_SPM "${options}" "" "${multi}" ${ARGN}) + + if(NOT "${SETUP_SPM_MODULES}" STREQUAL "") + foreach(module ${SETUP_SPM_MODULES}) + # Check source checkouts under firebase-ios-sdk and root checkouts + set(public_dirs + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Sources/Public" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Sources/Public/${module}" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Source/Library/Public" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Source/Library/Public/${module}" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Interop/Public" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Interop/Public/${module}" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Public" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/core/include" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/Source/Public" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/Firestore/Source/Public/FirebaseFirestore" + "${FIREBASE_SPM_CHECKOUTS_DIR}/${module}" + "${FIREBASE_SPM_CHECKOUTS_DIR}/${module}/spm_headers" + "${FIREBASE_SPM_CHECKOUTS_DIR}/interop-ios-for-google-sdks/${module}/Public" + "${FIREBASE_SPM_CHECKOUTS_DIR}/interop-ios-for-google-sdks/${module}/Public/${module}" + ) + + foreach(pdir ${public_dirs}) + if(EXISTS "${pdir}") + target_include_directories(${target_name} PUBLIC "${pdir}") + endif() + endforeach() + + if(SETUP_SPM_INCLUDE_PRIVATE_HEADERS) + set(private_dirs + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Extension" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Sources" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Sources/Private" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Source" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/Source/Library/Private" + "${FIREBASE_SPM_CHECKOUTS_DIR}/firebase-ios-sdk/${module}/include" + ) + foreach(pdir ${private_dirs}) + if(EXISTS "${pdir}") + target_include_directories(${target_name} PUBLIC "${pdir}") + endif() + endforeach() + endif() + + # Also attempt to symlink any binary xcframework headers for this module + symlink_spm_headers(${target_name} ${module} DIR_NAME ${module}) + endforeach() + endif() +endfunction() + +# Creates a symlink to the header files of the given binary xcframework. +# Used when include paths are expecting headers to be in a subdirectory or framework structure. +# +# Usage: symlink_spm_headers( +# [DIR_NAME ] +# ) +# +# Args: +# target_name: Name of target to add includes to +# module_name: Name of the binary target / artifact +# DIR_NAME: Name of the directory for the symlink (defaults to module_name) +# +function(symlink_spm_headers target_name module_name) + set(single DIR_NAME) + cmake_parse_arguments(SYMLINK_SPM "" "${single}" "" ${ARGN}) + + set(dir_name "${module_name}") + if(NOT "${SYMLINK_SPM_DIR_NAME}" STREQUAL "") + set(dir_name "${SYMLINK_SPM_DIR_NAME}") + endif() + + set(symlink_base_dir "${CMAKE_CURRENT_BINARY_DIR}/spm_sym_links") + + # Search for all header files in .build/artifacts to discover binary frameworks + file(GLOB_RECURSE all_headers "${FIREBASE_SPM_ARTIFACTS_DIR}/*.h") + + # Determine target slice priority if possible + string(TOLOWER "${CMAKE_OSX_SYSROOT}" sysroot_lower) + if(CMAKE_SYSTEM_NAME STREQUAL "tvOS") + if(sysroot_lower MATCHES "simulator") + set(preferred_slice "tvos-arm64_x86_64-simulator") + else() + set(preferred_slice "tvos-arm64") + endif() + else() + if(sysroot_lower MATCHES "simulator") + set(preferred_slice "ios-arm64_x86_64-simulator") + else() + set(preferred_slice "ios-arm64") + endif() + endif() + + # Build list of patterns to match + set(patterns "${module_name}" "${dir_name}") + if(module_name MATCHES "^(abseil|absl)$") + list(APPEND patterns "absl") + elseif(module_name MATCHES "^(grpc|gRPC|gRPC-C\\+\\+|gRPC-Core|grpcpp)$") + list(APPEND patterns "grpc" "grpcpp") + elseif(module_name MATCHES "^(GoogleUserMessagingPlatform|UserMessagingPlatform)$") + list(APPEND patterns "UserMessagingPlatform") + endif() + + set(processed_frameworks "") + + foreach(hdr ${all_headers}) + if(hdr MATCHES "([^/\\\\]+)\\.framework.*Headers") + set(fw_name "${CMAKE_MATCH_1}") + string(REGEX MATCH "(.*[/\\\\]${fw_name}\\.framework([^/\\\\]*)?[/\\\\]Headers)" _ "${hdr}") + set(fw_headers "${CMAKE_MATCH_1}") + + if(NOT "${fw_name}" IN_LIST processed_frameworks) + set(matches FALSE) + foreach(pat ${patterns}) + if(fw_name MATCHES "^${pat}$") + set(matches TRUE) + break() + endif() + endforeach() + + if(matches) + # Check if this header matches preferred slice or if we don't have one yet + if(fw_headers MATCHES "${preferred_slice}" OR NOT EXISTS "${symlink_base_dir}/${fw_name}") + file(MAKE_DIRECTORY "${symlink_base_dir}") + file(CREATE_LINK "${fw_headers}" "${symlink_base_dir}/${fw_name}" SYMBOLIC COPY_ON_ERROR) + + target_include_directories(${target_name} + PUBLIC + "${symlink_base_dir}" + "${symlink_base_dir}/${fw_name}" + "${fw_headers}" + ) + if(fw_headers MATCHES "${preferred_slice}") + list(APPEND processed_frameworks "${fw_name}") + endif() + endif() + endif() + endif() + endif() + endforeach() +endfunction() diff --git a/ios_spm/Package.swift b/ios_spm/Package.swift new file mode 100644 index 0000000000..c2d26b4389 --- /dev/null +++ b/ios_spm/Package.swift @@ -0,0 +1,49 @@ +// swift-tools-version:5.9 +// +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import PackageDescription + +let package = Package( + name: "FirebaseDependencies", + platforms: [ + .iOS(.v15), + .tvOS(.v15) + ], + products: [ + .library(name: "FirebaseDependencies", targets: ["FirebaseDependencies"]), + ], + dependencies: [ + .package(url: "https://github.com/firebase/firebase-ios-sdk.git", exact: "12.18.0"), + .package(url: "https://github.com/googleads/swift-package-manager-google-user-messaging-platform.git", exact: "2.3.0"), + ], + targets: [ + .target( + name: "FirebaseDependencies", + dependencies: [ + .product(name: "FirebaseAnalytics", package: "firebase-ios-sdk"), + .product(name: "FirebaseAuth", package: "firebase-ios-sdk"), + .product(name: "FirebaseDatabase", package: "firebase-ios-sdk"), + .product(name: "FirebaseFirestore", package: "firebase-ios-sdk"), + .product(name: "FirebaseFunctions", package: "firebase-ios-sdk"), + .product(name: "FirebaseInstallations", package: "firebase-ios-sdk"), + .product(name: "FirebaseMessaging", package: "firebase-ios-sdk"), + .product(name: "FirebaseRemoteConfig", package: "firebase-ios-sdk"), + .product(name: "FirebaseStorage", package: "firebase-ios-sdk"), + .product(name: "GoogleUserMessagingPlatform", package: "swift-package-manager-google-user-messaging-platform"), + ] + ), + ] +) diff --git a/ios_spm/readme.md b/ios_spm/readme.md new file mode 100644 index 0000000000..23ea9c9fa1 --- /dev/null +++ b/ios_spm/readme.md @@ -0,0 +1,15 @@ +# firebase-cpp-sdk/ios_spm directory + +This directory contains a `Package.swift` file that allows us to fetch the +Firebase iOS SDK and Google User Messaging Platform via Swift Package Manager +(SwiftPM). The `Package.swift` here must declare all Swift packages used by +the Firebase C++ SDK. The packages are resolved automatically during the CMake +configure step, and the header files and xcframeworks within them are +referenced by the Objective-C++ and C++ code in this SDK (see `setup_spm_headers` +in `CMakeLists.txt` for details). + +The `swift_headers` subdirectory contains copies of the most recent Swift +bridging headers (`*-Swift.h`) for the Firebase iOS libraries that are written +in Swift, enabling them to be called from this SDK's Objective-C++ code. These +headers are updated via this repository's `update-dependencies.yml` GitHub +Actions workflow. diff --git a/ios_spm/swift_headers/FirebaseAnalytics-Swift.h b/ios_spm/swift_headers/FirebaseAnalytics-Swift.h new file mode 100644 index 0000000000..7e176968f9 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseAnalytics-Swift.h @@ -0,0 +1,688 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEANALYTICS_SWIFT_H +#define FIREBASEANALYTICS_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseAnalytics", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEANALYTICS_SWIFT_H +#define FIREBASEANALYTICS_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseAnalytics", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseAnalyticsSwift-Swift.h b/ios_spm/swift_headers/FirebaseAnalyticsSwift-Swift.h new file mode 100644 index 0000000000..315ee3e6c7 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseAnalyticsSwift-Swift.h @@ -0,0 +1,578 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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 +#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)) +#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 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 +#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") +#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__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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 +#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)) +#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 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 +#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") +#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 + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseAuth-Swift.h b/ios_spm/swift_headers/FirebaseAuth-Swift.h new file mode 100644 index 0000000000..06f6498e62 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseAuth-Swift.h @@ -0,0 +1,5796 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEAUTH_SWIFT_H +#define FIREBASEAUTH_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import FirebaseAuthInterop; +@import Foundation; +@import ObjectiveC; +@import UIKit; +#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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseAuth", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +enum FIRActionCodeOperation : NSInteger; +@class NSString; +/// Manages information regarding action codes. +SWIFT_CLASS_NAMED("ActionCodeInfo") +@interface FIRActionCodeInfo : NSObject +/// The operation being performed. +@property(nonatomic, readonly) enum FIRActionCodeOperation operation; +/// The email address to which the code was sent. The new email address in the +/// case of ActionCodeOperation.recoverEmail. +@property(nonatomic, readonly, copy) NSString* _Nonnull email; +/// The email that is being recovered in the case of +/// ActionCodeOperation.recoverEmail. +@property(nonatomic, readonly, copy) NSString* _Nullable previousEmail; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Operations which can be performed with action codes. +typedef SWIFT_ENUM_NAMED(NSInteger, FIRActionCodeOperation, + "ActionCodeOperation", open){ + /// Action code for unknown operation. + FIRActionCodeOperationUnknown = 0, + /// Action code for password reset operation. + FIRActionCodeOperationPasswordReset = 1, + /// Action code for verify email operation. + FIRActionCodeOperationVerifyEmail = 2, + /// Action code for recover email operation. + FIRActionCodeOperationRecoverEmail = 3, + /// Action code for email link operation. + FIRActionCodeOperationEmailLink = 4, + /// Action code for verifying and changing email. + FIRActionCodeOperationVerifyAndChangeEmail = 5, + /// Action code for reverting second factor addition. + FIRActionCodeOperationRevertSecondFactorAddition = 6, +}; + +@class NSURL; +/// Used to set and retrieve settings related to handling action codes. +SWIFT_CLASS_NAMED("ActionCodeSettings") +@interface FIRActionCodeSettings : NSObject +/// This URL represents the state/Continue URL in the form of a universal link. +/// This URL can should be constructed as a universal link that would either +/// directly open the app where the action code would be handled or continue to +/// the app after the action code is handled by Firebase. +@property(nonatomic, copy) NSURL* _Nullable URL; +/// Indicates whether the action code link will open the app directly or after +/// being redirected from a Firebase owned web widget. +@property(nonatomic) BOOL handleCodeInApp; +/// The iOS bundle ID, if available. The default value is the current app’s +/// bundle ID. +@property(nonatomic, copy) NSString* _Nullable iOSBundleID; +/// The Android package name, if available. +@property(nonatomic, copy) NSString* _Nullable androidPackageName; +/// The minimum Android version supported, if available. +@property(nonatomic, copy) NSString* _Nullable androidMinimumVersion; +/// Indicates whether the Android app should be installed on a device where it +/// is not available. +@property(nonatomic) BOOL androidInstallIfNotAvailable; +/// The out of band custom domain for handling code in app. +@property(nonatomic, copy) NSString* _Nullable linkDomain; +/// Sets the iOS bundle ID. +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +/// Sets the Android package name, the flag to indicate whether or not to +/// install the app, and the minimum Android version supported. If +/// installIfNotAvailable is set to true and the link +/// is opened on an android device, it will try to install the app if not +/// already available. Otherwise the web URL is used. +/// \param androidPackageName The Android package name. +/// +/// \param installIfNotAvailable Indicates whether or not the app should be +/// installed if not available. +/// +/// \param minimumVersion The minimum version of Android supported. +/// +- (void)setAndroidPackageName:(NSString* _Nonnull)androidPackageName + installIfNotAvailable:(BOOL)installIfNotAvailable + minimumVersion:(NSString* _Nullable)minimumVersion; +@end + +/// This class will allow developers to easily extract information about out of +/// band links. +SWIFT_CLASS_NAMED("ActionCodeURL") +@interface FIRActionCodeURL : NSObject +/// Returns the API key from the link. nil, if not provided. +@property(nonatomic, readonly, copy) NSString* _Nullable APIKey; +/// Returns the mode of oob action. +/// The property will be of ActionCodeOperation type. +/// It will return .unknown if no oob action is provided. +@property(nonatomic, readonly) enum FIRActionCodeOperation operation; +/// Returns the email action code from the link. nil, if not provided. +@property(nonatomic, readonly, copy) NSString* _Nullable code; +/// Returns the continue URL from the link. nil, if not provided. +@property(nonatomic, readonly, copy) NSURL* _Nullable continueURL; +/// Returns the language code from the link. nil, if not provided. +@property(nonatomic, readonly, copy) NSString* _Nullable languageCode; +/// Construct an ActionCodeURL from an out of band link (e.g. email +/// link). +/// \param link The oob link string used to construct the action code URL. +/// +/// +/// returns: +/// The ActionCodeURL object constructed based on the oob link provided. +- (nullable instancetype)actionCodeURLWithLink:(NSString* _Nonnull)link + OBJC_DESIGNATED_INITIALIZER SWIFT_METHOD_FAMILY(init); +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class NSCoder; +SWIFT_CLASS_NAMED("AdditionalUserInfo") +@interface FIRAdditionalUserInfo : NSObject +/// The provider identifier. +@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; +/// Dictionary containing the additional IdP specific information. +@property(nonatomic, readonly, copy) + NSDictionary* _Nullable profile; +/// The name of the user. +@property(nonatomic, readonly, copy) NSString* _Nullable username; +/// Indicates whether or not the current user was signed in for the first time. +@property(nonatomic, readonly) BOOL isNewUser; +/// Indicates whether or not the current user was signed in for the first time. +- (BOOL)newUser SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)aDecoder + OBJC_DESIGNATED_INITIALIZER; +- (void)encodeWithCoder:(NSCoder* _Nonnull)aCoder; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRAdditionalUserInfo (SWIFT_EXTENSION (FirebaseAuth)) < + NSSecureCoding> +@end + +@class FIRApp; +@class FIRUser; +@class FIRAuthSettings; +@class FIRAuthDataResult; +@protocol FIRFederatedAuthProvider; +@protocol FIRAuthUIDelegate; +@class FIRAuthCredential; +@protocol NSObject; +@class NSError; +@class NSData; +enum FIRAuthAPNSTokenType : NSInteger; +/// Manages authentication for Firebase apps. +/// This class is thread-safe. +SWIFT_CLASS_NAMED("Auth") +@interface FIRAuth : NSObject +/// Gets the auth object for the default Firebase app. +/// The default Firebase app must have already been configured or an exception +/// will be raised. ++ (FIRAuth* _Nonnull)auth SWIFT_WARN_UNUSED_RESULT; +/// Gets the auth object for a FirebaseApp. +/// \param app The app for which to retrieve the associated Auth +/// instance. +/// +/// +/// returns: +/// The Auth instance associated with the given app. ++ (FIRAuth* _Nonnull)authWithApp:(FIRApp* _Nonnull)app SWIFT_WARN_UNUSED_RESULT; +/// Gets the FirebaseApp object that this auth object is connected +/// to. +@property(nonatomic, readonly, weak) FIRApp* _Nullable app; +/// Synchronously gets the cached current user, or null if there is none. +@property(nonatomic, readonly, strong) FIRUser* _Nullable currentUser; +/// The current user language code. +/// This property can be set to the app’s current language by +/// calling useAppLanguage(). +/// The string used to set this property must be a language code that follows +/// BCP 47. +@property(nonatomic, copy) NSString* _Nullable languageCode; +/// Contains settings related to the auth object. +@property(nonatomic, strong) FIRAuthSettings* _Nullable settings; +/// The current user access group that the Auth instance is using. +/// Default is nil. +@property(nonatomic, readonly, copy) NSString* _Nullable userAccessGroup; +/// Contains shareAuthStateAcrossDevices setting related to the auth object. +/// If userAccessGroup is not set, setting shareAuthStateAcrossDevices will +/// have no effect. You should set shareAuthStateAcrossDevices to its desired +/// state and then set the userAccessGroup after. +@property(nonatomic) BOOL shareAuthStateAcrossDevices; +/// The tenant ID of the auth instance. nil if none is available. +@property(nonatomic, copy) NSString* _Nullable tenantID; +/// The custom authentication domain used to handle all sign-in redirects. +/// End-users will see +/// this domain when signing in. This domain must be allowlisted in the Firebase +/// Console. +@property(nonatomic, copy) NSString* _Nullable customAuthDomain; +/// Sets the currentUser on the receiver to the provided user +/// object. +/// \param user The user object to be set as the current user of the calling +/// Auth instance. +/// +/// \param completion Optionally; a block invoked after the user of the calling +/// Auth instance has been updated or an error was encountered. +/// +- (void)updateCurrentUser:(FIRUser* _Nullable)user + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// [Deprecated] Fetches the list of all sign-in methods previously used for the +/// provided email address. This method returns an empty list when Email +/// Enumeration Protection is enabled, irrespective of the number of +/// authentication methods available for the given email. Possible error codes: +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +/// \param email The email address for which to obtain a list of sign-in +/// methods. +/// +/// \param completion Optionally; a block which is invoked when the list of sign +/// in methods for the specified email address is ready or an error was +/// encountered. Invoked asynchronously on the main thread in the future. +/// +- (void)fetchSignInMethodsForEmail:(NSString* _Nonnull)email + completion: + (void (^_Nullable)(NSArray* _Nullable, + NSError* _Nullable))completion + SWIFT_DEPRECATED_MSG( + "`fetchSignInMethods` is deprecated and will be removed in a future " + "release. This method returns an empty list when Email Enumeration " + "Protection is enabled."); +/// Signs in using an email address and password. +/// When Email +/// Enumeration Protection is enabled, this method fails with an error in +/// case of an invalid email/password. Possible error codes:
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that email and +/// password accounts are not enabled. Enable them in the Auth section of +/// the Firebase console. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// sign in with an incorrect password. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
+/// \param email The user’s email address. +/// +/// \param password The user’s password. +/// +/// \param completion Optionally; a block which is invoked when the sign in flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithEmail:(NSString* _Nonnull)email + password:(NSString* _Nonnull)password + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Signs in using an email address and email sign-in link. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that email and +/// password accounts are not enabled. Enable them in the Auth section of +/// the Firebase console. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// sign in with an incorrect password. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
+/// \param email The user’s email address. +/// +/// \param link The email sign-in link. +/// +/// \param completion Optionally; a block which is invoked when the sign in flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithEmail:(NSString* _Nonnull)email + link:(NSString* _Nonnull)link + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Signs in using the provided auth provider instance. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that email and +/// password accounts are not enabled. Enable them in the Auth section of +/// the Firebase console. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// sign in with an incorrect password. +///
  • +///
  • +/// AuthErrorCodeWebNetworkRequestFailed - Indicates that a +/// network request within a SFSafariViewController or WKWebView failed. +///
  • +///
  • +/// AuthErrorCodeWebInternalError - Indicates that an internal +/// error occurred within a SFSafariViewController or WKWebView. +///
  • +///
  • +/// AuthErrorCodeWebSignInUserInteractionFailure - Indicates a +/// general failure during a web sign-in flow. +///
  • +///
  • +/// AuthErrorCodeWebContextAlreadyPresented - Indicates that an +/// attempt was made to present a new web context while one was already +/// being presented. +///
  • +///
  • +/// AuthErrorCodeWebContextCancelled - Indicates that the URL +/// presentation was cancelled prematurely by the user. +///
  • +///
  • +/// AuthErrorCodeAccountExistsWithDifferentCredential - +/// Indicates the email asserted by the credential (e.g. the email in a +/// Facebook access token) is already in use by an existing account, that +/// cannot be authenticated with this sign-in method. Call +/// fetchProvidersForEmail for this user’s email and then prompt them to +/// sign in with any of the sign-in providers returned. This error will only +/// be thrown if the “One account per email address” setting is enabled in +/// the Firebase console, under Auth settings. +///
  • +///
+/// \param provider An instance of an auth provider used to initiate the sign-in +/// flow. +/// +/// \param uiDelegate Optionally an instance of a class conforming to the +/// AuthUIDelegate protocol, this is used for presenting the web context. If +/// nil, a default AuthUIDelegate will be used. +/// +/// \param completion Optionally; a block which is invoked when the sign in flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithProvider:(id _Nonnull)provider + UIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion + SWIFT_AVAILABILITY(watchos, unavailable) + SWIFT_AVAILABILITY(macos, unavailable) + SWIFT_AVAILABILITY(tvos, unavailable); +/// Asynchronously signs in to Firebase with the given 3rd-party credentials +/// (e.g. a Facebook login Access Token, a Google ID Token/Access Token pair, +/// etc.) and returns additional identity provider data. Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidCredential - Indicates the supplied +/// credential is invalid. This could happen if it has expired or it is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that accounts +/// with the identity provider represented by the credential are not +/// enabled. Enable them in the Auth section of the Firebase console. +///
  • +///
  • +/// AuthErrorCodeAccountExistsWithDifferentCredential - +/// Indicates the email asserted by the credential (e.g. the email in a +/// Facebook access token) is already in use by an existing account, that +/// cannot be authenticated with this sign-in method. Call +/// fetchProvidersForEmail for this user’s email and then prompt them to +/// sign in with any of the sign-in providers returned. This error will only +/// be thrown if the “One account per email address” setting is enabled in +/// the Firebase console, under Auth settings. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// sign in with an incorrect password, if credential is of the type +/// EmailPasswordAuthCredential. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeMissingVerificationID - Indicates that the +/// phone auth credential was created with an empty verification ID. +///
  • +///
  • +/// AuthErrorCodeMissingVerificationCode - Indicates that the +/// phone auth credential was created with an empty verification code. +///
  • +///
  • +/// AuthErrorCodeInvalidVerificationCode - Indicates that the +/// phone auth credential was created with an invalid verification Code. +///
  • +///
  • +/// AuthErrorCodeInvalidVerificationID - Indicates that the +/// phone auth credential was created with an invalid verification ID. +///
  • +///
  • +/// AuthErrorCodeSessionExpired - Indicates that the SMS code +/// has expired. +///
  • +///
+/// \param credential The credential supplied by the IdP. +/// +/// \param completion Optionally; a block which is invoked when the sign in flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithCredential:(FIRAuthCredential* _Nonnull)credential + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Asynchronously creates and becomes an anonymous user. +/// If there is already an anonymous user signed in, that user will be returned +/// instead. If there is any other existing user signed in, that user will be +/// signed out. Possible error codes:
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that anonymous +/// accounts are not enabled. Enable them in the Auth section of the +/// Firebase console. +///
  • +///
+/// \param completion Optionally; a block which is invoked when the sign in +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInAnonymouslyWithCompletion: + (void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Asynchronously creates and becomes an anonymous user. +/// If there is already an anonymous user signed in, that user will be returned +/// instead. If there is any other existing user signed in, that user will be +/// signed out. Possible error codes:
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that anonymous +/// accounts are not enabled. Enable them in the Auth section of the +/// Firebase console. +///
  • +///
+/// +/// returns: +/// The AuthDataResult after the successful signin. +- (void)signInAnonymouslyWithCompletionHandler: + (void (^_Nonnull)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completionHandler; +/// Asynchronously signs in to Firebase with the given Auth token. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidCustomToken - Indicates a validation +/// error with the custom token. +///
  • +///
  • +/// AuthErrorCodeCustomTokenMismatch - Indicates the service +/// account and the API key belong to different projects. +///
  • +///
+/// \param token A self-signed custom auth token. +/// +/// \param completion Optionally; a block which is invoked when the sign in +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithCustomToken:(NSString* _Nonnull)token + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Creates and, on success, signs in a user with the given email address and +/// password. Possible error codes:
    +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeEmailAlreadyInUse - Indicates the email used +/// to attempt sign up already exists. Call fetchProvidersForEmail to check +/// which sign-in mechanisms the user used, and prompt the user to sign in +/// with one of those. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that email and +/// password accounts are not enabled. Enable them in the Auth section of +/// the Firebase console. +///
  • +///
  • +/// AuthErrorCodeWeakPassword - Indicates an attempt to set a +/// password that is considered too weak. The +/// NSLocalizedFailureReasonErrorKey field in the NSError.userInfo +/// dictionary object will contain more detailed explanation that can be +/// shown to the user. +///
  • +///
+/// \param email The user’s email address. +/// +/// \param password The user’s desired password. +/// +/// \param completion Optionally; a block which is invoked when the sign up flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)createUserWithEmail:(NSString* _Nonnull)email + password:(NSString* _Nonnull)password + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Resets the password given a code sent to the user outside of the app and a +/// new password for the user. Possible error codes:
    +///
  • +/// AuthErrorCodeWeakPassword - Indicates an attempt to set a +/// password that is considered too weak. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates the +/// administrator disabled sign in with the specified identity provider. +///
  • +///
  • +/// AuthErrorCodeExpiredActionCode - Indicates the OOB code is +/// expired. +///
  • +///
  • +/// AuthErrorCodeInvalidActionCode - Indicates the OOB code is +/// invalid. +///
  • +///
+/// \param code The reset code. +/// +/// \param newPassword The new password. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)confirmPasswordResetWithCode:(NSString* _Nonnull)code + newPassword:(NSString* _Nonnull)newPassword + completion: + (void (^_Nonnull)(NSError* _Nullable))completion; +/// Checks the validity of an out of band code. +/// \param code The out of band code to check validity. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)checkActionCode:(NSString* _Nonnull)code + completion:(void (^_Nonnull)(FIRActionCodeInfo* _Nullable, + NSError* _Nullable))completion; +/// Checks the validity of a verify password reset code. +/// \param code The password reset code to be verified. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)verifyPasswordResetCode:(NSString* _Nonnull)code + completion: + (void (^_Nonnull)(NSString* _Nullable, + NSError* _Nullable))completion; +/// Applies out of band code. +/// This method will not work for out of band codes which require an additional +/// parameter, such as password reset code. +/// \param code The out of band code to be applied. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)applyActionCode:(NSString* _Nonnull)code + completion:(void (^_Nonnull)(NSError* _Nullable))completion; +/// Initiates a password reset for the given email address. +/// This method does not throw an +/// error when there’s no user account with the given email address and Email +/// Enumeration Protection is enabled. Possible error codes:
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
+/// \param email The email address of the user. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)sendPasswordResetWithEmail:(NSString* _Nonnull)email + completion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Initiates a password reset for the given email address and +/// ActionCodeSettings object. This method does not throw an error +/// when there’s no user account with the given email address and Email +/// Enumeration Protection is enabled. Possible error codes:
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
  • +/// AuthErrorCodeMissingIosBundleID - Indicates that the iOS +/// bundle ID is missing when handleCodeInApp is set to true. +///
  • +///
  • +/// AuthErrorCodeMissingAndroidPackageName - Indicates that the +/// android package name is missing when the androidInstallApp +/// flag is set to true. +///
  • +///
  • +/// AuthErrorCodeUnauthorizedDomain - Indicates that the domain +/// specified in the continue URL is not allowlisted in the Firebase +/// console. +///
  • +///
  • +/// AuthErrorCodeInvalidContinueURI - Indicates that the domain +/// specified in the continue URL is not valid. +///
  • +///
+/// \param email The email address of the user. +/// +/// \param actionCodeSettings An ActionCodeSettings object +/// containing settings related to handling action codes. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)sendPasswordResetWithEmail:(NSString* _Nonnull)email + actionCodeSettings: + (FIRActionCodeSettings* _Nullable)actionCodeSettings + completion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Sends a sign in with email link to provided email address. +/// \param email The email address of the user. +/// +/// \param actionCodeSettings An ActionCodeSettings object +/// containing settings related to handling action codes. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)sendSignInLinkToEmail:(NSString* _Nonnull)email + actionCodeSettings: + (FIRActionCodeSettings* _Nonnull)actionCodeSettings + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Signs out the current user. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeKeychainError - Indicates an error occurred +/// when accessing the keychain. The +/// NSLocalizedFailureReasonErrorKey field in the +/// userInfo dictionary will contain more information about the +/// error encountered. +///
  • +///
+- (BOOL)signOut:(NSError* _Nullable* _Nullable)error; +/// Checks if link is an email sign-in link. +/// \param link The email sign-in link. +/// +/// +/// returns: +/// true when the link passed matches the expected format of an +/// email sign-in link. +- (BOOL)isSignInWithEmailLink:(NSString* _Nonnull)link SWIFT_WARN_UNUSED_RESULT; +/// Initializes reCAPTCHA using the settings configured for the project or +/// tenant. If you change the tenant ID of the Auth instance, the +/// configuration will be reloaded. +- (void)initializeRecaptchaConfigWithCompletion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Registers a block as an “auth state did change” listener. +/// To be invoked when: +///
    +///
  • +/// The block is registered as a listener, +///
  • +///
  • +/// A user with a different UID from the current user has signed in, or +///
  • +///
  • +/// The current user has signed out. +///
  • +///
+/// The block is invoked immediately after adding it according to its standard +/// invocation semantics, asynchronously on the main thread. Users should pay +/// special attention to making sure the block does not inadvertently retain +/// objects which should not be retained by the long-lived block. The block +/// itself will be retained by Auth until it is unregistered or +/// until the Auth instance is otherwise deallocated. +/// \param listener The block to be invoked. The block is always invoked +/// asynchronously on the main thread, even for it’s initial invocation after +/// having been added as a listener. +/// +/// +/// returns: +/// A handle useful for manually unregistering the block as a listener. +- (id _Nonnull)addAuthStateDidChangeListener: + (void (^_Nonnull)(FIRAuth* _Nonnull, FIRUser* _Nullable))listener + SWIFT_WARN_UNUSED_RESULT; +/// Unregisters a block as an “auth state did change” listener. +/// \param listenerHandle The handle for the listener. +/// +- (void)removeAuthStateDidChangeListener:(id _Nonnull)listenerHandle; +/// Registers a block as an “ID token did change” listener. +/// To be invoked when: +///
    +///
  • +/// The block is registered as a listener, +///
  • +///
  • +/// A user with a different UID from the current user has signed in, +///
  • +///
  • +/// The ID token of the current user has been refreshed, or +///
  • +///
  • +/// The current user has signed out. +///
  • +///
+/// The block is invoked immediately after adding it according to its standard +/// invocation semantics, asynchronously on the main thread. Users should pay +/// special attention to making sure the block does not inadvertently retain +/// objects which should not be retained by the long-lived block. The block +/// itself will be retained by Auth until it is unregistered or +/// until the Auth instance is otherwise deallocated. +/// \param listener The block to be invoked. The block is always invoked +/// asynchronously on the main thread, even for it’s initial invocation after +/// having been added as a listener. +/// +/// +/// returns: +/// A handle useful for manually unregistering the block as a listener. +- (id _Nonnull)addIDTokenDidChangeListener: + (void (^_Nonnull)(FIRAuth* _Nonnull, FIRUser* _Nullable))listener + SWIFT_WARN_UNUSED_RESULT; +/// Unregisters a block as an “ID token did change” listener. +/// \param listenerHandle The handle for the listener. +/// +- (void)removeIDTokenDidChangeListener:(id _Nonnull)listenerHandle; +/// Sets languageCode to the app’s current language. +- (void)useAppLanguage; +/// Configures Firebase Auth to connect to an emulated host instead of the +/// remote backend. +- (void)useEmulatorWithHost:(NSString* _Nonnull)host port:(NSInteger)port; +/// Revoke the users token with authorization code. +/// \param authorizationCode The authorization code used to perform the +/// revocation. +/// +/// \param completion (Optional) the block invoked when the request to revoke +/// the token is complete, or fails. Invoked asynchronously on the main thread +/// in the future. +/// +- (void)revokeTokenWithAuthorizationCode:(NSString* _Nonnull)authorizationCode + completion:(void (^_Nullable)(NSError* _Nullable)) + completion; +/// Switch userAccessGroup and current user to the given accessGroup and the +/// user stored in it. +- (BOOL)useUserAccessGroup:(NSString* _Nullable)accessGroup + error:(NSError* _Nullable* _Nullable)error; +/// Get the stored user in the given accessGroup. +/// This API is not supported on tvOS when +/// shareAuthStateAcrossDevices is set to true. and +/// will return nil. Please refer to +/// https://github.com/firebase/firebase-ios-sdk/issues/8878 for details. +- (FIRUser* _Nullable) + getStoredUserForAccessGroup:(NSString* _Nullable)accessGroup + error:(NSError* _Nullable* _Nullable)outError + SWIFT_WARN_UNUSED_RESULT; +/// The APNs token used for phone number authentication. +/// The type of the token (production or sandbox) will be automatically +/// detected based on your provisioning profile. +/// This property is available on iOS only. +/// If swizzling is disabled, the APNs Token must be set for phone number auth +/// to work, by either setting this property or by calling +/// setAPNSToken(_:type:). +@property(nonatomic, readonly, copy) NSData* _Nullable APNSToken; +/// Sets the APNs token along with its type. +/// This method is available on iOS only. +/// If swizzling is disabled, the APNs Token must be set for phone number auth +/// to work, by either setting calling this method or by setting the +/// APNSToken property. +- (void)setAPNSToken:(NSData* _Nonnull)token + type:(enum FIRAuthAPNSTokenType)type; +/// Whether the specific remote notification is handled by Auth . +/// This method is available on iOS only. +/// If swizzling is disabled, related remote notifications must be forwarded to +/// this method for phone number auth to work. +/// \param userInfo A dictionary that contains information related to the +/// notification in question. +/// +/// +/// returns: +/// Whether or the notification is handled. A return value of true +/// means the notification is for Firebase Auth so the caller should ignore the +/// notification from further processing, and false means the +/// notification is for the app (or another library) so the caller should +/// continue handling this notification as usual. +- (BOOL)canHandleNotification:(NSDictionary* _Nonnull)userInfo + SWIFT_WARN_UNUSED_RESULT; +/// Whether the specific URL is handled by Auth . +/// This method is available on iOS only. +/// If swizzling is disabled, URLs received by the application delegate must be +/// forwarded to this method for phone number auth to work. +/// \param url The URL received by the application delegate from any of the +/// openURL method. +/// +/// +/// returns: +/// Whether or the URL is handled. true means the URL is for +/// Firebase Auth so the caller should ignore the URL from further processing, +/// and false means the the URL is for the app (or another library) +/// so the caller should continue handling this URL as usual. +- (BOOL)canHandleURL:(NSURL* _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class UIScene; +@class UIOpenURLContext; +@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) +- (void)scene:(UIScene* _Nonnull)scene + openURLContexts:(NSSet* _Nonnull)URLContexts; +@end + +@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. This method is not for public use. It is for Firebase clients +/// of AuthInterop. +- (void)getTokenForcingRefresh:(BOOL)forceRefresh + withCallback:(void (^_Nonnull)(NSString* _Nullable, + NSError* _Nullable))callback; +/// Get the current Auth user’s UID. Returns nil if there is no user signed in. +/// This method is not for public use. It is for Firebase clients of +/// AuthInterop. +- (NSString* _Nullable)getUserID SWIFT_WARN_UNUSED_RESULT; +@end + +@class UIApplication; +@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) +- (void)application:(UIApplication* _Nonnull)application + didRegisterForRemoteNotificationsWithDeviceToken: + (NSData* _Nonnull)deviceToken; +- (void)application:(UIApplication* _Nonnull)application + didFailToRegisterForRemoteNotificationsWithError:(NSError* _Nonnull)error; +- (void)application:(UIApplication* _Nonnull)application + didReceiveRemoteNotification:(NSDictionary* _Nonnull)userInfo + fetchCompletionHandler: + (void (^_Nonnull)(UIBackgroundFetchResult))completionHandler; +- (BOOL)application:(UIApplication* _Nonnull)application + openURL:(NSURL* _Nonnull)url + options:(NSDictionary* _Nonnull) + options SWIFT_WARN_UNUSED_RESULT; +@end + +/// The APNs token type for the app. +/// This enum is available on iOS, macOS Catalyst, tvOS, and watchOS only. +typedef SWIFT_ENUM_NAMED(NSInteger, FIRAuthAPNSTokenType, "AuthAPNSTokenType", + open){ + /// Unknown token type. + /// The actual token type will be detected from the provisioning profile in + /// the app’s bundle. + FIRAuthAPNSTokenTypeUnknown = 0, + /// Sandbox token type. + FIRAuthAPNSTokenTypeSandbox = 1, + /// Production token type. + FIRAuthAPNSTokenTypeProd = 2, +}; + +/// Public representation of a credential. +SWIFT_CLASS_NAMED("AuthCredential") +@interface FIRAuthCredential : NSObject +/// The name of the identity provider for the credential. +@property(nonatomic, readonly, copy) NSString* _Nonnull provider; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class FIROAuthCredential; +/// Helper object that contains the result of a successful sign-in, link and +/// reauthenticate action. It contains references to a User +/// instance and an AdditionalUserInfo instance. +SWIFT_CLASS_NAMED("AuthDataResult") +@interface FIRAuthDataResult : NSObject +/// The signed in user. +@property(nonatomic, readonly, strong) FIRUser* _Nonnull user; +/// If available, contains the additional IdP specific information about signed +/// in user. +@property(nonatomic, readonly, strong) + FIRAdditionalUserInfo* _Nullable additionalUserInfo; +/// This property will be non-nil after a successful headful-lite sign-in via +/// signIn(with:uiDelegate:completion:). +/// May be used to obtain the accessToken and/or IDToken +/// pertaining to a recently signed-in user. +@property(nonatomic, readonly, strong) FIROAuthCredential* _Nullable credential; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRAuthDataResult (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// Error codes used by Firebase Auth. +typedef SWIFT_ENUM_NAMED(NSInteger, FIRAuthErrorCode, "AuthErrorCode", open){ + /// Indicates a validation error with the custom token. + FIRAuthErrorCodeInvalidCustomToken = 17000, + /// Indicates the service account and the API key belong to different + /// projects. + FIRAuthErrorCodeCustomTokenMismatch = 17002, + /// Indicates the IDP token or requestUri is invalid. + FIRAuthErrorCodeInvalidCredential = 17004, + /// Indicates the user’s account is disabled on the server. + FIRAuthErrorCodeUserDisabled = 17005, + /// Indicates the administrator disabled sign in with the specified identity + /// provider. + FIRAuthErrorCodeOperationNotAllowed = 17006, + /// Indicates the email used to attempt a sign up is already in use. + FIRAuthErrorCodeEmailAlreadyInUse = 17007, + /// Indicates the email is invalid. + FIRAuthErrorCodeInvalidEmail = 17008, + /// Indicates the user attempted sign in with a wrong password. + FIRAuthErrorCodeWrongPassword = 17009, + /// Indicates that too many requests were made to a server method. + FIRAuthErrorCodeTooManyRequests = 17010, + /// Indicates the user account was not found. + FIRAuthErrorCodeUserNotFound = 17011, + /// Indicates account linking is required. + FIRAuthErrorCodeAccountExistsWithDifferentCredential = 17012, + /// Indicates the user has attempted to change email or password more than 5 + /// minutes after + /// signing in. + FIRAuthErrorCodeRequiresRecentLogin = 17014, + /// Indicates an attempt to link a provider to which the account is already + /// linked. + FIRAuthErrorCodeProviderAlreadyLinked = 17015, + /// Indicates an attempt to unlink a provider that is not linked. + FIRAuthErrorCodeNoSuchProvider = 17016, + /// Indicates user’s saved auth credential is invalid the user needs to sign + /// in again. + FIRAuthErrorCodeInvalidUserToken = 17017, + /// Indicates a network error occurred (such as a timeout interrupted + /// connection or + /// unreachable host). These types of errors are often recoverable with a + /// retry. The + /// NSUnderlyingError field in the + /// NSError.userInfo dictionary will contain the error + /// encountered. + FIRAuthErrorCodeNetworkError = 17020, + /// Indicates the saved token has expired for example the user may have + /// changed account + /// password on another device. The user needs to sign in again on the + /// device that made this + /// request. + FIRAuthErrorCodeUserTokenExpired = 17021, + /// Indicates an invalid API key was supplied in the request. + FIRAuthErrorCodeInvalidAPIKey = 17023, + /// Indicates that an attempt was made to reauthenticate with a user which + /// is not the current + /// user. + FIRAuthErrorCodeUserMismatch = 17024, + /// Indicates an attempt to link with a credential that has already been + /// linked with a + /// different Firebase account. + FIRAuthErrorCodeCredentialAlreadyInUse = 17025, + /// Indicates an attempt to set a password that is considered too weak. + FIRAuthErrorCodeWeakPassword = 17026, + /// Indicates the App is not authorized to use Firebase Authentication with + /// the + /// provided API Key. + FIRAuthErrorCodeAppNotAuthorized = 17028, + /// Indicates the OOB code is expired. + FIRAuthErrorCodeExpiredActionCode = 17029, + /// Indicates the OOB code is invalid. + FIRAuthErrorCodeInvalidActionCode = 17030, + /// Indicates that there are invalid parameters in the payload during a + /// “send password reset email” attempt. + FIRAuthErrorCodeInvalidMessagePayload = 17031, + /// Indicates that the sender email is invalid during a “send password reset + /// email” attempt. + FIRAuthErrorCodeInvalidSender = 17032, + /// Indicates that the recipient email is invalid. + FIRAuthErrorCodeInvalidRecipientEmail = 17033, + /// Indicates that an email address was expected but one was not provided. + FIRAuthErrorCodeMissingEmail = 17034, + /// Indicates that the iOS bundle ID is missing when a iOS App Store ID is + /// provided. + FIRAuthErrorCodeMissingIosBundleID = 17036, + /// Indicates that the android package name is missing when the + /// androidInstallApp flag is set + /// to true. + FIRAuthErrorCodeMissingAndroidPackageName = 17037, + /// Indicates that the domain specified in the continue URL is not + /// allowlisted in the Firebase + /// console. + FIRAuthErrorCodeUnauthorizedDomain = 17038, + /// Indicates that the domain specified in the continue URI is not valid. + FIRAuthErrorCodeInvalidContinueURI = 17039, + /// Indicates that a continue URI was not provided in a request to the + /// backend which requires one. + FIRAuthErrorCodeMissingContinueURI = 17040, + /// Indicates that a phone number was not provided in a call to + /// verifyPhoneNumber:completion:. + FIRAuthErrorCodeMissingPhoneNumber = 17041, + /// Indicates that an invalid phone number was provided in a call to + /// verifyPhoneNumber:completion:. + FIRAuthErrorCodeInvalidPhoneNumber = 17042, + /// Indicates that the phone auth credential was created with an empty + /// verification code. + FIRAuthErrorCodeMissingVerificationCode = 17043, + /// Indicates that an invalid verification code was used in the + /// verifyPhoneNumber request. + FIRAuthErrorCodeInvalidVerificationCode = 17044, + /// Indicates that the phone auth credential was created with an empty + /// verification ID. + FIRAuthErrorCodeMissingVerificationID = 17045, + /// Indicates that an invalid verification ID was used in the + /// verifyPhoneNumber request. + FIRAuthErrorCodeInvalidVerificationID = 17046, + /// Indicates that the APNS device token is missing in the verifyClient + /// request. + FIRAuthErrorCodeMissingAppCredential = 17047, + /// Indicates that an invalid APNS device token was used in the verifyClient + /// request. + FIRAuthErrorCodeInvalidAppCredential = 17048, + /// Indicates that the SMS code has expired. + FIRAuthErrorCodeSessionExpired = 17051, + /// Indicates that the quota of SMS messages for a given project has been + /// exceeded. + FIRAuthErrorCodeQuotaExceeded = 17052, + /// Indicates that the APNs device token could not be obtained. The app may + /// not have set up + /// remote notification correctly or may fail to forward the APNs device + /// token to Auth + /// if app delegate swizzling is disabled. + FIRAuthErrorCodeMissingAppToken = 17053, + /// Indicates that the app fails to forward remote notification to FIRAuth. + FIRAuthErrorCodeNotificationNotForwarded = 17054, + /// Indicates that the app could not be verified by Firebase during phone + /// number authentication. + FIRAuthErrorCodeAppNotVerified = 17055, + /// Indicates that the reCAPTCHA token is not valid. + FIRAuthErrorCodeCaptchaCheckFailed = 17056, + /// Indicates that an attempt was made to present a new web context while + /// one was already being + /// presented. + FIRAuthErrorCodeWebContextAlreadyPresented = 17057, + /// Indicates that the URL presentation was cancelled prematurely by the + /// user. + FIRAuthErrorCodeWebContextCancelled = 17058, + /// Indicates a general failure during the app verification flow. + FIRAuthErrorCodeAppVerificationUserInteractionFailure = 17059, + /// Indicates that the clientID used to invoke a web flow is invalid. + FIRAuthErrorCodeInvalidClientID = 17060, + /// Indicates that a network request within a SFSafariViewController or + /// WKWebView failed. + FIRAuthErrorCodeWebNetworkRequestFailed = 17061, + /// Indicates that an internal error occurred within a + /// SFSafariViewController or WKWebView. + FIRAuthErrorCodeWebInternalError = 17062, + /// Indicates a general failure during a web sign-in flow. + FIRAuthErrorCodeWebSignInUserInteractionFailure = 17063, + /// Indicates that the local player was not authenticated prior to + /// attempting Game Center signin. + FIRAuthErrorCodeLocalPlayerNotAuthenticated = 17066, + /// Indicates that a non-null user was expected as an argument to the + /// operation but a null + /// user was provided. + FIRAuthErrorCodeNullUser = 17067, + /// Represents the error code for when the given provider id for a web + /// operation is invalid. + FIRAuthErrorCodeInvalidProviderID = 17071, + /// Represents the error code for when an attempt is made to update the + /// current user with a + /// tenantId that differs from the current FirebaseAuth instance’s tenantId. + FIRAuthErrorCodeTenantIDMismatch = 17072, + /// Represents the error code for when a request is made to the backend with + /// an associated tenant + /// ID for an operation that does not support multi-tenancy. + FIRAuthErrorCodeUnsupportedTenantOperation = 17073, + /// Indicates that the provided Firebase Hosting Link domain is not owned by + /// the current project. + FIRAuthErrorCodeInvalidHostingLinkDomain = 17214, + /// Indicates that the credential is rejected because it’s malformed or + /// mismatching. + FIRAuthErrorCodeRejectedCredential = 17075, + /// Indicates that the GameKit framework is not linked prior to attempting + /// Game Center signin. + FIRAuthErrorCodeGameKitNotLinked = 17076, + /// Indicates that the second factor is required for signin. + FIRAuthErrorCodeSecondFactorRequired = 17078, + /// Indicates that the multi factor session is missing. + FIRAuthErrorCodeMissingMultiFactorSession = 17081, + /// Indicates that the multi factor info is missing. + FIRAuthErrorCodeMissingMultiFactorInfo = 17082, + /// Indicates that the multi factor session is invalid. + FIRAuthErrorCodeInvalidMultiFactorSession = 17083, + /// Indicates that the multi factor info is not found. + FIRAuthErrorCodeMultiFactorInfoNotFound = 17084, + /// Indicates that the operation is admin restricted. + FIRAuthErrorCodeAdminRestrictedOperation = 17085, + /// Indicates that the email is required for verification. + FIRAuthErrorCodeUnverifiedEmail = 17086, + /// Indicates that the second factor is already enrolled. + FIRAuthErrorCodeSecondFactorAlreadyEnrolled = 17087, + /// Indicates that the maximum second factor count is exceeded. + FIRAuthErrorCodeMaximumSecondFactorCountExceeded = 17088, + /// Indicates that the first factor is not supported. + FIRAuthErrorCodeUnsupportedFirstFactor = 17089, + /// Indicates that the a verified email is required to changed to. + FIRAuthErrorCodeEmailChangeNeedsVerification = 17090, + /// Indicates that the request does not contain a client identifier. + FIRAuthErrorCodeMissingClientIdentifier = 17093, + /// Indicates that the nonce is missing or invalid. + FIRAuthErrorCodeMissingOrInvalidNonce = 17094, + /// Raised when a Cloud Function returns a blocking error. Will include a + /// message returned from + /// the function. + FIRAuthErrorCodeBlockingCloudFunctionError = 17105, + /// Indicates that reCAPTCHA Enterprise integration is not enabled for this + /// project. + FIRAuthErrorCodeRecaptchaNotEnabled = 17200, + /// Indicates that the reCAPTCHA token is missing from the backend request. + FIRAuthErrorCodeMissingRecaptchaToken = 17201, + /// Indicates that the reCAPTCHA token sent with the backend request is + /// invalid. + FIRAuthErrorCodeInvalidRecaptchaToken = 17202, + /// Indicates that the requested reCAPTCHA action is invalid. + FIRAuthErrorCodeInvalidRecaptchaAction = 17203, + /// Indicates that the client type is missing from the request. + FIRAuthErrorCodeMissingClientType = 17204, + /// Indicates that the reCAPTCHA version is missing from the request. + FIRAuthErrorCodeMissingRecaptchaVersion = 17205, + /// Indicates that the reCAPTCHA version sent to the backend is invalid. + FIRAuthErrorCodeInvalidRecaptchaVersion = 17206, + /// Indicates that the request type sent to the backend is invalid. + FIRAuthErrorCodeInvalidReqType = 17207, + /// Indicates that the reCAPTCHA SDK is not linked to the app. + FIRAuthErrorCodeRecaptchaSDKNotLinked = 17208, + /// Indicates that the reCAPTCHA SDK site key wasn’t found. + FIRAuthErrorCodeRecaptchaSiteKeyMissing = 17209, + /// Indicates that the reCAPTCHA SDK actions class failed to create. + FIRAuthErrorCodeRecaptchaActionCreationFailed = 17210, + /// Indicates that the password does not meet the project’s password policy. + FIRAuthErrorCodePasswordDoesNotMeetRequirements = 17211, + /// Indicates an error occurred while attempting to access the keychain. + FIRAuthErrorCodeKeychainError = 17995, + /// Indicates an internal error occurred. + FIRAuthErrorCodeInternalError = 17999, + /// Raised when a JWT fails to parse correctly. May be accompanied by an + /// underlying error + /// describing which step of the JWT parsing process failed. + FIRAuthErrorCodeMalformedJWT = 18000, +}; +static NSString* _Nonnull const FIRAuthErrorCodeDomain = + @"FirebaseAuth.AuthErrorCode"; + +/// Error Codes common to all API Methods: +SWIFT_CLASS_NAMED("AuthErrors") +@interface FIRAuthErrors : NSObject +/// The Firebase Auth error domain. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull domain;) ++ (NSString* _Nonnull)domain SWIFT_WARN_UNUSED_RESULT; +/// The name of the key for the error short string of an error code. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull userInfoNameKey;) ++ (NSString* _Nonnull)userInfoNameKey SWIFT_WARN_UNUSED_RESULT; +/// Error codes for Email operations +/// Errors with one of the following three codes: +///
    +///
  • +/// accountExistsWithDifferentCredential +///
  • +///
  • +/// credentialAlreadyInUse +///
  • +///
  • +/// emailAlreadyInUse` +///
  • +///
+/// may contain an NSError.userInfo dictionary object which +/// contains this key. The value associated with this key is an NSString of the +/// email address of the account that already exists. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull userInfoEmailKey;) ++ (NSString* _Nonnull)userInfoEmailKey SWIFT_WARN_UNUSED_RESULT; +/// The key used to read the updated Auth credential from the userInfo +/// dictionary of the NSError object returned. This is the updated auth +/// credential the developer should use for recovery if applicable. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull userInfoUpdatedCredentialKey;) ++ (NSString* _Nonnull)userInfoUpdatedCredentialKey SWIFT_WARN_UNUSED_RESULT; +/// The key used to read the MFA resolver from the userInfo dictionary of the +/// NSError object returned when 2FA is required for sign-incompletion. +SWIFT_CLASS_PROPERTY( + @property(nonatomic, class, readonly, copy) + NSString* _Nonnull FIRAuthErrorUserInfoMultiFactorResolverKey;) ++ (NSString* _Nonnull) + FIRAuthErrorUserInfoMultiFactorResolverKey SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +/// Determines settings related to an auth object. +SWIFT_CLASS_NAMED("AuthSettings") +@interface FIRAuthSettings : NSObject +/// Flag to determine whether app verification should be disabled for testing or +/// not. +@property(nonatomic) BOOL appVerificationDisabledForTesting; +/// Flag to determine whether app verification should be disabled for testing or +/// not. +@property(nonatomic) BOOL isAppVerificationDisabledForTesting; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +- (id _Nonnull)copyWithZone:(struct _NSZone* _Nullable)zone + SWIFT_WARN_UNUSED_RESULT; +@end + +@class NSDate; +/// A data class containing the ID token JWT string and other properties +/// associated with the token including the decoded payload claims. +SWIFT_CLASS_NAMED("AuthTokenResult") +@interface FIRAuthTokenResult : NSObject +/// Stores the JWT string of the ID token. +@property(nonatomic, copy) NSString* _Nonnull token; +/// Stores the ID token’s expiration date. +@property(nonatomic, copy) NSDate* _Nonnull expirationDate; +/// Stores the ID token’s authentication date. +/// This is the date the user was signed in and NOT the date the token was +/// refreshed. +@property(nonatomic, copy) NSDate* _Nonnull authDate; +/// Stores the date that the ID token was issued. +/// This is the date last refreshed and NOT the last authentication date. +@property(nonatomic, copy) NSDate* _Nonnull issuedAtDate; +/// Stores sign-in provider through which the token was obtained. +@property(nonatomic, copy) NSString* _Nonnull signInProvider; +/// Stores sign-in second factor through which the token was obtained. +@property(nonatomic, copy) NSString* _Nonnull signInSecondFactor; +/// Stores the entire payload of claims found on the ID token. +/// This includes the standard +/// reserved claims as well as custom claims set by the developer via the Admin +/// SDK. +@property(nonatomic, copy) NSDictionary* _Nonnull claims; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRAuthTokenResult (SWIFT_EXTENSION (FirebaseAuth)) +@end + +@class UIViewController; +/// A protocol to handle user interface interactions for Firebase Auth. +/// This protocol is available on iOS, macOS Catalyst, and tvOS only. +SWIFT_PROTOCOL_NAMED("AuthUIDelegate") +@protocol FIRAuthUIDelegate +/// If implemented, this method will be invoked when Firebase Auth needs to +/// display a view controller. +/// \param viewControllerToPresent The view controller to be presented. +/// +/// \param flag Decides whether the view controller presentation should be +/// animated. +/// +/// \param completion The block to execute after the presentation finishes. +/// This block has no return value and takes no parameters. +/// +- (void)presentViewController: + (UIViewController* _Nonnull)viewControllerToPresent + animated:(BOOL)flag + completion:(void (^_Nullable)(void))completion; +/// If implemented, this method will be invoked when Firebase Auth needs to +/// display a view controller. +/// \param flag Decides whether removing the view controller should be animated +/// or not. +/// +/// \param completion The block to execute after the presentation finishes. +/// This block has no return value and takes no parameters. +/// +- (void)dismissViewControllerAnimated:(BOOL)flag + completion:(void (^_Nullable)(void))completion; +@end + +/// A concrete implementation of AuthProvider for Email & Password +/// Sign In. +SWIFT_CLASS_NAMED("EmailAuthProvider") +@interface FIREmailAuthProvider : NSObject +/// A string constant identifying the email & password identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for an email & password sign in +/// \param email The user’s email address. +/// +/// \param password The user’s password. +/// +/// +/// returns: +/// An AuthCredential containing the email & password credential. ++ (FIRAuthCredential* _Nonnull)credentialWithEmail:(NSString* _Nonnull)email + password:(NSString* _Nonnull)password + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for an email & link sign in. +/// \param email The user’s email address. +/// +/// \param link The email sign-in link. +/// +/// +/// returns: +/// An AuthCredential containing the email & link credential. ++ (FIRAuthCredential* _Nonnull)credentialWithEmail:(NSString* _Nonnull)email + link:(NSString* _Nonnull)link + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +/// Utility class for constructing Facebook Sign In credentials. +SWIFT_CLASS_NAMED("FacebookAuthProvider") +@interface FIRFacebookAuthProvider : NSObject +/// A string constant identifying the Facebook identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a Facebook sign in. +/// \param accessToken The Access Token from Facebook. +/// +/// +/// returns: +/// An AuthCredential containing the Facebook credentials. ++ (FIRAuthCredential* _Nonnull)credentialWithAccessToken: + (NSString* _Nonnull)accessToken SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +/// Utility type for constructing federated auth provider credentials. +SWIFT_PROTOCOL_NAMED("FederatedAuthProvider") +@protocol FIRFederatedAuthProvider +/// Used to obtain an auth credential via a mobile web flow. +/// This method is available on iOS only. +/// \param uiDelegate An optional UI delegate used to present the mobile web +/// flow. +/// +/// \param completionHandler Optionally; a block which is invoked +/// asynchronously on the main thread when the mobile web flow is +/// completed. +/// +- (void)getCredentialWithUIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nonnull)( + FIRAuthCredential* _Nullable, + NSError* _Nullable))completionHandler + SWIFT_AVAILABILITY(watchos, introduced = 8); +@end + +/// A concrete implementation of AuthProvider for Game Center Sign +/// In. Not available on watchOS. +SWIFT_CLASS_NAMED("GameCenterAuthProvider") +@interface FIRGameCenterAuthProvider : NSObject +/// A string constant identifying the Game Center identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a Game Center sign in. ++ (void)getCredentialWithCompletion: + (void (^_Nonnull)(FIRAuthCredential* _Nullable, + NSError* _Nullable))completion; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +/// Utility class for constructing GitHub Sign In credentials. +SWIFT_CLASS_NAMED("GitHubAuthProvider") +@interface FIRGitHubAuthProvider : NSObject +/// A string constant identifying the GitHub identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a GitHub sign in. +/// \param token The GitHub OAuth access token. +/// +/// +/// returns: +/// An AuthCredential containing the GitHub credentials. ++ (FIRAuthCredential* _Nonnull)credentialWithToken:(NSString* _Nonnull)token + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +/// Utility class for constructing Google Sign In credentials. +SWIFT_CLASS_NAMED("GoogleAuthProvider") +@interface FIRGoogleAuthProvider : NSObject +/// A string constant identifying the Google identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a Google sign in. +/// \param idToken The ID Token from Google. +/// +/// \param accessToken The Access Token from Google. +/// +/// +/// returns: +/// An AuthCredential containing the Google credentials. ++ (FIRAuthCredential* _Nonnull)credentialWithIDToken:(NSString* _Nonnull)idToken + accessToken: + (NSString* _Nonnull)accessToken + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +@class FIRMultiFactorInfo; +@class FIRMultiFactorSession; +@class FIRMultiFactorAssertion; +/// The interface defining the multi factor related properties and operations +/// pertaining to a user. This class is available on iOS and macOS. +SWIFT_CLASS_NAMED("MultiFactor") +@interface FIRMultiFactor : NSObject +@property(nonatomic, copy) + NSArray* _Nonnull enrolledFactors; +/// Get a session for a second factor enrollment operation. +/// This is used to identify the current user trying to enroll a second factor. +/// \param completion A block with the session identifier for a second factor +/// enrollment operation. +/// +- (void)getSessionWithCompletion: + (void (^_Nullable)(FIRMultiFactorSession* _Nullable, + NSError* _Nullable))completion; +/// Enrolls a second factor as identified by the +/// MultiFactorAssertion parameter for the current user. +/// \param assertion The MultiFactorAssertion. +/// +/// \param displayName An optional display name associated with the multi factor +/// to enroll. +/// +/// \param completion The block invoked when the request is complete, or fails. +/// +- (void)enrollWithAssertion:(FIRMultiFactorAssertion* _Nonnull)assertion + displayName:(NSString* _Nullable)displayName + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Unenroll the given multi factor. +/// \param factorInfo The second factor instance to unenroll. +/// +/// \param completion The block invoked when the request to send the +/// verification email is complete, or fails. +/// +- (void)unenrollWithInfo:(FIRMultiFactorInfo* _Nonnull)factorInfo + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Unenroll the given multi factor. +/// \param factorUID The unique identifier corresponding to the +/// second factor being unenrolled. +/// +/// \param completion The block invoked when the request to send the +/// verification email is complete, or fails. +/// +- (void)unenrollWithFactorUID:(NSString* _Nonnull)factorUID + completion:(void (^_Nullable)(NSError* _Nullable))completion; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +@end + +@interface FIRMultiFactor (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// The base class for asserting ownership of a second factor. This is +/// equivalent to the AuthCredential class. This class is available on iOS and +/// macOS. +SWIFT_CLASS_NAMED("MultiFactorAssertion") +@interface FIRMultiFactorAssertion : NSObject +/// The second factor identifier for this opaque object asserting a second +/// factor. +@property(nonatomic, copy) NSString* _Nonnull factorID; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Safe public structure used to represent a second factor entity from a client +/// perspective. This class is available on iOS and macOS. +SWIFT_CLASS_NAMED("MultiFactorInfo") +@interface FIRMultiFactorInfo : NSObject +/// The multi-factor enrollment ID. +@property(nonatomic, readonly, copy) NSString* _Nonnull UID; +/// The user friendly name of the current second factor. +@property(nonatomic, readonly, copy) NSString* _Nullable displayName; +/// The second factor enrollment date. +@property(nonatomic, readonly, copy) NSDate* _Nonnull enrollmentDate; +/// The identifier of the second factor. +@property(nonatomic, readonly, copy) NSString* _Nonnull factorID; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRMultiFactorInfo (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// The subclass of base class MultiFactorAssertion, used to assert +/// ownership of a phone second factor. This class is available on iOS and +/// macOS. +SWIFT_CLASS_NAMED("MultiFactorResolver") +@interface FIRMultiFactorResolver : NSObject +/// The opaque session identifier for the current sign-in flow. +@property(nonatomic, readonly, strong) FIRMultiFactorSession* _Nonnull session; +/// The list of hints for the second factors needed to complete the sign-in for +/// the current session. +@property(nonatomic, readonly, copy) + NSArray* _Nonnull hints; +/// The Auth reference for the current MultiResolver. +@property(nonatomic, readonly, strong) FIRAuth* _Nonnull auth; +/// A helper function to help users complete sign in with a second factor using +/// a +/// \param assertion The assertion confirming the user successfully +/// completed the second factor challenge. +/// +/// \param completion The block invoked when the request is complete, or fails. +/// +- (void)resolveSignInWithAssertion:(FIRMultiFactorAssertion* _Nonnull)assertion + completion: + (void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Opaque object that identifies the current session to enroll a second factor +/// or to complete sign in when previously enrolled. Identifies the current +/// session to enroll a second factor or to complete sign in when previously +/// enrolled. It contains additional context on the existing user, notably the +/// confirmation that the user passed the first factor challenge. This class is +/// available on iOS and macOS. +SWIFT_CLASS_NAMED("MultiFactorSession") +@interface FIRMultiFactorSession : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Internal implementation of AuthCredential for generic +/// credentials. +SWIFT_CLASS_NAMED("OAuthCredential") +@interface FIROAuthCredential : FIRAuthCredential +/// The ID Token associated with this credential. +@property(nonatomic, readonly, copy) NSString* _Nullable IDToken; +/// The access token associated with this credential. +@property(nonatomic, readonly, copy) NSString* _Nullable accessToken; +/// The secret associated with this credential. This will be nil for OAuth 2.0 +/// providers. OAuthCredential already exposes a provider getter. +/// This will help the developer determine whether an access token / secret pair +/// is needed. +@property(nonatomic, readonly, copy) NSString* _Nullable secret; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +@end + +@class NSPersonNameComponents; +/// Utility class for constructing OAuth Sign In credentials. +SWIFT_CLASS_NAMED("OAuthProvider") +@interface FIROAuthProvider : NSObject +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Array used to configure the OAuth scopes. +@property(nonatomic, copy) NSArray* _Nullable scopes; +/// Dictionary used to configure the OAuth custom parameters. +@property(nonatomic, copy) + NSDictionary* _Nullable customParameters; +/// The provider ID indicating the specific OAuth provider this OAuthProvider +/// instance represents. +@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; +/// An instance of OAuthProvider corresponding to the given provider ID. +/// \param providerID The provider ID of the IDP for which this auth provider +/// instance will be configured. +/// +/// +/// returns: +/// An instance of OAuthProvider corresponding to the specified provider ID. ++ (FIROAuthProvider* _Nonnull)providerWithProviderID: + (NSString* _Nonnull)providerID SWIFT_WARN_UNUSED_RESULT; +/// An instance of OAuthProvider corresponding to the given provider ID and auth +/// instance. +/// \param providerID The provider ID of the IDP for which this auth provider +/// instance will be configured. +/// +/// \param auth The auth instance to be associated with the OAuthProvider +/// instance. +/// +/// +/// returns: +/// An instance of OAuthProvider corresponding to the specified provider ID. ++ (FIROAuthProvider* _Nonnull)providerWithProviderID: + (NSString* _Nonnull)providerID + auth:(FIRAuth* _Nonnull)auth + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for the OAuth 2 provider identified +/// by provider ID, ID token, and access token. +/// \param providerID The provider ID associated with the Auth credential being +/// created. +/// +/// \param idToken The IDToken associated with the Auth credential being +/// created. +/// +/// \param accessToken The access token associated with the Auth credential be +/// created, if available. +/// +/// +/// returns: +/// An AuthCredential for the specified provider ID, ID token and access token. ++ (FIROAuthCredential* _Nonnull) + credentialWithProviderID:(NSString* _Nonnull)providerID + IDToken:(NSString* _Nonnull)idToken + accessToken:(NSString* _Nullable)accessToken + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for the OAuth 2 provider identified +/// by provider ID, ID token, and access token. +/// \param providerID The provider ID associated with the Auth credential being +/// created. +/// +/// \param accessToken The access token associated with the Auth credential be +/// created, if available. +/// +/// +/// returns: +/// An AuthCredential for the specified provider ID, ID token and access token. ++ (FIROAuthCredential* _Nonnull) + credentialWithProviderID:(NSString* _Nonnull)providerID + accessToken:(NSString* _Nonnull)accessToken + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for that OAuth 2 provider identified +/// by provider ID, ID token, raw nonce, and access token. +/// \param providerID The provider ID associated with the Auth credential being +/// created. +/// +/// \param idToken The IDToken associated with the Auth credential being +/// created. +/// +/// \param rawNonce The raw nonce associated with the Auth credential being +/// created. +/// +/// \param accessToken The access token associated with the Auth credential be +/// created. +/// +/// +/// returns: +/// An AuthCredential for the specified provider ID, ID token and access token. ++ (FIROAuthCredential* _Nonnull) + credentialWithProviderID:(NSString* _Nonnull)providerID + IDToken:(NSString* _Nonnull)idToken + rawNonce:(NSString* _Nonnull)rawNonce + accessToken:(NSString* _Nonnull)accessToken + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for that OAuth 2 provider identified +/// by providerID using an ID token and raw nonce. +/// \param providerID The provider ID associated with the Auth credential being +/// created. +/// +/// \param idToken The IDToken associated with the Auth credential being +/// created. +/// +/// \param rawNonce The raw nonce associated with the Auth credential being +/// created. +/// +/// +/// returns: +/// An AuthCredential. ++ (FIROAuthCredential* _Nonnull) + credentialWithProviderID:(NSString* _Nonnull)providerID + IDToken:(NSString* _Nonnull)idToken + rawNonce:(NSString* _Nonnull)rawNonce + SWIFT_WARN_UNUSED_RESULT; +/// Used to obtain an auth credential via a mobile web flow. +/// This method is available on iOS only. +/// \param uiDelegate An optional UI delegate used to present the mobile web +/// flow. +/// +/// \param completionHandler Optionally; a block which is invoked +/// asynchronously on the main thread when the mobile web flow is +/// completed. +/// +- (void)getCredentialWithUIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nonnull)( + FIRAuthCredential* _Nullable, + NSError* _Nullable))completionHandler + SWIFT_AVAILABILITY(watchos, introduced = 8) + SWIFT_AVAILABILITY(macos, introduced = 10.15) + SWIFT_AVAILABILITY(tvos, introduced = 13) + SWIFT_AVAILABILITY(ios, introduced = 13); +/// Creates an AuthCredential for the Sign in with Apple OAuth 2 +/// provider identified by ID token, raw nonce, and full name.This method is +/// specific to the Sign in with Apple OAuth 2 provider as this provider +/// requires the full name to be passed explicitly. +/// \param idToken The IDToken associated with the Sign in with Apple Auth +/// credential being created. +/// +/// \param rawNonce The raw nonce associated with the Sign in with Apple Auth +/// credential being created. +/// +/// \param fullName The full name associated with the Sign in with Apple Auth +/// credential being created. +/// +/// +/// returns: +/// An AuthCredential. ++ (FIROAuthCredential* _Nonnull) + appleCredentialWithIDToken:(NSString* _Nonnull)idToken + rawNonce:(NSString* _Nullable)rawNonce + fullName:(NSPersonNameComponents* _Nullable)fullName + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Implementation of AuthCredential for Phone Auth credentials. +/// This class is available on iOS only. +SWIFT_CLASS_NAMED("PhoneAuthCredential") +@interface FIRPhoneAuthCredential : FIRAuthCredential +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +@end + +@class FIRPhoneMultiFactorInfo; +/// A concrete implementation of AuthProvider for phone auth +/// providers. This class is available on iOS only. +SWIFT_CLASS_NAMED("PhoneAuthProvider") +@interface FIRPhoneAuthProvider : NSObject +/// A string constant identifying the phone identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Returns an instance of PhoneAuthProvider for the default +/// Auth object. ++ (FIRPhoneAuthProvider* _Nonnull)provider SWIFT_WARN_UNUSED_RESULT; +/// Returns an instance of PhoneAuthProvider for the provided +/// Auth object. +/// \param auth The auth object to associate with the phone auth provider +/// instance. +/// ++ (FIRPhoneAuthProvider* _Nonnull)providerWithAuth:(FIRAuth* _Nonnull)auth + SWIFT_WARN_UNUSED_RESULT; +/// Starts the phone number authentication flow by sending a verification code +/// to the specified phone number. Possible error codes:
    +///
  • +/// AuthErrorCodeCaptchaCheckFailed - Indicates that the +/// reCAPTCHA token obtained by the Firebase Auth is invalid or has expired. +///
  • +///
  • +/// AuthErrorCodeQuotaExceeded - Indicates that the phone +/// verification quota for this project has been exceeded. +///
  • +///
  • +/// AuthErrorCodeInvalidPhoneNumber - Indicates that the phone +/// number provided is invalid. +///
  • +///
  • +/// AuthErrorCodeMissingPhoneNumber - Indicates that a phone +/// number was not provided. +///
  • +///
+/// \param phoneNumber The phone number to be verified. +/// +/// \param uiDelegate An object used to present the SFSafariViewController. The +/// object is retained by this method until the completion block is executed. +/// +/// \param completion The callback to be invoked when the verification flow is +/// finished. +/// +- (void)verifyPhoneNumber:(NSString* _Nonnull)phoneNumber + UIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nullable)(NSString* _Nullable, + NSError* _Nullable))completion; +/// Verify ownership of the second factor phone number by the current user. +/// \param phoneNumber The phone number to be verified. +/// +/// \param uiDelegate An object used to present the SFSafariViewController. The +/// object is retained by this method until the completion block is executed. +/// +/// \param multiFactorSession A session to identify the MFA flow. For +/// enrollment, this identifies the user trying to enroll. For sign-in, this +/// identifies that the user already passed the first factor challenge. +/// +/// \param completion The callback to be invoked when the verification flow is +/// finished. +/// +- (void)verifyPhoneNumber:(NSString* _Nonnull)phoneNumber + UIDelegate:(id _Nullable)uiDelegate + multiFactorSession:(FIRMultiFactorSession* _Nullable)multiFactorSession + completion:(void (^_Nullable)(NSString* _Nullable, + NSError* _Nullable))completion; +/// Verify ownership of the second factor phone number by the current user. +/// \param multiFactorInfo The phone multi factor whose number need to be +/// verified. +/// +/// \param uiDelegate An object used to present the SFSafariViewController. The +/// object is retained by this method until the completion block is executed. +/// +/// \param multiFactorSession A session to identify the MFA flow. For +/// enrollment, this identifies the user trying to enroll. For sign-in, this +/// identifies that the user already passed the first factor challenge. +/// +/// \param completion The callback to be invoked when the verification flow is +/// finished. +/// +- (void) + verifyPhoneNumberWithMultiFactorInfo: + (FIRPhoneMultiFactorInfo* _Nonnull)multiFactorInfo + UIDelegate: + (id _Nullable)uiDelegate + multiFactorSession: + (FIRMultiFactorSession* _Nullable)multiFactorSession + completion:(void (^_Nullable)(NSString* _Nullable, + NSError* _Nullable)) + completion; +/// Creates an AuthCredential for the phone number provider +/// identified by the verification ID and verification code. +/// \param verificationID The verification ID obtained from invoking +/// verifyPhoneNumber:completion: +/// +/// \param verificationCode The verification code obtained from the user. +/// +/// +/// returns: +/// The corresponding phone auth credential for the verification ID and +/// verification code provided. +- (FIRPhoneAuthCredential* _Nonnull) + credentialWithVerificationID:(NSString* _Nonnull)verificationID + verificationCode:(NSString* _Nonnull)verificationCode + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// The subclass of base class FIRMultiFactorAssertion, used to assert ownership +/// of a phone second factor. This class is available on iOS and macOS. +SWIFT_CLASS_NAMED("PhoneMultiFactorAssertion") +@interface FIRPhoneMultiFactorAssertion : FIRMultiFactorAssertion +@end + +/// The data structure used to help initialize an assertion for a second factor +/// entity to the Firebase Auth/CICP server. Depending on the type of second +/// factor, this will help generate the assertion. This class is available on +/// iOS and macOS. +SWIFT_CLASS_NAMED("PhoneMultiFactorGenerator") +@interface FIRPhoneMultiFactorGenerator : NSObject +/// Initializes the MFA assertion to confirm ownership of the phone second +/// factor. Note that this API is used for both enrolling and signing in with a +/// phone second factor. +/// \param phoneAuthCredential The phone auth credential used for multi factor +/// flows. +/// ++ (FIRPhoneMultiFactorAssertion* _Nonnull)assertionWithCredential: + (FIRPhoneAuthCredential* _Nonnull)phoneAuthCredential + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +/// Extends the MultiFactorInfo class for phone number second factors. +/// The identifier of this second factor is “phone”. +/// This class is available on iOS and macOS. +SWIFT_CLASS_NAMED("PhoneMultiFactorInfo") +@interface FIRPhoneMultiFactorInfo : FIRMultiFactorInfo +/// The string identifier for using phone as a second factor. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull FIRPhoneMultiFactorID;) ++ (NSString* _Nonnull)FIRPhoneMultiFactorID SWIFT_WARN_UNUSED_RESULT; +/// The string identifier for using TOTP as a second factor. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull FIRTOTPMultiFactorID;) ++ (NSString* _Nonnull)FIRTOTPMultiFactorID SWIFT_WARN_UNUSED_RESULT; +/// This is the phone number associated with the current second factor. +@property(nonatomic, copy) NSString* _Nonnull phoneNumber; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +@end + +/// The subclass of base class MultiFactorAssertion, used to assert ownership of +/// a TOTP (Time-based One Time Password) second factor. This class is available +/// on iOS and macOS. +SWIFT_CLASS_NAMED("TOTPMultiFactorAssertion") +@interface FIRTOTPMultiFactorAssertion : FIRMultiFactorAssertion +@end + +@class FIRTOTPSecret; +/// The data structure used to help initialize an assertion for a second factor +/// entity to the Firebase Auth/CICP server. Depending on the type of second +/// factor, this will help generate the assertion. This class is available on +/// iOS and macOS. +SWIFT_CLASS_NAMED("TOTPMultiFactorGenerator") +@interface FIRTOTPMultiFactorGenerator : NSObject +/// Creates a TOTP secret as part of enrolling a TOTP second factor. Used for +/// generating a QR code URL or inputting into a TOTP app. This method uses the +/// auth instance corresponding to the user in the multiFactorSession. +/// \param session The multiFactorSession instance. +/// +/// \param completion Completion block +/// ++ (void)generateSecretWithMultiFactorSession: + (FIRMultiFactorSession* _Nonnull)session + completion:(void (^_Nonnull)( + FIRTOTPSecret* _Nullable, + NSError* _Nullable))completion; +/// Initializes the MFA assertion to confirm ownership of the TOTP second +/// factor. This assertion is used to complete enrollment of TOTP as a second +/// factor. +/// \param secret The TOTP secret. +/// +/// \param oneTimePassword One time password string. +/// +/// +/// returns: +/// The MFA assertion. ++ (FIRTOTPMultiFactorAssertion* _Nonnull) + assertionForEnrollmentWithSecret:(FIRTOTPSecret* _Nonnull)secret + oneTimePassword:(NSString* _Nonnull)oneTimePassword + SWIFT_WARN_UNUSED_RESULT; +/// Initializes the MFA assertion to confirm ownership of the TOTP second +/// factor. This assertion is used to complete signIn with TOTP as a second +/// factor. +/// \param enrollmentID The ID that identifies the enrolled TOTP second factor. +/// +/// \param oneTimePassword one time password string. +/// +/// +/// returns: +/// The MFA assertion. ++ (FIRTOTPMultiFactorAssertion* _Nonnull) + assertionForSignInWithEnrollmentID:(NSString* _Nonnull)enrollmentID + oneTimePassword:(NSString* _Nonnull)oneTimePassword + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +/// The subclass of base class MultiFactorAssertion, used to assert ownership of +/// a TOTP (Time-based One Time Password) second factor. This class is available +/// on iOS and macOS. +SWIFT_CLASS_NAMED("TOTPSecret") +@interface FIRTOTPSecret : NSObject +/// Returns the shared secret key/seed used to generate time-based one-time +/// passwords. +- (NSString* _Nonnull)sharedSecretKey SWIFT_WARN_UNUSED_RESULT; +/// Returns a QRCode URL as described in +/// https://github.com/google/google-authenticator/wiki/Key-Uri-Format. +/// This can be displayed to the user as a QRCode to be scanned into a TOTP app +/// like Google Authenticator. +/// \param accountName The name of the account/app. +/// +/// \param issuer Issuer of the TOTP(likely the app name). +/// +/// +/// returns: +/// A QRCode URL string. +- (NSString* _Nonnull) + generateQRCodeURLWithAccountName:(NSString* _Nonnull)accountName + issuer:(NSString* _Nonnull)issuer + SWIFT_WARN_UNUSED_RESULT; +/// Opens the specified QR Code URL in a password manager like iCloud Keychain. +/// See more details +/// here +- (void)openInOTPAppWithQRCodeURL:(NSString* _Nonnull)qrCodeURL; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Utility class for constructing Twitter Sign In credentials. +SWIFT_CLASS_NAMED("TwitterAuthProvider") +@interface FIRTwitterAuthProvider : NSObject +/// A string constant identifying the Twitter identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a Twitter sign in. +/// \param token The Twitter OAuth token. +/// +/// \param secret The Twitter OAuth secret. +/// +/// +/// returns: +/// An AuthCredential containing the Twitter credentials. ++ (FIRAuthCredential* _Nonnull)credentialWithToken:(NSString* _Nonnull)token + secret:(NSString* _Nonnull)secret + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +/// Represents user data returned from an identity provider. +SWIFT_PROTOCOL_NAMED("UserInfo") +@protocol FIRUserInfo +/// The provider identifier. +@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; +/// The provider’s user ID for the user. +@property(nonatomic, readonly, copy) NSString* _Nonnull uid; +/// The name of the user. +@property(nonatomic, readonly, copy) NSString* _Nullable displayName; +/// The URL of the user’s profile photo. +@property(nonatomic, readonly, copy) NSURL* _Nullable photoURL; +/// The user’s email address. +@property(nonatomic, readonly, copy) NSString* _Nullable email; +/// A phone number associated with the user. +/// This property is only available for users authenticated via phone number +/// auth. +@property(nonatomic, readonly, copy) NSString* _Nullable phoneNumber; +@end + +@class FIRUserMetadata; +@class FIRUserProfileChangeRequest; +/// Represents a user. +/// Firebase Auth does not attempt to validate users +/// when loading them from the keychain. Invalidated users (such as those +/// whose passwords have been changed on another client) are automatically +/// logged out when an auth-dependent operation is attempted or when the +/// ID token is automatically refreshed. +/// This class is thread-safe. +SWIFT_CLASS_NAMED("User") +@interface FIRUser : NSObject +/// Indicates the user represents an anonymous user. +@property(nonatomic, readonly) BOOL isAnonymous; +/// Indicates the user represents an anonymous user. +- (BOOL)anonymous SWIFT_WARN_UNUSED_RESULT; +/// Indicates the email address associated with this user has been verified. +@property(nonatomic, readonly) BOOL isEmailVerified; +/// Indicates the email address associated with this user has been verified. +- (BOOL)emailVerified SWIFT_WARN_UNUSED_RESULT; +/// Profile data for each identity provider, if any. +/// This data is cached on sign-in and updated when linking or unlinking. +@property(nonatomic, readonly, copy) + NSArray>* _Nonnull providerData; +/// Metadata associated with the Firebase user in question. +@property(nonatomic, readonly, strong) FIRUserMetadata* _Nonnull metadata; +/// The tenant ID of the current user. nil if none is available. +@property(nonatomic, readonly, copy) NSString* _Nullable tenantID; +/// Multi factor object associated with the user. +/// This property is available on iOS and macOS. +@property(nonatomic, readonly, strong) FIRMultiFactor* _Nonnull multiFactor; +/// [Deprecated] Updates the email address for the user. +/// On success, the cached user profile data is updated. Returns an error when +/// Email +/// Enumeration Protection is enabled. May fail if there is already an +/// account with this email address that was created using email and password +/// authentication. Invoked asynchronously on the main thread in the future. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
  • +/// AuthErrorCodeEmailAlreadyInUse - Indicates the email is +/// already in use by another account. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating a user’s email +/// is a security sensitive operation that requires a recent login from the +/// user. This error indicates the user has not signed in recently enough. +/// To resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
+/// \param email The email address for the user. +/// +/// \param completion Optionally; the block invoked when the user profile change +/// has finished. +/// +- (void)updateEmail:(NSString* _Nonnull)email + completion:(void (^_Nullable)(NSError* _Nullable))completion + SWIFT_DEPRECATED_MSG( + "`updateEmail` is deprecated and will be removed in a future release. " + "Use sendEmailVerification(beforeUpdatingEmail:) instead."); +/// Updates the password for the user. On success, the cached user profile data +/// is updated. Invoked asynchronously on the main thread in the future. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates the +/// administrator disabled sign in with the specified identity provider. +///
  • +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating a user’s +/// password is a security sensitive operation that requires a recent login +/// from the user. This error indicates the user has not signed in recently +/// enough. To resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
  • +/// AuthErrorCodeWeakPassword - Indicates an attempt to set a +/// password that is considered too weak. The +/// NSLocalizedFailureReasonErrorKey field in the +/// userInfo dictionary object will contain more detailed +/// explanation that can be shown to the user. +///
  • +///
+/// \param password The new password for the user. +/// +/// \param completion Optionally; the block invoked when the user profile change +/// has finished. +/// +- (void)updatePassword:(NSString* _Nonnull)password + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Updates the phone number for the user. On success, the cached user profile +/// data is updated. Invoked asynchronously on the main thread in the future. +/// This method is available on iOS only. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating a user’s phone +/// number is a security sensitive operation that requires a recent login +/// from the user. This error indicates the user has not signed in recently +/// enough. To resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
+/// \param credential The new phone number credential corresponding to the +/// phone number to be added to the Firebase account, if a phone number is +/// already linked to the account this new phone number will replace it. +/// +/// \param completion Optionally; the block invoked when the user profile change +/// has finished. +/// +- (void)updatePhoneNumberCredential:(FIRPhoneAuthCredential* _Nonnull)credential + completion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Creates an object which may be used to change the user’s profile data. +/// Set the properties of the returned object, then call +/// UserProfileChangeRequest.commitChanges() to perform the updates +/// atomically. +/// +/// returns: +/// An object which may be used to change the user’s profile data atomically. +- (FIRUserProfileChangeRequest* _Nonnull) + profileChangeRequest SWIFT_WARN_UNUSED_RESULT; +/// A refresh token; useful for obtaining new access tokens independently. +/// This property should only be used for advanced scenarios, and is not +/// typically needed. +@property(nonatomic, readonly, copy) NSString* _Nullable refreshToken; +/// Reloads the user’s profile data from the server. +/// May fail with an AuthErrorCodeRequiresRecentLogin error code. +/// In this case you should call reauthenticate(with:) before +/// re-invoking updateEmail(to:). +/// \param completion Optionally; the block invoked when the reload has +/// finished. Invoked asynchronously on the main thread in the future. +/// +- (void)reloadWithCompletion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Renews the user’s authentication tokens by validating a fresh set of +/// credentials supplied by the user and returns additional identity provider +/// data. If the user associated with the supplied credential is different from +/// the current user, or if the validation of the supplied credentials fails; an +/// error is returned and the current user remains signed in. Possible error +/// codes:
    +///
  • +/// AuthErrorCodeInvalidCredential - Indicates the supplied +/// credential is invalid. This could happen if it has expired or it is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that accounts +/// with the identity provider represented by the credential are not +/// enabled. Enable them in the Auth section of the Firebase console. +///
  • +///
  • +/// AuthErrorCodeEmailAlreadyInUse - Indicates the email +/// asserted by the credential (e.g. the email in a Facebook access token) +/// is already in use by an existing account, that cannot be authenticated +/// with this method. This error will only be thrown if the “One account per +/// email address” setting is enabled in the Firebase console, under Auth +/// settings. Please note that the error code raised in this specific +/// situation may not be the same on Web and Android. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// reauthentication with an incorrect password, if credential is of the +/// type EmailPasswordAuthCredential. +///
  • +///
  • +/// AuthErrorCodeUserMismatch - Indicates that an attempt was +/// made to reauthenticate with a user which is not the current user. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
+/// \param credential A user-supplied credential, which will be validated by the +/// server. This can be a successful third-party identity provider sign-in, or +/// an email address and password. +/// +/// \param completion Optionally; the block invoked when the re-authentication +/// operation has finished. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)reauthenticateWithCredential:(FIRAuthCredential* _Nonnull)credential + completion: + (void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Renews the user’s authentication using the provided auth provider instance. +/// This method is available on iOS only. +/// \param provider An instance of an auth provider used to initiate the +/// reauthenticate flow. +/// +/// \param uiDelegate Optionally an instance of a class conforming to the +/// AuthUIDelegate protocol, used for presenting the web context. +/// If nil, a default AuthUIDelegate will be used. +/// +/// \param completion Optionally; a block which is invoked when the +/// reauthenticate flow finishes, or is canceled. Invoked asynchronously on the +/// main thread in the future. +/// +- (void)reauthenticateWithProvider: + (id _Nonnull)provider + UIDelegate:(id _Nullable)uiDelegate + completion: + (void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. +/// \param completion Optionally; the block invoked when the token is available. +/// Invoked asynchronously on the main thread in the future. +/// +- (void)getIDTokenWithCompletion: + (void (^_Nullable)(NSString* _Nullable, NSError* _Nullable))completion; +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. The authentication token will be refreshed (by making a network +/// request) if it has expired, or if forceRefresh is +/// true. +/// \param forceRefresh Forces a token refresh. Useful if the token becomes +/// invalid for some reason other than an expiration. +/// +/// \param completion Optionally; the block invoked when the token is available. +/// Invoked asynchronously on the main thread in the future. +/// +- (void)getIDTokenForcingRefresh:(BOOL)forceRefresh + completion: + (void (^_Nullable)(NSString* _Nullable, + NSError* _Nullable))completion; +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. +/// \param completion Optionally; the block invoked when the token is available. +/// Invoked asynchronously on the main thread in the future. +/// +- (void)getIDTokenResultWithCompletion: + (void (^_Nullable)(FIRAuthTokenResult* _Nullable, + NSError* _Nullable))completion; +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. The authentication token will be refreshed (by making a network +/// request) if it has expired, or if forcingRefresh is +/// true. +/// \param forcingRefresh Forces a token refresh. Useful if the token becomes +/// invalid for some reason other than an expiration. +/// +/// \param completion Optionally; the block invoked when the token is available. +/// Invoked asynchronously on the main thread in the future. +/// +- (void)getIDTokenResultForcingRefresh:(BOOL)forcingRefresh + completion:(void (^_Nullable)( + FIRAuthTokenResult* _Nullable, + NSError* _Nullable))completion; +/// Associates a user account from a third-party identity provider with this +/// user and returns additional identity provider data. Invoked asynchronously +/// on the main thread in the future. Possible error codes:
    +///
  • +/// AuthErrorCodeProviderAlreadyLinked - Indicates an attempt +/// to link a provider of a type already linked to this account. +///
  • +///
  • +/// AuthErrorCodeCredentialAlreadyInUse - Indicates an attempt +/// to link with a credential that has already been linked with a different +/// Firebase account. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that accounts +/// with the identity provider represented by the credential are not +/// enabled. Enable them in the Auth section of the Firebase console. +///
  • +///
+/// This method may also return error codes associated with +/// updateEmail(to:) and updatePassword(to:) on +/// User. +/// \param credential The credential for the identity provider. +/// +/// \param completion Optionally; the block invoked when the unlinking is +/// complete, or fails. +/// +- (void)linkWithCredential:(FIRAuthCredential* _Nonnull)credential + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Link the user with the provided auth provider instance. +/// This method is available on iOSonly. +/// \param provider An instance of an auth provider used to initiate the link +/// flow. +/// +/// \param uiDelegate Optionally an instance of a class conforming to the +/// AuthUIDelegate protocol used for presenting the web context. If +/// nil, a default AuthUIDelegate will be used. +/// +/// \param completion Optionally; a block which is invoked when the link flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)linkWithProvider:(id _Nonnull)provider + UIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Disassociates a user account from a third-party identity provider with this +/// user. Invoked asynchronously on the main thread in the future. Possible +/// error codes:
    +///
  • +/// AuthErrorCodeNoSuchProvider - Indicates an attempt to +/// unlink a provider that is not linked to the account. +///
  • +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating email is a +/// security sensitive operation that requires a recent login from the user. +/// This error indicates the user has not signed in recently enough. To +/// resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
+/// \param provider The provider ID of the provider to unlink. +/// +/// \param completion Optionally; the block invoked when the unlinking is +/// complete, or fails. +/// +- (void)unlinkFromProvider:(NSString* _Nonnull)provider + completion:(void (^_Nullable)(FIRUser* _Nullable, + NSError* _Nullable))completion; +/// Initiates email verification for the user. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
  • +/// AuthErrorCodeUserNotFound - Indicates the user account was +/// not found. +///
  • +///
+/// \param completion Optionally; the block invoked when the request to send an +/// email verification is complete, or fails. Invoked asynchronously on the main +/// thread in the future. +/// +- (void)sendEmailVerificationWithCompletion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Initiates email verification for the user. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
  • +/// AuthErrorCodeUserNotFound - Indicates the user account was +/// not found. +///
  • +///
+/// \param actionCodeSettings An ActionCodeSettings object +/// containing settings related to handling action codes. +/// +/// \param completion Optionally; the block invoked when the request to send an +/// email verification is complete, or fails. Invoked asynchronously on the main +/// thread in the future. +/// +- (void)sendEmailVerificationWithActionCodeSettings: + (FIRActionCodeSettings* _Nullable)actionCodeSettings + completion: + (void (^_Nullable)( + NSError* _Nullable))completion; +/// Deletes the user account (also signs out the user, if this was the current +/// user). Possible error codes:
    +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating email is a +/// security sensitive operation that requires a recent login from the user. +/// This error indicates the user has not signed in recently enough. To +/// resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
+/// \param completion Optionally; the block invoked when the request to delete +/// the account is complete, or fails. Invoked asynchronously on the main thread +/// in the future. +/// +- (void)deleteWithCompletion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Send an email to verify the ownership of the account then update to the new +/// email. +/// \param email The email to be updated to. +/// +/// \param completion Optionally; the block invoked when the request to send the +/// verification email is complete, or fails. +/// +- (void)sendEmailVerificationBeforeUpdatingEmail:(NSString* _Nonnull)email + completion: + (void (^_Nullable)( + NSError* _Nullable))completion; +/// Send an email to verify the ownership of the account then update to the new +/// email. +/// \param email The email to be updated to. +/// +/// \param actionCodeSettings An ActionCodeSettings object +/// containing settings related to handling action codes. +/// +/// \param completion Optionally; the block invoked when the request to send the +/// verification email is complete, or fails. +/// +- (void) + sendEmailVerificationBeforeUpdatingEmail:(NSString* _Nonnull)email + actionCodeSettings:(FIRActionCodeSettings* _Nullable) + actionCodeSettings + completion:(void (^_Nullable)( + NSError* _Nullable))completion; +@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; +/// The provider’s user ID for the user. +@property(nonatomic, readonly, copy) NSString* _Nonnull uid; +/// The name of the user. +@property(nonatomic, copy) NSString* _Nullable displayName; +/// The URL of the user’s profile photo. +@property(nonatomic, copy) NSURL* _Nullable photoURL; +/// The user’s email address. +@property(nonatomic, readonly, copy) NSString* _Nullable email; +/// A phone number associated with the user. +/// This property is only available for users authenticated via phone number +/// auth. +@property(nonatomic, readonly, copy) NSString* _Nullable phoneNumber; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRUser (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// A data class representing the metadata corresponding to a Firebase user. +SWIFT_CLASS_NAMED("UserMetadata") +@interface FIRUserMetadata : NSObject +/// Stores the last sign in date for the corresponding Firebase user. +@property(nonatomic, readonly, copy) NSDate* _Nullable lastSignInDate; +/// Stores the creation date for the corresponding Firebase user. +@property(nonatomic, readonly, copy) NSDate* _Nullable creationDate; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRUserMetadata (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// Represents an object capable of updating a user’s profile data. +/// Properties are marked as being part of a profile update when they are set. +/// Setting a property value to nil is not the same as leaving the property +/// unassigned. +SWIFT_CLASS_NAMED("UserProfileChangeRequest") +@interface FIRUserProfileChangeRequest : NSObject +/// The name of the user. +@property(nonatomic, copy) NSString* _Nullable displayName; +/// The URL of the user’s profile photo. +@property(nonatomic, copy) NSURL* _Nullable photoURL; +/// Commits any pending changes. +/// Invoked asynchronously on the main thread in the future. +/// This method should only be called once.Once called, property values should +/// not be changed. +/// \param completion Optionally; the block invoked when the user profile change +/// has been applied. +/// +- (void)commitChangesWithCompletion: + (void (^_Nullable)(NSError* _Nullable))completion; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEAUTH_SWIFT_H +#define FIREBASEAUTH_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import FirebaseAuthInterop; +@import Foundation; +@import ObjectiveC; +@import UIKit; +#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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseAuth", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +enum FIRActionCodeOperation : NSInteger; +@class NSString; +/// Manages information regarding action codes. +SWIFT_CLASS_NAMED("ActionCodeInfo") +@interface FIRActionCodeInfo : NSObject +/// The operation being performed. +@property(nonatomic, readonly) enum FIRActionCodeOperation operation; +/// The email address to which the code was sent. The new email address in the +/// case of ActionCodeOperation.recoverEmail. +@property(nonatomic, readonly, copy) NSString* _Nonnull email; +/// The email that is being recovered in the case of +/// ActionCodeOperation.recoverEmail. +@property(nonatomic, readonly, copy) NSString* _Nullable previousEmail; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Operations which can be performed with action codes. +typedef SWIFT_ENUM_NAMED(NSInteger, FIRActionCodeOperation, + "ActionCodeOperation", open){ + /// Action code for unknown operation. + FIRActionCodeOperationUnknown = 0, + /// Action code for password reset operation. + FIRActionCodeOperationPasswordReset = 1, + /// Action code for verify email operation. + FIRActionCodeOperationVerifyEmail = 2, + /// Action code for recover email operation. + FIRActionCodeOperationRecoverEmail = 3, + /// Action code for email link operation. + FIRActionCodeOperationEmailLink = 4, + /// Action code for verifying and changing email. + FIRActionCodeOperationVerifyAndChangeEmail = 5, + /// Action code for reverting second factor addition. + FIRActionCodeOperationRevertSecondFactorAddition = 6, +}; + +@class NSURL; +/// Used to set and retrieve settings related to handling action codes. +SWIFT_CLASS_NAMED("ActionCodeSettings") +@interface FIRActionCodeSettings : NSObject +/// This URL represents the state/Continue URL in the form of a universal link. +/// This URL can should be constructed as a universal link that would either +/// directly open the app where the action code would be handled or continue to +/// the app after the action code is handled by Firebase. +@property(nonatomic, copy) NSURL* _Nullable URL; +/// Indicates whether the action code link will open the app directly or after +/// being redirected from a Firebase owned web widget. +@property(nonatomic) BOOL handleCodeInApp; +/// The iOS bundle ID, if available. The default value is the current app’s +/// bundle ID. +@property(nonatomic, copy) NSString* _Nullable iOSBundleID; +/// The Android package name, if available. +@property(nonatomic, copy) NSString* _Nullable androidPackageName; +/// The minimum Android version supported, if available. +@property(nonatomic, copy) NSString* _Nullable androidMinimumVersion; +/// Indicates whether the Android app should be installed on a device where it +/// is not available. +@property(nonatomic) BOOL androidInstallIfNotAvailable; +/// The out of band custom domain for handling code in app. +@property(nonatomic, copy) NSString* _Nullable linkDomain; +/// Sets the iOS bundle ID. +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +/// Sets the Android package name, the flag to indicate whether or not to +/// install the app, and the minimum Android version supported. If +/// installIfNotAvailable is set to true and the link +/// is opened on an android device, it will try to install the app if not +/// already available. Otherwise the web URL is used. +/// \param androidPackageName The Android package name. +/// +/// \param installIfNotAvailable Indicates whether or not the app should be +/// installed if not available. +/// +/// \param minimumVersion The minimum version of Android supported. +/// +- (void)setAndroidPackageName:(NSString* _Nonnull)androidPackageName + installIfNotAvailable:(BOOL)installIfNotAvailable + minimumVersion:(NSString* _Nullable)minimumVersion; +@end + +/// This class will allow developers to easily extract information about out of +/// band links. +SWIFT_CLASS_NAMED("ActionCodeURL") +@interface FIRActionCodeURL : NSObject +/// Returns the API key from the link. nil, if not provided. +@property(nonatomic, readonly, copy) NSString* _Nullable APIKey; +/// Returns the mode of oob action. +/// The property will be of ActionCodeOperation type. +/// It will return .unknown if no oob action is provided. +@property(nonatomic, readonly) enum FIRActionCodeOperation operation; +/// Returns the email action code from the link. nil, if not provided. +@property(nonatomic, readonly, copy) NSString* _Nullable code; +/// Returns the continue URL from the link. nil, if not provided. +@property(nonatomic, readonly, copy) NSURL* _Nullable continueURL; +/// Returns the language code from the link. nil, if not provided. +@property(nonatomic, readonly, copy) NSString* _Nullable languageCode; +/// Construct an ActionCodeURL from an out of band link (e.g. email +/// link). +/// \param link The oob link string used to construct the action code URL. +/// +/// +/// returns: +/// The ActionCodeURL object constructed based on the oob link provided. +- (nullable instancetype)actionCodeURLWithLink:(NSString* _Nonnull)link + OBJC_DESIGNATED_INITIALIZER SWIFT_METHOD_FAMILY(init); +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class NSCoder; +SWIFT_CLASS_NAMED("AdditionalUserInfo") +@interface FIRAdditionalUserInfo : NSObject +/// The provider identifier. +@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; +/// Dictionary containing the additional IdP specific information. +@property(nonatomic, readonly, copy) + NSDictionary* _Nullable profile; +/// The name of the user. +@property(nonatomic, readonly, copy) NSString* _Nullable username; +/// Indicates whether or not the current user was signed in for the first time. +@property(nonatomic, readonly) BOOL isNewUser; +/// Indicates whether or not the current user was signed in for the first time. +- (BOOL)newUser SWIFT_WARN_UNUSED_RESULT; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)aDecoder + OBJC_DESIGNATED_INITIALIZER; +- (void)encodeWithCoder:(NSCoder* _Nonnull)aCoder; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRAdditionalUserInfo (SWIFT_EXTENSION (FirebaseAuth)) < + NSSecureCoding> +@end + +@class FIRApp; +@class FIRUser; +@class FIRAuthSettings; +@class FIRAuthDataResult; +@protocol FIRFederatedAuthProvider; +@protocol FIRAuthUIDelegate; +@class FIRAuthCredential; +@protocol NSObject; +@class NSError; +@class NSData; +enum FIRAuthAPNSTokenType : NSInteger; +/// Manages authentication for Firebase apps. +/// This class is thread-safe. +SWIFT_CLASS_NAMED("Auth") +@interface FIRAuth : NSObject +/// Gets the auth object for the default Firebase app. +/// The default Firebase app must have already been configured or an exception +/// will be raised. ++ (FIRAuth* _Nonnull)auth SWIFT_WARN_UNUSED_RESULT; +/// Gets the auth object for a FirebaseApp. +/// \param app The app for which to retrieve the associated Auth +/// instance. +/// +/// +/// returns: +/// The Auth instance associated with the given app. ++ (FIRAuth* _Nonnull)authWithApp:(FIRApp* _Nonnull)app SWIFT_WARN_UNUSED_RESULT; +/// Gets the FirebaseApp object that this auth object is connected +/// to. +@property(nonatomic, readonly, weak) FIRApp* _Nullable app; +/// Synchronously gets the cached current user, or null if there is none. +@property(nonatomic, readonly, strong) FIRUser* _Nullable currentUser; +/// The current user language code. +/// This property can be set to the app’s current language by +/// calling useAppLanguage(). +/// The string used to set this property must be a language code that follows +/// BCP 47. +@property(nonatomic, copy) NSString* _Nullable languageCode; +/// Contains settings related to the auth object. +@property(nonatomic, strong) FIRAuthSettings* _Nullable settings; +/// The current user access group that the Auth instance is using. +/// Default is nil. +@property(nonatomic, readonly, copy) NSString* _Nullable userAccessGroup; +/// Contains shareAuthStateAcrossDevices setting related to the auth object. +/// If userAccessGroup is not set, setting shareAuthStateAcrossDevices will +/// have no effect. You should set shareAuthStateAcrossDevices to its desired +/// state and then set the userAccessGroup after. +@property(nonatomic) BOOL shareAuthStateAcrossDevices; +/// The tenant ID of the auth instance. nil if none is available. +@property(nonatomic, copy) NSString* _Nullable tenantID; +/// The custom authentication domain used to handle all sign-in redirects. +/// End-users will see +/// this domain when signing in. This domain must be allowlisted in the Firebase +/// Console. +@property(nonatomic, copy) NSString* _Nullable customAuthDomain; +/// Sets the currentUser on the receiver to the provided user +/// object. +/// \param user The user object to be set as the current user of the calling +/// Auth instance. +/// +/// \param completion Optionally; a block invoked after the user of the calling +/// Auth instance has been updated or an error was encountered. +/// +- (void)updateCurrentUser:(FIRUser* _Nullable)user + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// [Deprecated] Fetches the list of all sign-in methods previously used for the +/// provided email address. This method returns an empty list when Email +/// Enumeration Protection is enabled, irrespective of the number of +/// authentication methods available for the given email. Possible error codes: +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +/// \param email The email address for which to obtain a list of sign-in +/// methods. +/// +/// \param completion Optionally; a block which is invoked when the list of sign +/// in methods for the specified email address is ready or an error was +/// encountered. Invoked asynchronously on the main thread in the future. +/// +- (void)fetchSignInMethodsForEmail:(NSString* _Nonnull)email + completion: + (void (^_Nullable)(NSArray* _Nullable, + NSError* _Nullable))completion + SWIFT_DEPRECATED_MSG( + "`fetchSignInMethods` is deprecated and will be removed in a future " + "release. This method returns an empty list when Email Enumeration " + "Protection is enabled."); +/// Signs in using an email address and password. +/// When Email +/// Enumeration Protection is enabled, this method fails with an error in +/// case of an invalid email/password. Possible error codes:
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that email and +/// password accounts are not enabled. Enable them in the Auth section of +/// the Firebase console. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// sign in with an incorrect password. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
+/// \param email The user’s email address. +/// +/// \param password The user’s password. +/// +/// \param completion Optionally; a block which is invoked when the sign in flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithEmail:(NSString* _Nonnull)email + password:(NSString* _Nonnull)password + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Signs in using an email address and email sign-in link. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that email and +/// password accounts are not enabled. Enable them in the Auth section of +/// the Firebase console. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// sign in with an incorrect password. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
+/// \param email The user’s email address. +/// +/// \param link The email sign-in link. +/// +/// \param completion Optionally; a block which is invoked when the sign in flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithEmail:(NSString* _Nonnull)email + link:(NSString* _Nonnull)link + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Signs in using the provided auth provider instance. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that email and +/// password accounts are not enabled. Enable them in the Auth section of +/// the Firebase console. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// sign in with an incorrect password. +///
  • +///
  • +/// AuthErrorCodeWebNetworkRequestFailed - Indicates that a +/// network request within a SFSafariViewController or WKWebView failed. +///
  • +///
  • +/// AuthErrorCodeWebInternalError - Indicates that an internal +/// error occurred within a SFSafariViewController or WKWebView. +///
  • +///
  • +/// AuthErrorCodeWebSignInUserInteractionFailure - Indicates a +/// general failure during a web sign-in flow. +///
  • +///
  • +/// AuthErrorCodeWebContextAlreadyPresented - Indicates that an +/// attempt was made to present a new web context while one was already +/// being presented. +///
  • +///
  • +/// AuthErrorCodeWebContextCancelled - Indicates that the URL +/// presentation was cancelled prematurely by the user. +///
  • +///
  • +/// AuthErrorCodeAccountExistsWithDifferentCredential - +/// Indicates the email asserted by the credential (e.g. the email in a +/// Facebook access token) is already in use by an existing account, that +/// cannot be authenticated with this sign-in method. Call +/// fetchProvidersForEmail for this user’s email and then prompt them to +/// sign in with any of the sign-in providers returned. This error will only +/// be thrown if the “One account per email address” setting is enabled in +/// the Firebase console, under Auth settings. +///
  • +///
+/// \param provider An instance of an auth provider used to initiate the sign-in +/// flow. +/// +/// \param uiDelegate Optionally an instance of a class conforming to the +/// AuthUIDelegate protocol, this is used for presenting the web context. If +/// nil, a default AuthUIDelegate will be used. +/// +/// \param completion Optionally; a block which is invoked when the sign in flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithProvider:(id _Nonnull)provider + UIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion + SWIFT_AVAILABILITY(watchos, unavailable) + SWIFT_AVAILABILITY(macos, unavailable) + SWIFT_AVAILABILITY(tvos, unavailable); +/// Asynchronously signs in to Firebase with the given 3rd-party credentials +/// (e.g. a Facebook login Access Token, a Google ID Token/Access Token pair, +/// etc.) and returns additional identity provider data. Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidCredential - Indicates the supplied +/// credential is invalid. This could happen if it has expired or it is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that accounts +/// with the identity provider represented by the credential are not +/// enabled. Enable them in the Auth section of the Firebase console. +///
  • +///
  • +/// AuthErrorCodeAccountExistsWithDifferentCredential - +/// Indicates the email asserted by the credential (e.g. the email in a +/// Facebook access token) is already in use by an existing account, that +/// cannot be authenticated with this sign-in method. Call +/// fetchProvidersForEmail for this user’s email and then prompt them to +/// sign in with any of the sign-in providers returned. This error will only +/// be thrown if the “One account per email address” setting is enabled in +/// the Firebase console, under Auth settings. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// sign in with an incorrect password, if credential is of the type +/// EmailPasswordAuthCredential. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeMissingVerificationID - Indicates that the +/// phone auth credential was created with an empty verification ID. +///
  • +///
  • +/// AuthErrorCodeMissingVerificationCode - Indicates that the +/// phone auth credential was created with an empty verification code. +///
  • +///
  • +/// AuthErrorCodeInvalidVerificationCode - Indicates that the +/// phone auth credential was created with an invalid verification Code. +///
  • +///
  • +/// AuthErrorCodeInvalidVerificationID - Indicates that the +/// phone auth credential was created with an invalid verification ID. +///
  • +///
  • +/// AuthErrorCodeSessionExpired - Indicates that the SMS code +/// has expired. +///
  • +///
+/// \param credential The credential supplied by the IdP. +/// +/// \param completion Optionally; a block which is invoked when the sign in flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithCredential:(FIRAuthCredential* _Nonnull)credential + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Asynchronously creates and becomes an anonymous user. +/// If there is already an anonymous user signed in, that user will be returned +/// instead. If there is any other existing user signed in, that user will be +/// signed out. Possible error codes:
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that anonymous +/// accounts are not enabled. Enable them in the Auth section of the +/// Firebase console. +///
  • +///
+/// \param completion Optionally; a block which is invoked when the sign in +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInAnonymouslyWithCompletion: + (void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Asynchronously creates and becomes an anonymous user. +/// If there is already an anonymous user signed in, that user will be returned +/// instead. If there is any other existing user signed in, that user will be +/// signed out. Possible error codes:
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that anonymous +/// accounts are not enabled. Enable them in the Auth section of the +/// Firebase console. +///
  • +///
+/// +/// returns: +/// The AuthDataResult after the successful signin. +- (void)signInAnonymouslyWithCompletionHandler: + (void (^_Nonnull)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completionHandler; +/// Asynchronously signs in to Firebase with the given Auth token. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidCustomToken - Indicates a validation +/// error with the custom token. +///
  • +///
  • +/// AuthErrorCodeCustomTokenMismatch - Indicates the service +/// account and the API key belong to different projects. +///
  • +///
+/// \param token A self-signed custom auth token. +/// +/// \param completion Optionally; a block which is invoked when the sign in +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)signInWithCustomToken:(NSString* _Nonnull)token + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Creates and, on success, signs in a user with the given email address and +/// password. Possible error codes:
    +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeEmailAlreadyInUse - Indicates the email used +/// to attempt sign up already exists. Call fetchProvidersForEmail to check +/// which sign-in mechanisms the user used, and prompt the user to sign in +/// with one of those. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that email and +/// password accounts are not enabled. Enable them in the Auth section of +/// the Firebase console. +///
  • +///
  • +/// AuthErrorCodeWeakPassword - Indicates an attempt to set a +/// password that is considered too weak. The +/// NSLocalizedFailureReasonErrorKey field in the NSError.userInfo +/// dictionary object will contain more detailed explanation that can be +/// shown to the user. +///
  • +///
+/// \param email The user’s email address. +/// +/// \param password The user’s desired password. +/// +/// \param completion Optionally; a block which is invoked when the sign up flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)createUserWithEmail:(NSString* _Nonnull)email + password:(NSString* _Nonnull)password + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Resets the password given a code sent to the user outside of the app and a +/// new password for the user. Possible error codes:
    +///
  • +/// AuthErrorCodeWeakPassword - Indicates an attempt to set a +/// password that is considered too weak. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates the +/// administrator disabled sign in with the specified identity provider. +///
  • +///
  • +/// AuthErrorCodeExpiredActionCode - Indicates the OOB code is +/// expired. +///
  • +///
  • +/// AuthErrorCodeInvalidActionCode - Indicates the OOB code is +/// invalid. +///
  • +///
+/// \param code The reset code. +/// +/// \param newPassword The new password. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)confirmPasswordResetWithCode:(NSString* _Nonnull)code + newPassword:(NSString* _Nonnull)newPassword + completion: + (void (^_Nonnull)(NSError* _Nullable))completion; +/// Checks the validity of an out of band code. +/// \param code The out of band code to check validity. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)checkActionCode:(NSString* _Nonnull)code + completion:(void (^_Nonnull)(FIRActionCodeInfo* _Nullable, + NSError* _Nullable))completion; +/// Checks the validity of a verify password reset code. +/// \param code The password reset code to be verified. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)verifyPasswordResetCode:(NSString* _Nonnull)code + completion: + (void (^_Nonnull)(NSString* _Nullable, + NSError* _Nullable))completion; +/// Applies out of band code. +/// This method will not work for out of band codes which require an additional +/// parameter, such as password reset code. +/// \param code The out of band code to be applied. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)applyActionCode:(NSString* _Nonnull)code + completion:(void (^_Nonnull)(NSError* _Nullable))completion; +/// Initiates a password reset for the given email address. +/// This method does not throw an +/// error when there’s no user account with the given email address and Email +/// Enumeration Protection is enabled. Possible error codes:
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
+/// \param email The email address of the user. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)sendPasswordResetWithEmail:(NSString* _Nonnull)email + completion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Initiates a password reset for the given email address and +/// ActionCodeSettings object. This method does not throw an error +/// when there’s no user account with the given email address and Email +/// Enumeration Protection is enabled. Possible error codes:
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
  • +/// AuthErrorCodeMissingIosBundleID - Indicates that the iOS +/// bundle ID is missing when handleCodeInApp is set to true. +///
  • +///
  • +/// AuthErrorCodeMissingAndroidPackageName - Indicates that the +/// android package name is missing when the androidInstallApp +/// flag is set to true. +///
  • +///
  • +/// AuthErrorCodeUnauthorizedDomain - Indicates that the domain +/// specified in the continue URL is not allowlisted in the Firebase +/// console. +///
  • +///
  • +/// AuthErrorCodeInvalidContinueURI - Indicates that the domain +/// specified in the continue URL is not valid. +///
  • +///
+/// \param email The email address of the user. +/// +/// \param actionCodeSettings An ActionCodeSettings object +/// containing settings related to handling action codes. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)sendPasswordResetWithEmail:(NSString* _Nonnull)email + actionCodeSettings: + (FIRActionCodeSettings* _Nullable)actionCodeSettings + completion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Sends a sign in with email link to provided email address. +/// \param email The email address of the user. +/// +/// \param actionCodeSettings An ActionCodeSettings object +/// containing settings related to handling action codes. +/// +/// \param completion Optionally; a block which is invoked when the request +/// finishes. Invoked asynchronously on the main thread in the future. +/// +- (void)sendSignInLinkToEmail:(NSString* _Nonnull)email + actionCodeSettings: + (FIRActionCodeSettings* _Nonnull)actionCodeSettings + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Signs out the current user. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeKeychainError - Indicates an error occurred +/// when accessing the keychain. The +/// NSLocalizedFailureReasonErrorKey field in the +/// userInfo dictionary will contain more information about the +/// error encountered. +///
  • +///
+- (BOOL)signOut:(NSError* _Nullable* _Nullable)error; +/// Checks if link is an email sign-in link. +/// \param link The email sign-in link. +/// +/// +/// returns: +/// true when the link passed matches the expected format of an +/// email sign-in link. +- (BOOL)isSignInWithEmailLink:(NSString* _Nonnull)link SWIFT_WARN_UNUSED_RESULT; +/// Initializes reCAPTCHA using the settings configured for the project or +/// tenant. If you change the tenant ID of the Auth instance, the +/// configuration will be reloaded. +- (void)initializeRecaptchaConfigWithCompletion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Registers a block as an “auth state did change” listener. +/// To be invoked when: +///
    +///
  • +/// The block is registered as a listener, +///
  • +///
  • +/// A user with a different UID from the current user has signed in, or +///
  • +///
  • +/// The current user has signed out. +///
  • +///
+/// The block is invoked immediately after adding it according to its standard +/// invocation semantics, asynchronously on the main thread. Users should pay +/// special attention to making sure the block does not inadvertently retain +/// objects which should not be retained by the long-lived block. The block +/// itself will be retained by Auth until it is unregistered or +/// until the Auth instance is otherwise deallocated. +/// \param listener The block to be invoked. The block is always invoked +/// asynchronously on the main thread, even for it’s initial invocation after +/// having been added as a listener. +/// +/// +/// returns: +/// A handle useful for manually unregistering the block as a listener. +- (id _Nonnull)addAuthStateDidChangeListener: + (void (^_Nonnull)(FIRAuth* _Nonnull, FIRUser* _Nullable))listener + SWIFT_WARN_UNUSED_RESULT; +/// Unregisters a block as an “auth state did change” listener. +/// \param listenerHandle The handle for the listener. +/// +- (void)removeAuthStateDidChangeListener:(id _Nonnull)listenerHandle; +/// Registers a block as an “ID token did change” listener. +/// To be invoked when: +///
    +///
  • +/// The block is registered as a listener, +///
  • +///
  • +/// A user with a different UID from the current user has signed in, +///
  • +///
  • +/// The ID token of the current user has been refreshed, or +///
  • +///
  • +/// The current user has signed out. +///
  • +///
+/// The block is invoked immediately after adding it according to its standard +/// invocation semantics, asynchronously on the main thread. Users should pay +/// special attention to making sure the block does not inadvertently retain +/// objects which should not be retained by the long-lived block. The block +/// itself will be retained by Auth until it is unregistered or +/// until the Auth instance is otherwise deallocated. +/// \param listener The block to be invoked. The block is always invoked +/// asynchronously on the main thread, even for it’s initial invocation after +/// having been added as a listener. +/// +/// +/// returns: +/// A handle useful for manually unregistering the block as a listener. +- (id _Nonnull)addIDTokenDidChangeListener: + (void (^_Nonnull)(FIRAuth* _Nonnull, FIRUser* _Nullable))listener + SWIFT_WARN_UNUSED_RESULT; +/// Unregisters a block as an “ID token did change” listener. +/// \param listenerHandle The handle for the listener. +/// +- (void)removeIDTokenDidChangeListener:(id _Nonnull)listenerHandle; +/// Sets languageCode to the app’s current language. +- (void)useAppLanguage; +/// Configures Firebase Auth to connect to an emulated host instead of the +/// remote backend. +- (void)useEmulatorWithHost:(NSString* _Nonnull)host port:(NSInteger)port; +/// Revoke the users token with authorization code. +/// \param authorizationCode The authorization code used to perform the +/// revocation. +/// +/// \param completion (Optional) the block invoked when the request to revoke +/// the token is complete, or fails. Invoked asynchronously on the main thread +/// in the future. +/// +- (void)revokeTokenWithAuthorizationCode:(NSString* _Nonnull)authorizationCode + completion:(void (^_Nullable)(NSError* _Nullable)) + completion; +/// Switch userAccessGroup and current user to the given accessGroup and the +/// user stored in it. +- (BOOL)useUserAccessGroup:(NSString* _Nullable)accessGroup + error:(NSError* _Nullable* _Nullable)error; +/// Get the stored user in the given accessGroup. +/// This API is not supported on tvOS when +/// shareAuthStateAcrossDevices is set to true. and +/// will return nil. Please refer to +/// https://github.com/firebase/firebase-ios-sdk/issues/8878 for details. +- (FIRUser* _Nullable) + getStoredUserForAccessGroup:(NSString* _Nullable)accessGroup + error:(NSError* _Nullable* _Nullable)outError + SWIFT_WARN_UNUSED_RESULT; +/// The APNs token used for phone number authentication. +/// The type of the token (production or sandbox) will be automatically +/// detected based on your provisioning profile. +/// This property is available on iOS only. +/// If swizzling is disabled, the APNs Token must be set for phone number auth +/// to work, by either setting this property or by calling +/// setAPNSToken(_:type:). +@property(nonatomic, readonly, copy) NSData* _Nullable APNSToken; +/// Sets the APNs token along with its type. +/// This method is available on iOS only. +/// If swizzling is disabled, the APNs Token must be set for phone number auth +/// to work, by either setting calling this method or by setting the +/// APNSToken property. +- (void)setAPNSToken:(NSData* _Nonnull)token + type:(enum FIRAuthAPNSTokenType)type; +/// Whether the specific remote notification is handled by Auth . +/// This method is available on iOS only. +/// If swizzling is disabled, related remote notifications must be forwarded to +/// this method for phone number auth to work. +/// \param userInfo A dictionary that contains information related to the +/// notification in question. +/// +/// +/// returns: +/// Whether or the notification is handled. A return value of true +/// means the notification is for Firebase Auth so the caller should ignore the +/// notification from further processing, and false means the +/// notification is for the app (or another library) so the caller should +/// continue handling this notification as usual. +- (BOOL)canHandleNotification:(NSDictionary* _Nonnull)userInfo + SWIFT_WARN_UNUSED_RESULT; +/// Whether the specific URL is handled by Auth . +/// This method is available on iOS only. +/// If swizzling is disabled, URLs received by the application delegate must be +/// forwarded to this method for phone number auth to work. +/// \param url The URL received by the application delegate from any of the +/// openURL method. +/// +/// +/// returns: +/// Whether or the URL is handled. true means the URL is for +/// Firebase Auth so the caller should ignore the URL from further processing, +/// and false means the the URL is for the app (or another library) +/// so the caller should continue handling this URL as usual. +- (BOOL)canHandleURL:(NSURL* _Nonnull)url SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class UIScene; +@class UIOpenURLContext; +@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) +- (void)scene:(UIScene* _Nonnull)scene + openURLContexts:(NSSet* _Nonnull)URLContexts; +@end + +@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. This method is not for public use. It is for Firebase clients +/// of AuthInterop. +- (void)getTokenForcingRefresh:(BOOL)forceRefresh + withCallback:(void (^_Nonnull)(NSString* _Nullable, + NSError* _Nullable))callback; +/// Get the current Auth user’s UID. Returns nil if there is no user signed in. +/// This method is not for public use. It is for Firebase clients of +/// AuthInterop. +- (NSString* _Nullable)getUserID SWIFT_WARN_UNUSED_RESULT; +@end + +@class UIApplication; +@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) +- (void)application:(UIApplication* _Nonnull)application + didRegisterForRemoteNotificationsWithDeviceToken: + (NSData* _Nonnull)deviceToken; +- (void)application:(UIApplication* _Nonnull)application + didFailToRegisterForRemoteNotificationsWithError:(NSError* _Nonnull)error; +- (void)application:(UIApplication* _Nonnull)application + didReceiveRemoteNotification:(NSDictionary* _Nonnull)userInfo + fetchCompletionHandler: + (void (^_Nonnull)(UIBackgroundFetchResult))completionHandler; +- (BOOL)application:(UIApplication* _Nonnull)application + openURL:(NSURL* _Nonnull)url + options:(NSDictionary* _Nonnull) + options SWIFT_WARN_UNUSED_RESULT; +@end + +/// The APNs token type for the app. +/// This enum is available on iOS, macOS Catalyst, tvOS, and watchOS only. +typedef SWIFT_ENUM_NAMED(NSInteger, FIRAuthAPNSTokenType, "AuthAPNSTokenType", + open){ + /// Unknown token type. + /// The actual token type will be detected from the provisioning profile in + /// the app’s bundle. + FIRAuthAPNSTokenTypeUnknown = 0, + /// Sandbox token type. + FIRAuthAPNSTokenTypeSandbox = 1, + /// Production token type. + FIRAuthAPNSTokenTypeProd = 2, +}; + +/// Public representation of a credential. +SWIFT_CLASS_NAMED("AuthCredential") +@interface FIRAuthCredential : NSObject +/// The name of the identity provider for the credential. +@property(nonatomic, readonly, copy) NSString* _Nonnull provider; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@class FIROAuthCredential; +/// Helper object that contains the result of a successful sign-in, link and +/// reauthenticate action. It contains references to a User +/// instance and an AdditionalUserInfo instance. +SWIFT_CLASS_NAMED("AuthDataResult") +@interface FIRAuthDataResult : NSObject +/// The signed in user. +@property(nonatomic, readonly, strong) FIRUser* _Nonnull user; +/// If available, contains the additional IdP specific information about signed +/// in user. +@property(nonatomic, readonly, strong) + FIRAdditionalUserInfo* _Nullable additionalUserInfo; +/// This property will be non-nil after a successful headful-lite sign-in via +/// signIn(with:uiDelegate:completion:). +/// May be used to obtain the accessToken and/or IDToken +/// pertaining to a recently signed-in user. +@property(nonatomic, readonly, strong) FIROAuthCredential* _Nullable credential; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRAuthDataResult (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// Error codes used by Firebase Auth. +typedef SWIFT_ENUM_NAMED(NSInteger, FIRAuthErrorCode, "AuthErrorCode", open){ + /// Indicates a validation error with the custom token. + FIRAuthErrorCodeInvalidCustomToken = 17000, + /// Indicates the service account and the API key belong to different + /// projects. + FIRAuthErrorCodeCustomTokenMismatch = 17002, + /// Indicates the IDP token or requestUri is invalid. + FIRAuthErrorCodeInvalidCredential = 17004, + /// Indicates the user’s account is disabled on the server. + FIRAuthErrorCodeUserDisabled = 17005, + /// Indicates the administrator disabled sign in with the specified identity + /// provider. + FIRAuthErrorCodeOperationNotAllowed = 17006, + /// Indicates the email used to attempt a sign up is already in use. + FIRAuthErrorCodeEmailAlreadyInUse = 17007, + /// Indicates the email is invalid. + FIRAuthErrorCodeInvalidEmail = 17008, + /// Indicates the user attempted sign in with a wrong password. + FIRAuthErrorCodeWrongPassword = 17009, + /// Indicates that too many requests were made to a server method. + FIRAuthErrorCodeTooManyRequests = 17010, + /// Indicates the user account was not found. + FIRAuthErrorCodeUserNotFound = 17011, + /// Indicates account linking is required. + FIRAuthErrorCodeAccountExistsWithDifferentCredential = 17012, + /// Indicates the user has attempted to change email or password more than 5 + /// minutes after + /// signing in. + FIRAuthErrorCodeRequiresRecentLogin = 17014, + /// Indicates an attempt to link a provider to which the account is already + /// linked. + FIRAuthErrorCodeProviderAlreadyLinked = 17015, + /// Indicates an attempt to unlink a provider that is not linked. + FIRAuthErrorCodeNoSuchProvider = 17016, + /// Indicates user’s saved auth credential is invalid the user needs to sign + /// in again. + FIRAuthErrorCodeInvalidUserToken = 17017, + /// Indicates a network error occurred (such as a timeout interrupted + /// connection or + /// unreachable host). These types of errors are often recoverable with a + /// retry. The + /// NSUnderlyingError field in the + /// NSError.userInfo dictionary will contain the error + /// encountered. + FIRAuthErrorCodeNetworkError = 17020, + /// Indicates the saved token has expired for example the user may have + /// changed account + /// password on another device. The user needs to sign in again on the + /// device that made this + /// request. + FIRAuthErrorCodeUserTokenExpired = 17021, + /// Indicates an invalid API key was supplied in the request. + FIRAuthErrorCodeInvalidAPIKey = 17023, + /// Indicates that an attempt was made to reauthenticate with a user which + /// is not the current + /// user. + FIRAuthErrorCodeUserMismatch = 17024, + /// Indicates an attempt to link with a credential that has already been + /// linked with a + /// different Firebase account. + FIRAuthErrorCodeCredentialAlreadyInUse = 17025, + /// Indicates an attempt to set a password that is considered too weak. + FIRAuthErrorCodeWeakPassword = 17026, + /// Indicates the App is not authorized to use Firebase Authentication with + /// the + /// provided API Key. + FIRAuthErrorCodeAppNotAuthorized = 17028, + /// Indicates the OOB code is expired. + FIRAuthErrorCodeExpiredActionCode = 17029, + /// Indicates the OOB code is invalid. + FIRAuthErrorCodeInvalidActionCode = 17030, + /// Indicates that there are invalid parameters in the payload during a + /// “send password reset email” attempt. + FIRAuthErrorCodeInvalidMessagePayload = 17031, + /// Indicates that the sender email is invalid during a “send password reset + /// email” attempt. + FIRAuthErrorCodeInvalidSender = 17032, + /// Indicates that the recipient email is invalid. + FIRAuthErrorCodeInvalidRecipientEmail = 17033, + /// Indicates that an email address was expected but one was not provided. + FIRAuthErrorCodeMissingEmail = 17034, + /// Indicates that the iOS bundle ID is missing when a iOS App Store ID is + /// provided. + FIRAuthErrorCodeMissingIosBundleID = 17036, + /// Indicates that the android package name is missing when the + /// androidInstallApp flag is set + /// to true. + FIRAuthErrorCodeMissingAndroidPackageName = 17037, + /// Indicates that the domain specified in the continue URL is not + /// allowlisted in the Firebase + /// console. + FIRAuthErrorCodeUnauthorizedDomain = 17038, + /// Indicates that the domain specified in the continue URI is not valid. + FIRAuthErrorCodeInvalidContinueURI = 17039, + /// Indicates that a continue URI was not provided in a request to the + /// backend which requires one. + FIRAuthErrorCodeMissingContinueURI = 17040, + /// Indicates that a phone number was not provided in a call to + /// verifyPhoneNumber:completion:. + FIRAuthErrorCodeMissingPhoneNumber = 17041, + /// Indicates that an invalid phone number was provided in a call to + /// verifyPhoneNumber:completion:. + FIRAuthErrorCodeInvalidPhoneNumber = 17042, + /// Indicates that the phone auth credential was created with an empty + /// verification code. + FIRAuthErrorCodeMissingVerificationCode = 17043, + /// Indicates that an invalid verification code was used in the + /// verifyPhoneNumber request. + FIRAuthErrorCodeInvalidVerificationCode = 17044, + /// Indicates that the phone auth credential was created with an empty + /// verification ID. + FIRAuthErrorCodeMissingVerificationID = 17045, + /// Indicates that an invalid verification ID was used in the + /// verifyPhoneNumber request. + FIRAuthErrorCodeInvalidVerificationID = 17046, + /// Indicates that the APNS device token is missing in the verifyClient + /// request. + FIRAuthErrorCodeMissingAppCredential = 17047, + /// Indicates that an invalid APNS device token was used in the verifyClient + /// request. + FIRAuthErrorCodeInvalidAppCredential = 17048, + /// Indicates that the SMS code has expired. + FIRAuthErrorCodeSessionExpired = 17051, + /// Indicates that the quota of SMS messages for a given project has been + /// exceeded. + FIRAuthErrorCodeQuotaExceeded = 17052, + /// Indicates that the APNs device token could not be obtained. The app may + /// not have set up + /// remote notification correctly or may fail to forward the APNs device + /// token to Auth + /// if app delegate swizzling is disabled. + FIRAuthErrorCodeMissingAppToken = 17053, + /// Indicates that the app fails to forward remote notification to FIRAuth. + FIRAuthErrorCodeNotificationNotForwarded = 17054, + /// Indicates that the app could not be verified by Firebase during phone + /// number authentication. + FIRAuthErrorCodeAppNotVerified = 17055, + /// Indicates that the reCAPTCHA token is not valid. + FIRAuthErrorCodeCaptchaCheckFailed = 17056, + /// Indicates that an attempt was made to present a new web context while + /// one was already being + /// presented. + FIRAuthErrorCodeWebContextAlreadyPresented = 17057, + /// Indicates that the URL presentation was cancelled prematurely by the + /// user. + FIRAuthErrorCodeWebContextCancelled = 17058, + /// Indicates a general failure during the app verification flow. + FIRAuthErrorCodeAppVerificationUserInteractionFailure = 17059, + /// Indicates that the clientID used to invoke a web flow is invalid. + FIRAuthErrorCodeInvalidClientID = 17060, + /// Indicates that a network request within a SFSafariViewController or + /// WKWebView failed. + FIRAuthErrorCodeWebNetworkRequestFailed = 17061, + /// Indicates that an internal error occurred within a + /// SFSafariViewController or WKWebView. + FIRAuthErrorCodeWebInternalError = 17062, + /// Indicates a general failure during a web sign-in flow. + FIRAuthErrorCodeWebSignInUserInteractionFailure = 17063, + /// Indicates that the local player was not authenticated prior to + /// attempting Game Center signin. + FIRAuthErrorCodeLocalPlayerNotAuthenticated = 17066, + /// Indicates that a non-null user was expected as an argument to the + /// operation but a null + /// user was provided. + FIRAuthErrorCodeNullUser = 17067, + /// Represents the error code for when the given provider id for a web + /// operation is invalid. + FIRAuthErrorCodeInvalidProviderID = 17071, + /// Represents the error code for when an attempt is made to update the + /// current user with a + /// tenantId that differs from the current FirebaseAuth instance’s tenantId. + FIRAuthErrorCodeTenantIDMismatch = 17072, + /// Represents the error code for when a request is made to the backend with + /// an associated tenant + /// ID for an operation that does not support multi-tenancy. + FIRAuthErrorCodeUnsupportedTenantOperation = 17073, + /// Indicates that the provided Firebase Hosting Link domain is not owned by + /// the current project. + FIRAuthErrorCodeInvalidHostingLinkDomain = 17214, + /// Indicates that the credential is rejected because it’s malformed or + /// mismatching. + FIRAuthErrorCodeRejectedCredential = 17075, + /// Indicates that the GameKit framework is not linked prior to attempting + /// Game Center signin. + FIRAuthErrorCodeGameKitNotLinked = 17076, + /// Indicates that the second factor is required for signin. + FIRAuthErrorCodeSecondFactorRequired = 17078, + /// Indicates that the multi factor session is missing. + FIRAuthErrorCodeMissingMultiFactorSession = 17081, + /// Indicates that the multi factor info is missing. + FIRAuthErrorCodeMissingMultiFactorInfo = 17082, + /// Indicates that the multi factor session is invalid. + FIRAuthErrorCodeInvalidMultiFactorSession = 17083, + /// Indicates that the multi factor info is not found. + FIRAuthErrorCodeMultiFactorInfoNotFound = 17084, + /// Indicates that the operation is admin restricted. + FIRAuthErrorCodeAdminRestrictedOperation = 17085, + /// Indicates that the email is required for verification. + FIRAuthErrorCodeUnverifiedEmail = 17086, + /// Indicates that the second factor is already enrolled. + FIRAuthErrorCodeSecondFactorAlreadyEnrolled = 17087, + /// Indicates that the maximum second factor count is exceeded. + FIRAuthErrorCodeMaximumSecondFactorCountExceeded = 17088, + /// Indicates that the first factor is not supported. + FIRAuthErrorCodeUnsupportedFirstFactor = 17089, + /// Indicates that the a verified email is required to changed to. + FIRAuthErrorCodeEmailChangeNeedsVerification = 17090, + /// Indicates that the request does not contain a client identifier. + FIRAuthErrorCodeMissingClientIdentifier = 17093, + /// Indicates that the nonce is missing or invalid. + FIRAuthErrorCodeMissingOrInvalidNonce = 17094, + /// Raised when a Cloud Function returns a blocking error. Will include a + /// message returned from + /// the function. + FIRAuthErrorCodeBlockingCloudFunctionError = 17105, + /// Indicates that reCAPTCHA Enterprise integration is not enabled for this + /// project. + FIRAuthErrorCodeRecaptchaNotEnabled = 17200, + /// Indicates that the reCAPTCHA token is missing from the backend request. + FIRAuthErrorCodeMissingRecaptchaToken = 17201, + /// Indicates that the reCAPTCHA token sent with the backend request is + /// invalid. + FIRAuthErrorCodeInvalidRecaptchaToken = 17202, + /// Indicates that the requested reCAPTCHA action is invalid. + FIRAuthErrorCodeInvalidRecaptchaAction = 17203, + /// Indicates that the client type is missing from the request. + FIRAuthErrorCodeMissingClientType = 17204, + /// Indicates that the reCAPTCHA version is missing from the request. + FIRAuthErrorCodeMissingRecaptchaVersion = 17205, + /// Indicates that the reCAPTCHA version sent to the backend is invalid. + FIRAuthErrorCodeInvalidRecaptchaVersion = 17206, + /// Indicates that the request type sent to the backend is invalid. + FIRAuthErrorCodeInvalidReqType = 17207, + /// Indicates that the reCAPTCHA SDK is not linked to the app. + FIRAuthErrorCodeRecaptchaSDKNotLinked = 17208, + /// Indicates that the reCAPTCHA SDK site key wasn’t found. + FIRAuthErrorCodeRecaptchaSiteKeyMissing = 17209, + /// Indicates that the reCAPTCHA SDK actions class failed to create. + FIRAuthErrorCodeRecaptchaActionCreationFailed = 17210, + /// Indicates that the password does not meet the project’s password policy. + FIRAuthErrorCodePasswordDoesNotMeetRequirements = 17211, + /// Indicates an error occurred while attempting to access the keychain. + FIRAuthErrorCodeKeychainError = 17995, + /// Indicates an internal error occurred. + FIRAuthErrorCodeInternalError = 17999, + /// Raised when a JWT fails to parse correctly. May be accompanied by an + /// underlying error + /// describing which step of the JWT parsing process failed. + FIRAuthErrorCodeMalformedJWT = 18000, +}; +static NSString* _Nonnull const FIRAuthErrorCodeDomain = + @"FirebaseAuth.AuthErrorCode"; + +/// Error Codes common to all API Methods: +SWIFT_CLASS_NAMED("AuthErrors") +@interface FIRAuthErrors : NSObject +/// The Firebase Auth error domain. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull domain;) ++ (NSString* _Nonnull)domain SWIFT_WARN_UNUSED_RESULT; +/// The name of the key for the error short string of an error code. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull userInfoNameKey;) ++ (NSString* _Nonnull)userInfoNameKey SWIFT_WARN_UNUSED_RESULT; +/// Error codes for Email operations +/// Errors with one of the following three codes: +///
    +///
  • +/// accountExistsWithDifferentCredential +///
  • +///
  • +/// credentialAlreadyInUse +///
  • +///
  • +/// emailAlreadyInUse` +///
  • +///
+/// may contain an NSError.userInfo dictionary object which +/// contains this key. The value associated with this key is an NSString of the +/// email address of the account that already exists. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull userInfoEmailKey;) ++ (NSString* _Nonnull)userInfoEmailKey SWIFT_WARN_UNUSED_RESULT; +/// The key used to read the updated Auth credential from the userInfo +/// dictionary of the NSError object returned. This is the updated auth +/// credential the developer should use for recovery if applicable. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull userInfoUpdatedCredentialKey;) ++ (NSString* _Nonnull)userInfoUpdatedCredentialKey SWIFT_WARN_UNUSED_RESULT; +/// The key used to read the MFA resolver from the userInfo dictionary of the +/// NSError object returned when 2FA is required for sign-incompletion. +SWIFT_CLASS_PROPERTY( + @property(nonatomic, class, readonly, copy) + NSString* _Nonnull FIRAuthErrorUserInfoMultiFactorResolverKey;) ++ (NSString* _Nonnull) + FIRAuthErrorUserInfoMultiFactorResolverKey SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +/// Determines settings related to an auth object. +SWIFT_CLASS_NAMED("AuthSettings") +@interface FIRAuthSettings : NSObject +/// Flag to determine whether app verification should be disabled for testing or +/// not. +@property(nonatomic) BOOL appVerificationDisabledForTesting; +/// Flag to determine whether app verification should be disabled for testing or +/// not. +@property(nonatomic) BOOL isAppVerificationDisabledForTesting; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +- (id _Nonnull)copyWithZone:(struct _NSZone* _Nullable)zone + SWIFT_WARN_UNUSED_RESULT; +@end + +@class NSDate; +/// A data class containing the ID token JWT string and other properties +/// associated with the token including the decoded payload claims. +SWIFT_CLASS_NAMED("AuthTokenResult") +@interface FIRAuthTokenResult : NSObject +/// Stores the JWT string of the ID token. +@property(nonatomic, copy) NSString* _Nonnull token; +/// Stores the ID token’s expiration date. +@property(nonatomic, copy) NSDate* _Nonnull expirationDate; +/// Stores the ID token’s authentication date. +/// This is the date the user was signed in and NOT the date the token was +/// refreshed. +@property(nonatomic, copy) NSDate* _Nonnull authDate; +/// Stores the date that the ID token was issued. +/// This is the date last refreshed and NOT the last authentication date. +@property(nonatomic, copy) NSDate* _Nonnull issuedAtDate; +/// Stores sign-in provider through which the token was obtained. +@property(nonatomic, copy) NSString* _Nonnull signInProvider; +/// Stores sign-in second factor through which the token was obtained. +@property(nonatomic, copy) NSString* _Nonnull signInSecondFactor; +/// Stores the entire payload of claims found on the ID token. +/// This includes the standard +/// reserved claims as well as custom claims set by the developer via the Admin +/// SDK. +@property(nonatomic, copy) NSDictionary* _Nonnull claims; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRAuthTokenResult (SWIFT_EXTENSION (FirebaseAuth)) +@end + +@class UIViewController; +/// A protocol to handle user interface interactions for Firebase Auth. +/// This protocol is available on iOS, macOS Catalyst, and tvOS only. +SWIFT_PROTOCOL_NAMED("AuthUIDelegate") +@protocol FIRAuthUIDelegate +/// If implemented, this method will be invoked when Firebase Auth needs to +/// display a view controller. +/// \param viewControllerToPresent The view controller to be presented. +/// +/// \param flag Decides whether the view controller presentation should be +/// animated. +/// +/// \param completion The block to execute after the presentation finishes. +/// This block has no return value and takes no parameters. +/// +- (void)presentViewController: + (UIViewController* _Nonnull)viewControllerToPresent + animated:(BOOL)flag + completion:(void (^_Nullable)(void))completion; +/// If implemented, this method will be invoked when Firebase Auth needs to +/// display a view controller. +/// \param flag Decides whether removing the view controller should be animated +/// or not. +/// +/// \param completion The block to execute after the presentation finishes. +/// This block has no return value and takes no parameters. +/// +- (void)dismissViewControllerAnimated:(BOOL)flag + completion:(void (^_Nullable)(void))completion; +@end + +/// A concrete implementation of AuthProvider for Email & Password +/// Sign In. +SWIFT_CLASS_NAMED("EmailAuthProvider") +@interface FIREmailAuthProvider : NSObject +/// A string constant identifying the email & password identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for an email & password sign in +/// \param email The user’s email address. +/// +/// \param password The user’s password. +/// +/// +/// returns: +/// An AuthCredential containing the email & password credential. ++ (FIRAuthCredential* _Nonnull)credentialWithEmail:(NSString* _Nonnull)email + password:(NSString* _Nonnull)password + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for an email & link sign in. +/// \param email The user’s email address. +/// +/// \param link The email sign-in link. +/// +/// +/// returns: +/// An AuthCredential containing the email & link credential. ++ (FIRAuthCredential* _Nonnull)credentialWithEmail:(NSString* _Nonnull)email + link:(NSString* _Nonnull)link + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +/// Utility class for constructing Facebook Sign In credentials. +SWIFT_CLASS_NAMED("FacebookAuthProvider") +@interface FIRFacebookAuthProvider : NSObject +/// A string constant identifying the Facebook identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a Facebook sign in. +/// \param accessToken The Access Token from Facebook. +/// +/// +/// returns: +/// An AuthCredential containing the Facebook credentials. ++ (FIRAuthCredential* _Nonnull)credentialWithAccessToken: + (NSString* _Nonnull)accessToken SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +/// Utility type for constructing federated auth provider credentials. +SWIFT_PROTOCOL_NAMED("FederatedAuthProvider") +@protocol FIRFederatedAuthProvider +/// Used to obtain an auth credential via a mobile web flow. +/// This method is available on iOS only. +/// \param uiDelegate An optional UI delegate used to present the mobile web +/// flow. +/// +/// \param completionHandler Optionally; a block which is invoked +/// asynchronously on the main thread when the mobile web flow is +/// completed. +/// +- (void)getCredentialWithUIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nonnull)( + FIRAuthCredential* _Nullable, + NSError* _Nullable))completionHandler + SWIFT_AVAILABILITY(watchos, introduced = 8); +@end + +/// A concrete implementation of AuthProvider for Game Center Sign +/// In. Not available on watchOS. +SWIFT_CLASS_NAMED("GameCenterAuthProvider") +@interface FIRGameCenterAuthProvider : NSObject +/// A string constant identifying the Game Center identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a Game Center sign in. ++ (void)getCredentialWithCompletion: + (void (^_Nonnull)(FIRAuthCredential* _Nullable, + NSError* _Nullable))completion; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +/// Utility class for constructing GitHub Sign In credentials. +SWIFT_CLASS_NAMED("GitHubAuthProvider") +@interface FIRGitHubAuthProvider : NSObject +/// A string constant identifying the GitHub identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a GitHub sign in. +/// \param token The GitHub OAuth access token. +/// +/// +/// returns: +/// An AuthCredential containing the GitHub credentials. ++ (FIRAuthCredential* _Nonnull)credentialWithToken:(NSString* _Nonnull)token + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +/// Utility class for constructing Google Sign In credentials. +SWIFT_CLASS_NAMED("GoogleAuthProvider") +@interface FIRGoogleAuthProvider : NSObject +/// A string constant identifying the Google identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a Google sign in. +/// \param idToken The ID Token from Google. +/// +/// \param accessToken The Access Token from Google. +/// +/// +/// returns: +/// An AuthCredential containing the Google credentials. ++ (FIRAuthCredential* _Nonnull)credentialWithIDToken:(NSString* _Nonnull)idToken + accessToken: + (NSString* _Nonnull)accessToken + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +@class FIRMultiFactorInfo; +@class FIRMultiFactorSession; +@class FIRMultiFactorAssertion; +/// The interface defining the multi factor related properties and operations +/// pertaining to a user. This class is available on iOS and macOS. +SWIFT_CLASS_NAMED("MultiFactor") +@interface FIRMultiFactor : NSObject +@property(nonatomic, copy) + NSArray* _Nonnull enrolledFactors; +/// Get a session for a second factor enrollment operation. +/// This is used to identify the current user trying to enroll a second factor. +/// \param completion A block with the session identifier for a second factor +/// enrollment operation. +/// +- (void)getSessionWithCompletion: + (void (^_Nullable)(FIRMultiFactorSession* _Nullable, + NSError* _Nullable))completion; +/// Enrolls a second factor as identified by the +/// MultiFactorAssertion parameter for the current user. +/// \param assertion The MultiFactorAssertion. +/// +/// \param displayName An optional display name associated with the multi factor +/// to enroll. +/// +/// \param completion The block invoked when the request is complete, or fails. +/// +- (void)enrollWithAssertion:(FIRMultiFactorAssertion* _Nonnull)assertion + displayName:(NSString* _Nullable)displayName + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Unenroll the given multi factor. +/// \param factorInfo The second factor instance to unenroll. +/// +/// \param completion The block invoked when the request to send the +/// verification email is complete, or fails. +/// +- (void)unenrollWithInfo:(FIRMultiFactorInfo* _Nonnull)factorInfo + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Unenroll the given multi factor. +/// \param factorUID The unique identifier corresponding to the +/// second factor being unenrolled. +/// +/// \param completion The block invoked when the request to send the +/// verification email is complete, or fails. +/// +- (void)unenrollWithFactorUID:(NSString* _Nonnull)factorUID + completion:(void (^_Nullable)(NSError* _Nullable))completion; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +@end + +@interface FIRMultiFactor (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// The base class for asserting ownership of a second factor. This is +/// equivalent to the AuthCredential class. This class is available on iOS and +/// macOS. +SWIFT_CLASS_NAMED("MultiFactorAssertion") +@interface FIRMultiFactorAssertion : NSObject +/// The second factor identifier for this opaque object asserting a second +/// factor. +@property(nonatomic, copy) NSString* _Nonnull factorID; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Safe public structure used to represent a second factor entity from a client +/// perspective. This class is available on iOS and macOS. +SWIFT_CLASS_NAMED("MultiFactorInfo") +@interface FIRMultiFactorInfo : NSObject +/// The multi-factor enrollment ID. +@property(nonatomic, readonly, copy) NSString* _Nonnull UID; +/// The user friendly name of the current second factor. +@property(nonatomic, readonly, copy) NSString* _Nullable displayName; +/// The second factor enrollment date. +@property(nonatomic, readonly, copy) NSDate* _Nonnull enrollmentDate; +/// The identifier of the second factor. +@property(nonatomic, readonly, copy) NSString* _Nonnull factorID; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRMultiFactorInfo (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// The subclass of base class MultiFactorAssertion, used to assert +/// ownership of a phone second factor. This class is available on iOS and +/// macOS. +SWIFT_CLASS_NAMED("MultiFactorResolver") +@interface FIRMultiFactorResolver : NSObject +/// The opaque session identifier for the current sign-in flow. +@property(nonatomic, readonly, strong) FIRMultiFactorSession* _Nonnull session; +/// The list of hints for the second factors needed to complete the sign-in for +/// the current session. +@property(nonatomic, readonly, copy) + NSArray* _Nonnull hints; +/// The Auth reference for the current MultiResolver. +@property(nonatomic, readonly, strong) FIRAuth* _Nonnull auth; +/// A helper function to help users complete sign in with a second factor using +/// a +/// \param assertion The assertion confirming the user successfully +/// completed the second factor challenge. +/// +/// \param completion The block invoked when the request is complete, or fails. +/// +- (void)resolveSignInWithAssertion:(FIRMultiFactorAssertion* _Nonnull)assertion + completion: + (void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Opaque object that identifies the current session to enroll a second factor +/// or to complete sign in when previously enrolled. Identifies the current +/// session to enroll a second factor or to complete sign in when previously +/// enrolled. It contains additional context on the existing user, notably the +/// confirmation that the user passed the first factor challenge. This class is +/// available on iOS and macOS. +SWIFT_CLASS_NAMED("MultiFactorSession") +@interface FIRMultiFactorSession : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Internal implementation of AuthCredential for generic +/// credentials. +SWIFT_CLASS_NAMED("OAuthCredential") +@interface FIROAuthCredential : FIRAuthCredential +/// The ID Token associated with this credential. +@property(nonatomic, readonly, copy) NSString* _Nullable IDToken; +/// The access token associated with this credential. +@property(nonatomic, readonly, copy) NSString* _Nullable accessToken; +/// The secret associated with this credential. This will be nil for OAuth 2.0 +/// providers. OAuthCredential already exposes a provider getter. +/// This will help the developer determine whether an access token / secret pair +/// is needed. +@property(nonatomic, readonly, copy) NSString* _Nullable secret; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +@end + +@class NSPersonNameComponents; +/// Utility class for constructing OAuth Sign In credentials. +SWIFT_CLASS_NAMED("OAuthProvider") +@interface FIROAuthProvider : NSObject +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Array used to configure the OAuth scopes. +@property(nonatomic, copy) NSArray* _Nullable scopes; +/// Dictionary used to configure the OAuth custom parameters. +@property(nonatomic, copy) + NSDictionary* _Nullable customParameters; +/// The provider ID indicating the specific OAuth provider this OAuthProvider +/// instance represents. +@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; +/// An instance of OAuthProvider corresponding to the given provider ID. +/// \param providerID The provider ID of the IDP for which this auth provider +/// instance will be configured. +/// +/// +/// returns: +/// An instance of OAuthProvider corresponding to the specified provider ID. ++ (FIROAuthProvider* _Nonnull)providerWithProviderID: + (NSString* _Nonnull)providerID SWIFT_WARN_UNUSED_RESULT; +/// An instance of OAuthProvider corresponding to the given provider ID and auth +/// instance. +/// \param providerID The provider ID of the IDP for which this auth provider +/// instance will be configured. +/// +/// \param auth The auth instance to be associated with the OAuthProvider +/// instance. +/// +/// +/// returns: +/// An instance of OAuthProvider corresponding to the specified provider ID. ++ (FIROAuthProvider* _Nonnull)providerWithProviderID: + (NSString* _Nonnull)providerID + auth:(FIRAuth* _Nonnull)auth + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for the OAuth 2 provider identified +/// by provider ID, ID token, and access token. +/// \param providerID The provider ID associated with the Auth credential being +/// created. +/// +/// \param idToken The IDToken associated with the Auth credential being +/// created. +/// +/// \param accessToken The access token associated with the Auth credential be +/// created, if available. +/// +/// +/// returns: +/// An AuthCredential for the specified provider ID, ID token and access token. ++ (FIROAuthCredential* _Nonnull) + credentialWithProviderID:(NSString* _Nonnull)providerID + IDToken:(NSString* _Nonnull)idToken + accessToken:(NSString* _Nullable)accessToken + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for the OAuth 2 provider identified +/// by provider ID, ID token, and access token. +/// \param providerID The provider ID associated with the Auth credential being +/// created. +/// +/// \param accessToken The access token associated with the Auth credential be +/// created, if available. +/// +/// +/// returns: +/// An AuthCredential for the specified provider ID, ID token and access token. ++ (FIROAuthCredential* _Nonnull) + credentialWithProviderID:(NSString* _Nonnull)providerID + accessToken:(NSString* _Nonnull)accessToken + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for that OAuth 2 provider identified +/// by provider ID, ID token, raw nonce, and access token. +/// \param providerID The provider ID associated with the Auth credential being +/// created. +/// +/// \param idToken The IDToken associated with the Auth credential being +/// created. +/// +/// \param rawNonce The raw nonce associated with the Auth credential being +/// created. +/// +/// \param accessToken The access token associated with the Auth credential be +/// created. +/// +/// +/// returns: +/// An AuthCredential for the specified provider ID, ID token and access token. ++ (FIROAuthCredential* _Nonnull) + credentialWithProviderID:(NSString* _Nonnull)providerID + IDToken:(NSString* _Nonnull)idToken + rawNonce:(NSString* _Nonnull)rawNonce + accessToken:(NSString* _Nonnull)accessToken + SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for that OAuth 2 provider identified +/// by providerID using an ID token and raw nonce. +/// \param providerID The provider ID associated with the Auth credential being +/// created. +/// +/// \param idToken The IDToken associated with the Auth credential being +/// created. +/// +/// \param rawNonce The raw nonce associated with the Auth credential being +/// created. +/// +/// +/// returns: +/// An AuthCredential. ++ (FIROAuthCredential* _Nonnull) + credentialWithProviderID:(NSString* _Nonnull)providerID + IDToken:(NSString* _Nonnull)idToken + rawNonce:(NSString* _Nonnull)rawNonce + SWIFT_WARN_UNUSED_RESULT; +/// Used to obtain an auth credential via a mobile web flow. +/// This method is available on iOS only. +/// \param uiDelegate An optional UI delegate used to present the mobile web +/// flow. +/// +/// \param completionHandler Optionally; a block which is invoked +/// asynchronously on the main thread when the mobile web flow is +/// completed. +/// +- (void)getCredentialWithUIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nonnull)( + FIRAuthCredential* _Nullable, + NSError* _Nullable))completionHandler + SWIFT_AVAILABILITY(watchos, introduced = 8) + SWIFT_AVAILABILITY(macos, introduced = 10.15) + SWIFT_AVAILABILITY(tvos, introduced = 13) + SWIFT_AVAILABILITY(ios, introduced = 13); +/// Creates an AuthCredential for the Sign in with Apple OAuth 2 +/// provider identified by ID token, raw nonce, and full name.This method is +/// specific to the Sign in with Apple OAuth 2 provider as this provider +/// requires the full name to be passed explicitly. +/// \param idToken The IDToken associated with the Sign in with Apple Auth +/// credential being created. +/// +/// \param rawNonce The raw nonce associated with the Sign in with Apple Auth +/// credential being created. +/// +/// \param fullName The full name associated with the Sign in with Apple Auth +/// credential being created. +/// +/// +/// returns: +/// An AuthCredential. ++ (FIROAuthCredential* _Nonnull) + appleCredentialWithIDToken:(NSString* _Nonnull)idToken + rawNonce:(NSString* _Nullable)rawNonce + fullName:(NSPersonNameComponents* _Nullable)fullName + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Implementation of AuthCredential for Phone Auth credentials. +/// This class is available on iOS only. +SWIFT_CLASS_NAMED("PhoneAuthCredential") +@interface FIRPhoneAuthCredential : FIRAuthCredential +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +@end + +@class FIRPhoneMultiFactorInfo; +/// A concrete implementation of AuthProvider for phone auth +/// providers. This class is available on iOS only. +SWIFT_CLASS_NAMED("PhoneAuthProvider") +@interface FIRPhoneAuthProvider : NSObject +/// A string constant identifying the phone identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Returns an instance of PhoneAuthProvider for the default +/// Auth object. ++ (FIRPhoneAuthProvider* _Nonnull)provider SWIFT_WARN_UNUSED_RESULT; +/// Returns an instance of PhoneAuthProvider for the provided +/// Auth object. +/// \param auth The auth object to associate with the phone auth provider +/// instance. +/// ++ (FIRPhoneAuthProvider* _Nonnull)providerWithAuth:(FIRAuth* _Nonnull)auth + SWIFT_WARN_UNUSED_RESULT; +/// Starts the phone number authentication flow by sending a verification code +/// to the specified phone number. Possible error codes:
    +///
  • +/// AuthErrorCodeCaptchaCheckFailed - Indicates that the +/// reCAPTCHA token obtained by the Firebase Auth is invalid or has expired. +///
  • +///
  • +/// AuthErrorCodeQuotaExceeded - Indicates that the phone +/// verification quota for this project has been exceeded. +///
  • +///
  • +/// AuthErrorCodeInvalidPhoneNumber - Indicates that the phone +/// number provided is invalid. +///
  • +///
  • +/// AuthErrorCodeMissingPhoneNumber - Indicates that a phone +/// number was not provided. +///
  • +///
+/// \param phoneNumber The phone number to be verified. +/// +/// \param uiDelegate An object used to present the SFSafariViewController. The +/// object is retained by this method until the completion block is executed. +/// +/// \param completion The callback to be invoked when the verification flow is +/// finished. +/// +- (void)verifyPhoneNumber:(NSString* _Nonnull)phoneNumber + UIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nullable)(NSString* _Nullable, + NSError* _Nullable))completion; +/// Verify ownership of the second factor phone number by the current user. +/// \param phoneNumber The phone number to be verified. +/// +/// \param uiDelegate An object used to present the SFSafariViewController. The +/// object is retained by this method until the completion block is executed. +/// +/// \param multiFactorSession A session to identify the MFA flow. For +/// enrollment, this identifies the user trying to enroll. For sign-in, this +/// identifies that the user already passed the first factor challenge. +/// +/// \param completion The callback to be invoked when the verification flow is +/// finished. +/// +- (void)verifyPhoneNumber:(NSString* _Nonnull)phoneNumber + UIDelegate:(id _Nullable)uiDelegate + multiFactorSession:(FIRMultiFactorSession* _Nullable)multiFactorSession + completion:(void (^_Nullable)(NSString* _Nullable, + NSError* _Nullable))completion; +/// Verify ownership of the second factor phone number by the current user. +/// \param multiFactorInfo The phone multi factor whose number need to be +/// verified. +/// +/// \param uiDelegate An object used to present the SFSafariViewController. The +/// object is retained by this method until the completion block is executed. +/// +/// \param multiFactorSession A session to identify the MFA flow. For +/// enrollment, this identifies the user trying to enroll. For sign-in, this +/// identifies that the user already passed the first factor challenge. +/// +/// \param completion The callback to be invoked when the verification flow is +/// finished. +/// +- (void) + verifyPhoneNumberWithMultiFactorInfo: + (FIRPhoneMultiFactorInfo* _Nonnull)multiFactorInfo + UIDelegate: + (id _Nullable)uiDelegate + multiFactorSession: + (FIRMultiFactorSession* _Nullable)multiFactorSession + completion:(void (^_Nullable)(NSString* _Nullable, + NSError* _Nullable)) + completion; +/// Creates an AuthCredential for the phone number provider +/// identified by the verification ID and verification code. +/// \param verificationID The verification ID obtained from invoking +/// verifyPhoneNumber:completion: +/// +/// \param verificationCode The verification code obtained from the user. +/// +/// +/// returns: +/// The corresponding phone auth credential for the verification ID and +/// verification code provided. +- (FIRPhoneAuthCredential* _Nonnull) + credentialWithVerificationID:(NSString* _Nonnull)verificationID + verificationCode:(NSString* _Nonnull)verificationCode + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// The subclass of base class FIRMultiFactorAssertion, used to assert ownership +/// of a phone second factor. This class is available on iOS and macOS. +SWIFT_CLASS_NAMED("PhoneMultiFactorAssertion") +@interface FIRPhoneMultiFactorAssertion : FIRMultiFactorAssertion +@end + +/// The data structure used to help initialize an assertion for a second factor +/// entity to the Firebase Auth/CICP server. Depending on the type of second +/// factor, this will help generate the assertion. This class is available on +/// iOS and macOS. +SWIFT_CLASS_NAMED("PhoneMultiFactorGenerator") +@interface FIRPhoneMultiFactorGenerator : NSObject +/// Initializes the MFA assertion to confirm ownership of the phone second +/// factor. Note that this API is used for both enrolling and signing in with a +/// phone second factor. +/// \param phoneAuthCredential The phone auth credential used for multi factor +/// flows. +/// ++ (FIRPhoneMultiFactorAssertion* _Nonnull)assertionWithCredential: + (FIRPhoneAuthCredential* _Nonnull)phoneAuthCredential + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +/// Extends the MultiFactorInfo class for phone number second factors. +/// The identifier of this second factor is “phone”. +/// This class is available on iOS and macOS. +SWIFT_CLASS_NAMED("PhoneMultiFactorInfo") +@interface FIRPhoneMultiFactorInfo : FIRMultiFactorInfo +/// The string identifier for using phone as a second factor. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull FIRPhoneMultiFactorID;) ++ (NSString* _Nonnull)FIRPhoneMultiFactorID SWIFT_WARN_UNUSED_RESULT; +/// The string identifier for using TOTP as a second factor. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull FIRTOTPMultiFactorID;) ++ (NSString* _Nonnull)FIRTOTPMultiFactorID SWIFT_WARN_UNUSED_RESULT; +/// This is the phone number associated with the current second factor. +@property(nonatomic, copy) NSString* _Nonnull phoneNumber; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +@end + +/// The subclass of base class MultiFactorAssertion, used to assert ownership of +/// a TOTP (Time-based One Time Password) second factor. This class is available +/// on iOS and macOS. +SWIFT_CLASS_NAMED("TOTPMultiFactorAssertion") +@interface FIRTOTPMultiFactorAssertion : FIRMultiFactorAssertion +@end + +@class FIRTOTPSecret; +/// The data structure used to help initialize an assertion for a second factor +/// entity to the Firebase Auth/CICP server. Depending on the type of second +/// factor, this will help generate the assertion. This class is available on +/// iOS and macOS. +SWIFT_CLASS_NAMED("TOTPMultiFactorGenerator") +@interface FIRTOTPMultiFactorGenerator : NSObject +/// Creates a TOTP secret as part of enrolling a TOTP second factor. Used for +/// generating a QR code URL or inputting into a TOTP app. This method uses the +/// auth instance corresponding to the user in the multiFactorSession. +/// \param session The multiFactorSession instance. +/// +/// \param completion Completion block +/// ++ (void)generateSecretWithMultiFactorSession: + (FIRMultiFactorSession* _Nonnull)session + completion:(void (^_Nonnull)( + FIRTOTPSecret* _Nullable, + NSError* _Nullable))completion; +/// Initializes the MFA assertion to confirm ownership of the TOTP second +/// factor. This assertion is used to complete enrollment of TOTP as a second +/// factor. +/// \param secret The TOTP secret. +/// +/// \param oneTimePassword One time password string. +/// +/// +/// returns: +/// The MFA assertion. ++ (FIRTOTPMultiFactorAssertion* _Nonnull) + assertionForEnrollmentWithSecret:(FIRTOTPSecret* _Nonnull)secret + oneTimePassword:(NSString* _Nonnull)oneTimePassword + SWIFT_WARN_UNUSED_RESULT; +/// Initializes the MFA assertion to confirm ownership of the TOTP second +/// factor. This assertion is used to complete signIn with TOTP as a second +/// factor. +/// \param enrollmentID The ID that identifies the enrolled TOTP second factor. +/// +/// \param oneTimePassword one time password string. +/// +/// +/// returns: +/// The MFA assertion. ++ (FIRTOTPMultiFactorAssertion* _Nonnull) + assertionForSignInWithEnrollmentID:(NSString* _Nonnull)enrollmentID + oneTimePassword:(NSString* _Nonnull)oneTimePassword + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +/// The subclass of base class MultiFactorAssertion, used to assert ownership of +/// a TOTP (Time-based One Time Password) second factor. This class is available +/// on iOS and macOS. +SWIFT_CLASS_NAMED("TOTPSecret") +@interface FIRTOTPSecret : NSObject +/// Returns the shared secret key/seed used to generate time-based one-time +/// passwords. +- (NSString* _Nonnull)sharedSecretKey SWIFT_WARN_UNUSED_RESULT; +/// Returns a QRCode URL as described in +/// https://github.com/google/google-authenticator/wiki/Key-Uri-Format. +/// This can be displayed to the user as a QRCode to be scanned into a TOTP app +/// like Google Authenticator. +/// \param accountName The name of the account/app. +/// +/// \param issuer Issuer of the TOTP(likely the app name). +/// +/// +/// returns: +/// A QRCode URL string. +- (NSString* _Nonnull) + generateQRCodeURLWithAccountName:(NSString* _Nonnull)accountName + issuer:(NSString* _Nonnull)issuer + SWIFT_WARN_UNUSED_RESULT; +/// Opens the specified QR Code URL in a password manager like iCloud Keychain. +/// See more details +/// here +- (void)openInOTPAppWithQRCodeURL:(NSString* _Nonnull)qrCodeURL; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Utility class for constructing Twitter Sign In credentials. +SWIFT_CLASS_NAMED("TwitterAuthProvider") +@interface FIRTwitterAuthProvider : NSObject +/// A string constant identifying the Twitter identity provider. +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) + NSString* _Nonnull id;) ++ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; +/// Creates an AuthCredential for a Twitter sign in. +/// \param token The Twitter OAuth token. +/// +/// \param secret The Twitter OAuth secret. +/// +/// +/// returns: +/// An AuthCredential containing the Twitter credentials. ++ (FIRAuthCredential* _Nonnull)credentialWithToken:(NSString* _Nonnull)token + secret:(NSString* _Nonnull)secret + SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; +@end + +/// Represents user data returned from an identity provider. +SWIFT_PROTOCOL_NAMED("UserInfo") +@protocol FIRUserInfo +/// The provider identifier. +@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; +/// The provider’s user ID for the user. +@property(nonatomic, readonly, copy) NSString* _Nonnull uid; +/// The name of the user. +@property(nonatomic, readonly, copy) NSString* _Nullable displayName; +/// The URL of the user’s profile photo. +@property(nonatomic, readonly, copy) NSURL* _Nullable photoURL; +/// The user’s email address. +@property(nonatomic, readonly, copy) NSString* _Nullable email; +/// A phone number associated with the user. +/// This property is only available for users authenticated via phone number +/// auth. +@property(nonatomic, readonly, copy) NSString* _Nullable phoneNumber; +@end + +@class FIRUserMetadata; +@class FIRUserProfileChangeRequest; +/// Represents a user. +/// Firebase Auth does not attempt to validate users +/// when loading them from the keychain. Invalidated users (such as those +/// whose passwords have been changed on another client) are automatically +/// logged out when an auth-dependent operation is attempted or when the +/// ID token is automatically refreshed. +/// This class is thread-safe. +SWIFT_CLASS_NAMED("User") +@interface FIRUser : NSObject +/// Indicates the user represents an anonymous user. +@property(nonatomic, readonly) BOOL isAnonymous; +/// Indicates the user represents an anonymous user. +- (BOOL)anonymous SWIFT_WARN_UNUSED_RESULT; +/// Indicates the email address associated with this user has been verified. +@property(nonatomic, readonly) BOOL isEmailVerified; +/// Indicates the email address associated with this user has been verified. +- (BOOL)emailVerified SWIFT_WARN_UNUSED_RESULT; +/// Profile data for each identity provider, if any. +/// This data is cached on sign-in and updated when linking or unlinking. +@property(nonatomic, readonly, copy) + NSArray>* _Nonnull providerData; +/// Metadata associated with the Firebase user in question. +@property(nonatomic, readonly, strong) FIRUserMetadata* _Nonnull metadata; +/// The tenant ID of the current user. nil if none is available. +@property(nonatomic, readonly, copy) NSString* _Nullable tenantID; +/// Multi factor object associated with the user. +/// This property is available on iOS and macOS. +@property(nonatomic, readonly, strong) FIRMultiFactor* _Nonnull multiFactor; +/// [Deprecated] Updates the email address for the user. +/// On success, the cached user profile data is updated. Returns an error when +/// Email +/// Enumeration Protection is enabled. May fail if there is already an +/// account with this email address that was created using email and password +/// authentication. Invoked asynchronously on the main thread in the future. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
  • +/// AuthErrorCodeEmailAlreadyInUse - Indicates the email is +/// already in use by another account. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating a user’s email +/// is a security sensitive operation that requires a recent login from the +/// user. This error indicates the user has not signed in recently enough. +/// To resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
+/// \param email The email address for the user. +/// +/// \param completion Optionally; the block invoked when the user profile change +/// has finished. +/// +- (void)updateEmail:(NSString* _Nonnull)email + completion:(void (^_Nullable)(NSError* _Nullable))completion + SWIFT_DEPRECATED_MSG( + "`updateEmail` is deprecated and will be removed in a future release. " + "Use sendEmailVerification(beforeUpdatingEmail:) instead."); +/// Updates the password for the user. On success, the cached user profile data +/// is updated. Invoked asynchronously on the main thread in the future. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates the +/// administrator disabled sign in with the specified identity provider. +///
  • +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating a user’s +/// password is a security sensitive operation that requires a recent login +/// from the user. This error indicates the user has not signed in recently +/// enough. To resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
  • +/// AuthErrorCodeWeakPassword - Indicates an attempt to set a +/// password that is considered too weak. The +/// NSLocalizedFailureReasonErrorKey field in the +/// userInfo dictionary object will contain more detailed +/// explanation that can be shown to the user. +///
  • +///
+/// \param password The new password for the user. +/// +/// \param completion Optionally; the block invoked when the user profile change +/// has finished. +/// +- (void)updatePassword:(NSString* _Nonnull)password + completion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Updates the phone number for the user. On success, the cached user profile +/// data is updated. Invoked asynchronously on the main thread in the future. +/// This method is available on iOS only. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating a user’s phone +/// number is a security sensitive operation that requires a recent login +/// from the user. This error indicates the user has not signed in recently +/// enough. To resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
+/// \param credential The new phone number credential corresponding to the +/// phone number to be added to the Firebase account, if a phone number is +/// already linked to the account this new phone number will replace it. +/// +/// \param completion Optionally; the block invoked when the user profile change +/// has finished. +/// +- (void)updatePhoneNumberCredential:(FIRPhoneAuthCredential* _Nonnull)credential + completion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Creates an object which may be used to change the user’s profile data. +/// Set the properties of the returned object, then call +/// UserProfileChangeRequest.commitChanges() to perform the updates +/// atomically. +/// +/// returns: +/// An object which may be used to change the user’s profile data atomically. +- (FIRUserProfileChangeRequest* _Nonnull) + profileChangeRequest SWIFT_WARN_UNUSED_RESULT; +/// A refresh token; useful for obtaining new access tokens independently. +/// This property should only be used for advanced scenarios, and is not +/// typically needed. +@property(nonatomic, readonly, copy) NSString* _Nullable refreshToken; +/// Reloads the user’s profile data from the server. +/// May fail with an AuthErrorCodeRequiresRecentLogin error code. +/// In this case you should call reauthenticate(with:) before +/// re-invoking updateEmail(to:). +/// \param completion Optionally; the block invoked when the reload has +/// finished. Invoked asynchronously on the main thread in the future. +/// +- (void)reloadWithCompletion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Renews the user’s authentication tokens by validating a fresh set of +/// credentials supplied by the user and returns additional identity provider +/// data. If the user associated with the supplied credential is different from +/// the current user, or if the validation of the supplied credentials fails; an +/// error is returned and the current user remains signed in. Possible error +/// codes:
    +///
  • +/// AuthErrorCodeInvalidCredential - Indicates the supplied +/// credential is invalid. This could happen if it has expired or it is +/// malformed. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that accounts +/// with the identity provider represented by the credential are not +/// enabled. Enable them in the Auth section of the Firebase console. +///
  • +///
  • +/// AuthErrorCodeEmailAlreadyInUse - Indicates the email +/// asserted by the credential (e.g. the email in a Facebook access token) +/// is already in use by an existing account, that cannot be authenticated +/// with this method. This error will only be thrown if the “One account per +/// email address” setting is enabled in the Firebase console, under Auth +/// settings. Please note that the error code raised in this specific +/// situation may not be the same on Web and Android. +///
  • +///
  • +/// AuthErrorCodeUserDisabled - Indicates the user’s account is +/// disabled. +///
  • +///
  • +/// AuthErrorCodeWrongPassword - Indicates the user attempted +/// reauthentication with an incorrect password, if credential is of the +/// type EmailPasswordAuthCredential. +///
  • +///
  • +/// AuthErrorCodeUserMismatch - Indicates that an attempt was +/// made to reauthenticate with a user which is not the current user. +///
  • +///
  • +/// AuthErrorCodeInvalidEmail - Indicates the email address is +/// malformed. +///
  • +///
+/// \param credential A user-supplied credential, which will be validated by the +/// server. This can be a successful third-party identity provider sign-in, or +/// an email address and password. +/// +/// \param completion Optionally; the block invoked when the re-authentication +/// operation has finished. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)reauthenticateWithCredential:(FIRAuthCredential* _Nonnull)credential + completion: + (void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Renews the user’s authentication using the provided auth provider instance. +/// This method is available on iOS only. +/// \param provider An instance of an auth provider used to initiate the +/// reauthenticate flow. +/// +/// \param uiDelegate Optionally an instance of a class conforming to the +/// AuthUIDelegate protocol, used for presenting the web context. +/// If nil, a default AuthUIDelegate will be used. +/// +/// \param completion Optionally; a block which is invoked when the +/// reauthenticate flow finishes, or is canceled. Invoked asynchronously on the +/// main thread in the future. +/// +- (void)reauthenticateWithProvider: + (id _Nonnull)provider + UIDelegate:(id _Nullable)uiDelegate + completion: + (void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. +/// \param completion Optionally; the block invoked when the token is available. +/// Invoked asynchronously on the main thread in the future. +/// +- (void)getIDTokenWithCompletion: + (void (^_Nullable)(NSString* _Nullable, NSError* _Nullable))completion; +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. The authentication token will be refreshed (by making a network +/// request) if it has expired, or if forceRefresh is +/// true. +/// \param forceRefresh Forces a token refresh. Useful if the token becomes +/// invalid for some reason other than an expiration. +/// +/// \param completion Optionally; the block invoked when the token is available. +/// Invoked asynchronously on the main thread in the future. +/// +- (void)getIDTokenForcingRefresh:(BOOL)forceRefresh + completion: + (void (^_Nullable)(NSString* _Nullable, + NSError* _Nullable))completion; +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. +/// \param completion Optionally; the block invoked when the token is available. +/// Invoked asynchronously on the main thread in the future. +/// +- (void)getIDTokenResultWithCompletion: + (void (^_Nullable)(FIRAuthTokenResult* _Nullable, + NSError* _Nullable))completion; +/// Retrieves the Firebase authentication token, possibly refreshing it if it +/// has expired. The authentication token will be refreshed (by making a network +/// request) if it has expired, or if forcingRefresh is +/// true. +/// \param forcingRefresh Forces a token refresh. Useful if the token becomes +/// invalid for some reason other than an expiration. +/// +/// \param completion Optionally; the block invoked when the token is available. +/// Invoked asynchronously on the main thread in the future. +/// +- (void)getIDTokenResultForcingRefresh:(BOOL)forcingRefresh + completion:(void (^_Nullable)( + FIRAuthTokenResult* _Nullable, + NSError* _Nullable))completion; +/// Associates a user account from a third-party identity provider with this +/// user and returns additional identity provider data. Invoked asynchronously +/// on the main thread in the future. Possible error codes:
    +///
  • +/// AuthErrorCodeProviderAlreadyLinked - Indicates an attempt +/// to link a provider of a type already linked to this account. +///
  • +///
  • +/// AuthErrorCodeCredentialAlreadyInUse - Indicates an attempt +/// to link with a credential that has already been linked with a different +/// Firebase account. +///
  • +///
  • +/// AuthErrorCodeOperationNotAllowed - Indicates that accounts +/// with the identity provider represented by the credential are not +/// enabled. Enable them in the Auth section of the Firebase console. +///
  • +///
+/// This method may also return error codes associated with +/// updateEmail(to:) and updatePassword(to:) on +/// User. +/// \param credential The credential for the identity provider. +/// +/// \param completion Optionally; the block invoked when the unlinking is +/// complete, or fails. +/// +- (void)linkWithCredential:(FIRAuthCredential* _Nonnull)credential + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Link the user with the provided auth provider instance. +/// This method is available on iOSonly. +/// \param provider An instance of an auth provider used to initiate the link +/// flow. +/// +/// \param uiDelegate Optionally an instance of a class conforming to the +/// AuthUIDelegate protocol used for presenting the web context. If +/// nil, a default AuthUIDelegate will be used. +/// +/// \param completion Optionally; a block which is invoked when the link flow +/// finishes, or is canceled. Invoked asynchronously on the main thread in the +/// future. +/// +- (void)linkWithProvider:(id _Nonnull)provider + UIDelegate:(id _Nullable)uiDelegate + completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, + NSError* _Nullable))completion; +/// Disassociates a user account from a third-party identity provider with this +/// user. Invoked asynchronously on the main thread in the future. Possible +/// error codes:
    +///
  • +/// AuthErrorCodeNoSuchProvider - Indicates an attempt to +/// unlink a provider that is not linked to the account. +///
  • +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating email is a +/// security sensitive operation that requires a recent login from the user. +/// This error indicates the user has not signed in recently enough. To +/// resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
+/// \param provider The provider ID of the provider to unlink. +/// +/// \param completion Optionally; the block invoked when the unlinking is +/// complete, or fails. +/// +- (void)unlinkFromProvider:(NSString* _Nonnull)provider + completion:(void (^_Nullable)(FIRUser* _Nullable, + NSError* _Nullable))completion; +/// Initiates email verification for the user. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
  • +/// AuthErrorCodeUserNotFound - Indicates the user account was +/// not found. +///
  • +///
+/// \param completion Optionally; the block invoked when the request to send an +/// email verification is complete, or fails. Invoked asynchronously on the main +/// thread in the future. +/// +- (void)sendEmailVerificationWithCompletion: + (void (^_Nullable)(NSError* _Nullable))completion; +/// Initiates email verification for the user. +/// Possible error codes: +///
    +///
  • +/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid +/// recipient email was sent in the request. +///
  • +///
  • +/// AuthErrorCodeInvalidSender - Indicates an invalid sender +/// email is set in the console for this action. +///
  • +///
  • +/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid +/// email template for sending update email. +///
  • +///
  • +/// AuthErrorCodeUserNotFound - Indicates the user account was +/// not found. +///
  • +///
+/// \param actionCodeSettings An ActionCodeSettings object +/// containing settings related to handling action codes. +/// +/// \param completion Optionally; the block invoked when the request to send an +/// email verification is complete, or fails. Invoked asynchronously on the main +/// thread in the future. +/// +- (void)sendEmailVerificationWithActionCodeSettings: + (FIRActionCodeSettings* _Nullable)actionCodeSettings + completion: + (void (^_Nullable)( + NSError* _Nullable))completion; +/// Deletes the user account (also signs out the user, if this was the current +/// user). Possible error codes:
    +///
  • +/// AuthErrorCodeRequiresRecentLogin - Updating email is a +/// security sensitive operation that requires a recent login from the user. +/// This error indicates the user has not signed in recently enough. To +/// resolve, reauthenticate the user by calling +/// reauthenticate(with:). +///
  • +///
+/// \param completion Optionally; the block invoked when the request to delete +/// the account is complete, or fails. Invoked asynchronously on the main thread +/// in the future. +/// +- (void)deleteWithCompletion:(void (^_Nullable)(NSError* _Nullable))completion; +/// Send an email to verify the ownership of the account then update to the new +/// email. +/// \param email The email to be updated to. +/// +/// \param completion Optionally; the block invoked when the request to send the +/// verification email is complete, or fails. +/// +- (void)sendEmailVerificationBeforeUpdatingEmail:(NSString* _Nonnull)email + completion: + (void (^_Nullable)( + NSError* _Nullable))completion; +/// Send an email to verify the ownership of the account then update to the new +/// email. +/// \param email The email to be updated to. +/// +/// \param actionCodeSettings An ActionCodeSettings object +/// containing settings related to handling action codes. +/// +/// \param completion Optionally; the block invoked when the request to send the +/// verification email is complete, or fails. +/// +- (void) + sendEmailVerificationBeforeUpdatingEmail:(NSString* _Nonnull)email + actionCodeSettings:(FIRActionCodeSettings* _Nullable) + actionCodeSettings + completion:(void (^_Nullable)( + NSError* _Nullable))completion; +@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; +/// The provider’s user ID for the user. +@property(nonatomic, readonly, copy) NSString* _Nonnull uid; +/// The name of the user. +@property(nonatomic, copy) NSString* _Nullable displayName; +/// The URL of the user’s profile photo. +@property(nonatomic, copy) NSURL* _Nullable photoURL; +/// The user’s email address. +@property(nonatomic, readonly, copy) NSString* _Nullable email; +/// A phone number associated with the user. +/// This property is only available for users authenticated via phone number +/// auth. +@property(nonatomic, readonly, copy) NSString* _Nullable phoneNumber; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder + OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRUser (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// A data class representing the metadata corresponding to a Firebase user. +SWIFT_CLASS_NAMED("UserMetadata") +@interface FIRUserMetadata : NSObject +/// Stores the last sign in date for the corresponding Firebase user. +@property(nonatomic, readonly, copy) NSDate* _Nullable lastSignInDate; +/// Stores the creation date for the corresponding Firebase user. +@property(nonatomic, readonly, copy) NSDate* _Nullable creationDate; +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) + BOOL supportsSecureCoding;) ++ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; +- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; +- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@interface FIRUserMetadata (SWIFT_EXTENSION (FirebaseAuth)) +@end + +/// Represents an object capable of updating a user’s profile data. +/// Properties are marked as being part of a profile update when they are set. +/// Setting a property value to nil is not the same as leaving the property +/// unassigned. +SWIFT_CLASS_NAMED("UserProfileChangeRequest") +@interface FIRUserProfileChangeRequest : NSObject +/// The name of the user. +@property(nonatomic, copy) NSString* _Nullable displayName; +/// The URL of the user’s profile photo. +@property(nonatomic, copy) NSURL* _Nullable photoURL; +/// Commits any pending changes. +/// Invoked asynchronously on the main thread in the future. +/// This method should only be called once.Once called, property values should +/// not be changed. +/// \param completion Optionally; the block invoked when the user profile change +/// has been applied. +/// +- (void)commitChangesWithCompletion: + (void (^_Nullable)(NSError* _Nullable))completion; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseCoreInternal-Swift.h b/ios_spm/swift_headers/FirebaseCoreInternal-Swift.h new file mode 100644 index 0000000000..31e8b003f1 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseCoreInternal-Swift.h @@ -0,0 +1,814 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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; +/// Asynchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (void)flushAsyncWithCompletionHandler: + (void (^_Nonnull)(FIRHeartbeatsPayload* _Nonnull))completionHandler; +/// 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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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; +/// Asynchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (void)flushAsyncWithCompletionHandler: + (void (^_Nonnull)(FIRHeartbeatsPayload* _Nonnull))completionHandler; +/// 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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseDatabase-Swift.h b/ios_spm/swift_headers/FirebaseDatabase-Swift.h new file mode 100644 index 0000000000..f4ede745b9 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseDatabase-Swift.h @@ -0,0 +1,688 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEDATABASE_SWIFT_H +#define FIREBASEDATABASE_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseDatabase", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEDATABASE_SWIFT_H +#define FIREBASEDATABASE_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseDatabase", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseDatabaseSwift-Swift.h b/ios_spm/swift_headers/FirebaseDatabaseSwift-Swift.h new file mode 100644 index 0000000000..bbca0e19a5 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseDatabaseSwift-Swift.h @@ -0,0 +1,578 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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_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)) +#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 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 +#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") +#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__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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_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)) +#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 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 +#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") +#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 + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseFirestore-Swift.h b/ios_spm/swift_headers/FirebaseFirestore-Swift.h new file mode 100644 index 0000000000..f58a6ff816 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseFirestore-Swift.h @@ -0,0 +1,704 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEFIRESTORE_SWIFT_H +#define FIREBASEFIRESTORE_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import FirebaseFirestoreInternal; +#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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseFirestore", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +SWIFT_UNAVAILABLE +@interface FIRFirestore (SWIFT_EXTENSION (FirebaseFirestore)) +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, + copy) void (^_Nonnull __no_op)(void);) ++ (void (^_Nonnull)(void))__no_op SWIFT_WARN_UNUSED_RESULT; +@end + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEFIRESTORE_SWIFT_H +#define FIREBASEFIRESTORE_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import FirebaseFirestoreInternal; +#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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseFirestore", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +SWIFT_UNAVAILABLE +@interface FIRFirestore (SWIFT_EXTENSION (FirebaseFirestore)) +SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, + copy) void (^_Nonnull __no_op)(void);) ++ (void (^_Nonnull)(void))__no_op SWIFT_WARN_UNUSED_RESULT; +@end + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseFirestoreSwift-Swift.h b/ios_spm/swift_headers/FirebaseFirestoreSwift-Swift.h new file mode 100644 index 0000000000..7e3a7847b4 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseFirestoreSwift-Swift.h @@ -0,0 +1,578 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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_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)) +#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 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 +#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") +#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__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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_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)) +#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 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 +#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") +#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 + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseFunctions-Swift.h b/ios_spm/swift_headers/FirebaseFunctions-Swift.h new file mode 100644 index 0000000000..07e26e99f1 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseFunctions-Swift.h @@ -0,0 +1,1254 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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 custom domain 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 custom domain, 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 +/// trigger. 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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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 custom domain 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 custom domain, 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 +/// trigger. 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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseInAppMessaging-Swift.h b/ios_spm/swift_headers/FirebaseInAppMessaging-Swift.h new file mode 100644 index 0000000000..f572b43144 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseInAppMessaging-Swift.h @@ -0,0 +1,688 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEINAPPMESSAGING_SWIFT_H +#define FIREBASEINAPPMESSAGING_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol( \ + language = "Swift", defined_in = "FirebaseInAppMessaging", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEINAPPMESSAGING_SWIFT_H +#define FIREBASEINAPPMESSAGING_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol( \ + language = "Swift", defined_in = "FirebaseInAppMessaging", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseInAppMessagingSwift-Swift.h b/ios_spm/swift_headers/FirebaseInAppMessagingSwift-Swift.h new file mode 100644 index 0000000000..43d6dd6df4 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseInAppMessagingSwift-Swift.h @@ -0,0 +1,578 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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 +#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)) +#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 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 +#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") +#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__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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 +#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)) +#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 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 +#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") +#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 + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseMLModelDownloader-Swift.h b/ios_spm/swift_headers/FirebaseMLModelDownloader-Swift.h new file mode 100644 index 0000000000..62b81589e1 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseMLModelDownloader-Swift.h @@ -0,0 +1,688 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseRemoteConfig-Swift.h b/ios_spm/swift_headers/FirebaseRemoteConfig-Swift.h new file mode 100644 index 0000000000..1c791b2a9e --- /dev/null +++ b/ios_spm/swift_headers/FirebaseRemoteConfig-Swift.h @@ -0,0 +1,688 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEREMOTECONFIG_SWIFT_H +#define FIREBASEREMOTECONFIG_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseRemoteConfig", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASEREMOTECONFIG_SWIFT_H +#define FIREBASEREMOTECONFIG_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseRemoteConfig", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseRemoteConfigSwift-Swift.h b/ios_spm/swift_headers/FirebaseRemoteConfigSwift-Swift.h new file mode 100644 index 0000000000..92adb51a13 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseRemoteConfigSwift-Swift.h @@ -0,0 +1,578 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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_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)) +#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 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 +#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") +#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__ +// Copyright 2023 Google LLC +// Copied from Firebase iOS SDK 10.17.0. + +// 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_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)) +#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 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 +#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") +#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 + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseSessions-Swift.h b/ios_spm/swift_headers/FirebaseSessions-Swift.h new file mode 100644 index 0000000000..e695211ae9 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseSessions-Swift.h @@ -0,0 +1,784 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASESESSIONS_SWIFT_H +#define FIREBASESESSIONS_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseSessions", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +@class NSString; +/// Session Payload is a container for Session Data passed to Subscribers +/// whenever the Session changes +SWIFT_CLASS_NAMED("SessionDetails") +@interface FIRSessionDetails : NSObject +@property(nonatomic, readonly, copy) NSString* _Nullable sessionId; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +enum FIRSessionsSubscriberName : NSInteger; +/// Sessions Dependencies determines when a dependent SDK is +/// installed in the app. The Sessions SDK uses this to figure +/// out which dependencies to wait for to getting the data +/// collection state. +/// This is important because the Sessions SDK starts up before +/// dependent SDKs +SWIFT_CLASS_NAMED("SessionsDependencies") +@interface FIRSessionsDependencies : NSObject ++ (void)addDependencyWithName:(enum FIRSessionsSubscriberName)name; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@protocol FIRSessionsSubscriber; +SWIFT_PROTOCOL_NAMED("SessionsProvider") +@protocol FIRSessionsProvider +- (void)registerWithSubscriber:(id _Nonnull)subscriber; +@end + +/// Sessions Subscriber is an interface that dependent SDKs +/// must implement. +SWIFT_PROTOCOL_NAMED("SessionsSubscriber") +@protocol FIRSessionsSubscriber +- (void)onSessionChanged:(FIRSessionDetails* _Nonnull)session; +@property(nonatomic, readonly) BOOL isDataCollectionEnabled; +@property(nonatomic, readonly) + enum FIRSessionsSubscriberName sessionsSubscriberName; +@end + +/// Session Subscriber Names are used for identifying subscribers +typedef SWIFT_ENUM_NAMED(NSInteger, FIRSessionsSubscriberName, + "SessionsSubscriberName", open){ + FIRSessionsSubscriberNameUnknown = 0, + FIRSessionsSubscriberNameCrashlytics = 1, + FIRSessionsSubscriberNamePerformance = 2, +}; + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef FIREBASESESSIONS_SWIFT_H +#define FIREBASESESSIONS_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol(language = "Swift", \ + defined_in = "FirebaseSessions", \ + generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +@class NSString; +/// Session Payload is a container for Session Data passed to Subscribers +/// whenever the Session changes +SWIFT_CLASS_NAMED("SessionDetails") +@interface FIRSessionDetails : NSObject +@property(nonatomic, readonly, copy) NSString* _Nullable sessionId; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +enum FIRSessionsSubscriberName : NSInteger; +/// Sessions Dependencies determines when a dependent SDK is +/// installed in the app. The Sessions SDK uses this to figure +/// out which dependencies to wait for to getting the data +/// collection state. +/// This is important because the Sessions SDK starts up before +/// dependent SDKs +SWIFT_CLASS_NAMED("SessionsDependencies") +@interface FIRSessionsDependencies : NSObject ++ (void)addDependencyWithName:(enum FIRSessionsSubscriberName)name; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@protocol FIRSessionsSubscriber; +SWIFT_PROTOCOL_NAMED("SessionsProvider") +@protocol FIRSessionsProvider +- (void)registerWithSubscriber:(id _Nonnull)subscriber; +@end + +/// Sessions Subscriber is an interface that dependent SDKs +/// must implement. +SWIFT_PROTOCOL_NAMED("SessionsSubscriber") +@protocol FIRSessionsSubscriber +- (void)onSessionChanged:(FIRSessionDetails* _Nonnull)session; +@property(nonatomic, readonly) BOOL isDataCollectionEnabled; +@property(nonatomic, readonly) + enum FIRSessionsSubscriberName sessionsSubscriberName; +@end + +/// Session Subscriber Names are used for identifying subscribers +typedef SWIFT_ENUM_NAMED(NSInteger, FIRSessionsSubscriberName, + "SessionsSubscriberName", open){ + FIRSessionsSubscriberNameUnknown = 0, + FIRSessionsSubscriberNameCrashlytics = 1, + FIRSessionsSubscriberNamePerformance = 2, +}; + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseSharedSwift-Swift.h b/ios_spm/swift_headers/FirebaseSharedSwift-Swift.h new file mode 100644 index 0000000000..93f6657f53 --- /dev/null +++ b/ios_spm/swift_headers/FirebaseSharedSwift-Swift.h @@ -0,0 +1,688 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/FirebaseStorage-Swift.h b/ios_spm/swift_headers/FirebaseStorage-Swift.h new file mode 100644 index 0000000000..a3d252ff9e --- /dev/null +++ b/ios_spm/swift_headers/FirebaseStorage-Swift.h @@ -0,0 +1,2006 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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, but can be accessed +/// from any thread. 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. +/// \param host A string specifying the host. +/// +/// \param port The port specified as an Int. +/// +- (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 thread-safe. +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. +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. +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, + FIRStorageErrorCodeBucketMismatch = -13051, + FIRStorageErrorCodeInternalError = -13052, + FIRStorageErrorCodePathError = -13053, +}; +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. +@property(nonatomic, readonly, copy) + NSArray* _Nonnull prefixes; +/// The objects (files) returned by a list() operation. +@property(nonatomic, readonly, copy) + NSArray* _Nonnull items; +/// A token that can be used to resume a previous list() operation. +/// nil indicates that there are no more results. +@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 in the GCS +/// documentation +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; +/// 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; +/// Creates an empty instance of StorageMetadata. +/// @return An empty instance of StorageMetadata. +- (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. +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. +/// \code +/// For example: +/// path = foo/bar/baz parent = foo/bar +/// path = foo parent = (root) +/// path = (root) parent = nil +/// +/// \endcode +/// 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. +/// \code +/// 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 +/// +/// \endcode\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. +/// \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. +/// @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. +/// \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: +/// A 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 A 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. +/// 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; +/// NSObject override +- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; +/// NSObject override +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +/// NSObject override +@property(nonatomic, readonly) NSUInteger hash; +/// NSObject override +@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. +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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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, but can be accessed +/// from any thread. 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. +/// \param host A string specifying the host. +/// +/// \param port The port specified as an Int. +/// +- (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 thread-safe. +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. +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. +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, + FIRStorageErrorCodeBucketMismatch = -13051, + FIRStorageErrorCodeInternalError = -13052, + FIRStorageErrorCodePathError = -13053, +}; +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. +@property(nonatomic, readonly, copy) + NSArray* _Nonnull prefixes; +/// The objects (files) returned by a list() operation. +@property(nonatomic, readonly, copy) + NSArray* _Nonnull items; +/// A token that can be used to resume a previous list() operation. +/// nil indicates that there are no more results. +@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 in the GCS +/// documentation +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; +/// 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; +/// Creates an empty instance of StorageMetadata. +/// @return An empty instance of StorageMetadata. +- (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. +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. +/// \code +/// For example: +/// path = foo/bar/baz parent = foo/bar +/// path = foo parent = (root) +/// path = (root) parent = nil +/// +/// \endcode +/// 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. +/// \code +/// 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 +/// +/// \endcode\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. +/// \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. +/// @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. +/// \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: +/// A 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 A 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. +/// 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; +/// NSObject override +- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; +/// NSObject override +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +/// NSObject override +@property(nonatomic, readonly) NSUInteger hash; +/// NSObject override +@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. +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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/Promises-Swift.h b/ios_spm/swift_headers/Promises-Swift.h new file mode 100644 index 0000000000..110c5dfaa7 --- /dev/null +++ b/ios_spm/swift_headers/Promises-Swift.h @@ -0,0 +1,686 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef PROMISES_SWIFT_H +#define PROMISES_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol( \ + language = "Swift", defined_in = "Promises", generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.18.0. + +// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 +// clang-1700.6.3.2) +#ifndef PROMISES_SWIFT_H +#define PROMISES_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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#endif + +#if !defined(SWIFT_TYPEDEFS) +#define SWIFT_TYPEDEFS 1 +#if __has_include() +#include +#elif !defined(__cplusplus) +typedef unsigned char char8_t; +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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#if __has_attribute(external_source_symbol) +#pragma push_macro("any") +#undef any +#pragma clang attribute push( \ + __attribute__((external_source_symbol( \ + language = "Swift", defined_in = "Promises", generated_declaration))), \ + apply_to = \ + any(function, enum, objc_interface, objc_category, objc_protocol)) +#pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +#endif +#if __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/ios_spm/swift_headers/SwiftProtobuf-Swift.h b/ios_spm/swift_headers/SwiftProtobuf-Swift.h new file mode 100644 index 0000000000..b5c1b46f5e --- /dev/null +++ b/ios_spm/swift_headers/SwiftProtobuf-Swift.h @@ -0,0 +1,684 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.8.0. + +// Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 +// clang-1600.0.30.1) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Copyright 2026 Google LLC +// Copied from Firebase iOS SDK 12.8.0. + +// Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 +// clang-1600.0.30.1) +#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 "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include + +#include +#include +#include +#include +#include +#include +#else +#include +#include +#include +#include +#endif +#if defined(__cplusplus) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" +#if defined(__arm64e__) && __has_include() +#include +#else +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-macro-identifier" +#ifndef __ptrauth_swift_value_witness_function_pointer +#define __ptrauth_swift_value_witness_function_pointer(x) +#endif +#ifndef __ptrauth_swift_class_method_pointer +#define __ptrauth_swift_class_method_pointer(x) +#endif +#pragma clang diagnostic pop +#endif +#pragma clang diagnostic pop +#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 !defined(SWIFT_RUNTIME_NAME) +#if __has_attribute(objc_runtime_name) +#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +#define SWIFT_RUNTIME_NAME(X) +#endif +#endif +#if !defined(SWIFT_COMPILE_NAME) +#if __has_attribute(swift_name) +#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +#define SWIFT_COMPILE_NAME(X) +#endif +#endif +#if !defined(SWIFT_METHOD_FAMILY) +#if __has_attribute(objc_method_family) +#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +#define SWIFT_METHOD_FAMILY(X) +#endif +#endif +#if !defined(SWIFT_NOESCAPE) +#if __has_attribute(noescape) +#define SWIFT_NOESCAPE __attribute__((noescape)) +#else +#define SWIFT_NOESCAPE +#endif +#endif +#if !defined(SWIFT_RELEASES_ARGUMENT) +#if __has_attribute(ns_consumed) +#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +#define SWIFT_RELEASES_ARGUMENT +#endif +#endif +#if !defined(SWIFT_WARN_UNUSED_RESULT) +#if __has_attribute(warn_unused_result) +#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +#define SWIFT_WARN_UNUSED_RESULT +#endif +#endif +#if !defined(SWIFT_NORETURN) +#if __has_attribute(noreturn) +#define SWIFT_NORETURN __attribute__((noreturn)) +#else +#define SWIFT_NORETURN +#endif +#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 __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 !defined(SWIFT_DEPRECATED_OBJC) +#if __has_feature(attribute_diagnose_if_objc) +#define SWIFT_DEPRECATED_OBJC(Msg) \ + __attribute__((diagnose_if(1, Msg, "warning"))) +#else +#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#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(SWIFT_INDIRECT_RESULT) +#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) +#endif +#if !defined(SWIFT_CONTEXT) +#define SWIFT_CONTEXT __attribute__((swift_context)) +#endif +#if !defined(SWIFT_ERROR_RESULT) +#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) +#endif +#if defined(__cplusplus) +#define SWIFT_NOEXCEPT noexcept +#else +#define SWIFT_NOEXCEPT +#endif +#if !defined(SWIFT_C_INLINE_THUNK) +#if __has_attribute(always_inline) +#if __has_attribute(nodebug) +#define SWIFT_C_INLINE_THUNK \ + inline __attribute__((always_inline)) __attribute__((nodebug)) +#else +#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) +#endif +#else +#define SWIFT_C_INLINE_THUNK inline +#endif +#endif +#if defined(_WIN32) +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) +#endif +#else +#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) +#define SWIFT_IMPORT_STDLIB_SYMBOL +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(objc_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" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" + +#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 __has_attribute(external_source_symbol) +#pragma clang attribute pop +#endif +#if defined(__cplusplus) +#endif +#pragma clang diagnostic pop +#endif + +#else +#error unsupported Swift architecture +#endif diff --git a/messaging/CMakeLists.txt b/messaging/CMakeLists.txt index cf2e0378da..a45ace818e 100644 --- a/messaging/CMakeLists.txt +++ b/messaging/CMakeLists.txt @@ -123,9 +123,9 @@ elseif(IOS) target_link_libraries(firebase_messaging PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_messaging - POD_NAMES + MODULES FirebaseCore FirebaseMessaging ) diff --git a/remote_config/CMakeLists.txt b/remote_config/CMakeLists.txt index 7038ca475e..cf48e8d85e 100644 --- a/remote_config/CMakeLists.txt +++ b/remote_config/CMakeLists.txt @@ -149,9 +149,9 @@ elseif(IOS) target_link_libraries(firebase_remote_config PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_remote_config - POD_NAMES + MODULES FirebaseCore FirebaseRemoteConfig ) diff --git a/scripts/format_code.py b/scripts/format_code.py index 87fbb2f4f9..702b51ed7c 100755 --- a/scripts/format_code.py +++ b/scripts/format_code.py @@ -59,7 +59,7 @@ """Tuple: The file types to run clang-format on. Used to filter out results when searching across directories or git diffs. """ -FILE_PATHS_TO_IGNORE = re.compile(r'.*ios_pod/swift_headers/.*\.h') +FILE_PATHS_TO_IGNORE = re.compile(r'.*ios_(pod|spm)/swift_headers/.*\.h') """Regex pattern for files paths to ignore. Used to filter out results when searching across directories or git diffs. """ diff --git a/scripts/gha/build_ios_tvos.py b/scripts/gha/build_ios_tvos.py index 62d68b557b..016db9e0de 100644 --- a/scripts/gha/build_ios_tvos.py +++ b/scripts/gha/build_ios_tvos.py @@ -19,8 +19,8 @@ ios and tvos. It does the following, -- Build ios and tvos libraries via cmake (after downloading corresponding -cocoapods). +- Build ios and tvos libraries via cmake (after resolving corresponding +Swift packages). - Create a "universal" framework if all platforms and architectures were built. - Create "xcframeworks" combining both ios and tvos frameworks. @@ -558,7 +558,7 @@ def main(): '{0}_cmake_build'.format(apple_os), platform_architecture_token) # CMake configure was having all sorts of issues when run in parallel. - # It might be the Cocoapods that are downloaded in parallel into a + # It might be dependencies that are downloaded in parallel into a # single cache directory. cmake_configure(args.source_dir, build_path, os_platform_variant_config.get('toolchain'), diff --git a/scripts/gha/lint_commenter.py b/scripts/gha/lint_commenter.py index 2ac787173b..b63f7f0743 100755 --- a/scripts/gha/lint_commenter.py +++ b/scripts/gha/lint_commenter.py @@ -50,7 +50,7 @@ EXCLUDE_PATH_REGEX = [ # These files are copied from an external repo and are outside our control. r'^analytics/ios_headers/', - r'^ios_pod/swift_headers/' + r'^ios_(pod|spm)/swift_headers/' ] # The linter gives every error a confidence score. # 1 = It's most likely not really an issue. diff --git a/scripts/gha/print_matrix_configuration.py b/scripts/gha/print_matrix_configuration.py index 7ef9f4552f..f63da90baa 100644 --- a/scripts/gha/print_matrix_configuration.py +++ b/scripts/gha/print_matrix_configuration.py @@ -329,7 +329,7 @@ def filter_values_on_diff(parm_key, value, auto_diff): "cmake/external/firestore.cmake": "firestore", "cmake/external/libuv.cmake": "database", "cmake/external/uWebSockets.cmake": "database", - "ios_pod/Podfile":scan_changes_in_file, + "ios_spm/Package.swift":scan_changes_in_file, "Android/firebase_dependencies.gradle":scan_changes_in_file, "release_build_files/Android/firebase_dependencies.gradle":scan_changes_in_file, } @@ -339,7 +339,7 @@ def filter_values_on_diff(parm_key, value, auto_diff): "external": None, "release_build_files": None, # These two handled by file_redirects above. - "ios_pod": None, + "ios_spm": None, "Android": None, # Uncomment the two below lines when debugging this script, or GitHub # actions related to auto-diff mode. diff --git a/scripts/update_android_ios_dependencies.py b/scripts/update_android_ios_dependencies.py index fd72f2fb03..847e74272d 100644 --- a/scripts/update_android_ios_dependencies.py +++ b/scripts/update_android_ios_dependencies.py @@ -162,235 +162,161 @@ def get_files(dirs_and_files, file_extension, file_name=None, # Regex to match versions with just digits (ignoring things like -alpha, -beta) RE_NON_EXPERIMENTAL_VERSION = re.compile('[0-9.]+$') -########## iOS pods versions update ####################################### - -# Cocoapods github repo from where we scan available pods and their versions. -PODSPEC_REPOSITORY = 'https://github.com/CocoaPods/Specs.git' - -# List of Pods that we are interested in. -PODS = [ - 'Firebase', - 'FirebaseCore', - 'FirebaseAnalytics', - 'FirebaseAuth', - 'FirebaseCrashlytics', - 'FirebaseDatabase', - 'FirebaseFirestore', - 'FirebaseFunctions', - 'FirebaseInstallations', - 'FirebaseInstanceID', - 'FirebaseMessaging', - 'FirebaseRemoteConfig', - 'FirebaseStorage', -] - -def get_pod_versions(specs_repo, pods=PODS, ignore_pods=None, - allow_experimental=False): - """Get available pods and their versions from the specs repo +########## iOS Swift packages versions update ############################## + +IOS_PACKAGE_REPOSITORIES = { + 'firebase-ios-sdk': 'https://github.com/firebase/firebase-ios-sdk.git', + 'swift-package-manager-google-user-messaging-platform': 'https://github.com/googleads/swift-package-manager-google-user-messaging-platform.git', +} + +def get_git_tag_versions(repo_url, allow_experimental=False): + """Get available semantic versions from git tags for a repository. Args: - local_repo_dir (str): Directory mirroring Cocoapods specs repo - pods (iterable(str), optional): List of pods whose versions we need. - Defaults to PODS. - ignore_pods (list[str], optional): Case insensitive list of substrings - If any of these substrings are present in the pod name, it will not be - updated. - Eg: ['foo', 'bar'] will ignore all pods that have 'foo' or - 'bar' in their name. For example, 'test_foo', 'test_foo_baz' + repo_url (str): Remote git repository URL. allow_experimental (bool): Allow experimental versions. - Eg: 1.2.3-alpha, 1.2.3-beta, 1.2.3-rc + Returns: - dict: Map of the form {:list(str)} - Containing a mapping of podnames to available versions. + list(str): List of versions sorted semantically. """ - if ignore_pods is None: - ignore_pods = [] - - all_versions = defaultdict(list) - logging.info('Fetching pod versions from Specs repo...') - podspec_files = get_files_from_directory(specs_repo, - file_extension='.podspec.json') - for podspec_file in podspec_files: - filename = os.path.basename(podspec_file) - # Example: FirebaseAuth.podspec.json --> FirebaseAuth - podname = filename.split('.')[0] - if podname not in pods: - continue - if any(ignore_pod.lower() in podname.lower() for ignore_pod in ignore_pods): + cmd = ['git', 'ls-remote', '--tags', '--refs', repo_url] + logging.info('Fetching tags from %s...', repo_url) + out = subprocess.check_output(cmd).decode('utf-8') + versions = [] + for line in out.strip().split('\n'): + if not line: continue - parent_dir = os.path.dirname(podspec_file) - version = os.path.basename(parent_dir) - if not allow_experimental and '-cppsdk' not in version: - if not re.match(RE_NON_EXPERIMENTAL_VERSION, version): + tag = line.split('refs/tags/')[-1] + tag_clean = tag.lstrip('v') + if not allow_experimental and '-cppsdk' not in tag_clean: + if not re.match(RE_NON_EXPERIMENTAL_VERSION, tag_clean): continue - all_versions[podname].append(version) - - return all_versions + try: + parsed = packaging.version.parse(tag_clean) + versions.append((parsed, tag_clean)) + except Exception: + continue + versions.sort(key=lambda x: x[0]) + return [v[1] for v in versions] -def get_latest_pod_versions(specs_repo=None, pods=PODS, ignore_pods=None, - allow_experimental=None): - """Get latest versions for specified pods. +def get_latest_ios_package_versions(ignore_packages=None, allow_experimental=False): + """Get latest versions for iOS Swift packages. Args: - pods (iterable(str) optional): Pods for which we need latest version. - Defaults to PODS. - specs_repo (str optional): Local checkout of Cocoapods specs repo. - ignore_pods (list[str], optional): Case insensitive list of substrings - If any of these substrings are present in the pod name, it will not be - updated. - Eg: ['Foo', 'bar'] will ignore all pods that have 'foo' or - 'bar' in their name. For example, 'test_foo', 'test_foo_baz' + ignore_packages (list[str], optional): Case insensitive list of substrings to ignore. allow_experimental (bool): Allow experimental versions. - Eg: 1.2.3-alpha, 1.2.3-beta, 1.2.3-rc Returns: - dict: Map of the form {:} containing a mapping of podnames to - latest version. + dict: Mapping of package name / alias to latest version string. """ - if ignore_pods is None: - ignore_pods = [] - - cleanup_required = False - if specs_repo is None: - specs_repo = tempfile.mkdtemp(suffix='pods') - logging.info('Cloning podspecs git repo...') - git_clone_cmd = ['git', 'clone', '-q', '--depth', '1', - PODSPEC_REPOSITORY, specs_repo] - subprocess.run(git_clone_cmd) - # Temporary directory should be cleaned up after use. - cleanup_required = True - - all_versions = get_pod_versions(specs_repo, pods, ignore_pods, - allow_experimental) - if cleanup_required: - shutil.rmtree(specs_repo) + if ignore_packages is None: + ignore_packages = [] latest_versions = {} - for pod in all_versions: - # all_versions map is in the following format: - # { 'PodnameA' : ['1.0.1', '2.0.4'], 'PodnameB': ['3.0.4', '1.0.2'] } - # Convert string version numbers to semantic version objects - # for easier comparison and get the latest version. - parsed_versions = [] - for v in all_versions[pod]: - try: - parsed_versions.append(packaging.version.parse(v)) - except: - # Sometimes version numbers don't parse; ignore them. - continue - latest_version = max(parsed_versions) - # Replace the list of versions with just the latest version - latest_versions[pod] = latest_version.base_version - print("Latest pod versions retreived from cocoapods specs repo: \n") + for pkg_name, repo_url in IOS_PACKAGE_REPOSITORIES.items(): + if any(ignore_pkg.lower() in pkg_name.lower() for ignore_pkg in ignore_packages): + continue + versions = get_git_tag_versions(repo_url, allow_experimental) + if versions: + latest_version = versions[-1] + latest_versions[pkg_name] = latest_version + # Also add aliases for readme/podfile backward compatibility + if pkg_name == 'firebase-ios-sdk': + latest_versions['Firebase'] = latest_version + latest_versions['FirebaseCore'] = latest_version + latest_versions['FirebaseAnalytics'] = latest_version + latest_versions['FirebaseAuth'] = latest_version + latest_versions['FirebaseDatabase'] = latest_version + latest_versions['FirebaseFirestore'] = latest_version + latest_versions['FirebaseFunctions'] = latest_version + latest_versions['FirebaseInstallations'] = latest_version + latest_versions['FirebaseMessaging'] = latest_version + latest_versions['FirebaseRemoteConfig'] = latest_version + latest_versions['FirebaseStorage'] = latest_version + elif pkg_name == 'swift-package-manager-google-user-messaging-platform': + latest_versions['GoogleUserMessagingPlatform'] = latest_version + latest_versions['UserMessagingPlatform'] = latest_version + + print("Latest iOS Swift package versions retrieved: \n") pprint.pprint(latest_versions) print() return latest_versions -def get_pod_files(dirs_and_files): - """Get final list of podfiles to update. - - If a directory is passed, it is searched recursively. - - Args: - dirs_and_files (iterable(str)): List of paths which could be files or - directories. - - Returns: - iterable(str): Final list of podfiles after recursively searching dirs. - """ - pod_files = [] +def get_package_swift_files(dirs_and_files): + """Get final list of Package.swift files to update.""" + package_files = [] for entry in dirs_and_files: abspath = os.path.abspath(entry) if not os.path.exists(abspath): continue if os.path.isdir(abspath): - pod_files = pod_files + get_files_from_directory(abspath, - file_extension='', - file_name='Podfile') + package_files = package_files + get_files_from_directory( + abspath, file_extension='', file_name='Package.swift' + ) elif os.path.isfile(abspath): - pod_files.append(abspath) + package_files.append(abspath) + return package_files - return pod_files -# Look for lines like, pod 'Firebase/Core', '7.11.0' -RE_PODFILE_VERSION = re.compile( - r"\s+pod '(?P.+)', '(?P.+)'\n") - -def modify_pod_file(pod_file, pod_version_map, dryrun=True, ignore_ios_versions=[]): - """Update pod versions in specified podfile. +# Regex to match lines like: +# .package(url: "https://github.com/firebase/firebase-ios-sdk.git", exact: "12.18.0"), +RE_PACKAGE_SWIFT_DEPENDENCY = re.compile( + r'(?P\.package\(url:\s*\"https://github\.com/[^/]+/(?P[a-zA-Z0-9._-]+)\.git\",\s*exact:\s*\")(?P[0-9.]+)(?P\"\))' +) - Args: - pod_file (str): Absolute path to a podfile. - pod_version_map (dict): Map of podnames to their respective version. - dryrun (bool, optional): Just print the substitutions. - Do not write to file. Defaults to True. - ignore_ios_versions (set): If the old version number for a pod - matches one of these, don't update it. - """ +def modify_package_swift_file(package_swift_file, version_map, dryrun=True, + ignore_ios_versions=[]): + """Update Swift package versions in specified Package.swift file.""" global logfile_lines to_update = False existing_lines = [] - with open(pod_file, "r") as podfile: - existing_lines = podfile.readlines() + with open(package_swift_file, "r") as f: + existing_lines = f.readlines() if not existing_lines: - logging.fatal('Update failed. ' + - 'Could not read contents from pod file {0}.'.format(podfile)) + logging.fatal('Update failed. Could not read contents from file {0}.'.format(package_swift_file)) - logging.debug('Checking if update is required for {0}'.format(pod_file)) + logging.debug('Checking if update is required for {0}'.format(package_swift_file)) substituted_pairs = [] for idx, line in enumerate(existing_lines): - match = re.match(RE_PODFILE_VERSION, line) + match = re.search(RE_PACKAGE_SWIFT_DEPENDENCY, line) if match: - pod_name = match['pod_name'] - skip_line = False - # Check if the old version matches anything in ignore_ios_versions - for ignore_version in ignore_ios_versions: - if ignore_version in match['version']: - skip_line = True - # Firebase/Auth -> Firestore (due to being a subspec) - pod_name_key = re.sub(r'/.*$', '', pod_name) - if pod_name_key in pod_version_map and not skip_line: - latest_version = pod_version_map[pod_name_key] - substituted_line = line.replace(match['version'], latest_version) - if substituted_line != line: + pkg_name = match.group('pkg_name') + old_version = match.group('version') + if any(ignore_ver in old_version for ignore_ver in ignore_ios_versions): + continue + if pkg_name in version_map: + latest_version = version_map[pkg_name] + if latest_version != old_version: + substituted_line = line[:match.start('version')] + latest_version + line[match.end('version'):] substituted_pairs.append((line, substituted_line)) existing_lines[idx] = substituted_line to_update = True - logfile_lines.add('iOS: %s → %s' % (pod_name, latest_version)) + logfile_lines.add('iOS: %s → %s' % (pkg_name, latest_version)) if to_update: - print('Updating contents of {0}'.format(pod_file)) + print('Updating contents of {0}'.format(package_swift_file)) for original, substituted in substituted_pairs: print('(-) ' + original + '(+) ' + substituted) if not dryrun: - with open(pod_file, "w") as podfile: - podfile.writelines(existing_lines) + with open(package_swift_file, "w") as f: + f.writelines(existing_lines) print() # Regex to match lines like: # | | Firebase/Auth Cocoapod (8.2.0) -RE_README_POD_VERSION = re.compile( - r"\|(?P\s+)\| (?P.*) Cocoapod \((?P([0-9.]+))\)") - -def modify_readme_file_pods(readme_filepath, version_map, dryrun=True): - """Modify a readme Markdown file to reference correct cocoapods versions. - - Looks for lines like: - | | Firebase/Auth Cocoapod (8.2.0) - for pods matching the ones in the version map, and modifies them in-place. +# or +# | | Firebase/Auth (8.2.0) +RE_README_IOS_VERSION = re.compile( + r"\|(?P\s+)\| (?P.*?) (?:Cocoapod )?\((?P([0-9.]+))\)" +) - Args: - readme_filepath: Path to readme file to edit. - version_map: Dictionary of packages to version numbers, e.g. { - 'FirebaseAuth': '15.0.0', 'FirebaseDatabase': '14.0.0' } - dryrun (bool, optional): Just print the substitutions. - Do not write to file. Defaults to True. - """ +def modify_readme_file_ios(readme_filepath, version_map, dryrun=True): + """Modify a readme Markdown file to reference correct iOS dependency versions.""" logging.debug('Reading readme file: {0}'.format(readme_filepath)) lines = None @@ -405,19 +331,22 @@ def modify_readme_file_pods(readme_filepath, version_map, dryrun=True): def replace_pod_line(m): if not m.group('pod_name'): return m.group(0) - pod_key = re.sub(r'/.*$', '', m.group('pod_name')) + pod_name = m.group('pod_name').strip() + pod_key = re.sub(r'/.*$', '', pod_name) if pod_key not in version_map: - return m.group(0) - repl = '|%s| %s Cocoapod (%s)' % (m.group('spaces'), - m.group('pod_name'), - version_map[pod_key]) + if pod_name in version_map: + pod_key = pod_name + else: + return m.group(0) + repl = '|%s| %s (%s)' % (m.group('spaces'), + m.group('pod_name'), + version_map[pod_key]) return repl substituted_pairs = [] to_update = False for line in lines: - substituted_line = re.sub(RE_README_POD_VERSION, replace_pod_line, - line) + substituted_line = re.sub(RE_README_IOS_VERSION, replace_pod_line, line) output_lines.append(substituted_line) if substituted_line != line: substituted_pairs.append((line, substituted_line)) @@ -433,7 +362,7 @@ def replace_pod_line(m): readme_file.writelines(output_lines) print() -########## END: iOS pods versions update ##################################### +########## END: iOS Swift packages versions update ########################### ########## Android versions update ############################# @@ -682,8 +611,8 @@ def replace_module_line(m): def parse_cmdline_args(): - parser = argparse.ArgumentParser(description='Update pod files with ' - 'latest pod versions') + parser = argparse.ArgumentParser(description='Update dependencies with ' + 'latest package versions') parser.add_argument('--dryrun', action='store_true', help='Just print the replaced lines, DO NOT overwrite any files') parser.add_argument( "--log_level", default="info", @@ -697,17 +626,16 @@ def parse_cmdline_args(): help='Allow updating to experimental versions (eg:1.2.3-alpha))') # iOS options parser.add_argument('--skip_ios', action='store_true', - help='Skip iOS pod version update completely.') - parser.add_argument('--ignore_ios_pods', nargs='+', default=(), - help='Ignore iOS pods which have any of the items specified in ' + help='Skip iOS package version update completely.') + parser.add_argument('--ignore_ios_packages', '--ignore_ios_pods', nargs='+', default=(), + help='Ignore iOS packages which have any of the items specified in ' 'this list as substrings.') parser.add_argument('--ignore_ios_versions', nargs='+', default=('cppsdk',), - help='Do not update any iOS pods when the old version contains ' + help='Do not update any iOS packages when the old version contains ' 'any of the items specified in this list as substrings.') - parser.add_argument('--podfiles', nargs='+', default=(os.getcwd(),), - help= 'List of pod files or directories containing podfiles') - parser.add_argument('--specs_repo', - help= 'Local checkout of github Cocoapods Specs repository') + parser.add_argument('--package_swift_files', '--podfiles', nargs='+', + default=('ios_spm/Package.swift',), + help='List of Package.swift files or directories containing them') # Android options parser.add_argument('--skip_android', action='store_true', help='Skip Android libraries version update completely.') @@ -758,17 +686,15 @@ def main(): file_name='readme') if not args.skip_ios: - latest_pod_versions_map = get_latest_pod_versions( - args.specs_repo, - PODS, - set(args.ignore_ios_pods), args.allow_experimental) - pod_files = get_files(args.podfiles, file_extension='', file_name='Podfile', - ignore_directories=set(args.ignore_directories)) - for pod_file in pod_files: - modify_pod_file(pod_file, latest_pod_versions_map, args.dryrun, - args.ignore_ios_versions) + latest_ios_versions_map = get_latest_ios_package_versions( + set(args.ignore_ios_packages), args.allow_experimental) + package_swift_files = get_files(args.package_swift_files, file_extension='.swift', file_name='Package.swift', + ignore_directories=set(args.ignore_directories)) + for package_swift_file in package_swift_files: + modify_package_swift_file(package_swift_file, latest_ios_versions_map, args.dryrun, + args.ignore_ios_versions) for readme_file in readme_files: - modify_readme_file_pods(readme_file, latest_pod_versions_map, args.dryrun) + modify_readme_file_ios(readme_file, latest_ios_versions_map, args.dryrun) if not args.skip_android: latest_android_versions_map = get_latest_maven_versions( diff --git a/storage/CMakeLists.txt b/storage/CMakeLists.txt index 2496c10b70..147bfdc18e 100644 --- a/storage/CMakeLists.txt +++ b/storage/CMakeLists.txt @@ -103,7 +103,7 @@ target_include_directories(firebase_storage ${CMAKE_CURRENT_LIST_DIR}/src/include PRIVATE ${FIREBASE_CPP_SDK_ROOT_DIR} - ${FIREBASE_CPP_SDK_ROOT_DIR}/ios_pod/swift_headers + ${FIREBASE_SPM_SWIFT_HEADERS_DIR} ) target_compile_definitions(firebase_storage PRIVATE @@ -120,9 +120,9 @@ elseif(IOS) target_link_libraries(firebase_storage PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_storage - POD_NAMES + MODULES FirebaseCore FirebaseStorage ) diff --git a/ump/CMakeLists.txt b/ump/CMakeLists.txt index 32d0eb70d3..9442b1e069 100644 --- a/ump/CMakeLists.txt +++ b/ump/CMakeLists.txt @@ -87,15 +87,14 @@ elseif(IOS) target_link_libraries(firebase_ump PUBLIC "-fembed-bitcode") - setup_pod_headers( + setup_spm_headers( firebase_ump - POD_NAMES + MODULES + UserMessagingPlatform GoogleUserMessagingPlatform ) - # UMP expects the header files to be in a subfolder, so set up a symlink to - # accomplish that. - symlink_pod_headers(firebase_ump GoogleUserMessagingPlatform UserMessagingPlatform) + symlink_spm_headers(firebase_ump UserMessagingPlatform DIR_NAME UserMessagingPlatform) if (FIREBASE_XCODE_TARGET_FORMAT STREQUAL "frameworks") set_target_properties(firebase_ump PROPERTIES From b312f403b28d33f3331403003e00e20473bab76f Mon Sep 17 00:00:00 2001 From: a-maurice Date: Wed, 30 Sep 2026 15:26:20 -0700 Subject: [PATCH 2/2] Removing remaining references to Cocoapods --- .agents/skills/firebase-cpp-builder/SKILL.md | 3 +- .github/workflows/update-dependencies.yml | 2 +- AGENTS.md | 1 - README.md | 4 +- cmake/external/firestore.cmake | 3 +- firestore/CONTRIBUTING.md | 2 +- ios_pod/CMakeLists.txt | 216 - ios_pod/Podfile | 21 - ios_pod/empty.cc | 15 - ios_pod/empty_CMakeLists.txt | 20 - ios_pod/readme.txt | 13 - .../swift_headers/FirebaseAnalytics-Swift.h | 688 -- .../FirebaseAnalyticsSwift-Swift.h | 578 -- ios_pod/swift_headers/FirebaseAuth-Swift.h | 5796 ----------------- .../FirebaseCoreInternal-Swift.h | 814 --- .../swift_headers/FirebaseDatabase-Swift.h | 688 -- .../FirebaseDatabaseSwift-Swift.h | 578 -- .../swift_headers/FirebaseFirestore-Swift.h | 704 -- .../FirebaseFirestoreSwift-Swift.h | 578 -- .../swift_headers/FirebaseFunctions-Swift.h | 1254 ---- .../FirebaseInAppMessaging-Swift.h | 688 -- .../FirebaseInAppMessagingSwift-Swift.h | 578 -- .../FirebaseMLModelDownloader-Swift.h | 688 -- .../FirebaseRemoteConfig-Swift.h | 688 -- .../FirebaseRemoteConfigSwift-Swift.h | 578 -- .../swift_headers/FirebaseSessions-Swift.h | 784 --- .../swift_headers/FirebaseSharedSwift-Swift.h | 688 -- ios_pod/swift_headers/FirebaseStorage-Swift.h | 2006 ------ ios_pod/swift_headers/Promises-Swift.h | 686 -- ios_pod/swift_headers/SwiftProtobuf-Swift.h | 684 -- scripts/update_android_ios_dependencies.py | 3 +- 31 files changed, 6 insertions(+), 20043 deletions(-) delete mode 100644 ios_pod/CMakeLists.txt delete mode 100644 ios_pod/Podfile delete mode 100644 ios_pod/empty.cc delete mode 100644 ios_pod/empty_CMakeLists.txt delete mode 100644 ios_pod/readme.txt delete mode 100644 ios_pod/swift_headers/FirebaseAnalytics-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseAuth-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseCoreInternal-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseDatabase-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseFirestore-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseFunctions-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseInAppMessaging-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseRemoteConfig-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseSessions-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseSharedSwift-Swift.h delete mode 100644 ios_pod/swift_headers/FirebaseStorage-Swift.h delete mode 100644 ios_pod/swift_headers/Promises-Swift.h delete mode 100644 ios_pod/swift_headers/SwiftProtobuf-Swift.h diff --git a/.agents/skills/firebase-cpp-builder/SKILL.md b/.agents/skills/firebase-cpp-builder/SKILL.md index 1103971536..f01ff9dbf2 100644 --- a/.agents/skills/firebase-cpp-builder/SKILL.md +++ b/.agents/skills/firebase-cpp-builder/SKILL.md @@ -52,8 +52,7 @@ For iOS, you can use the convenience script from the repository root: _(Run `./build_scripts/ios/build.sh -h` for more options.)_ -Alternatively, you can use CMake's native Xcode generator manually. Ensure you -have CocoaPods installed if building products that depend on iOS SDK Pods. +Alternatively, you can use CMake's native Xcode generator manually. ```bash mkdir ios_build diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 1816eed5ba..c73f244149 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -83,7 +83,7 @@ jobs: # iOS: Update Firestore external version to match Firebase iOS SDK version. firebase_ios_version=$(grep "firebase-ios-sdk.git" ios_spm/Package.swift | sed 's/.*exact: "\([^"]*\)".*/\1/') echo "Setting Firestore external version to ${firebase_ios_version}" - sed -i~ "s/^set(version [^)]*)/set(version CocoaPods-${firebase_ios_version})/i" cmake/external/firestore.cmake + sed -i~ "s/^set(version [^)]*)/set(version ${firebase_ios_version})/i" cmake/external/firestore.cmake # Download the Firebase iOS prebuilt zip distribution for Analytics and Swift headers. echo "Downloading Firebase iOS SDK ${firebase_ios_version} prebuilt zip distribution" diff --git a/AGENTS.md b/AGENTS.md index 83f1b7fe60..8659536d7c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -42,7 +42,6 @@ instructions for your specific platform. recommended) is also needed. * **(Windows Only) Strings**: From Microsoft Sysinternals, required for Android builds on Windows. -* **Cocoapods**: Required for building iOS or tvOS libraries. To build for Desktop, you can install prerequisites by running the following script in the root of the repository: `scripts/gha/install_prereqs_desktop.py` diff --git a/README.md b/README.md index 5eee29122e..d8651d95ba 100644 --- a/README.md +++ b/README.md @@ -94,8 +94,6 @@ Note that we include the Gradle wrapper, which if used will acquire the necessary version of Gradle for you. ### Prerequisites for iOS/tvOS -The following prerequisites are required when building the libraries for iOS or tvOS. -- [Cocoapods](https://cocoapods.org/) @@ -192,7 +190,7 @@ that work for both iOS and tvOS. This is helpful as we can use the same deliverable for both iOS and tvOS targets in the same XCode project. ``` bash -# Install prereqs (like cocoapods) +# Install prereqs ./build_scripts/tvos/install_prereqs.sh python3 scripts/gha/build_ios_tvos.py -s . -b ios_tvos_build ``` diff --git a/cmake/external/firestore.cmake b/cmake/external/firestore.cmake index 87abfc8ffe..c7b47e0758 100644 --- a/cmake/external/firestore.cmake +++ b/cmake/external/firestore.cmake @@ -20,8 +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-11.8.1) -set(version CocoaPods-12.19.0) +set(version 12.19.0) function(GetReleasedDep) message("Getting released firebase-ios-sdk @ ${version}") diff --git a/firestore/CONTRIBUTING.md b/firestore/CONTRIBUTING.md index 4f9856a511..5756bae3fa 100644 --- a/firestore/CONTRIBUTING.md +++ b/firestore/CONTRIBUTING.md @@ -126,7 +126,7 @@ Then attach the debugger from Android Studio to unblock the testapp. # iOS building and testing -When targting iOS, the SDK gets its dependency from Cocoapods, as opposed to from `cmake/external/firestore.cmake`. +When targting iOS, the SDK gets its dependency from Swift Packages, as opposed to from `cmake/external/firestore.cmake`. The dependencies are specified with `ios_pod/Podfile`. Running cmake for iOS will download the pods listed in this file, and add the C++ headers from the downloaded pods to include directories. diff --git a/ios_pod/CMakeLists.txt b/ios_pod/CMakeLists.txt deleted file mode 100644 index a2c8255aac..0000000000 --- a/ios_pod/CMakeLists.txt +++ /dev/null @@ -1,216 +0,0 @@ -# Copyright 2019 Google -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -if(NOT IOS) - return() -endif() - -# Add these two vars to the cache to make them avaliable in global scope -set(FIREBASE_POD_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE STRING "") -set(FIREBASE_POD_HEADER_DIR - "${FIREBASE_POD_DIR}/Pods/Headers/Public" - CACHE STRING "" -) -# Rarely, but occasionally, libraries require access to private Firebase -# headers. -set(FIREBASE_POD_PRIVATE_HEADER_DIR - "${FIREBASE_POD_DIR}/Pods/Headers/Private" - CACHE STRING "" -) - -# Copy build files to trigger pod install as it requires a valid Xcode project -file( - COPY - Podfile - empty.cc - empty_CMakeLists.txt DESTINATION - "${FIREBASE_POD_DIR}" -) - -# Rename cmake file -file( - RENAME - "${FIREBASE_POD_DIR}/empty_CMakeLists.txt" - "${FIREBASE_POD_DIR}/CMakeLists.txt" -) - -message("Downloading CocoaPods...") - -execute_process( - COMMAND /bin/bash -c - "mkdir -p ${FIREBASE_POD_DIR} && cd ${FIREBASE_POD_DIR} && cmake . -G Xcode && pod install" - OUTPUT_VARIABLE pods_output -) - -message("${pods_output}") - - - -# Sets up a target to have the correct dependencies on the install pods target -# and also adds the correct include paths to the pod header files -# -# Usage: setup_pod_headers( -# POD_NAMES [...] -# INCLUDE_PRIVATE_HEADERS -# ) -# -# Args: -# target_name: Name of target to add includes to -# pod_names: Array of pod names to configure -# -function(setup_pod_headers target_name) - set(multi OUTPUT_NAME POD_NAMES) - set(options INCLUDE_PRIVATE_HEADERS) - - # Parse the arguments into SETUP_POD_HEADERS_POD_NAMES. - cmake_parse_arguments(SETUP_POD_HEADERS "${options}" "" "${multi}" ${ARGN}) - - if(NOT "${SETUP_POD_HEADERS_POD_NAMES}" STREQUAL "") - foreach (pod ${SETUP_POD_HEADERS_POD_NAMES}) - # Add pod name twice as some frameworks moved includes inside a folder with - # the pod name - target_include_directories(${target_name} - # Link the Pods publicly, so that dependent libraries can access the necessary header files as well. - # Same for the below workaround. - # Also link from the Sources/Public directories, for framework pods. - PUBLIC - ${FIREBASE_POD_HEADER_DIR}/${pod} - ${FIREBASE_POD_HEADER_DIR}/${pod}/${pod} - ${FIREBASE_POD_DIR}/Pods/${pod}/${pod}/Sources/Public - ${FIREBASE_POD_DIR}/Pods/${pod}/${pod}/Sources/Public/${pod} - ${FIREBASE_POD_DIR}/Pods/${pod}/${pod}/Source/Library/Public - ${FIREBASE_POD_DIR}/Pods/${pod}/${pod}/Source/Library/Public/${pod} - ${FIREBASE_POD_DIR}/Pods/${pod}/Public - ) - if("${SETUP_POD_HEADERS_INCLUDE_PRIVATE_HEADERS}") - # Workaround: Private/FirebaseCore/*.h headers include other FirebaseCore headers via the subdirectory, so - # we need to include the top-level Private directory as a header path. This only affects Firestore at the moment, as - # no other C++ library includes a private Pod header. - # Also link from the Sources/Private directory, for framework pods. - target_include_directories(${target_name} - PUBLIC - ${FIREBASE_POD_PRIVATE_HEADER_DIR}/ - ${FIREBASE_POD_PRIVATE_HEADER_DIR}/${pod} - ${FIREBASE_POD_PRIVATE_HEADER_DIR}/${pod}/${pod} - ${FIREBASE_POD_DIR}/Pods/${pod} - ${FIREBASE_POD_DIR}/Pods/${pod}/include - ${FIREBASE_POD_DIR}/Pods/${pod}/${pod}/Sources/Private - ${FIREBASE_POD_DIR}/Pods/${pod}/${pod}/Sources - ${FIREBASE_POD_DIR}/Pods/${pod}/Source - ) - endif() - - symlink_pod_headers(${target_name} ${pod} ${pod}) - endforeach() - endif() -endfunction() - -# Creates a symlink to the header files of the given framework. Used when -# include paths are expecting the header files to be in a subdirectory, when -# accessing the header files directly does not have them in the same structure. -# -# Usage: symlink_pod_headers( -# [FRAMEWORK_DIR_NAME ] -# ) -# -# Args: -# target_name: Name of target to add includes to -# pod_name: Name of the pod in the Podfile -# dir_name: Name of the dir for the symlink (most cases should be same as pod_name) -# framework_dir: Set if pod uses a different folder name for frameworks -# -function(symlink_pod_headers target_name pod_name dir_name) - - set(multi OUTPUT_NAME FRAMEWORK_DIR_NAME) - - # Parse the arguments into SYMLINK_POD_FRAMEWORK_DIR_NAME. - cmake_parse_arguments(SYMLINK_POD "" "" "${multi}" ${ARGN}) - - set(FRAMEWORK_DIR "Frameworks") - - if(NOT "${SYMLINK_POD_FRAMEWORK_DIR_NAME}" STREQUAL "") - set(FRAMEWORK_DIR "${SYMLINK_POD_FRAMEWORK_DIR_NAME}") - endif() - - set(gen_file ${CMAKE_CURRENT_BINARY_DIR}/pod_sym_links/gen_${dir_name}.txt) - set(symlink_dir ${CMAKE_CURRENT_BINARY_DIR}/pod_sym_links/${dir_name}) - set(glob_dir "${FIREBASE_POD_DIR}/Pods/${pod_name}/${FRAMEWORK_DIR}/*/*.framework/Headers") - - file(GLOB framework_dir ${glob_dir}) - - # If failed to find headers, try again one folder up - if(NOT EXISTS ${framework_dir}) - set(glob_dir "${FIREBASE_POD_DIR}/Pods/${pod_name}/${FRAMEWORK_DIR}/*.framework/Headers") - file(GLOB framework_dir ${glob_dir}) - endif() - # If failed to find headers, try xcframework path. - if(NOT EXISTS ${framework_dir}) - set(glob_dir "${FIREBASE_POD_DIR}/Pods/${pod_name}/${FRAMEWORK_DIR}/*/*.xcframework/*/*.framework/Headers") - file(GLOB framework_dirs ${glob_dir}) - # xcframework contains several frameworks. Their Headers are the same. So it's okay use first framework's Headers - list(LENGTH framework_dirs dir_len) - if(dir_len GREATER 0) - list(GET framework_dirs 0 first_dir) - file(GLOB framework_dir ${first_dir}) - endif() - endif() - - # If failed to find headers, try xcframework path. - if(NOT EXISTS ${framework_dir}) - set(glob_dir "${FIREBASE_POD_DIR}/Pods/${pod_name}/${FRAMEWORK_DIR}/*/*.xcframework/*/*.framework/Headers") - file(GLOB framework_dirs ${glob_dir}) - # xcframework contains several frameworks. Their Headers are the same. So it's okay use first framework's Headers - list(LENGTH framework_dirs dir_len) - if(dir_len GREATER 0) - list(GET framework_dirs 0 first_dir) - file(GLOB framework_dir ${first_dir}) - endif() - endif() - - # If failed to find headers, try alternate xcframework path. - if(NOT EXISTS ${framework_dir}) - set(glob_dir "${FIREBASE_POD_DIR}/Pods/${pod_name}/${FRAMEWORK_DIR}/*.xcframework/*/*.framework/Headers") - file(GLOB framework_dirs ${glob_dir}) - # xcframework contains several frameworks. Their Headers are the same. So it's okay use first framework's Headers - list(LENGTH framework_dirs dir_len) - if(dir_len GREATER 0) - list(GET framework_dirs 0 first_dir) - file(GLOB framework_dir ${first_dir}) - endif() - endif() - - # Maybe this pod is not a framework, continue - if(NOT EXISTS ${framework_dir}) - return() - endif() - - add_custom_command( - OUTPUT "${gen_file}" - COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/pod_sym_links - && rm -fr ${symlink_dir} - && ln -sf ${framework_dir} ${symlink_dir} - && touch ${gen_file} - DEPENDS ${FIREBASE_POD_HEADER_DIR} - COMMENT "Sym linking pod framework '${framework_dir}' to '${symlink_dir}'" - ) - - add_custom_target(${target_name}_symlink_${dir_name} DEPENDS ${gen_file}) - add_dependencies(${target_name} ${target_name}_symlink_${dir_name}) - - target_include_directories(${target_name} - PRIVATE - ${CMAKE_CURRENT_BINARY_DIR}/pod_sym_links - ${CMAKE_CURRENT_BINARY_DIR}/pod_sym_links/${dir_name} - ) -endfunction() diff --git a/ios_pod/Podfile b/ios_pod/Podfile deleted file mode 100644 index 66c254e954..0000000000 --- a/ios_pod/Podfile +++ /dev/null @@ -1,21 +0,0 @@ -source 'https://github.com/CocoaPods/Specs.git' -platform :ios, '15.0' -use_frameworks! - -target 'GetPods' do - pod 'Firebase/Core', '12.19.0' - - pod 'GoogleUserMessagingPlatform', '2.3.0' - pod 'Firebase/Analytics', '12.19.0' - pod 'Firebase/AppCheck', '12.19.0' - pod 'Firebase/Auth', '12.19.0' - pod 'Firebase/Crashlytics', '12.19.0' - pod 'Firebase/Database', '12.19.0' - pod 'Firebase/Firestore', '12.19.0' - pod 'Firebase/Functions', '12.19.0' - pod 'Firebase/Installations', '12.19.0' - pod 'Firebase/Messaging', '12.19.0' - pod 'Firebase/RemoteConfig', '12.19.0' - pod 'Firebase/Storage', '12.19.0' - -end diff --git a/ios_pod/empty.cc b/ios_pod/empty.cc deleted file mode 100644 index 8ff4a193ee..0000000000 --- a/ios_pod/empty.cc +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2019 Google -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Stub file to enable cmake to download required pod files diff --git a/ios_pod/empty_CMakeLists.txt b/ios_pod/empty_CMakeLists.txt deleted file mode 100644 index 2f37e4e790..0000000000 --- a/ios_pod/empty_CMakeLists.txt +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2019 Google -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Stub cmake project to enable pod files to be installed against - -cmake_minimum_required(VERSION 3.22) - -project (GetPods CXX) -add_library(GetPods empty.cc) diff --git a/ios_pod/readme.txt b/ios_pod/readme.txt deleted file mode 100644 index 616fdd7fa8..0000000000 --- a/ios_pod/readme.txt +++ /dev/null @@ -1,13 +0,0 @@ -firebase-cpp-sdk/ios_pod directory - -This directory contains a Podfile that allows us to install the Firebase iOS SDK -via CocoaPods. The Podfile here must include all Cocoapods used by the Firebase -C++ SDK. The pods are extracted as part of the build process, and the header -files within them are referenced by the Objective-C++ code in this SDK (see -setup_pod_headers in CMakeLists.txt for details). - -The "swift_headers" subdirectory contains copies of the most recent Swift -bridging headers for the Firebase iOS libraries that are written in Swift, -enabling them to be called from this SDK's Objective-C++ code. These headers are -copied from the most recent firebase-ios-sdk release via this repository's -update-dependencies.yml GitHub Actions workflow. diff --git a/ios_pod/swift_headers/FirebaseAnalytics-Swift.h b/ios_pod/swift_headers/FirebaseAnalytics-Swift.h deleted file mode 100644 index 7e176968f9..0000000000 --- a/ios_pod/swift_headers/FirebaseAnalytics-Swift.h +++ /dev/null @@ -1,688 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEANALYTICS_SWIFT_H -#define FIREBASEANALYTICS_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseAnalytics", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEANALYTICS_SWIFT_H -#define FIREBASEANALYTICS_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseAnalytics", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h b/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h deleted file mode 100644 index 315ee3e6c7..0000000000 --- a/ios_pod/swift_headers/FirebaseAnalyticsSwift-Swift.h +++ /dev/null @@ -1,578 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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 -#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)) -#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 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 -#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") -#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__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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 -#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)) -#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 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 -#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") -#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 - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseAuth-Swift.h b/ios_pod/swift_headers/FirebaseAuth-Swift.h deleted file mode 100644 index 06f6498e62..0000000000 --- a/ios_pod/swift_headers/FirebaseAuth-Swift.h +++ /dev/null @@ -1,5796 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEAUTH_SWIFT_H -#define FIREBASEAUTH_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import FirebaseAuthInterop; -@import Foundation; -@import ObjectiveC; -@import UIKit; -#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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseAuth", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -enum FIRActionCodeOperation : NSInteger; -@class NSString; -/// Manages information regarding action codes. -SWIFT_CLASS_NAMED("ActionCodeInfo") -@interface FIRActionCodeInfo : NSObject -/// The operation being performed. -@property(nonatomic, readonly) enum FIRActionCodeOperation operation; -/// The email address to which the code was sent. The new email address in the -/// case of ActionCodeOperation.recoverEmail. -@property(nonatomic, readonly, copy) NSString* _Nonnull email; -/// The email that is being recovered in the case of -/// ActionCodeOperation.recoverEmail. -@property(nonatomic, readonly, copy) NSString* _Nullable previousEmail; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Operations which can be performed with action codes. -typedef SWIFT_ENUM_NAMED(NSInteger, FIRActionCodeOperation, - "ActionCodeOperation", open){ - /// Action code for unknown operation. - FIRActionCodeOperationUnknown = 0, - /// Action code for password reset operation. - FIRActionCodeOperationPasswordReset = 1, - /// Action code for verify email operation. - FIRActionCodeOperationVerifyEmail = 2, - /// Action code for recover email operation. - FIRActionCodeOperationRecoverEmail = 3, - /// Action code for email link operation. - FIRActionCodeOperationEmailLink = 4, - /// Action code for verifying and changing email. - FIRActionCodeOperationVerifyAndChangeEmail = 5, - /// Action code for reverting second factor addition. - FIRActionCodeOperationRevertSecondFactorAddition = 6, -}; - -@class NSURL; -/// Used to set and retrieve settings related to handling action codes. -SWIFT_CLASS_NAMED("ActionCodeSettings") -@interface FIRActionCodeSettings : NSObject -/// This URL represents the state/Continue URL in the form of a universal link. -/// This URL can should be constructed as a universal link that would either -/// directly open the app where the action code would be handled or continue to -/// the app after the action code is handled by Firebase. -@property(nonatomic, copy) NSURL* _Nullable URL; -/// Indicates whether the action code link will open the app directly or after -/// being redirected from a Firebase owned web widget. -@property(nonatomic) BOOL handleCodeInApp; -/// The iOS bundle ID, if available. The default value is the current app’s -/// bundle ID. -@property(nonatomic, copy) NSString* _Nullable iOSBundleID; -/// The Android package name, if available. -@property(nonatomic, copy) NSString* _Nullable androidPackageName; -/// The minimum Android version supported, if available. -@property(nonatomic, copy) NSString* _Nullable androidMinimumVersion; -/// Indicates whether the Android app should be installed on a device where it -/// is not available. -@property(nonatomic) BOOL androidInstallIfNotAvailable; -/// The out of band custom domain for handling code in app. -@property(nonatomic, copy) NSString* _Nullable linkDomain; -/// Sets the iOS bundle ID. -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -/// Sets the Android package name, the flag to indicate whether or not to -/// install the app, and the minimum Android version supported. If -/// installIfNotAvailable is set to true and the link -/// is opened on an android device, it will try to install the app if not -/// already available. Otherwise the web URL is used. -/// \param androidPackageName The Android package name. -/// -/// \param installIfNotAvailable Indicates whether or not the app should be -/// installed if not available. -/// -/// \param minimumVersion The minimum version of Android supported. -/// -- (void)setAndroidPackageName:(NSString* _Nonnull)androidPackageName - installIfNotAvailable:(BOOL)installIfNotAvailable - minimumVersion:(NSString* _Nullable)minimumVersion; -@end - -/// This class will allow developers to easily extract information about out of -/// band links. -SWIFT_CLASS_NAMED("ActionCodeURL") -@interface FIRActionCodeURL : NSObject -/// Returns the API key from the link. nil, if not provided. -@property(nonatomic, readonly, copy) NSString* _Nullable APIKey; -/// Returns the mode of oob action. -/// The property will be of ActionCodeOperation type. -/// It will return .unknown if no oob action is provided. -@property(nonatomic, readonly) enum FIRActionCodeOperation operation; -/// Returns the email action code from the link. nil, if not provided. -@property(nonatomic, readonly, copy) NSString* _Nullable code; -/// Returns the continue URL from the link. nil, if not provided. -@property(nonatomic, readonly, copy) NSURL* _Nullable continueURL; -/// Returns the language code from the link. nil, if not provided. -@property(nonatomic, readonly, copy) NSString* _Nullable languageCode; -/// Construct an ActionCodeURL from an out of band link (e.g. email -/// link). -/// \param link The oob link string used to construct the action code URL. -/// -/// -/// returns: -/// The ActionCodeURL object constructed based on the oob link provided. -- (nullable instancetype)actionCodeURLWithLink:(NSString* _Nonnull)link - OBJC_DESIGNATED_INITIALIZER SWIFT_METHOD_FAMILY(init); -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@class NSCoder; -SWIFT_CLASS_NAMED("AdditionalUserInfo") -@interface FIRAdditionalUserInfo : NSObject -/// The provider identifier. -@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; -/// Dictionary containing the additional IdP specific information. -@property(nonatomic, readonly, copy) - NSDictionary* _Nullable profile; -/// The name of the user. -@property(nonatomic, readonly, copy) NSString* _Nullable username; -/// Indicates whether or not the current user was signed in for the first time. -@property(nonatomic, readonly) BOOL isNewUser; -/// Indicates whether or not the current user was signed in for the first time. -- (BOOL)newUser SWIFT_WARN_UNUSED_RESULT; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)aDecoder - OBJC_DESIGNATED_INITIALIZER; -- (void)encodeWithCoder:(NSCoder* _Nonnull)aCoder; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRAdditionalUserInfo (SWIFT_EXTENSION (FirebaseAuth)) < - NSSecureCoding> -@end - -@class FIRApp; -@class FIRUser; -@class FIRAuthSettings; -@class FIRAuthDataResult; -@protocol FIRFederatedAuthProvider; -@protocol FIRAuthUIDelegate; -@class FIRAuthCredential; -@protocol NSObject; -@class NSError; -@class NSData; -enum FIRAuthAPNSTokenType : NSInteger; -/// Manages authentication for Firebase apps. -/// This class is thread-safe. -SWIFT_CLASS_NAMED("Auth") -@interface FIRAuth : NSObject -/// Gets the auth object for the default Firebase app. -/// The default Firebase app must have already been configured or an exception -/// will be raised. -+ (FIRAuth* _Nonnull)auth SWIFT_WARN_UNUSED_RESULT; -/// Gets the auth object for a FirebaseApp. -/// \param app The app for which to retrieve the associated Auth -/// instance. -/// -/// -/// returns: -/// The Auth instance associated with the given app. -+ (FIRAuth* _Nonnull)authWithApp:(FIRApp* _Nonnull)app SWIFT_WARN_UNUSED_RESULT; -/// Gets the FirebaseApp object that this auth object is connected -/// to. -@property(nonatomic, readonly, weak) FIRApp* _Nullable app; -/// Synchronously gets the cached current user, or null if there is none. -@property(nonatomic, readonly, strong) FIRUser* _Nullable currentUser; -/// The current user language code. -/// This property can be set to the app’s current language by -/// calling useAppLanguage(). -/// The string used to set this property must be a language code that follows -/// BCP 47. -@property(nonatomic, copy) NSString* _Nullable languageCode; -/// Contains settings related to the auth object. -@property(nonatomic, strong) FIRAuthSettings* _Nullable settings; -/// The current user access group that the Auth instance is using. -/// Default is nil. -@property(nonatomic, readonly, copy) NSString* _Nullable userAccessGroup; -/// Contains shareAuthStateAcrossDevices setting related to the auth object. -/// If userAccessGroup is not set, setting shareAuthStateAcrossDevices will -/// have no effect. You should set shareAuthStateAcrossDevices to its desired -/// state and then set the userAccessGroup after. -@property(nonatomic) BOOL shareAuthStateAcrossDevices; -/// The tenant ID of the auth instance. nil if none is available. -@property(nonatomic, copy) NSString* _Nullable tenantID; -/// The custom authentication domain used to handle all sign-in redirects. -/// End-users will see -/// this domain when signing in. This domain must be allowlisted in the Firebase -/// Console. -@property(nonatomic, copy) NSString* _Nullable customAuthDomain; -/// Sets the currentUser on the receiver to the provided user -/// object. -/// \param user The user object to be set as the current user of the calling -/// Auth instance. -/// -/// \param completion Optionally; a block invoked after the user of the calling -/// Auth instance has been updated or an error was encountered. -/// -- (void)updateCurrentUser:(FIRUser* _Nullable)user - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// [Deprecated] Fetches the list of all sign-in methods previously used for the -/// provided email address. This method returns an empty list when Email -/// Enumeration Protection is enabled, irrespective of the number of -/// authentication methods available for the given email. Possible error codes: -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -/// \param email The email address for which to obtain a list of sign-in -/// methods. -/// -/// \param completion Optionally; a block which is invoked when the list of sign -/// in methods for the specified email address is ready or an error was -/// encountered. Invoked asynchronously on the main thread in the future. -/// -- (void)fetchSignInMethodsForEmail:(NSString* _Nonnull)email - completion: - (void (^_Nullable)(NSArray* _Nullable, - NSError* _Nullable))completion - SWIFT_DEPRECATED_MSG( - "`fetchSignInMethods` is deprecated and will be removed in a future " - "release. This method returns an empty list when Email Enumeration " - "Protection is enabled."); -/// Signs in using an email address and password. -/// When Email -/// Enumeration Protection is enabled, this method fails with an error in -/// case of an invalid email/password. Possible error codes:
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that email and -/// password accounts are not enabled. Enable them in the Auth section of -/// the Firebase console. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// sign in with an incorrect password. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
-/// \param email The user’s email address. -/// -/// \param password The user’s password. -/// -/// \param completion Optionally; a block which is invoked when the sign in flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithEmail:(NSString* _Nonnull)email - password:(NSString* _Nonnull)password - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Signs in using an email address and email sign-in link. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that email and -/// password accounts are not enabled. Enable them in the Auth section of -/// the Firebase console. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// sign in with an incorrect password. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
-/// \param email The user’s email address. -/// -/// \param link The email sign-in link. -/// -/// \param completion Optionally; a block which is invoked when the sign in flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithEmail:(NSString* _Nonnull)email - link:(NSString* _Nonnull)link - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Signs in using the provided auth provider instance. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that email and -/// password accounts are not enabled. Enable them in the Auth section of -/// the Firebase console. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// sign in with an incorrect password. -///
  • -///
  • -/// AuthErrorCodeWebNetworkRequestFailed - Indicates that a -/// network request within a SFSafariViewController or WKWebView failed. -///
  • -///
  • -/// AuthErrorCodeWebInternalError - Indicates that an internal -/// error occurred within a SFSafariViewController or WKWebView. -///
  • -///
  • -/// AuthErrorCodeWebSignInUserInteractionFailure - Indicates a -/// general failure during a web sign-in flow. -///
  • -///
  • -/// AuthErrorCodeWebContextAlreadyPresented - Indicates that an -/// attempt was made to present a new web context while one was already -/// being presented. -///
  • -///
  • -/// AuthErrorCodeWebContextCancelled - Indicates that the URL -/// presentation was cancelled prematurely by the user. -///
  • -///
  • -/// AuthErrorCodeAccountExistsWithDifferentCredential - -/// Indicates the email asserted by the credential (e.g. the email in a -/// Facebook access token) is already in use by an existing account, that -/// cannot be authenticated with this sign-in method. Call -/// fetchProvidersForEmail for this user’s email and then prompt them to -/// sign in with any of the sign-in providers returned. This error will only -/// be thrown if the “One account per email address” setting is enabled in -/// the Firebase console, under Auth settings. -///
  • -///
-/// \param provider An instance of an auth provider used to initiate the sign-in -/// flow. -/// -/// \param uiDelegate Optionally an instance of a class conforming to the -/// AuthUIDelegate protocol, this is used for presenting the web context. If -/// nil, a default AuthUIDelegate will be used. -/// -/// \param completion Optionally; a block which is invoked when the sign in flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithProvider:(id _Nonnull)provider - UIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion - SWIFT_AVAILABILITY(watchos, unavailable) - SWIFT_AVAILABILITY(macos, unavailable) - SWIFT_AVAILABILITY(tvos, unavailable); -/// Asynchronously signs in to Firebase with the given 3rd-party credentials -/// (e.g. a Facebook login Access Token, a Google ID Token/Access Token pair, -/// etc.) and returns additional identity provider data. Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidCredential - Indicates the supplied -/// credential is invalid. This could happen if it has expired or it is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that accounts -/// with the identity provider represented by the credential are not -/// enabled. Enable them in the Auth section of the Firebase console. -///
  • -///
  • -/// AuthErrorCodeAccountExistsWithDifferentCredential - -/// Indicates the email asserted by the credential (e.g. the email in a -/// Facebook access token) is already in use by an existing account, that -/// cannot be authenticated with this sign-in method. Call -/// fetchProvidersForEmail for this user’s email and then prompt them to -/// sign in with any of the sign-in providers returned. This error will only -/// be thrown if the “One account per email address” setting is enabled in -/// the Firebase console, under Auth settings. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// sign in with an incorrect password, if credential is of the type -/// EmailPasswordAuthCredential. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeMissingVerificationID - Indicates that the -/// phone auth credential was created with an empty verification ID. -///
  • -///
  • -/// AuthErrorCodeMissingVerificationCode - Indicates that the -/// phone auth credential was created with an empty verification code. -///
  • -///
  • -/// AuthErrorCodeInvalidVerificationCode - Indicates that the -/// phone auth credential was created with an invalid verification Code. -///
  • -///
  • -/// AuthErrorCodeInvalidVerificationID - Indicates that the -/// phone auth credential was created with an invalid verification ID. -///
  • -///
  • -/// AuthErrorCodeSessionExpired - Indicates that the SMS code -/// has expired. -///
  • -///
-/// \param credential The credential supplied by the IdP. -/// -/// \param completion Optionally; a block which is invoked when the sign in flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithCredential:(FIRAuthCredential* _Nonnull)credential - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Asynchronously creates and becomes an anonymous user. -/// If there is already an anonymous user signed in, that user will be returned -/// instead. If there is any other existing user signed in, that user will be -/// signed out. Possible error codes:
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that anonymous -/// accounts are not enabled. Enable them in the Auth section of the -/// Firebase console. -///
  • -///
-/// \param completion Optionally; a block which is invoked when the sign in -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInAnonymouslyWithCompletion: - (void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Asynchronously creates and becomes an anonymous user. -/// If there is already an anonymous user signed in, that user will be returned -/// instead. If there is any other existing user signed in, that user will be -/// signed out. Possible error codes:
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that anonymous -/// accounts are not enabled. Enable them in the Auth section of the -/// Firebase console. -///
  • -///
-/// -/// returns: -/// The AuthDataResult after the successful signin. -- (void)signInAnonymouslyWithCompletionHandler: - (void (^_Nonnull)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completionHandler; -/// Asynchronously signs in to Firebase with the given Auth token. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidCustomToken - Indicates a validation -/// error with the custom token. -///
  • -///
  • -/// AuthErrorCodeCustomTokenMismatch - Indicates the service -/// account and the API key belong to different projects. -///
  • -///
-/// \param token A self-signed custom auth token. -/// -/// \param completion Optionally; a block which is invoked when the sign in -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithCustomToken:(NSString* _Nonnull)token - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Creates and, on success, signs in a user with the given email address and -/// password. Possible error codes:
    -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeEmailAlreadyInUse - Indicates the email used -/// to attempt sign up already exists. Call fetchProvidersForEmail to check -/// which sign-in mechanisms the user used, and prompt the user to sign in -/// with one of those. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that email and -/// password accounts are not enabled. Enable them in the Auth section of -/// the Firebase console. -///
  • -///
  • -/// AuthErrorCodeWeakPassword - Indicates an attempt to set a -/// password that is considered too weak. The -/// NSLocalizedFailureReasonErrorKey field in the NSError.userInfo -/// dictionary object will contain more detailed explanation that can be -/// shown to the user. -///
  • -///
-/// \param email The user’s email address. -/// -/// \param password The user’s desired password. -/// -/// \param completion Optionally; a block which is invoked when the sign up flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)createUserWithEmail:(NSString* _Nonnull)email - password:(NSString* _Nonnull)password - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Resets the password given a code sent to the user outside of the app and a -/// new password for the user. Possible error codes:
    -///
  • -/// AuthErrorCodeWeakPassword - Indicates an attempt to set a -/// password that is considered too weak. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates the -/// administrator disabled sign in with the specified identity provider. -///
  • -///
  • -/// AuthErrorCodeExpiredActionCode - Indicates the OOB code is -/// expired. -///
  • -///
  • -/// AuthErrorCodeInvalidActionCode - Indicates the OOB code is -/// invalid. -///
  • -///
-/// \param code The reset code. -/// -/// \param newPassword The new password. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)confirmPasswordResetWithCode:(NSString* _Nonnull)code - newPassword:(NSString* _Nonnull)newPassword - completion: - (void (^_Nonnull)(NSError* _Nullable))completion; -/// Checks the validity of an out of band code. -/// \param code The out of band code to check validity. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)checkActionCode:(NSString* _Nonnull)code - completion:(void (^_Nonnull)(FIRActionCodeInfo* _Nullable, - NSError* _Nullable))completion; -/// Checks the validity of a verify password reset code. -/// \param code The password reset code to be verified. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)verifyPasswordResetCode:(NSString* _Nonnull)code - completion: - (void (^_Nonnull)(NSString* _Nullable, - NSError* _Nullable))completion; -/// Applies out of band code. -/// This method will not work for out of band codes which require an additional -/// parameter, such as password reset code. -/// \param code The out of band code to be applied. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)applyActionCode:(NSString* _Nonnull)code - completion:(void (^_Nonnull)(NSError* _Nullable))completion; -/// Initiates a password reset for the given email address. -/// This method does not throw an -/// error when there’s no user account with the given email address and Email -/// Enumeration Protection is enabled. Possible error codes:
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
-/// \param email The email address of the user. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)sendPasswordResetWithEmail:(NSString* _Nonnull)email - completion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Initiates a password reset for the given email address and -/// ActionCodeSettings object. This method does not throw an error -/// when there’s no user account with the given email address and Email -/// Enumeration Protection is enabled. Possible error codes:
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
  • -/// AuthErrorCodeMissingIosBundleID - Indicates that the iOS -/// bundle ID is missing when handleCodeInApp is set to true. -///
  • -///
  • -/// AuthErrorCodeMissingAndroidPackageName - Indicates that the -/// android package name is missing when the androidInstallApp -/// flag is set to true. -///
  • -///
  • -/// AuthErrorCodeUnauthorizedDomain - Indicates that the domain -/// specified in the continue URL is not allowlisted in the Firebase -/// console. -///
  • -///
  • -/// AuthErrorCodeInvalidContinueURI - Indicates that the domain -/// specified in the continue URL is not valid. -///
  • -///
-/// \param email The email address of the user. -/// -/// \param actionCodeSettings An ActionCodeSettings object -/// containing settings related to handling action codes. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)sendPasswordResetWithEmail:(NSString* _Nonnull)email - actionCodeSettings: - (FIRActionCodeSettings* _Nullable)actionCodeSettings - completion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Sends a sign in with email link to provided email address. -/// \param email The email address of the user. -/// -/// \param actionCodeSettings An ActionCodeSettings object -/// containing settings related to handling action codes. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)sendSignInLinkToEmail:(NSString* _Nonnull)email - actionCodeSettings: - (FIRActionCodeSettings* _Nonnull)actionCodeSettings - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Signs out the current user. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeKeychainError - Indicates an error occurred -/// when accessing the keychain. The -/// NSLocalizedFailureReasonErrorKey field in the -/// userInfo dictionary will contain more information about the -/// error encountered. -///
  • -///
-- (BOOL)signOut:(NSError* _Nullable* _Nullable)error; -/// Checks if link is an email sign-in link. -/// \param link The email sign-in link. -/// -/// -/// returns: -/// true when the link passed matches the expected format of an -/// email sign-in link. -- (BOOL)isSignInWithEmailLink:(NSString* _Nonnull)link SWIFT_WARN_UNUSED_RESULT; -/// Initializes reCAPTCHA using the settings configured for the project or -/// tenant. If you change the tenant ID of the Auth instance, the -/// configuration will be reloaded. -- (void)initializeRecaptchaConfigWithCompletion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Registers a block as an “auth state did change” listener. -/// To be invoked when: -///
    -///
  • -/// The block is registered as a listener, -///
  • -///
  • -/// A user with a different UID from the current user has signed in, or -///
  • -///
  • -/// The current user has signed out. -///
  • -///
-/// The block is invoked immediately after adding it according to its standard -/// invocation semantics, asynchronously on the main thread. Users should pay -/// special attention to making sure the block does not inadvertently retain -/// objects which should not be retained by the long-lived block. The block -/// itself will be retained by Auth until it is unregistered or -/// until the Auth instance is otherwise deallocated. -/// \param listener The block to be invoked. The block is always invoked -/// asynchronously on the main thread, even for it’s initial invocation after -/// having been added as a listener. -/// -/// -/// returns: -/// A handle useful for manually unregistering the block as a listener. -- (id _Nonnull)addAuthStateDidChangeListener: - (void (^_Nonnull)(FIRAuth* _Nonnull, FIRUser* _Nullable))listener - SWIFT_WARN_UNUSED_RESULT; -/// Unregisters a block as an “auth state did change” listener. -/// \param listenerHandle The handle for the listener. -/// -- (void)removeAuthStateDidChangeListener:(id _Nonnull)listenerHandle; -/// Registers a block as an “ID token did change” listener. -/// To be invoked when: -///
    -///
  • -/// The block is registered as a listener, -///
  • -///
  • -/// A user with a different UID from the current user has signed in, -///
  • -///
  • -/// The ID token of the current user has been refreshed, or -///
  • -///
  • -/// The current user has signed out. -///
  • -///
-/// The block is invoked immediately after adding it according to its standard -/// invocation semantics, asynchronously on the main thread. Users should pay -/// special attention to making sure the block does not inadvertently retain -/// objects which should not be retained by the long-lived block. The block -/// itself will be retained by Auth until it is unregistered or -/// until the Auth instance is otherwise deallocated. -/// \param listener The block to be invoked. The block is always invoked -/// asynchronously on the main thread, even for it’s initial invocation after -/// having been added as a listener. -/// -/// -/// returns: -/// A handle useful for manually unregistering the block as a listener. -- (id _Nonnull)addIDTokenDidChangeListener: - (void (^_Nonnull)(FIRAuth* _Nonnull, FIRUser* _Nullable))listener - SWIFT_WARN_UNUSED_RESULT; -/// Unregisters a block as an “ID token did change” listener. -/// \param listenerHandle The handle for the listener. -/// -- (void)removeIDTokenDidChangeListener:(id _Nonnull)listenerHandle; -/// Sets languageCode to the app’s current language. -- (void)useAppLanguage; -/// Configures Firebase Auth to connect to an emulated host instead of the -/// remote backend. -- (void)useEmulatorWithHost:(NSString* _Nonnull)host port:(NSInteger)port; -/// Revoke the users token with authorization code. -/// \param authorizationCode The authorization code used to perform the -/// revocation. -/// -/// \param completion (Optional) the block invoked when the request to revoke -/// the token is complete, or fails. Invoked asynchronously on the main thread -/// in the future. -/// -- (void)revokeTokenWithAuthorizationCode:(NSString* _Nonnull)authorizationCode - completion:(void (^_Nullable)(NSError* _Nullable)) - completion; -/// Switch userAccessGroup and current user to the given accessGroup and the -/// user stored in it. -- (BOOL)useUserAccessGroup:(NSString* _Nullable)accessGroup - error:(NSError* _Nullable* _Nullable)error; -/// Get the stored user in the given accessGroup. -/// This API is not supported on tvOS when -/// shareAuthStateAcrossDevices is set to true. and -/// will return nil. Please refer to -/// https://github.com/firebase/firebase-ios-sdk/issues/8878 for details. -- (FIRUser* _Nullable) - getStoredUserForAccessGroup:(NSString* _Nullable)accessGroup - error:(NSError* _Nullable* _Nullable)outError - SWIFT_WARN_UNUSED_RESULT; -/// The APNs token used for phone number authentication. -/// The type of the token (production or sandbox) will be automatically -/// detected based on your provisioning profile. -/// This property is available on iOS only. -/// If swizzling is disabled, the APNs Token must be set for phone number auth -/// to work, by either setting this property or by calling -/// setAPNSToken(_:type:). -@property(nonatomic, readonly, copy) NSData* _Nullable APNSToken; -/// Sets the APNs token along with its type. -/// This method is available on iOS only. -/// If swizzling is disabled, the APNs Token must be set for phone number auth -/// to work, by either setting calling this method or by setting the -/// APNSToken property. -- (void)setAPNSToken:(NSData* _Nonnull)token - type:(enum FIRAuthAPNSTokenType)type; -/// Whether the specific remote notification is handled by Auth . -/// This method is available on iOS only. -/// If swizzling is disabled, related remote notifications must be forwarded to -/// this method for phone number auth to work. -/// \param userInfo A dictionary that contains information related to the -/// notification in question. -/// -/// -/// returns: -/// Whether or the notification is handled. A return value of true -/// means the notification is for Firebase Auth so the caller should ignore the -/// notification from further processing, and false means the -/// notification is for the app (or another library) so the caller should -/// continue handling this notification as usual. -- (BOOL)canHandleNotification:(NSDictionary* _Nonnull)userInfo - SWIFT_WARN_UNUSED_RESULT; -/// Whether the specific URL is handled by Auth . -/// This method is available on iOS only. -/// If swizzling is disabled, URLs received by the application delegate must be -/// forwarded to this method for phone number auth to work. -/// \param url The URL received by the application delegate from any of the -/// openURL method. -/// -/// -/// returns: -/// Whether or the URL is handled. true means the URL is for -/// Firebase Auth so the caller should ignore the URL from further processing, -/// and false means the the URL is for the app (or another library) -/// so the caller should continue handling this URL as usual. -- (BOOL)canHandleURL:(NSURL* _Nonnull)url SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@class UIScene; -@class UIOpenURLContext; -@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) -- (void)scene:(UIScene* _Nonnull)scene - openURLContexts:(NSSet* _Nonnull)URLContexts; -@end - -@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. This method is not for public use. It is for Firebase clients -/// of AuthInterop. -- (void)getTokenForcingRefresh:(BOOL)forceRefresh - withCallback:(void (^_Nonnull)(NSString* _Nullable, - NSError* _Nullable))callback; -/// Get the current Auth user’s UID. Returns nil if there is no user signed in. -/// This method is not for public use. It is for Firebase clients of -/// AuthInterop. -- (NSString* _Nullable)getUserID SWIFT_WARN_UNUSED_RESULT; -@end - -@class UIApplication; -@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) -- (void)application:(UIApplication* _Nonnull)application - didRegisterForRemoteNotificationsWithDeviceToken: - (NSData* _Nonnull)deviceToken; -- (void)application:(UIApplication* _Nonnull)application - didFailToRegisterForRemoteNotificationsWithError:(NSError* _Nonnull)error; -- (void)application:(UIApplication* _Nonnull)application - didReceiveRemoteNotification:(NSDictionary* _Nonnull)userInfo - fetchCompletionHandler: - (void (^_Nonnull)(UIBackgroundFetchResult))completionHandler; -- (BOOL)application:(UIApplication* _Nonnull)application - openURL:(NSURL* _Nonnull)url - options:(NSDictionary* _Nonnull) - options SWIFT_WARN_UNUSED_RESULT; -@end - -/// The APNs token type for the app. -/// This enum is available on iOS, macOS Catalyst, tvOS, and watchOS only. -typedef SWIFT_ENUM_NAMED(NSInteger, FIRAuthAPNSTokenType, "AuthAPNSTokenType", - open){ - /// Unknown token type. - /// The actual token type will be detected from the provisioning profile in - /// the app’s bundle. - FIRAuthAPNSTokenTypeUnknown = 0, - /// Sandbox token type. - FIRAuthAPNSTokenTypeSandbox = 1, - /// Production token type. - FIRAuthAPNSTokenTypeProd = 2, -}; - -/// Public representation of a credential. -SWIFT_CLASS_NAMED("AuthCredential") -@interface FIRAuthCredential : NSObject -/// The name of the identity provider for the credential. -@property(nonatomic, readonly, copy) NSString* _Nonnull provider; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@class FIROAuthCredential; -/// Helper object that contains the result of a successful sign-in, link and -/// reauthenticate action. It contains references to a User -/// instance and an AdditionalUserInfo instance. -SWIFT_CLASS_NAMED("AuthDataResult") -@interface FIRAuthDataResult : NSObject -/// The signed in user. -@property(nonatomic, readonly, strong) FIRUser* _Nonnull user; -/// If available, contains the additional IdP specific information about signed -/// in user. -@property(nonatomic, readonly, strong) - FIRAdditionalUserInfo* _Nullable additionalUserInfo; -/// This property will be non-nil after a successful headful-lite sign-in via -/// signIn(with:uiDelegate:completion:). -/// May be used to obtain the accessToken and/or IDToken -/// pertaining to a recently signed-in user. -@property(nonatomic, readonly, strong) FIROAuthCredential* _Nullable credential; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRAuthDataResult (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// Error codes used by Firebase Auth. -typedef SWIFT_ENUM_NAMED(NSInteger, FIRAuthErrorCode, "AuthErrorCode", open){ - /// Indicates a validation error with the custom token. - FIRAuthErrorCodeInvalidCustomToken = 17000, - /// Indicates the service account and the API key belong to different - /// projects. - FIRAuthErrorCodeCustomTokenMismatch = 17002, - /// Indicates the IDP token or requestUri is invalid. - FIRAuthErrorCodeInvalidCredential = 17004, - /// Indicates the user’s account is disabled on the server. - FIRAuthErrorCodeUserDisabled = 17005, - /// Indicates the administrator disabled sign in with the specified identity - /// provider. - FIRAuthErrorCodeOperationNotAllowed = 17006, - /// Indicates the email used to attempt a sign up is already in use. - FIRAuthErrorCodeEmailAlreadyInUse = 17007, - /// Indicates the email is invalid. - FIRAuthErrorCodeInvalidEmail = 17008, - /// Indicates the user attempted sign in with a wrong password. - FIRAuthErrorCodeWrongPassword = 17009, - /// Indicates that too many requests were made to a server method. - FIRAuthErrorCodeTooManyRequests = 17010, - /// Indicates the user account was not found. - FIRAuthErrorCodeUserNotFound = 17011, - /// Indicates account linking is required. - FIRAuthErrorCodeAccountExistsWithDifferentCredential = 17012, - /// Indicates the user has attempted to change email or password more than 5 - /// minutes after - /// signing in. - FIRAuthErrorCodeRequiresRecentLogin = 17014, - /// Indicates an attempt to link a provider to which the account is already - /// linked. - FIRAuthErrorCodeProviderAlreadyLinked = 17015, - /// Indicates an attempt to unlink a provider that is not linked. - FIRAuthErrorCodeNoSuchProvider = 17016, - /// Indicates user’s saved auth credential is invalid the user needs to sign - /// in again. - FIRAuthErrorCodeInvalidUserToken = 17017, - /// Indicates a network error occurred (such as a timeout interrupted - /// connection or - /// unreachable host). These types of errors are often recoverable with a - /// retry. The - /// NSUnderlyingError field in the - /// NSError.userInfo dictionary will contain the error - /// encountered. - FIRAuthErrorCodeNetworkError = 17020, - /// Indicates the saved token has expired for example the user may have - /// changed account - /// password on another device. The user needs to sign in again on the - /// device that made this - /// request. - FIRAuthErrorCodeUserTokenExpired = 17021, - /// Indicates an invalid API key was supplied in the request. - FIRAuthErrorCodeInvalidAPIKey = 17023, - /// Indicates that an attempt was made to reauthenticate with a user which - /// is not the current - /// user. - FIRAuthErrorCodeUserMismatch = 17024, - /// Indicates an attempt to link with a credential that has already been - /// linked with a - /// different Firebase account. - FIRAuthErrorCodeCredentialAlreadyInUse = 17025, - /// Indicates an attempt to set a password that is considered too weak. - FIRAuthErrorCodeWeakPassword = 17026, - /// Indicates the App is not authorized to use Firebase Authentication with - /// the - /// provided API Key. - FIRAuthErrorCodeAppNotAuthorized = 17028, - /// Indicates the OOB code is expired. - FIRAuthErrorCodeExpiredActionCode = 17029, - /// Indicates the OOB code is invalid. - FIRAuthErrorCodeInvalidActionCode = 17030, - /// Indicates that there are invalid parameters in the payload during a - /// “send password reset email” attempt. - FIRAuthErrorCodeInvalidMessagePayload = 17031, - /// Indicates that the sender email is invalid during a “send password reset - /// email” attempt. - FIRAuthErrorCodeInvalidSender = 17032, - /// Indicates that the recipient email is invalid. - FIRAuthErrorCodeInvalidRecipientEmail = 17033, - /// Indicates that an email address was expected but one was not provided. - FIRAuthErrorCodeMissingEmail = 17034, - /// Indicates that the iOS bundle ID is missing when a iOS App Store ID is - /// provided. - FIRAuthErrorCodeMissingIosBundleID = 17036, - /// Indicates that the android package name is missing when the - /// androidInstallApp flag is set - /// to true. - FIRAuthErrorCodeMissingAndroidPackageName = 17037, - /// Indicates that the domain specified in the continue URL is not - /// allowlisted in the Firebase - /// console. - FIRAuthErrorCodeUnauthorizedDomain = 17038, - /// Indicates that the domain specified in the continue URI is not valid. - FIRAuthErrorCodeInvalidContinueURI = 17039, - /// Indicates that a continue URI was not provided in a request to the - /// backend which requires one. - FIRAuthErrorCodeMissingContinueURI = 17040, - /// Indicates that a phone number was not provided in a call to - /// verifyPhoneNumber:completion:. - FIRAuthErrorCodeMissingPhoneNumber = 17041, - /// Indicates that an invalid phone number was provided in a call to - /// verifyPhoneNumber:completion:. - FIRAuthErrorCodeInvalidPhoneNumber = 17042, - /// Indicates that the phone auth credential was created with an empty - /// verification code. - FIRAuthErrorCodeMissingVerificationCode = 17043, - /// Indicates that an invalid verification code was used in the - /// verifyPhoneNumber request. - FIRAuthErrorCodeInvalidVerificationCode = 17044, - /// Indicates that the phone auth credential was created with an empty - /// verification ID. - FIRAuthErrorCodeMissingVerificationID = 17045, - /// Indicates that an invalid verification ID was used in the - /// verifyPhoneNumber request. - FIRAuthErrorCodeInvalidVerificationID = 17046, - /// Indicates that the APNS device token is missing in the verifyClient - /// request. - FIRAuthErrorCodeMissingAppCredential = 17047, - /// Indicates that an invalid APNS device token was used in the verifyClient - /// request. - FIRAuthErrorCodeInvalidAppCredential = 17048, - /// Indicates that the SMS code has expired. - FIRAuthErrorCodeSessionExpired = 17051, - /// Indicates that the quota of SMS messages for a given project has been - /// exceeded. - FIRAuthErrorCodeQuotaExceeded = 17052, - /// Indicates that the APNs device token could not be obtained. The app may - /// not have set up - /// remote notification correctly or may fail to forward the APNs device - /// token to Auth - /// if app delegate swizzling is disabled. - FIRAuthErrorCodeMissingAppToken = 17053, - /// Indicates that the app fails to forward remote notification to FIRAuth. - FIRAuthErrorCodeNotificationNotForwarded = 17054, - /// Indicates that the app could not be verified by Firebase during phone - /// number authentication. - FIRAuthErrorCodeAppNotVerified = 17055, - /// Indicates that the reCAPTCHA token is not valid. - FIRAuthErrorCodeCaptchaCheckFailed = 17056, - /// Indicates that an attempt was made to present a new web context while - /// one was already being - /// presented. - FIRAuthErrorCodeWebContextAlreadyPresented = 17057, - /// Indicates that the URL presentation was cancelled prematurely by the - /// user. - FIRAuthErrorCodeWebContextCancelled = 17058, - /// Indicates a general failure during the app verification flow. - FIRAuthErrorCodeAppVerificationUserInteractionFailure = 17059, - /// Indicates that the clientID used to invoke a web flow is invalid. - FIRAuthErrorCodeInvalidClientID = 17060, - /// Indicates that a network request within a SFSafariViewController or - /// WKWebView failed. - FIRAuthErrorCodeWebNetworkRequestFailed = 17061, - /// Indicates that an internal error occurred within a - /// SFSafariViewController or WKWebView. - FIRAuthErrorCodeWebInternalError = 17062, - /// Indicates a general failure during a web sign-in flow. - FIRAuthErrorCodeWebSignInUserInteractionFailure = 17063, - /// Indicates that the local player was not authenticated prior to - /// attempting Game Center signin. - FIRAuthErrorCodeLocalPlayerNotAuthenticated = 17066, - /// Indicates that a non-null user was expected as an argument to the - /// operation but a null - /// user was provided. - FIRAuthErrorCodeNullUser = 17067, - /// Represents the error code for when the given provider id for a web - /// operation is invalid. - FIRAuthErrorCodeInvalidProviderID = 17071, - /// Represents the error code for when an attempt is made to update the - /// current user with a - /// tenantId that differs from the current FirebaseAuth instance’s tenantId. - FIRAuthErrorCodeTenantIDMismatch = 17072, - /// Represents the error code for when a request is made to the backend with - /// an associated tenant - /// ID for an operation that does not support multi-tenancy. - FIRAuthErrorCodeUnsupportedTenantOperation = 17073, - /// Indicates that the provided Firebase Hosting Link domain is not owned by - /// the current project. - FIRAuthErrorCodeInvalidHostingLinkDomain = 17214, - /// Indicates that the credential is rejected because it’s malformed or - /// mismatching. - FIRAuthErrorCodeRejectedCredential = 17075, - /// Indicates that the GameKit framework is not linked prior to attempting - /// Game Center signin. - FIRAuthErrorCodeGameKitNotLinked = 17076, - /// Indicates that the second factor is required for signin. - FIRAuthErrorCodeSecondFactorRequired = 17078, - /// Indicates that the multi factor session is missing. - FIRAuthErrorCodeMissingMultiFactorSession = 17081, - /// Indicates that the multi factor info is missing. - FIRAuthErrorCodeMissingMultiFactorInfo = 17082, - /// Indicates that the multi factor session is invalid. - FIRAuthErrorCodeInvalidMultiFactorSession = 17083, - /// Indicates that the multi factor info is not found. - FIRAuthErrorCodeMultiFactorInfoNotFound = 17084, - /// Indicates that the operation is admin restricted. - FIRAuthErrorCodeAdminRestrictedOperation = 17085, - /// Indicates that the email is required for verification. - FIRAuthErrorCodeUnverifiedEmail = 17086, - /// Indicates that the second factor is already enrolled. - FIRAuthErrorCodeSecondFactorAlreadyEnrolled = 17087, - /// Indicates that the maximum second factor count is exceeded. - FIRAuthErrorCodeMaximumSecondFactorCountExceeded = 17088, - /// Indicates that the first factor is not supported. - FIRAuthErrorCodeUnsupportedFirstFactor = 17089, - /// Indicates that the a verified email is required to changed to. - FIRAuthErrorCodeEmailChangeNeedsVerification = 17090, - /// Indicates that the request does not contain a client identifier. - FIRAuthErrorCodeMissingClientIdentifier = 17093, - /// Indicates that the nonce is missing or invalid. - FIRAuthErrorCodeMissingOrInvalidNonce = 17094, - /// Raised when a Cloud Function returns a blocking error. Will include a - /// message returned from - /// the function. - FIRAuthErrorCodeBlockingCloudFunctionError = 17105, - /// Indicates that reCAPTCHA Enterprise integration is not enabled for this - /// project. - FIRAuthErrorCodeRecaptchaNotEnabled = 17200, - /// Indicates that the reCAPTCHA token is missing from the backend request. - FIRAuthErrorCodeMissingRecaptchaToken = 17201, - /// Indicates that the reCAPTCHA token sent with the backend request is - /// invalid. - FIRAuthErrorCodeInvalidRecaptchaToken = 17202, - /// Indicates that the requested reCAPTCHA action is invalid. - FIRAuthErrorCodeInvalidRecaptchaAction = 17203, - /// Indicates that the client type is missing from the request. - FIRAuthErrorCodeMissingClientType = 17204, - /// Indicates that the reCAPTCHA version is missing from the request. - FIRAuthErrorCodeMissingRecaptchaVersion = 17205, - /// Indicates that the reCAPTCHA version sent to the backend is invalid. - FIRAuthErrorCodeInvalidRecaptchaVersion = 17206, - /// Indicates that the request type sent to the backend is invalid. - FIRAuthErrorCodeInvalidReqType = 17207, - /// Indicates that the reCAPTCHA SDK is not linked to the app. - FIRAuthErrorCodeRecaptchaSDKNotLinked = 17208, - /// Indicates that the reCAPTCHA SDK site key wasn’t found. - FIRAuthErrorCodeRecaptchaSiteKeyMissing = 17209, - /// Indicates that the reCAPTCHA SDK actions class failed to create. - FIRAuthErrorCodeRecaptchaActionCreationFailed = 17210, - /// Indicates that the password does not meet the project’s password policy. - FIRAuthErrorCodePasswordDoesNotMeetRequirements = 17211, - /// Indicates an error occurred while attempting to access the keychain. - FIRAuthErrorCodeKeychainError = 17995, - /// Indicates an internal error occurred. - FIRAuthErrorCodeInternalError = 17999, - /// Raised when a JWT fails to parse correctly. May be accompanied by an - /// underlying error - /// describing which step of the JWT parsing process failed. - FIRAuthErrorCodeMalformedJWT = 18000, -}; -static NSString* _Nonnull const FIRAuthErrorCodeDomain = - @"FirebaseAuth.AuthErrorCode"; - -/// Error Codes common to all API Methods: -SWIFT_CLASS_NAMED("AuthErrors") -@interface FIRAuthErrors : NSObject -/// The Firebase Auth error domain. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull domain;) -+ (NSString* _Nonnull)domain SWIFT_WARN_UNUSED_RESULT; -/// The name of the key for the error short string of an error code. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull userInfoNameKey;) -+ (NSString* _Nonnull)userInfoNameKey SWIFT_WARN_UNUSED_RESULT; -/// Error codes for Email operations -/// Errors with one of the following three codes: -///
    -///
  • -/// accountExistsWithDifferentCredential -///
  • -///
  • -/// credentialAlreadyInUse -///
  • -///
  • -/// emailAlreadyInUse` -///
  • -///
-/// may contain an NSError.userInfo dictionary object which -/// contains this key. The value associated with this key is an NSString of the -/// email address of the account that already exists. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull userInfoEmailKey;) -+ (NSString* _Nonnull)userInfoEmailKey SWIFT_WARN_UNUSED_RESULT; -/// The key used to read the updated Auth credential from the userInfo -/// dictionary of the NSError object returned. This is the updated auth -/// credential the developer should use for recovery if applicable. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull userInfoUpdatedCredentialKey;) -+ (NSString* _Nonnull)userInfoUpdatedCredentialKey SWIFT_WARN_UNUSED_RESULT; -/// The key used to read the MFA resolver from the userInfo dictionary of the -/// NSError object returned when 2FA is required for sign-incompletion. -SWIFT_CLASS_PROPERTY( - @property(nonatomic, class, readonly, copy) - NSString* _Nonnull FIRAuthErrorUserInfoMultiFactorResolverKey;) -+ (NSString* _Nonnull) - FIRAuthErrorUserInfoMultiFactorResolverKey SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -/// Determines settings related to an auth object. -SWIFT_CLASS_NAMED("AuthSettings") -@interface FIRAuthSettings : NSObject -/// Flag to determine whether app verification should be disabled for testing or -/// not. -@property(nonatomic) BOOL appVerificationDisabledForTesting; -/// Flag to determine whether app verification should be disabled for testing or -/// not. -@property(nonatomic) BOOL isAppVerificationDisabledForTesting; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -- (id _Nonnull)copyWithZone:(struct _NSZone* _Nullable)zone - SWIFT_WARN_UNUSED_RESULT; -@end - -@class NSDate; -/// A data class containing the ID token JWT string and other properties -/// associated with the token including the decoded payload claims. -SWIFT_CLASS_NAMED("AuthTokenResult") -@interface FIRAuthTokenResult : NSObject -/// Stores the JWT string of the ID token. -@property(nonatomic, copy) NSString* _Nonnull token; -/// Stores the ID token’s expiration date. -@property(nonatomic, copy) NSDate* _Nonnull expirationDate; -/// Stores the ID token’s authentication date. -/// This is the date the user was signed in and NOT the date the token was -/// refreshed. -@property(nonatomic, copy) NSDate* _Nonnull authDate; -/// Stores the date that the ID token was issued. -/// This is the date last refreshed and NOT the last authentication date. -@property(nonatomic, copy) NSDate* _Nonnull issuedAtDate; -/// Stores sign-in provider through which the token was obtained. -@property(nonatomic, copy) NSString* _Nonnull signInProvider; -/// Stores sign-in second factor through which the token was obtained. -@property(nonatomic, copy) NSString* _Nonnull signInSecondFactor; -/// Stores the entire payload of claims found on the ID token. -/// This includes the standard -/// reserved claims as well as custom claims set by the developer via the Admin -/// SDK. -@property(nonatomic, copy) NSDictionary* _Nonnull claims; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRAuthTokenResult (SWIFT_EXTENSION (FirebaseAuth)) -@end - -@class UIViewController; -/// A protocol to handle user interface interactions for Firebase Auth. -/// This protocol is available on iOS, macOS Catalyst, and tvOS only. -SWIFT_PROTOCOL_NAMED("AuthUIDelegate") -@protocol FIRAuthUIDelegate -/// If implemented, this method will be invoked when Firebase Auth needs to -/// display a view controller. -/// \param viewControllerToPresent The view controller to be presented. -/// -/// \param flag Decides whether the view controller presentation should be -/// animated. -/// -/// \param completion The block to execute after the presentation finishes. -/// This block has no return value and takes no parameters. -/// -- (void)presentViewController: - (UIViewController* _Nonnull)viewControllerToPresent - animated:(BOOL)flag - completion:(void (^_Nullable)(void))completion; -/// If implemented, this method will be invoked when Firebase Auth needs to -/// display a view controller. -/// \param flag Decides whether removing the view controller should be animated -/// or not. -/// -/// \param completion The block to execute after the presentation finishes. -/// This block has no return value and takes no parameters. -/// -- (void)dismissViewControllerAnimated:(BOOL)flag - completion:(void (^_Nullable)(void))completion; -@end - -/// A concrete implementation of AuthProvider for Email & Password -/// Sign In. -SWIFT_CLASS_NAMED("EmailAuthProvider") -@interface FIREmailAuthProvider : NSObject -/// A string constant identifying the email & password identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for an email & password sign in -/// \param email The user’s email address. -/// -/// \param password The user’s password. -/// -/// -/// returns: -/// An AuthCredential containing the email & password credential. -+ (FIRAuthCredential* _Nonnull)credentialWithEmail:(NSString* _Nonnull)email - password:(NSString* _Nonnull)password - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for an email & link sign in. -/// \param email The user’s email address. -/// -/// \param link The email sign-in link. -/// -/// -/// returns: -/// An AuthCredential containing the email & link credential. -+ (FIRAuthCredential* _Nonnull)credentialWithEmail:(NSString* _Nonnull)email - link:(NSString* _Nonnull)link - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -/// Utility class for constructing Facebook Sign In credentials. -SWIFT_CLASS_NAMED("FacebookAuthProvider") -@interface FIRFacebookAuthProvider : NSObject -/// A string constant identifying the Facebook identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a Facebook sign in. -/// \param accessToken The Access Token from Facebook. -/// -/// -/// returns: -/// An AuthCredential containing the Facebook credentials. -+ (FIRAuthCredential* _Nonnull)credentialWithAccessToken: - (NSString* _Nonnull)accessToken SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -/// Utility type for constructing federated auth provider credentials. -SWIFT_PROTOCOL_NAMED("FederatedAuthProvider") -@protocol FIRFederatedAuthProvider -/// Used to obtain an auth credential via a mobile web flow. -/// This method is available on iOS only. -/// \param uiDelegate An optional UI delegate used to present the mobile web -/// flow. -/// -/// \param completionHandler Optionally; a block which is invoked -/// asynchronously on the main thread when the mobile web flow is -/// completed. -/// -- (void)getCredentialWithUIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nonnull)( - FIRAuthCredential* _Nullable, - NSError* _Nullable))completionHandler - SWIFT_AVAILABILITY(watchos, introduced = 8); -@end - -/// A concrete implementation of AuthProvider for Game Center Sign -/// In. Not available on watchOS. -SWIFT_CLASS_NAMED("GameCenterAuthProvider") -@interface FIRGameCenterAuthProvider : NSObject -/// A string constant identifying the Game Center identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a Game Center sign in. -+ (void)getCredentialWithCompletion: - (void (^_Nonnull)(FIRAuthCredential* _Nullable, - NSError* _Nullable))completion; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -/// Utility class for constructing GitHub Sign In credentials. -SWIFT_CLASS_NAMED("GitHubAuthProvider") -@interface FIRGitHubAuthProvider : NSObject -/// A string constant identifying the GitHub identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a GitHub sign in. -/// \param token The GitHub OAuth access token. -/// -/// -/// returns: -/// An AuthCredential containing the GitHub credentials. -+ (FIRAuthCredential* _Nonnull)credentialWithToken:(NSString* _Nonnull)token - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -/// Utility class for constructing Google Sign In credentials. -SWIFT_CLASS_NAMED("GoogleAuthProvider") -@interface FIRGoogleAuthProvider : NSObject -/// A string constant identifying the Google identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a Google sign in. -/// \param idToken The ID Token from Google. -/// -/// \param accessToken The Access Token from Google. -/// -/// -/// returns: -/// An AuthCredential containing the Google credentials. -+ (FIRAuthCredential* _Nonnull)credentialWithIDToken:(NSString* _Nonnull)idToken - accessToken: - (NSString* _Nonnull)accessToken - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -@class FIRMultiFactorInfo; -@class FIRMultiFactorSession; -@class FIRMultiFactorAssertion; -/// The interface defining the multi factor related properties and operations -/// pertaining to a user. This class is available on iOS and macOS. -SWIFT_CLASS_NAMED("MultiFactor") -@interface FIRMultiFactor : NSObject -@property(nonatomic, copy) - NSArray* _Nonnull enrolledFactors; -/// Get a session for a second factor enrollment operation. -/// This is used to identify the current user trying to enroll a second factor. -/// \param completion A block with the session identifier for a second factor -/// enrollment operation. -/// -- (void)getSessionWithCompletion: - (void (^_Nullable)(FIRMultiFactorSession* _Nullable, - NSError* _Nullable))completion; -/// Enrolls a second factor as identified by the -/// MultiFactorAssertion parameter for the current user. -/// \param assertion The MultiFactorAssertion. -/// -/// \param displayName An optional display name associated with the multi factor -/// to enroll. -/// -/// \param completion The block invoked when the request is complete, or fails. -/// -- (void)enrollWithAssertion:(FIRMultiFactorAssertion* _Nonnull)assertion - displayName:(NSString* _Nullable)displayName - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Unenroll the given multi factor. -/// \param factorInfo The second factor instance to unenroll. -/// -/// \param completion The block invoked when the request to send the -/// verification email is complete, or fails. -/// -- (void)unenrollWithInfo:(FIRMultiFactorInfo* _Nonnull)factorInfo - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Unenroll the given multi factor. -/// \param factorUID The unique identifier corresponding to the -/// second factor being unenrolled. -/// -/// \param completion The block invoked when the request to send the -/// verification email is complete, or fails. -/// -- (void)unenrollWithFactorUID:(NSString* _Nonnull)factorUID - completion:(void (^_Nullable)(NSError* _Nullable))completion; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -@end - -@interface FIRMultiFactor (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// The base class for asserting ownership of a second factor. This is -/// equivalent to the AuthCredential class. This class is available on iOS and -/// macOS. -SWIFT_CLASS_NAMED("MultiFactorAssertion") -@interface FIRMultiFactorAssertion : NSObject -/// The second factor identifier for this opaque object asserting a second -/// factor. -@property(nonatomic, copy) NSString* _Nonnull factorID; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Safe public structure used to represent a second factor entity from a client -/// perspective. This class is available on iOS and macOS. -SWIFT_CLASS_NAMED("MultiFactorInfo") -@interface FIRMultiFactorInfo : NSObject -/// The multi-factor enrollment ID. -@property(nonatomic, readonly, copy) NSString* _Nonnull UID; -/// The user friendly name of the current second factor. -@property(nonatomic, readonly, copy) NSString* _Nullable displayName; -/// The second factor enrollment date. -@property(nonatomic, readonly, copy) NSDate* _Nonnull enrollmentDate; -/// The identifier of the second factor. -@property(nonatomic, readonly, copy) NSString* _Nonnull factorID; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRMultiFactorInfo (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// The subclass of base class MultiFactorAssertion, used to assert -/// ownership of a phone second factor. This class is available on iOS and -/// macOS. -SWIFT_CLASS_NAMED("MultiFactorResolver") -@interface FIRMultiFactorResolver : NSObject -/// The opaque session identifier for the current sign-in flow. -@property(nonatomic, readonly, strong) FIRMultiFactorSession* _Nonnull session; -/// The list of hints for the second factors needed to complete the sign-in for -/// the current session. -@property(nonatomic, readonly, copy) - NSArray* _Nonnull hints; -/// The Auth reference for the current MultiResolver. -@property(nonatomic, readonly, strong) FIRAuth* _Nonnull auth; -/// A helper function to help users complete sign in with a second factor using -/// a -/// \param assertion The assertion confirming the user successfully -/// completed the second factor challenge. -/// -/// \param completion The block invoked when the request is complete, or fails. -/// -- (void)resolveSignInWithAssertion:(FIRMultiFactorAssertion* _Nonnull)assertion - completion: - (void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Opaque object that identifies the current session to enroll a second factor -/// or to complete sign in when previously enrolled. Identifies the current -/// session to enroll a second factor or to complete sign in when previously -/// enrolled. It contains additional context on the existing user, notably the -/// confirmation that the user passed the first factor challenge. This class is -/// available on iOS and macOS. -SWIFT_CLASS_NAMED("MultiFactorSession") -@interface FIRMultiFactorSession : NSObject -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Internal implementation of AuthCredential for generic -/// credentials. -SWIFT_CLASS_NAMED("OAuthCredential") -@interface FIROAuthCredential : FIRAuthCredential -/// The ID Token associated with this credential. -@property(nonatomic, readonly, copy) NSString* _Nullable IDToken; -/// The access token associated with this credential. -@property(nonatomic, readonly, copy) NSString* _Nullable accessToken; -/// The secret associated with this credential. This will be nil for OAuth 2.0 -/// providers. OAuthCredential already exposes a provider getter. -/// This will help the developer determine whether an access token / secret pair -/// is needed. -@property(nonatomic, readonly, copy) NSString* _Nullable secret; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -@end - -@class NSPersonNameComponents; -/// Utility class for constructing OAuth Sign In credentials. -SWIFT_CLASS_NAMED("OAuthProvider") -@interface FIROAuthProvider : NSObject -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Array used to configure the OAuth scopes. -@property(nonatomic, copy) NSArray* _Nullable scopes; -/// Dictionary used to configure the OAuth custom parameters. -@property(nonatomic, copy) - NSDictionary* _Nullable customParameters; -/// The provider ID indicating the specific OAuth provider this OAuthProvider -/// instance represents. -@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; -/// An instance of OAuthProvider corresponding to the given provider ID. -/// \param providerID The provider ID of the IDP for which this auth provider -/// instance will be configured. -/// -/// -/// returns: -/// An instance of OAuthProvider corresponding to the specified provider ID. -+ (FIROAuthProvider* _Nonnull)providerWithProviderID: - (NSString* _Nonnull)providerID SWIFT_WARN_UNUSED_RESULT; -/// An instance of OAuthProvider corresponding to the given provider ID and auth -/// instance. -/// \param providerID The provider ID of the IDP for which this auth provider -/// instance will be configured. -/// -/// \param auth The auth instance to be associated with the OAuthProvider -/// instance. -/// -/// -/// returns: -/// An instance of OAuthProvider corresponding to the specified provider ID. -+ (FIROAuthProvider* _Nonnull)providerWithProviderID: - (NSString* _Nonnull)providerID - auth:(FIRAuth* _Nonnull)auth - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for the OAuth 2 provider identified -/// by provider ID, ID token, and access token. -/// \param providerID The provider ID associated with the Auth credential being -/// created. -/// -/// \param idToken The IDToken associated with the Auth credential being -/// created. -/// -/// \param accessToken The access token associated with the Auth credential be -/// created, if available. -/// -/// -/// returns: -/// An AuthCredential for the specified provider ID, ID token and access token. -+ (FIROAuthCredential* _Nonnull) - credentialWithProviderID:(NSString* _Nonnull)providerID - IDToken:(NSString* _Nonnull)idToken - accessToken:(NSString* _Nullable)accessToken - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for the OAuth 2 provider identified -/// by provider ID, ID token, and access token. -/// \param providerID The provider ID associated with the Auth credential being -/// created. -/// -/// \param accessToken The access token associated with the Auth credential be -/// created, if available. -/// -/// -/// returns: -/// An AuthCredential for the specified provider ID, ID token and access token. -+ (FIROAuthCredential* _Nonnull) - credentialWithProviderID:(NSString* _Nonnull)providerID - accessToken:(NSString* _Nonnull)accessToken - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for that OAuth 2 provider identified -/// by provider ID, ID token, raw nonce, and access token. -/// \param providerID The provider ID associated with the Auth credential being -/// created. -/// -/// \param idToken The IDToken associated with the Auth credential being -/// created. -/// -/// \param rawNonce The raw nonce associated with the Auth credential being -/// created. -/// -/// \param accessToken The access token associated with the Auth credential be -/// created. -/// -/// -/// returns: -/// An AuthCredential for the specified provider ID, ID token and access token. -+ (FIROAuthCredential* _Nonnull) - credentialWithProviderID:(NSString* _Nonnull)providerID - IDToken:(NSString* _Nonnull)idToken - rawNonce:(NSString* _Nonnull)rawNonce - accessToken:(NSString* _Nonnull)accessToken - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for that OAuth 2 provider identified -/// by providerID using an ID token and raw nonce. -/// \param providerID The provider ID associated with the Auth credential being -/// created. -/// -/// \param idToken The IDToken associated with the Auth credential being -/// created. -/// -/// \param rawNonce The raw nonce associated with the Auth credential being -/// created. -/// -/// -/// returns: -/// An AuthCredential. -+ (FIROAuthCredential* _Nonnull) - credentialWithProviderID:(NSString* _Nonnull)providerID - IDToken:(NSString* _Nonnull)idToken - rawNonce:(NSString* _Nonnull)rawNonce - SWIFT_WARN_UNUSED_RESULT; -/// Used to obtain an auth credential via a mobile web flow. -/// This method is available on iOS only. -/// \param uiDelegate An optional UI delegate used to present the mobile web -/// flow. -/// -/// \param completionHandler Optionally; a block which is invoked -/// asynchronously on the main thread when the mobile web flow is -/// completed. -/// -- (void)getCredentialWithUIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nonnull)( - FIRAuthCredential* _Nullable, - NSError* _Nullable))completionHandler - SWIFT_AVAILABILITY(watchos, introduced = 8) - SWIFT_AVAILABILITY(macos, introduced = 10.15) - SWIFT_AVAILABILITY(tvos, introduced = 13) - SWIFT_AVAILABILITY(ios, introduced = 13); -/// Creates an AuthCredential for the Sign in with Apple OAuth 2 -/// provider identified by ID token, raw nonce, and full name.This method is -/// specific to the Sign in with Apple OAuth 2 provider as this provider -/// requires the full name to be passed explicitly. -/// \param idToken The IDToken associated with the Sign in with Apple Auth -/// credential being created. -/// -/// \param rawNonce The raw nonce associated with the Sign in with Apple Auth -/// credential being created. -/// -/// \param fullName The full name associated with the Sign in with Apple Auth -/// credential being created. -/// -/// -/// returns: -/// An AuthCredential. -+ (FIROAuthCredential* _Nonnull) - appleCredentialWithIDToken:(NSString* _Nonnull)idToken - rawNonce:(NSString* _Nullable)rawNonce - fullName:(NSPersonNameComponents* _Nullable)fullName - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Implementation of AuthCredential for Phone Auth credentials. -/// This class is available on iOS only. -SWIFT_CLASS_NAMED("PhoneAuthCredential") -@interface FIRPhoneAuthCredential : FIRAuthCredential -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -@end - -@class FIRPhoneMultiFactorInfo; -/// A concrete implementation of AuthProvider for phone auth -/// providers. This class is available on iOS only. -SWIFT_CLASS_NAMED("PhoneAuthProvider") -@interface FIRPhoneAuthProvider : NSObject -/// A string constant identifying the phone identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Returns an instance of PhoneAuthProvider for the default -/// Auth object. -+ (FIRPhoneAuthProvider* _Nonnull)provider SWIFT_WARN_UNUSED_RESULT; -/// Returns an instance of PhoneAuthProvider for the provided -/// Auth object. -/// \param auth The auth object to associate with the phone auth provider -/// instance. -/// -+ (FIRPhoneAuthProvider* _Nonnull)providerWithAuth:(FIRAuth* _Nonnull)auth - SWIFT_WARN_UNUSED_RESULT; -/// Starts the phone number authentication flow by sending a verification code -/// to the specified phone number. Possible error codes:
    -///
  • -/// AuthErrorCodeCaptchaCheckFailed - Indicates that the -/// reCAPTCHA token obtained by the Firebase Auth is invalid or has expired. -///
  • -///
  • -/// AuthErrorCodeQuotaExceeded - Indicates that the phone -/// verification quota for this project has been exceeded. -///
  • -///
  • -/// AuthErrorCodeInvalidPhoneNumber - Indicates that the phone -/// number provided is invalid. -///
  • -///
  • -/// AuthErrorCodeMissingPhoneNumber - Indicates that a phone -/// number was not provided. -///
  • -///
-/// \param phoneNumber The phone number to be verified. -/// -/// \param uiDelegate An object used to present the SFSafariViewController. The -/// object is retained by this method until the completion block is executed. -/// -/// \param completion The callback to be invoked when the verification flow is -/// finished. -/// -- (void)verifyPhoneNumber:(NSString* _Nonnull)phoneNumber - UIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nullable)(NSString* _Nullable, - NSError* _Nullable))completion; -/// Verify ownership of the second factor phone number by the current user. -/// \param phoneNumber The phone number to be verified. -/// -/// \param uiDelegate An object used to present the SFSafariViewController. The -/// object is retained by this method until the completion block is executed. -/// -/// \param multiFactorSession A session to identify the MFA flow. For -/// enrollment, this identifies the user trying to enroll. For sign-in, this -/// identifies that the user already passed the first factor challenge. -/// -/// \param completion The callback to be invoked when the verification flow is -/// finished. -/// -- (void)verifyPhoneNumber:(NSString* _Nonnull)phoneNumber - UIDelegate:(id _Nullable)uiDelegate - multiFactorSession:(FIRMultiFactorSession* _Nullable)multiFactorSession - completion:(void (^_Nullable)(NSString* _Nullable, - NSError* _Nullable))completion; -/// Verify ownership of the second factor phone number by the current user. -/// \param multiFactorInfo The phone multi factor whose number need to be -/// verified. -/// -/// \param uiDelegate An object used to present the SFSafariViewController. The -/// object is retained by this method until the completion block is executed. -/// -/// \param multiFactorSession A session to identify the MFA flow. For -/// enrollment, this identifies the user trying to enroll. For sign-in, this -/// identifies that the user already passed the first factor challenge. -/// -/// \param completion The callback to be invoked when the verification flow is -/// finished. -/// -- (void) - verifyPhoneNumberWithMultiFactorInfo: - (FIRPhoneMultiFactorInfo* _Nonnull)multiFactorInfo - UIDelegate: - (id _Nullable)uiDelegate - multiFactorSession: - (FIRMultiFactorSession* _Nullable)multiFactorSession - completion:(void (^_Nullable)(NSString* _Nullable, - NSError* _Nullable)) - completion; -/// Creates an AuthCredential for the phone number provider -/// identified by the verification ID and verification code. -/// \param verificationID The verification ID obtained from invoking -/// verifyPhoneNumber:completion: -/// -/// \param verificationCode The verification code obtained from the user. -/// -/// -/// returns: -/// The corresponding phone auth credential for the verification ID and -/// verification code provided. -- (FIRPhoneAuthCredential* _Nonnull) - credentialWithVerificationID:(NSString* _Nonnull)verificationID - verificationCode:(NSString* _Nonnull)verificationCode - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// The subclass of base class FIRMultiFactorAssertion, used to assert ownership -/// of a phone second factor. This class is available on iOS and macOS. -SWIFT_CLASS_NAMED("PhoneMultiFactorAssertion") -@interface FIRPhoneMultiFactorAssertion : FIRMultiFactorAssertion -@end - -/// The data structure used to help initialize an assertion for a second factor -/// entity to the Firebase Auth/CICP server. Depending on the type of second -/// factor, this will help generate the assertion. This class is available on -/// iOS and macOS. -SWIFT_CLASS_NAMED("PhoneMultiFactorGenerator") -@interface FIRPhoneMultiFactorGenerator : NSObject -/// Initializes the MFA assertion to confirm ownership of the phone second -/// factor. Note that this API is used for both enrolling and signing in with a -/// phone second factor. -/// \param phoneAuthCredential The phone auth credential used for multi factor -/// flows. -/// -+ (FIRPhoneMultiFactorAssertion* _Nonnull)assertionWithCredential: - (FIRPhoneAuthCredential* _Nonnull)phoneAuthCredential - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -/// Extends the MultiFactorInfo class for phone number second factors. -/// The identifier of this second factor is “phone”. -/// This class is available on iOS and macOS. -SWIFT_CLASS_NAMED("PhoneMultiFactorInfo") -@interface FIRPhoneMultiFactorInfo : FIRMultiFactorInfo -/// The string identifier for using phone as a second factor. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull FIRPhoneMultiFactorID;) -+ (NSString* _Nonnull)FIRPhoneMultiFactorID SWIFT_WARN_UNUSED_RESULT; -/// The string identifier for using TOTP as a second factor. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull FIRTOTPMultiFactorID;) -+ (NSString* _Nonnull)FIRTOTPMultiFactorID SWIFT_WARN_UNUSED_RESULT; -/// This is the phone number associated with the current second factor. -@property(nonatomic, copy) NSString* _Nonnull phoneNumber; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -@end - -/// The subclass of base class MultiFactorAssertion, used to assert ownership of -/// a TOTP (Time-based One Time Password) second factor. This class is available -/// on iOS and macOS. -SWIFT_CLASS_NAMED("TOTPMultiFactorAssertion") -@interface FIRTOTPMultiFactorAssertion : FIRMultiFactorAssertion -@end - -@class FIRTOTPSecret; -/// The data structure used to help initialize an assertion for a second factor -/// entity to the Firebase Auth/CICP server. Depending on the type of second -/// factor, this will help generate the assertion. This class is available on -/// iOS and macOS. -SWIFT_CLASS_NAMED("TOTPMultiFactorGenerator") -@interface FIRTOTPMultiFactorGenerator : NSObject -/// Creates a TOTP secret as part of enrolling a TOTP second factor. Used for -/// generating a QR code URL or inputting into a TOTP app. This method uses the -/// auth instance corresponding to the user in the multiFactorSession. -/// \param session The multiFactorSession instance. -/// -/// \param completion Completion block -/// -+ (void)generateSecretWithMultiFactorSession: - (FIRMultiFactorSession* _Nonnull)session - completion:(void (^_Nonnull)( - FIRTOTPSecret* _Nullable, - NSError* _Nullable))completion; -/// Initializes the MFA assertion to confirm ownership of the TOTP second -/// factor. This assertion is used to complete enrollment of TOTP as a second -/// factor. -/// \param secret The TOTP secret. -/// -/// \param oneTimePassword One time password string. -/// -/// -/// returns: -/// The MFA assertion. -+ (FIRTOTPMultiFactorAssertion* _Nonnull) - assertionForEnrollmentWithSecret:(FIRTOTPSecret* _Nonnull)secret - oneTimePassword:(NSString* _Nonnull)oneTimePassword - SWIFT_WARN_UNUSED_RESULT; -/// Initializes the MFA assertion to confirm ownership of the TOTP second -/// factor. This assertion is used to complete signIn with TOTP as a second -/// factor. -/// \param enrollmentID The ID that identifies the enrolled TOTP second factor. -/// -/// \param oneTimePassword one time password string. -/// -/// -/// returns: -/// The MFA assertion. -+ (FIRTOTPMultiFactorAssertion* _Nonnull) - assertionForSignInWithEnrollmentID:(NSString* _Nonnull)enrollmentID - oneTimePassword:(NSString* _Nonnull)oneTimePassword - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -/// The subclass of base class MultiFactorAssertion, used to assert ownership of -/// a TOTP (Time-based One Time Password) second factor. This class is available -/// on iOS and macOS. -SWIFT_CLASS_NAMED("TOTPSecret") -@interface FIRTOTPSecret : NSObject -/// Returns the shared secret key/seed used to generate time-based one-time -/// passwords. -- (NSString* _Nonnull)sharedSecretKey SWIFT_WARN_UNUSED_RESULT; -/// Returns a QRCode URL as described in -/// https://github.com/google/google-authenticator/wiki/Key-Uri-Format. -/// This can be displayed to the user as a QRCode to be scanned into a TOTP app -/// like Google Authenticator. -/// \param accountName The name of the account/app. -/// -/// \param issuer Issuer of the TOTP(likely the app name). -/// -/// -/// returns: -/// A QRCode URL string. -- (NSString* _Nonnull) - generateQRCodeURLWithAccountName:(NSString* _Nonnull)accountName - issuer:(NSString* _Nonnull)issuer - SWIFT_WARN_UNUSED_RESULT; -/// Opens the specified QR Code URL in a password manager like iCloud Keychain. -/// See more details -/// here -- (void)openInOTPAppWithQRCodeURL:(NSString* _Nonnull)qrCodeURL; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Utility class for constructing Twitter Sign In credentials. -SWIFT_CLASS_NAMED("TwitterAuthProvider") -@interface FIRTwitterAuthProvider : NSObject -/// A string constant identifying the Twitter identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a Twitter sign in. -/// \param token The Twitter OAuth token. -/// -/// \param secret The Twitter OAuth secret. -/// -/// -/// returns: -/// An AuthCredential containing the Twitter credentials. -+ (FIRAuthCredential* _Nonnull)credentialWithToken:(NSString* _Nonnull)token - secret:(NSString* _Nonnull)secret - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -/// Represents user data returned from an identity provider. -SWIFT_PROTOCOL_NAMED("UserInfo") -@protocol FIRUserInfo -/// The provider identifier. -@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; -/// The provider’s user ID for the user. -@property(nonatomic, readonly, copy) NSString* _Nonnull uid; -/// The name of the user. -@property(nonatomic, readonly, copy) NSString* _Nullable displayName; -/// The URL of the user’s profile photo. -@property(nonatomic, readonly, copy) NSURL* _Nullable photoURL; -/// The user’s email address. -@property(nonatomic, readonly, copy) NSString* _Nullable email; -/// A phone number associated with the user. -/// This property is only available for users authenticated via phone number -/// auth. -@property(nonatomic, readonly, copy) NSString* _Nullable phoneNumber; -@end - -@class FIRUserMetadata; -@class FIRUserProfileChangeRequest; -/// Represents a user. -/// Firebase Auth does not attempt to validate users -/// when loading them from the keychain. Invalidated users (such as those -/// whose passwords have been changed on another client) are automatically -/// logged out when an auth-dependent operation is attempted or when the -/// ID token is automatically refreshed. -/// This class is thread-safe. -SWIFT_CLASS_NAMED("User") -@interface FIRUser : NSObject -/// Indicates the user represents an anonymous user. -@property(nonatomic, readonly) BOOL isAnonymous; -/// Indicates the user represents an anonymous user. -- (BOOL)anonymous SWIFT_WARN_UNUSED_RESULT; -/// Indicates the email address associated with this user has been verified. -@property(nonatomic, readonly) BOOL isEmailVerified; -/// Indicates the email address associated with this user has been verified. -- (BOOL)emailVerified SWIFT_WARN_UNUSED_RESULT; -/// Profile data for each identity provider, if any. -/// This data is cached on sign-in and updated when linking or unlinking. -@property(nonatomic, readonly, copy) - NSArray>* _Nonnull providerData; -/// Metadata associated with the Firebase user in question. -@property(nonatomic, readonly, strong) FIRUserMetadata* _Nonnull metadata; -/// The tenant ID of the current user. nil if none is available. -@property(nonatomic, readonly, copy) NSString* _Nullable tenantID; -/// Multi factor object associated with the user. -/// This property is available on iOS and macOS. -@property(nonatomic, readonly, strong) FIRMultiFactor* _Nonnull multiFactor; -/// [Deprecated] Updates the email address for the user. -/// On success, the cached user profile data is updated. Returns an error when -/// Email -/// Enumeration Protection is enabled. May fail if there is already an -/// account with this email address that was created using email and password -/// authentication. Invoked asynchronously on the main thread in the future. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
  • -/// AuthErrorCodeEmailAlreadyInUse - Indicates the email is -/// already in use by another account. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating a user’s email -/// is a security sensitive operation that requires a recent login from the -/// user. This error indicates the user has not signed in recently enough. -/// To resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
-/// \param email The email address for the user. -/// -/// \param completion Optionally; the block invoked when the user profile change -/// has finished. -/// -- (void)updateEmail:(NSString* _Nonnull)email - completion:(void (^_Nullable)(NSError* _Nullable))completion - SWIFT_DEPRECATED_MSG( - "`updateEmail` is deprecated and will be removed in a future release. " - "Use sendEmailVerification(beforeUpdatingEmail:) instead."); -/// Updates the password for the user. On success, the cached user profile data -/// is updated. Invoked asynchronously on the main thread in the future. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates the -/// administrator disabled sign in with the specified identity provider. -///
  • -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating a user’s -/// password is a security sensitive operation that requires a recent login -/// from the user. This error indicates the user has not signed in recently -/// enough. To resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
  • -/// AuthErrorCodeWeakPassword - Indicates an attempt to set a -/// password that is considered too weak. The -/// NSLocalizedFailureReasonErrorKey field in the -/// userInfo dictionary object will contain more detailed -/// explanation that can be shown to the user. -///
  • -///
-/// \param password The new password for the user. -/// -/// \param completion Optionally; the block invoked when the user profile change -/// has finished. -/// -- (void)updatePassword:(NSString* _Nonnull)password - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Updates the phone number for the user. On success, the cached user profile -/// data is updated. Invoked asynchronously on the main thread in the future. -/// This method is available on iOS only. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating a user’s phone -/// number is a security sensitive operation that requires a recent login -/// from the user. This error indicates the user has not signed in recently -/// enough. To resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
-/// \param credential The new phone number credential corresponding to the -/// phone number to be added to the Firebase account, if a phone number is -/// already linked to the account this new phone number will replace it. -/// -/// \param completion Optionally; the block invoked when the user profile change -/// has finished. -/// -- (void)updatePhoneNumberCredential:(FIRPhoneAuthCredential* _Nonnull)credential - completion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Creates an object which may be used to change the user’s profile data. -/// Set the properties of the returned object, then call -/// UserProfileChangeRequest.commitChanges() to perform the updates -/// atomically. -/// -/// returns: -/// An object which may be used to change the user’s profile data atomically. -- (FIRUserProfileChangeRequest* _Nonnull) - profileChangeRequest SWIFT_WARN_UNUSED_RESULT; -/// A refresh token; useful for obtaining new access tokens independently. -/// This property should only be used for advanced scenarios, and is not -/// typically needed. -@property(nonatomic, readonly, copy) NSString* _Nullable refreshToken; -/// Reloads the user’s profile data from the server. -/// May fail with an AuthErrorCodeRequiresRecentLogin error code. -/// In this case you should call reauthenticate(with:) before -/// re-invoking updateEmail(to:). -/// \param completion Optionally; the block invoked when the reload has -/// finished. Invoked asynchronously on the main thread in the future. -/// -- (void)reloadWithCompletion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Renews the user’s authentication tokens by validating a fresh set of -/// credentials supplied by the user and returns additional identity provider -/// data. If the user associated with the supplied credential is different from -/// the current user, or if the validation of the supplied credentials fails; an -/// error is returned and the current user remains signed in. Possible error -/// codes:
    -///
  • -/// AuthErrorCodeInvalidCredential - Indicates the supplied -/// credential is invalid. This could happen if it has expired or it is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that accounts -/// with the identity provider represented by the credential are not -/// enabled. Enable them in the Auth section of the Firebase console. -///
  • -///
  • -/// AuthErrorCodeEmailAlreadyInUse - Indicates the email -/// asserted by the credential (e.g. the email in a Facebook access token) -/// is already in use by an existing account, that cannot be authenticated -/// with this method. This error will only be thrown if the “One account per -/// email address” setting is enabled in the Firebase console, under Auth -/// settings. Please note that the error code raised in this specific -/// situation may not be the same on Web and Android. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// reauthentication with an incorrect password, if credential is of the -/// type EmailPasswordAuthCredential. -///
  • -///
  • -/// AuthErrorCodeUserMismatch - Indicates that an attempt was -/// made to reauthenticate with a user which is not the current user. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
-/// \param credential A user-supplied credential, which will be validated by the -/// server. This can be a successful third-party identity provider sign-in, or -/// an email address and password. -/// -/// \param completion Optionally; the block invoked when the re-authentication -/// operation has finished. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)reauthenticateWithCredential:(FIRAuthCredential* _Nonnull)credential - completion: - (void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Renews the user’s authentication using the provided auth provider instance. -/// This method is available on iOS only. -/// \param provider An instance of an auth provider used to initiate the -/// reauthenticate flow. -/// -/// \param uiDelegate Optionally an instance of a class conforming to the -/// AuthUIDelegate protocol, used for presenting the web context. -/// If nil, a default AuthUIDelegate will be used. -/// -/// \param completion Optionally; a block which is invoked when the -/// reauthenticate flow finishes, or is canceled. Invoked asynchronously on the -/// main thread in the future. -/// -- (void)reauthenticateWithProvider: - (id _Nonnull)provider - UIDelegate:(id _Nullable)uiDelegate - completion: - (void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. -/// \param completion Optionally; the block invoked when the token is available. -/// Invoked asynchronously on the main thread in the future. -/// -- (void)getIDTokenWithCompletion: - (void (^_Nullable)(NSString* _Nullable, NSError* _Nullable))completion; -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. The authentication token will be refreshed (by making a network -/// request) if it has expired, or if forceRefresh is -/// true. -/// \param forceRefresh Forces a token refresh. Useful if the token becomes -/// invalid for some reason other than an expiration. -/// -/// \param completion Optionally; the block invoked when the token is available. -/// Invoked asynchronously on the main thread in the future. -/// -- (void)getIDTokenForcingRefresh:(BOOL)forceRefresh - completion: - (void (^_Nullable)(NSString* _Nullable, - NSError* _Nullable))completion; -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. -/// \param completion Optionally; the block invoked when the token is available. -/// Invoked asynchronously on the main thread in the future. -/// -- (void)getIDTokenResultWithCompletion: - (void (^_Nullable)(FIRAuthTokenResult* _Nullable, - NSError* _Nullable))completion; -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. The authentication token will be refreshed (by making a network -/// request) if it has expired, or if forcingRefresh is -/// true. -/// \param forcingRefresh Forces a token refresh. Useful if the token becomes -/// invalid for some reason other than an expiration. -/// -/// \param completion Optionally; the block invoked when the token is available. -/// Invoked asynchronously on the main thread in the future. -/// -- (void)getIDTokenResultForcingRefresh:(BOOL)forcingRefresh - completion:(void (^_Nullable)( - FIRAuthTokenResult* _Nullable, - NSError* _Nullable))completion; -/// Associates a user account from a third-party identity provider with this -/// user and returns additional identity provider data. Invoked asynchronously -/// on the main thread in the future. Possible error codes:
    -///
  • -/// AuthErrorCodeProviderAlreadyLinked - Indicates an attempt -/// to link a provider of a type already linked to this account. -///
  • -///
  • -/// AuthErrorCodeCredentialAlreadyInUse - Indicates an attempt -/// to link with a credential that has already been linked with a different -/// Firebase account. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that accounts -/// with the identity provider represented by the credential are not -/// enabled. Enable them in the Auth section of the Firebase console. -///
  • -///
-/// This method may also return error codes associated with -/// updateEmail(to:) and updatePassword(to:) on -/// User. -/// \param credential The credential for the identity provider. -/// -/// \param completion Optionally; the block invoked when the unlinking is -/// complete, or fails. -/// -- (void)linkWithCredential:(FIRAuthCredential* _Nonnull)credential - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Link the user with the provided auth provider instance. -/// This method is available on iOSonly. -/// \param provider An instance of an auth provider used to initiate the link -/// flow. -/// -/// \param uiDelegate Optionally an instance of a class conforming to the -/// AuthUIDelegate protocol used for presenting the web context. If -/// nil, a default AuthUIDelegate will be used. -/// -/// \param completion Optionally; a block which is invoked when the link flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)linkWithProvider:(id _Nonnull)provider - UIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Disassociates a user account from a third-party identity provider with this -/// user. Invoked asynchronously on the main thread in the future. Possible -/// error codes:
    -///
  • -/// AuthErrorCodeNoSuchProvider - Indicates an attempt to -/// unlink a provider that is not linked to the account. -///
  • -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating email is a -/// security sensitive operation that requires a recent login from the user. -/// This error indicates the user has not signed in recently enough. To -/// resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
-/// \param provider The provider ID of the provider to unlink. -/// -/// \param completion Optionally; the block invoked when the unlinking is -/// complete, or fails. -/// -- (void)unlinkFromProvider:(NSString* _Nonnull)provider - completion:(void (^_Nullable)(FIRUser* _Nullable, - NSError* _Nullable))completion; -/// Initiates email verification for the user. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
  • -/// AuthErrorCodeUserNotFound - Indicates the user account was -/// not found. -///
  • -///
-/// \param completion Optionally; the block invoked when the request to send an -/// email verification is complete, or fails. Invoked asynchronously on the main -/// thread in the future. -/// -- (void)sendEmailVerificationWithCompletion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Initiates email verification for the user. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
  • -/// AuthErrorCodeUserNotFound - Indicates the user account was -/// not found. -///
  • -///
-/// \param actionCodeSettings An ActionCodeSettings object -/// containing settings related to handling action codes. -/// -/// \param completion Optionally; the block invoked when the request to send an -/// email verification is complete, or fails. Invoked asynchronously on the main -/// thread in the future. -/// -- (void)sendEmailVerificationWithActionCodeSettings: - (FIRActionCodeSettings* _Nullable)actionCodeSettings - completion: - (void (^_Nullable)( - NSError* _Nullable))completion; -/// Deletes the user account (also signs out the user, if this was the current -/// user). Possible error codes:
    -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating email is a -/// security sensitive operation that requires a recent login from the user. -/// This error indicates the user has not signed in recently enough. To -/// resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
-/// \param completion Optionally; the block invoked when the request to delete -/// the account is complete, or fails. Invoked asynchronously on the main thread -/// in the future. -/// -- (void)deleteWithCompletion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Send an email to verify the ownership of the account then update to the new -/// email. -/// \param email The email to be updated to. -/// -/// \param completion Optionally; the block invoked when the request to send the -/// verification email is complete, or fails. -/// -- (void)sendEmailVerificationBeforeUpdatingEmail:(NSString* _Nonnull)email - completion: - (void (^_Nullable)( - NSError* _Nullable))completion; -/// Send an email to verify the ownership of the account then update to the new -/// email. -/// \param email The email to be updated to. -/// -/// \param actionCodeSettings An ActionCodeSettings object -/// containing settings related to handling action codes. -/// -/// \param completion Optionally; the block invoked when the request to send the -/// verification email is complete, or fails. -/// -- (void) - sendEmailVerificationBeforeUpdatingEmail:(NSString* _Nonnull)email - actionCodeSettings:(FIRActionCodeSettings* _Nullable) - actionCodeSettings - completion:(void (^_Nullable)( - NSError* _Nullable))completion; -@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; -/// The provider’s user ID for the user. -@property(nonatomic, readonly, copy) NSString* _Nonnull uid; -/// The name of the user. -@property(nonatomic, copy) NSString* _Nullable displayName; -/// The URL of the user’s profile photo. -@property(nonatomic, copy) NSURL* _Nullable photoURL; -/// The user’s email address. -@property(nonatomic, readonly, copy) NSString* _Nullable email; -/// A phone number associated with the user. -/// This property is only available for users authenticated via phone number -/// auth. -@property(nonatomic, readonly, copy) NSString* _Nullable phoneNumber; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRUser (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// A data class representing the metadata corresponding to a Firebase user. -SWIFT_CLASS_NAMED("UserMetadata") -@interface FIRUserMetadata : NSObject -/// Stores the last sign in date for the corresponding Firebase user. -@property(nonatomic, readonly, copy) NSDate* _Nullable lastSignInDate; -/// Stores the creation date for the corresponding Firebase user. -@property(nonatomic, readonly, copy) NSDate* _Nullable creationDate; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRUserMetadata (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// Represents an object capable of updating a user’s profile data. -/// Properties are marked as being part of a profile update when they are set. -/// Setting a property value to nil is not the same as leaving the property -/// unassigned. -SWIFT_CLASS_NAMED("UserProfileChangeRequest") -@interface FIRUserProfileChangeRequest : NSObject -/// The name of the user. -@property(nonatomic, copy) NSString* _Nullable displayName; -/// The URL of the user’s profile photo. -@property(nonatomic, copy) NSURL* _Nullable photoURL; -/// Commits any pending changes. -/// Invoked asynchronously on the main thread in the future. -/// This method should only be called once.Once called, property values should -/// not be changed. -/// \param completion Optionally; the block invoked when the user profile change -/// has been applied. -/// -- (void)commitChangesWithCompletion: - (void (^_Nullable)(NSError* _Nullable))completion; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEAUTH_SWIFT_H -#define FIREBASEAUTH_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import FirebaseAuthInterop; -@import Foundation; -@import ObjectiveC; -@import UIKit; -#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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseAuth", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -enum FIRActionCodeOperation : NSInteger; -@class NSString; -/// Manages information regarding action codes. -SWIFT_CLASS_NAMED("ActionCodeInfo") -@interface FIRActionCodeInfo : NSObject -/// The operation being performed. -@property(nonatomic, readonly) enum FIRActionCodeOperation operation; -/// The email address to which the code was sent. The new email address in the -/// case of ActionCodeOperation.recoverEmail. -@property(nonatomic, readonly, copy) NSString* _Nonnull email; -/// The email that is being recovered in the case of -/// ActionCodeOperation.recoverEmail. -@property(nonatomic, readonly, copy) NSString* _Nullable previousEmail; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Operations which can be performed with action codes. -typedef SWIFT_ENUM_NAMED(NSInteger, FIRActionCodeOperation, - "ActionCodeOperation", open){ - /// Action code for unknown operation. - FIRActionCodeOperationUnknown = 0, - /// Action code for password reset operation. - FIRActionCodeOperationPasswordReset = 1, - /// Action code for verify email operation. - FIRActionCodeOperationVerifyEmail = 2, - /// Action code for recover email operation. - FIRActionCodeOperationRecoverEmail = 3, - /// Action code for email link operation. - FIRActionCodeOperationEmailLink = 4, - /// Action code for verifying and changing email. - FIRActionCodeOperationVerifyAndChangeEmail = 5, - /// Action code for reverting second factor addition. - FIRActionCodeOperationRevertSecondFactorAddition = 6, -}; - -@class NSURL; -/// Used to set and retrieve settings related to handling action codes. -SWIFT_CLASS_NAMED("ActionCodeSettings") -@interface FIRActionCodeSettings : NSObject -/// This URL represents the state/Continue URL in the form of a universal link. -/// This URL can should be constructed as a universal link that would either -/// directly open the app where the action code would be handled or continue to -/// the app after the action code is handled by Firebase. -@property(nonatomic, copy) NSURL* _Nullable URL; -/// Indicates whether the action code link will open the app directly or after -/// being redirected from a Firebase owned web widget. -@property(nonatomic) BOOL handleCodeInApp; -/// The iOS bundle ID, if available. The default value is the current app’s -/// bundle ID. -@property(nonatomic, copy) NSString* _Nullable iOSBundleID; -/// The Android package name, if available. -@property(nonatomic, copy) NSString* _Nullable androidPackageName; -/// The minimum Android version supported, if available. -@property(nonatomic, copy) NSString* _Nullable androidMinimumVersion; -/// Indicates whether the Android app should be installed on a device where it -/// is not available. -@property(nonatomic) BOOL androidInstallIfNotAvailable; -/// The out of band custom domain for handling code in app. -@property(nonatomic, copy) NSString* _Nullable linkDomain; -/// Sets the iOS bundle ID. -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -/// Sets the Android package name, the flag to indicate whether or not to -/// install the app, and the minimum Android version supported. If -/// installIfNotAvailable is set to true and the link -/// is opened on an android device, it will try to install the app if not -/// already available. Otherwise the web URL is used. -/// \param androidPackageName The Android package name. -/// -/// \param installIfNotAvailable Indicates whether or not the app should be -/// installed if not available. -/// -/// \param minimumVersion The minimum version of Android supported. -/// -- (void)setAndroidPackageName:(NSString* _Nonnull)androidPackageName - installIfNotAvailable:(BOOL)installIfNotAvailable - minimumVersion:(NSString* _Nullable)minimumVersion; -@end - -/// This class will allow developers to easily extract information about out of -/// band links. -SWIFT_CLASS_NAMED("ActionCodeURL") -@interface FIRActionCodeURL : NSObject -/// Returns the API key from the link. nil, if not provided. -@property(nonatomic, readonly, copy) NSString* _Nullable APIKey; -/// Returns the mode of oob action. -/// The property will be of ActionCodeOperation type. -/// It will return .unknown if no oob action is provided. -@property(nonatomic, readonly) enum FIRActionCodeOperation operation; -/// Returns the email action code from the link. nil, if not provided. -@property(nonatomic, readonly, copy) NSString* _Nullable code; -/// Returns the continue URL from the link. nil, if not provided. -@property(nonatomic, readonly, copy) NSURL* _Nullable continueURL; -/// Returns the language code from the link. nil, if not provided. -@property(nonatomic, readonly, copy) NSString* _Nullable languageCode; -/// Construct an ActionCodeURL from an out of band link (e.g. email -/// link). -/// \param link The oob link string used to construct the action code URL. -/// -/// -/// returns: -/// The ActionCodeURL object constructed based on the oob link provided. -- (nullable instancetype)actionCodeURLWithLink:(NSString* _Nonnull)link - OBJC_DESIGNATED_INITIALIZER SWIFT_METHOD_FAMILY(init); -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@class NSCoder; -SWIFT_CLASS_NAMED("AdditionalUserInfo") -@interface FIRAdditionalUserInfo : NSObject -/// The provider identifier. -@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; -/// Dictionary containing the additional IdP specific information. -@property(nonatomic, readonly, copy) - NSDictionary* _Nullable profile; -/// The name of the user. -@property(nonatomic, readonly, copy) NSString* _Nullable username; -/// Indicates whether or not the current user was signed in for the first time. -@property(nonatomic, readonly) BOOL isNewUser; -/// Indicates whether or not the current user was signed in for the first time. -- (BOOL)newUser SWIFT_WARN_UNUSED_RESULT; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)aDecoder - OBJC_DESIGNATED_INITIALIZER; -- (void)encodeWithCoder:(NSCoder* _Nonnull)aCoder; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRAdditionalUserInfo (SWIFT_EXTENSION (FirebaseAuth)) < - NSSecureCoding> -@end - -@class FIRApp; -@class FIRUser; -@class FIRAuthSettings; -@class FIRAuthDataResult; -@protocol FIRFederatedAuthProvider; -@protocol FIRAuthUIDelegate; -@class FIRAuthCredential; -@protocol NSObject; -@class NSError; -@class NSData; -enum FIRAuthAPNSTokenType : NSInteger; -/// Manages authentication for Firebase apps. -/// This class is thread-safe. -SWIFT_CLASS_NAMED("Auth") -@interface FIRAuth : NSObject -/// Gets the auth object for the default Firebase app. -/// The default Firebase app must have already been configured or an exception -/// will be raised. -+ (FIRAuth* _Nonnull)auth SWIFT_WARN_UNUSED_RESULT; -/// Gets the auth object for a FirebaseApp. -/// \param app The app for which to retrieve the associated Auth -/// instance. -/// -/// -/// returns: -/// The Auth instance associated with the given app. -+ (FIRAuth* _Nonnull)authWithApp:(FIRApp* _Nonnull)app SWIFT_WARN_UNUSED_RESULT; -/// Gets the FirebaseApp object that this auth object is connected -/// to. -@property(nonatomic, readonly, weak) FIRApp* _Nullable app; -/// Synchronously gets the cached current user, or null if there is none. -@property(nonatomic, readonly, strong) FIRUser* _Nullable currentUser; -/// The current user language code. -/// This property can be set to the app’s current language by -/// calling useAppLanguage(). -/// The string used to set this property must be a language code that follows -/// BCP 47. -@property(nonatomic, copy) NSString* _Nullable languageCode; -/// Contains settings related to the auth object. -@property(nonatomic, strong) FIRAuthSettings* _Nullable settings; -/// The current user access group that the Auth instance is using. -/// Default is nil. -@property(nonatomic, readonly, copy) NSString* _Nullable userAccessGroup; -/// Contains shareAuthStateAcrossDevices setting related to the auth object. -/// If userAccessGroup is not set, setting shareAuthStateAcrossDevices will -/// have no effect. You should set shareAuthStateAcrossDevices to its desired -/// state and then set the userAccessGroup after. -@property(nonatomic) BOOL shareAuthStateAcrossDevices; -/// The tenant ID of the auth instance. nil if none is available. -@property(nonatomic, copy) NSString* _Nullable tenantID; -/// The custom authentication domain used to handle all sign-in redirects. -/// End-users will see -/// this domain when signing in. This domain must be allowlisted in the Firebase -/// Console. -@property(nonatomic, copy) NSString* _Nullable customAuthDomain; -/// Sets the currentUser on the receiver to the provided user -/// object. -/// \param user The user object to be set as the current user of the calling -/// Auth instance. -/// -/// \param completion Optionally; a block invoked after the user of the calling -/// Auth instance has been updated or an error was encountered. -/// -- (void)updateCurrentUser:(FIRUser* _Nullable)user - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// [Deprecated] Fetches the list of all sign-in methods previously used for the -/// provided email address. This method returns an empty list when Email -/// Enumeration Protection is enabled, irrespective of the number of -/// authentication methods available for the given email. Possible error codes: -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -/// \param email The email address for which to obtain a list of sign-in -/// methods. -/// -/// \param completion Optionally; a block which is invoked when the list of sign -/// in methods for the specified email address is ready or an error was -/// encountered. Invoked asynchronously on the main thread in the future. -/// -- (void)fetchSignInMethodsForEmail:(NSString* _Nonnull)email - completion: - (void (^_Nullable)(NSArray* _Nullable, - NSError* _Nullable))completion - SWIFT_DEPRECATED_MSG( - "`fetchSignInMethods` is deprecated and will be removed in a future " - "release. This method returns an empty list when Email Enumeration " - "Protection is enabled."); -/// Signs in using an email address and password. -/// When Email -/// Enumeration Protection is enabled, this method fails with an error in -/// case of an invalid email/password. Possible error codes:
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that email and -/// password accounts are not enabled. Enable them in the Auth section of -/// the Firebase console. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// sign in with an incorrect password. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
-/// \param email The user’s email address. -/// -/// \param password The user’s password. -/// -/// \param completion Optionally; a block which is invoked when the sign in flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithEmail:(NSString* _Nonnull)email - password:(NSString* _Nonnull)password - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Signs in using an email address and email sign-in link. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that email and -/// password accounts are not enabled. Enable them in the Auth section of -/// the Firebase console. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// sign in with an incorrect password. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
-/// \param email The user’s email address. -/// -/// \param link The email sign-in link. -/// -/// \param completion Optionally; a block which is invoked when the sign in flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithEmail:(NSString* _Nonnull)email - link:(NSString* _Nonnull)link - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Signs in using the provided auth provider instance. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that email and -/// password accounts are not enabled. Enable them in the Auth section of -/// the Firebase console. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// sign in with an incorrect password. -///
  • -///
  • -/// AuthErrorCodeWebNetworkRequestFailed - Indicates that a -/// network request within a SFSafariViewController or WKWebView failed. -///
  • -///
  • -/// AuthErrorCodeWebInternalError - Indicates that an internal -/// error occurred within a SFSafariViewController or WKWebView. -///
  • -///
  • -/// AuthErrorCodeWebSignInUserInteractionFailure - Indicates a -/// general failure during a web sign-in flow. -///
  • -///
  • -/// AuthErrorCodeWebContextAlreadyPresented - Indicates that an -/// attempt was made to present a new web context while one was already -/// being presented. -///
  • -///
  • -/// AuthErrorCodeWebContextCancelled - Indicates that the URL -/// presentation was cancelled prematurely by the user. -///
  • -///
  • -/// AuthErrorCodeAccountExistsWithDifferentCredential - -/// Indicates the email asserted by the credential (e.g. the email in a -/// Facebook access token) is already in use by an existing account, that -/// cannot be authenticated with this sign-in method. Call -/// fetchProvidersForEmail for this user’s email and then prompt them to -/// sign in with any of the sign-in providers returned. This error will only -/// be thrown if the “One account per email address” setting is enabled in -/// the Firebase console, under Auth settings. -///
  • -///
-/// \param provider An instance of an auth provider used to initiate the sign-in -/// flow. -/// -/// \param uiDelegate Optionally an instance of a class conforming to the -/// AuthUIDelegate protocol, this is used for presenting the web context. If -/// nil, a default AuthUIDelegate will be used. -/// -/// \param completion Optionally; a block which is invoked when the sign in flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithProvider:(id _Nonnull)provider - UIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion - SWIFT_AVAILABILITY(watchos, unavailable) - SWIFT_AVAILABILITY(macos, unavailable) - SWIFT_AVAILABILITY(tvos, unavailable); -/// Asynchronously signs in to Firebase with the given 3rd-party credentials -/// (e.g. a Facebook login Access Token, a Google ID Token/Access Token pair, -/// etc.) and returns additional identity provider data. Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidCredential - Indicates the supplied -/// credential is invalid. This could happen if it has expired or it is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that accounts -/// with the identity provider represented by the credential are not -/// enabled. Enable them in the Auth section of the Firebase console. -///
  • -///
  • -/// AuthErrorCodeAccountExistsWithDifferentCredential - -/// Indicates the email asserted by the credential (e.g. the email in a -/// Facebook access token) is already in use by an existing account, that -/// cannot be authenticated with this sign-in method. Call -/// fetchProvidersForEmail for this user’s email and then prompt them to -/// sign in with any of the sign-in providers returned. This error will only -/// be thrown if the “One account per email address” setting is enabled in -/// the Firebase console, under Auth settings. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// sign in with an incorrect password, if credential is of the type -/// EmailPasswordAuthCredential. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeMissingVerificationID - Indicates that the -/// phone auth credential was created with an empty verification ID. -///
  • -///
  • -/// AuthErrorCodeMissingVerificationCode - Indicates that the -/// phone auth credential was created with an empty verification code. -///
  • -///
  • -/// AuthErrorCodeInvalidVerificationCode - Indicates that the -/// phone auth credential was created with an invalid verification Code. -///
  • -///
  • -/// AuthErrorCodeInvalidVerificationID - Indicates that the -/// phone auth credential was created with an invalid verification ID. -///
  • -///
  • -/// AuthErrorCodeSessionExpired - Indicates that the SMS code -/// has expired. -///
  • -///
-/// \param credential The credential supplied by the IdP. -/// -/// \param completion Optionally; a block which is invoked when the sign in flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithCredential:(FIRAuthCredential* _Nonnull)credential - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Asynchronously creates and becomes an anonymous user. -/// If there is already an anonymous user signed in, that user will be returned -/// instead. If there is any other existing user signed in, that user will be -/// signed out. Possible error codes:
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that anonymous -/// accounts are not enabled. Enable them in the Auth section of the -/// Firebase console. -///
  • -///
-/// \param completion Optionally; a block which is invoked when the sign in -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInAnonymouslyWithCompletion: - (void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Asynchronously creates and becomes an anonymous user. -/// If there is already an anonymous user signed in, that user will be returned -/// instead. If there is any other existing user signed in, that user will be -/// signed out. Possible error codes:
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that anonymous -/// accounts are not enabled. Enable them in the Auth section of the -/// Firebase console. -///
  • -///
-/// -/// returns: -/// The AuthDataResult after the successful signin. -- (void)signInAnonymouslyWithCompletionHandler: - (void (^_Nonnull)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completionHandler; -/// Asynchronously signs in to Firebase with the given Auth token. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidCustomToken - Indicates a validation -/// error with the custom token. -///
  • -///
  • -/// AuthErrorCodeCustomTokenMismatch - Indicates the service -/// account and the API key belong to different projects. -///
  • -///
-/// \param token A self-signed custom auth token. -/// -/// \param completion Optionally; a block which is invoked when the sign in -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)signInWithCustomToken:(NSString* _Nonnull)token - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Creates and, on success, signs in a user with the given email address and -/// password. Possible error codes:
    -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeEmailAlreadyInUse - Indicates the email used -/// to attempt sign up already exists. Call fetchProvidersForEmail to check -/// which sign-in mechanisms the user used, and prompt the user to sign in -/// with one of those. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that email and -/// password accounts are not enabled. Enable them in the Auth section of -/// the Firebase console. -///
  • -///
  • -/// AuthErrorCodeWeakPassword - Indicates an attempt to set a -/// password that is considered too weak. The -/// NSLocalizedFailureReasonErrorKey field in the NSError.userInfo -/// dictionary object will contain more detailed explanation that can be -/// shown to the user. -///
  • -///
-/// \param email The user’s email address. -/// -/// \param password The user’s desired password. -/// -/// \param completion Optionally; a block which is invoked when the sign up flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)createUserWithEmail:(NSString* _Nonnull)email - password:(NSString* _Nonnull)password - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Resets the password given a code sent to the user outside of the app and a -/// new password for the user. Possible error codes:
    -///
  • -/// AuthErrorCodeWeakPassword - Indicates an attempt to set a -/// password that is considered too weak. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates the -/// administrator disabled sign in with the specified identity provider. -///
  • -///
  • -/// AuthErrorCodeExpiredActionCode - Indicates the OOB code is -/// expired. -///
  • -///
  • -/// AuthErrorCodeInvalidActionCode - Indicates the OOB code is -/// invalid. -///
  • -///
-/// \param code The reset code. -/// -/// \param newPassword The new password. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)confirmPasswordResetWithCode:(NSString* _Nonnull)code - newPassword:(NSString* _Nonnull)newPassword - completion: - (void (^_Nonnull)(NSError* _Nullable))completion; -/// Checks the validity of an out of band code. -/// \param code The out of band code to check validity. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)checkActionCode:(NSString* _Nonnull)code - completion:(void (^_Nonnull)(FIRActionCodeInfo* _Nullable, - NSError* _Nullable))completion; -/// Checks the validity of a verify password reset code. -/// \param code The password reset code to be verified. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)verifyPasswordResetCode:(NSString* _Nonnull)code - completion: - (void (^_Nonnull)(NSString* _Nullable, - NSError* _Nullable))completion; -/// Applies out of band code. -/// This method will not work for out of band codes which require an additional -/// parameter, such as password reset code. -/// \param code The out of band code to be applied. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)applyActionCode:(NSString* _Nonnull)code - completion:(void (^_Nonnull)(NSError* _Nullable))completion; -/// Initiates a password reset for the given email address. -/// This method does not throw an -/// error when there’s no user account with the given email address and Email -/// Enumeration Protection is enabled. Possible error codes:
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
-/// \param email The email address of the user. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)sendPasswordResetWithEmail:(NSString* _Nonnull)email - completion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Initiates a password reset for the given email address and -/// ActionCodeSettings object. This method does not throw an error -/// when there’s no user account with the given email address and Email -/// Enumeration Protection is enabled. Possible error codes:
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
  • -/// AuthErrorCodeMissingIosBundleID - Indicates that the iOS -/// bundle ID is missing when handleCodeInApp is set to true. -///
  • -///
  • -/// AuthErrorCodeMissingAndroidPackageName - Indicates that the -/// android package name is missing when the androidInstallApp -/// flag is set to true. -///
  • -///
  • -/// AuthErrorCodeUnauthorizedDomain - Indicates that the domain -/// specified in the continue URL is not allowlisted in the Firebase -/// console. -///
  • -///
  • -/// AuthErrorCodeInvalidContinueURI - Indicates that the domain -/// specified in the continue URL is not valid. -///
  • -///
-/// \param email The email address of the user. -/// -/// \param actionCodeSettings An ActionCodeSettings object -/// containing settings related to handling action codes. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)sendPasswordResetWithEmail:(NSString* _Nonnull)email - actionCodeSettings: - (FIRActionCodeSettings* _Nullable)actionCodeSettings - completion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Sends a sign in with email link to provided email address. -/// \param email The email address of the user. -/// -/// \param actionCodeSettings An ActionCodeSettings object -/// containing settings related to handling action codes. -/// -/// \param completion Optionally; a block which is invoked when the request -/// finishes. Invoked asynchronously on the main thread in the future. -/// -- (void)sendSignInLinkToEmail:(NSString* _Nonnull)email - actionCodeSettings: - (FIRActionCodeSettings* _Nonnull)actionCodeSettings - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Signs out the current user. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeKeychainError - Indicates an error occurred -/// when accessing the keychain. The -/// NSLocalizedFailureReasonErrorKey field in the -/// userInfo dictionary will contain more information about the -/// error encountered. -///
  • -///
-- (BOOL)signOut:(NSError* _Nullable* _Nullable)error; -/// Checks if link is an email sign-in link. -/// \param link The email sign-in link. -/// -/// -/// returns: -/// true when the link passed matches the expected format of an -/// email sign-in link. -- (BOOL)isSignInWithEmailLink:(NSString* _Nonnull)link SWIFT_WARN_UNUSED_RESULT; -/// Initializes reCAPTCHA using the settings configured for the project or -/// tenant. If you change the tenant ID of the Auth instance, the -/// configuration will be reloaded. -- (void)initializeRecaptchaConfigWithCompletion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Registers a block as an “auth state did change” listener. -/// To be invoked when: -///
    -///
  • -/// The block is registered as a listener, -///
  • -///
  • -/// A user with a different UID from the current user has signed in, or -///
  • -///
  • -/// The current user has signed out. -///
  • -///
-/// The block is invoked immediately after adding it according to its standard -/// invocation semantics, asynchronously on the main thread. Users should pay -/// special attention to making sure the block does not inadvertently retain -/// objects which should not be retained by the long-lived block. The block -/// itself will be retained by Auth until it is unregistered or -/// until the Auth instance is otherwise deallocated. -/// \param listener The block to be invoked. The block is always invoked -/// asynchronously on the main thread, even for it’s initial invocation after -/// having been added as a listener. -/// -/// -/// returns: -/// A handle useful for manually unregistering the block as a listener. -- (id _Nonnull)addAuthStateDidChangeListener: - (void (^_Nonnull)(FIRAuth* _Nonnull, FIRUser* _Nullable))listener - SWIFT_WARN_UNUSED_RESULT; -/// Unregisters a block as an “auth state did change” listener. -/// \param listenerHandle The handle for the listener. -/// -- (void)removeAuthStateDidChangeListener:(id _Nonnull)listenerHandle; -/// Registers a block as an “ID token did change” listener. -/// To be invoked when: -///
    -///
  • -/// The block is registered as a listener, -///
  • -///
  • -/// A user with a different UID from the current user has signed in, -///
  • -///
  • -/// The ID token of the current user has been refreshed, or -///
  • -///
  • -/// The current user has signed out. -///
  • -///
-/// The block is invoked immediately after adding it according to its standard -/// invocation semantics, asynchronously on the main thread. Users should pay -/// special attention to making sure the block does not inadvertently retain -/// objects which should not be retained by the long-lived block. The block -/// itself will be retained by Auth until it is unregistered or -/// until the Auth instance is otherwise deallocated. -/// \param listener The block to be invoked. The block is always invoked -/// asynchronously on the main thread, even for it’s initial invocation after -/// having been added as a listener. -/// -/// -/// returns: -/// A handle useful for manually unregistering the block as a listener. -- (id _Nonnull)addIDTokenDidChangeListener: - (void (^_Nonnull)(FIRAuth* _Nonnull, FIRUser* _Nullable))listener - SWIFT_WARN_UNUSED_RESULT; -/// Unregisters a block as an “ID token did change” listener. -/// \param listenerHandle The handle for the listener. -/// -- (void)removeIDTokenDidChangeListener:(id _Nonnull)listenerHandle; -/// Sets languageCode to the app’s current language. -- (void)useAppLanguage; -/// Configures Firebase Auth to connect to an emulated host instead of the -/// remote backend. -- (void)useEmulatorWithHost:(NSString* _Nonnull)host port:(NSInteger)port; -/// Revoke the users token with authorization code. -/// \param authorizationCode The authorization code used to perform the -/// revocation. -/// -/// \param completion (Optional) the block invoked when the request to revoke -/// the token is complete, or fails. Invoked asynchronously on the main thread -/// in the future. -/// -- (void)revokeTokenWithAuthorizationCode:(NSString* _Nonnull)authorizationCode - completion:(void (^_Nullable)(NSError* _Nullable)) - completion; -/// Switch userAccessGroup and current user to the given accessGroup and the -/// user stored in it. -- (BOOL)useUserAccessGroup:(NSString* _Nullable)accessGroup - error:(NSError* _Nullable* _Nullable)error; -/// Get the stored user in the given accessGroup. -/// This API is not supported on tvOS when -/// shareAuthStateAcrossDevices is set to true. and -/// will return nil. Please refer to -/// https://github.com/firebase/firebase-ios-sdk/issues/8878 for details. -- (FIRUser* _Nullable) - getStoredUserForAccessGroup:(NSString* _Nullable)accessGroup - error:(NSError* _Nullable* _Nullable)outError - SWIFT_WARN_UNUSED_RESULT; -/// The APNs token used for phone number authentication. -/// The type of the token (production or sandbox) will be automatically -/// detected based on your provisioning profile. -/// This property is available on iOS only. -/// If swizzling is disabled, the APNs Token must be set for phone number auth -/// to work, by either setting this property or by calling -/// setAPNSToken(_:type:). -@property(nonatomic, readonly, copy) NSData* _Nullable APNSToken; -/// Sets the APNs token along with its type. -/// This method is available on iOS only. -/// If swizzling is disabled, the APNs Token must be set for phone number auth -/// to work, by either setting calling this method or by setting the -/// APNSToken property. -- (void)setAPNSToken:(NSData* _Nonnull)token - type:(enum FIRAuthAPNSTokenType)type; -/// Whether the specific remote notification is handled by Auth . -/// This method is available on iOS only. -/// If swizzling is disabled, related remote notifications must be forwarded to -/// this method for phone number auth to work. -/// \param userInfo A dictionary that contains information related to the -/// notification in question. -/// -/// -/// returns: -/// Whether or the notification is handled. A return value of true -/// means the notification is for Firebase Auth so the caller should ignore the -/// notification from further processing, and false means the -/// notification is for the app (or another library) so the caller should -/// continue handling this notification as usual. -- (BOOL)canHandleNotification:(NSDictionary* _Nonnull)userInfo - SWIFT_WARN_UNUSED_RESULT; -/// Whether the specific URL is handled by Auth . -/// This method is available on iOS only. -/// If swizzling is disabled, URLs received by the application delegate must be -/// forwarded to this method for phone number auth to work. -/// \param url The URL received by the application delegate from any of the -/// openURL method. -/// -/// -/// returns: -/// Whether or the URL is handled. true means the URL is for -/// Firebase Auth so the caller should ignore the URL from further processing, -/// and false means the the URL is for the app (or another library) -/// so the caller should continue handling this URL as usual. -- (BOOL)canHandleURL:(NSURL* _Nonnull)url SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@class UIScene; -@class UIOpenURLContext; -@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) -- (void)scene:(UIScene* _Nonnull)scene - openURLContexts:(NSSet* _Nonnull)URLContexts; -@end - -@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. This method is not for public use. It is for Firebase clients -/// of AuthInterop. -- (void)getTokenForcingRefresh:(BOOL)forceRefresh - withCallback:(void (^_Nonnull)(NSString* _Nullable, - NSError* _Nullable))callback; -/// Get the current Auth user’s UID. Returns nil if there is no user signed in. -/// This method is not for public use. It is for Firebase clients of -/// AuthInterop. -- (NSString* _Nullable)getUserID SWIFT_WARN_UNUSED_RESULT; -@end - -@class UIApplication; -@interface FIRAuth (SWIFT_EXTENSION (FirebaseAuth)) -- (void)application:(UIApplication* _Nonnull)application - didRegisterForRemoteNotificationsWithDeviceToken: - (NSData* _Nonnull)deviceToken; -- (void)application:(UIApplication* _Nonnull)application - didFailToRegisterForRemoteNotificationsWithError:(NSError* _Nonnull)error; -- (void)application:(UIApplication* _Nonnull)application - didReceiveRemoteNotification:(NSDictionary* _Nonnull)userInfo - fetchCompletionHandler: - (void (^_Nonnull)(UIBackgroundFetchResult))completionHandler; -- (BOOL)application:(UIApplication* _Nonnull)application - openURL:(NSURL* _Nonnull)url - options:(NSDictionary* _Nonnull) - options SWIFT_WARN_UNUSED_RESULT; -@end - -/// The APNs token type for the app. -/// This enum is available on iOS, macOS Catalyst, tvOS, and watchOS only. -typedef SWIFT_ENUM_NAMED(NSInteger, FIRAuthAPNSTokenType, "AuthAPNSTokenType", - open){ - /// Unknown token type. - /// The actual token type will be detected from the provisioning profile in - /// the app’s bundle. - FIRAuthAPNSTokenTypeUnknown = 0, - /// Sandbox token type. - FIRAuthAPNSTokenTypeSandbox = 1, - /// Production token type. - FIRAuthAPNSTokenTypeProd = 2, -}; - -/// Public representation of a credential. -SWIFT_CLASS_NAMED("AuthCredential") -@interface FIRAuthCredential : NSObject -/// The name of the identity provider for the credential. -@property(nonatomic, readonly, copy) NSString* _Nonnull provider; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@class FIROAuthCredential; -/// Helper object that contains the result of a successful sign-in, link and -/// reauthenticate action. It contains references to a User -/// instance and an AdditionalUserInfo instance. -SWIFT_CLASS_NAMED("AuthDataResult") -@interface FIRAuthDataResult : NSObject -/// The signed in user. -@property(nonatomic, readonly, strong) FIRUser* _Nonnull user; -/// If available, contains the additional IdP specific information about signed -/// in user. -@property(nonatomic, readonly, strong) - FIRAdditionalUserInfo* _Nullable additionalUserInfo; -/// This property will be non-nil after a successful headful-lite sign-in via -/// signIn(with:uiDelegate:completion:). -/// May be used to obtain the accessToken and/or IDToken -/// pertaining to a recently signed-in user. -@property(nonatomic, readonly, strong) FIROAuthCredential* _Nullable credential; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRAuthDataResult (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// Error codes used by Firebase Auth. -typedef SWIFT_ENUM_NAMED(NSInteger, FIRAuthErrorCode, "AuthErrorCode", open){ - /// Indicates a validation error with the custom token. - FIRAuthErrorCodeInvalidCustomToken = 17000, - /// Indicates the service account and the API key belong to different - /// projects. - FIRAuthErrorCodeCustomTokenMismatch = 17002, - /// Indicates the IDP token or requestUri is invalid. - FIRAuthErrorCodeInvalidCredential = 17004, - /// Indicates the user’s account is disabled on the server. - FIRAuthErrorCodeUserDisabled = 17005, - /// Indicates the administrator disabled sign in with the specified identity - /// provider. - FIRAuthErrorCodeOperationNotAllowed = 17006, - /// Indicates the email used to attempt a sign up is already in use. - FIRAuthErrorCodeEmailAlreadyInUse = 17007, - /// Indicates the email is invalid. - FIRAuthErrorCodeInvalidEmail = 17008, - /// Indicates the user attempted sign in with a wrong password. - FIRAuthErrorCodeWrongPassword = 17009, - /// Indicates that too many requests were made to a server method. - FIRAuthErrorCodeTooManyRequests = 17010, - /// Indicates the user account was not found. - FIRAuthErrorCodeUserNotFound = 17011, - /// Indicates account linking is required. - FIRAuthErrorCodeAccountExistsWithDifferentCredential = 17012, - /// Indicates the user has attempted to change email or password more than 5 - /// minutes after - /// signing in. - FIRAuthErrorCodeRequiresRecentLogin = 17014, - /// Indicates an attempt to link a provider to which the account is already - /// linked. - FIRAuthErrorCodeProviderAlreadyLinked = 17015, - /// Indicates an attempt to unlink a provider that is not linked. - FIRAuthErrorCodeNoSuchProvider = 17016, - /// Indicates user’s saved auth credential is invalid the user needs to sign - /// in again. - FIRAuthErrorCodeInvalidUserToken = 17017, - /// Indicates a network error occurred (such as a timeout interrupted - /// connection or - /// unreachable host). These types of errors are often recoverable with a - /// retry. The - /// NSUnderlyingError field in the - /// NSError.userInfo dictionary will contain the error - /// encountered. - FIRAuthErrorCodeNetworkError = 17020, - /// Indicates the saved token has expired for example the user may have - /// changed account - /// password on another device. The user needs to sign in again on the - /// device that made this - /// request. - FIRAuthErrorCodeUserTokenExpired = 17021, - /// Indicates an invalid API key was supplied in the request. - FIRAuthErrorCodeInvalidAPIKey = 17023, - /// Indicates that an attempt was made to reauthenticate with a user which - /// is not the current - /// user. - FIRAuthErrorCodeUserMismatch = 17024, - /// Indicates an attempt to link with a credential that has already been - /// linked with a - /// different Firebase account. - FIRAuthErrorCodeCredentialAlreadyInUse = 17025, - /// Indicates an attempt to set a password that is considered too weak. - FIRAuthErrorCodeWeakPassword = 17026, - /// Indicates the App is not authorized to use Firebase Authentication with - /// the - /// provided API Key. - FIRAuthErrorCodeAppNotAuthorized = 17028, - /// Indicates the OOB code is expired. - FIRAuthErrorCodeExpiredActionCode = 17029, - /// Indicates the OOB code is invalid. - FIRAuthErrorCodeInvalidActionCode = 17030, - /// Indicates that there are invalid parameters in the payload during a - /// “send password reset email” attempt. - FIRAuthErrorCodeInvalidMessagePayload = 17031, - /// Indicates that the sender email is invalid during a “send password reset - /// email” attempt. - FIRAuthErrorCodeInvalidSender = 17032, - /// Indicates that the recipient email is invalid. - FIRAuthErrorCodeInvalidRecipientEmail = 17033, - /// Indicates that an email address was expected but one was not provided. - FIRAuthErrorCodeMissingEmail = 17034, - /// Indicates that the iOS bundle ID is missing when a iOS App Store ID is - /// provided. - FIRAuthErrorCodeMissingIosBundleID = 17036, - /// Indicates that the android package name is missing when the - /// androidInstallApp flag is set - /// to true. - FIRAuthErrorCodeMissingAndroidPackageName = 17037, - /// Indicates that the domain specified in the continue URL is not - /// allowlisted in the Firebase - /// console. - FIRAuthErrorCodeUnauthorizedDomain = 17038, - /// Indicates that the domain specified in the continue URI is not valid. - FIRAuthErrorCodeInvalidContinueURI = 17039, - /// Indicates that a continue URI was not provided in a request to the - /// backend which requires one. - FIRAuthErrorCodeMissingContinueURI = 17040, - /// Indicates that a phone number was not provided in a call to - /// verifyPhoneNumber:completion:. - FIRAuthErrorCodeMissingPhoneNumber = 17041, - /// Indicates that an invalid phone number was provided in a call to - /// verifyPhoneNumber:completion:. - FIRAuthErrorCodeInvalidPhoneNumber = 17042, - /// Indicates that the phone auth credential was created with an empty - /// verification code. - FIRAuthErrorCodeMissingVerificationCode = 17043, - /// Indicates that an invalid verification code was used in the - /// verifyPhoneNumber request. - FIRAuthErrorCodeInvalidVerificationCode = 17044, - /// Indicates that the phone auth credential was created with an empty - /// verification ID. - FIRAuthErrorCodeMissingVerificationID = 17045, - /// Indicates that an invalid verification ID was used in the - /// verifyPhoneNumber request. - FIRAuthErrorCodeInvalidVerificationID = 17046, - /// Indicates that the APNS device token is missing in the verifyClient - /// request. - FIRAuthErrorCodeMissingAppCredential = 17047, - /// Indicates that an invalid APNS device token was used in the verifyClient - /// request. - FIRAuthErrorCodeInvalidAppCredential = 17048, - /// Indicates that the SMS code has expired. - FIRAuthErrorCodeSessionExpired = 17051, - /// Indicates that the quota of SMS messages for a given project has been - /// exceeded. - FIRAuthErrorCodeQuotaExceeded = 17052, - /// Indicates that the APNs device token could not be obtained. The app may - /// not have set up - /// remote notification correctly or may fail to forward the APNs device - /// token to Auth - /// if app delegate swizzling is disabled. - FIRAuthErrorCodeMissingAppToken = 17053, - /// Indicates that the app fails to forward remote notification to FIRAuth. - FIRAuthErrorCodeNotificationNotForwarded = 17054, - /// Indicates that the app could not be verified by Firebase during phone - /// number authentication. - FIRAuthErrorCodeAppNotVerified = 17055, - /// Indicates that the reCAPTCHA token is not valid. - FIRAuthErrorCodeCaptchaCheckFailed = 17056, - /// Indicates that an attempt was made to present a new web context while - /// one was already being - /// presented. - FIRAuthErrorCodeWebContextAlreadyPresented = 17057, - /// Indicates that the URL presentation was cancelled prematurely by the - /// user. - FIRAuthErrorCodeWebContextCancelled = 17058, - /// Indicates a general failure during the app verification flow. - FIRAuthErrorCodeAppVerificationUserInteractionFailure = 17059, - /// Indicates that the clientID used to invoke a web flow is invalid. - FIRAuthErrorCodeInvalidClientID = 17060, - /// Indicates that a network request within a SFSafariViewController or - /// WKWebView failed. - FIRAuthErrorCodeWebNetworkRequestFailed = 17061, - /// Indicates that an internal error occurred within a - /// SFSafariViewController or WKWebView. - FIRAuthErrorCodeWebInternalError = 17062, - /// Indicates a general failure during a web sign-in flow. - FIRAuthErrorCodeWebSignInUserInteractionFailure = 17063, - /// Indicates that the local player was not authenticated prior to - /// attempting Game Center signin. - FIRAuthErrorCodeLocalPlayerNotAuthenticated = 17066, - /// Indicates that a non-null user was expected as an argument to the - /// operation but a null - /// user was provided. - FIRAuthErrorCodeNullUser = 17067, - /// Represents the error code for when the given provider id for a web - /// operation is invalid. - FIRAuthErrorCodeInvalidProviderID = 17071, - /// Represents the error code for when an attempt is made to update the - /// current user with a - /// tenantId that differs from the current FirebaseAuth instance’s tenantId. - FIRAuthErrorCodeTenantIDMismatch = 17072, - /// Represents the error code for when a request is made to the backend with - /// an associated tenant - /// ID for an operation that does not support multi-tenancy. - FIRAuthErrorCodeUnsupportedTenantOperation = 17073, - /// Indicates that the provided Firebase Hosting Link domain is not owned by - /// the current project. - FIRAuthErrorCodeInvalidHostingLinkDomain = 17214, - /// Indicates that the credential is rejected because it’s malformed or - /// mismatching. - FIRAuthErrorCodeRejectedCredential = 17075, - /// Indicates that the GameKit framework is not linked prior to attempting - /// Game Center signin. - FIRAuthErrorCodeGameKitNotLinked = 17076, - /// Indicates that the second factor is required for signin. - FIRAuthErrorCodeSecondFactorRequired = 17078, - /// Indicates that the multi factor session is missing. - FIRAuthErrorCodeMissingMultiFactorSession = 17081, - /// Indicates that the multi factor info is missing. - FIRAuthErrorCodeMissingMultiFactorInfo = 17082, - /// Indicates that the multi factor session is invalid. - FIRAuthErrorCodeInvalidMultiFactorSession = 17083, - /// Indicates that the multi factor info is not found. - FIRAuthErrorCodeMultiFactorInfoNotFound = 17084, - /// Indicates that the operation is admin restricted. - FIRAuthErrorCodeAdminRestrictedOperation = 17085, - /// Indicates that the email is required for verification. - FIRAuthErrorCodeUnverifiedEmail = 17086, - /// Indicates that the second factor is already enrolled. - FIRAuthErrorCodeSecondFactorAlreadyEnrolled = 17087, - /// Indicates that the maximum second factor count is exceeded. - FIRAuthErrorCodeMaximumSecondFactorCountExceeded = 17088, - /// Indicates that the first factor is not supported. - FIRAuthErrorCodeUnsupportedFirstFactor = 17089, - /// Indicates that the a verified email is required to changed to. - FIRAuthErrorCodeEmailChangeNeedsVerification = 17090, - /// Indicates that the request does not contain a client identifier. - FIRAuthErrorCodeMissingClientIdentifier = 17093, - /// Indicates that the nonce is missing or invalid. - FIRAuthErrorCodeMissingOrInvalidNonce = 17094, - /// Raised when a Cloud Function returns a blocking error. Will include a - /// message returned from - /// the function. - FIRAuthErrorCodeBlockingCloudFunctionError = 17105, - /// Indicates that reCAPTCHA Enterprise integration is not enabled for this - /// project. - FIRAuthErrorCodeRecaptchaNotEnabled = 17200, - /// Indicates that the reCAPTCHA token is missing from the backend request. - FIRAuthErrorCodeMissingRecaptchaToken = 17201, - /// Indicates that the reCAPTCHA token sent with the backend request is - /// invalid. - FIRAuthErrorCodeInvalidRecaptchaToken = 17202, - /// Indicates that the requested reCAPTCHA action is invalid. - FIRAuthErrorCodeInvalidRecaptchaAction = 17203, - /// Indicates that the client type is missing from the request. - FIRAuthErrorCodeMissingClientType = 17204, - /// Indicates that the reCAPTCHA version is missing from the request. - FIRAuthErrorCodeMissingRecaptchaVersion = 17205, - /// Indicates that the reCAPTCHA version sent to the backend is invalid. - FIRAuthErrorCodeInvalidRecaptchaVersion = 17206, - /// Indicates that the request type sent to the backend is invalid. - FIRAuthErrorCodeInvalidReqType = 17207, - /// Indicates that the reCAPTCHA SDK is not linked to the app. - FIRAuthErrorCodeRecaptchaSDKNotLinked = 17208, - /// Indicates that the reCAPTCHA SDK site key wasn’t found. - FIRAuthErrorCodeRecaptchaSiteKeyMissing = 17209, - /// Indicates that the reCAPTCHA SDK actions class failed to create. - FIRAuthErrorCodeRecaptchaActionCreationFailed = 17210, - /// Indicates that the password does not meet the project’s password policy. - FIRAuthErrorCodePasswordDoesNotMeetRequirements = 17211, - /// Indicates an error occurred while attempting to access the keychain. - FIRAuthErrorCodeKeychainError = 17995, - /// Indicates an internal error occurred. - FIRAuthErrorCodeInternalError = 17999, - /// Raised when a JWT fails to parse correctly. May be accompanied by an - /// underlying error - /// describing which step of the JWT parsing process failed. - FIRAuthErrorCodeMalformedJWT = 18000, -}; -static NSString* _Nonnull const FIRAuthErrorCodeDomain = - @"FirebaseAuth.AuthErrorCode"; - -/// Error Codes common to all API Methods: -SWIFT_CLASS_NAMED("AuthErrors") -@interface FIRAuthErrors : NSObject -/// The Firebase Auth error domain. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull domain;) -+ (NSString* _Nonnull)domain SWIFT_WARN_UNUSED_RESULT; -/// The name of the key for the error short string of an error code. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull userInfoNameKey;) -+ (NSString* _Nonnull)userInfoNameKey SWIFT_WARN_UNUSED_RESULT; -/// Error codes for Email operations -/// Errors with one of the following three codes: -///
    -///
  • -/// accountExistsWithDifferentCredential -///
  • -///
  • -/// credentialAlreadyInUse -///
  • -///
  • -/// emailAlreadyInUse` -///
  • -///
-/// may contain an NSError.userInfo dictionary object which -/// contains this key. The value associated with this key is an NSString of the -/// email address of the account that already exists. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull userInfoEmailKey;) -+ (NSString* _Nonnull)userInfoEmailKey SWIFT_WARN_UNUSED_RESULT; -/// The key used to read the updated Auth credential from the userInfo -/// dictionary of the NSError object returned. This is the updated auth -/// credential the developer should use for recovery if applicable. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull userInfoUpdatedCredentialKey;) -+ (NSString* _Nonnull)userInfoUpdatedCredentialKey SWIFT_WARN_UNUSED_RESULT; -/// The key used to read the MFA resolver from the userInfo dictionary of the -/// NSError object returned when 2FA is required for sign-incompletion. -SWIFT_CLASS_PROPERTY( - @property(nonatomic, class, readonly, copy) - NSString* _Nonnull FIRAuthErrorUserInfoMultiFactorResolverKey;) -+ (NSString* _Nonnull) - FIRAuthErrorUserInfoMultiFactorResolverKey SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -/// Determines settings related to an auth object. -SWIFT_CLASS_NAMED("AuthSettings") -@interface FIRAuthSettings : NSObject -/// Flag to determine whether app verification should be disabled for testing or -/// not. -@property(nonatomic) BOOL appVerificationDisabledForTesting; -/// Flag to determine whether app verification should be disabled for testing or -/// not. -@property(nonatomic) BOOL isAppVerificationDisabledForTesting; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -- (id _Nonnull)copyWithZone:(struct _NSZone* _Nullable)zone - SWIFT_WARN_UNUSED_RESULT; -@end - -@class NSDate; -/// A data class containing the ID token JWT string and other properties -/// associated with the token including the decoded payload claims. -SWIFT_CLASS_NAMED("AuthTokenResult") -@interface FIRAuthTokenResult : NSObject -/// Stores the JWT string of the ID token. -@property(nonatomic, copy) NSString* _Nonnull token; -/// Stores the ID token’s expiration date. -@property(nonatomic, copy) NSDate* _Nonnull expirationDate; -/// Stores the ID token’s authentication date. -/// This is the date the user was signed in and NOT the date the token was -/// refreshed. -@property(nonatomic, copy) NSDate* _Nonnull authDate; -/// Stores the date that the ID token was issued. -/// This is the date last refreshed and NOT the last authentication date. -@property(nonatomic, copy) NSDate* _Nonnull issuedAtDate; -/// Stores sign-in provider through which the token was obtained. -@property(nonatomic, copy) NSString* _Nonnull signInProvider; -/// Stores sign-in second factor through which the token was obtained. -@property(nonatomic, copy) NSString* _Nonnull signInSecondFactor; -/// Stores the entire payload of claims found on the ID token. -/// This includes the standard -/// reserved claims as well as custom claims set by the developer via the Admin -/// SDK. -@property(nonatomic, copy) NSDictionary* _Nonnull claims; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRAuthTokenResult (SWIFT_EXTENSION (FirebaseAuth)) -@end - -@class UIViewController; -/// A protocol to handle user interface interactions for Firebase Auth. -/// This protocol is available on iOS, macOS Catalyst, and tvOS only. -SWIFT_PROTOCOL_NAMED("AuthUIDelegate") -@protocol FIRAuthUIDelegate -/// If implemented, this method will be invoked when Firebase Auth needs to -/// display a view controller. -/// \param viewControllerToPresent The view controller to be presented. -/// -/// \param flag Decides whether the view controller presentation should be -/// animated. -/// -/// \param completion The block to execute after the presentation finishes. -/// This block has no return value and takes no parameters. -/// -- (void)presentViewController: - (UIViewController* _Nonnull)viewControllerToPresent - animated:(BOOL)flag - completion:(void (^_Nullable)(void))completion; -/// If implemented, this method will be invoked when Firebase Auth needs to -/// display a view controller. -/// \param flag Decides whether removing the view controller should be animated -/// or not. -/// -/// \param completion The block to execute after the presentation finishes. -/// This block has no return value and takes no parameters. -/// -- (void)dismissViewControllerAnimated:(BOOL)flag - completion:(void (^_Nullable)(void))completion; -@end - -/// A concrete implementation of AuthProvider for Email & Password -/// Sign In. -SWIFT_CLASS_NAMED("EmailAuthProvider") -@interface FIREmailAuthProvider : NSObject -/// A string constant identifying the email & password identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for an email & password sign in -/// \param email The user’s email address. -/// -/// \param password The user’s password. -/// -/// -/// returns: -/// An AuthCredential containing the email & password credential. -+ (FIRAuthCredential* _Nonnull)credentialWithEmail:(NSString* _Nonnull)email - password:(NSString* _Nonnull)password - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for an email & link sign in. -/// \param email The user’s email address. -/// -/// \param link The email sign-in link. -/// -/// -/// returns: -/// An AuthCredential containing the email & link credential. -+ (FIRAuthCredential* _Nonnull)credentialWithEmail:(NSString* _Nonnull)email - link:(NSString* _Nonnull)link - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -/// Utility class for constructing Facebook Sign In credentials. -SWIFT_CLASS_NAMED("FacebookAuthProvider") -@interface FIRFacebookAuthProvider : NSObject -/// A string constant identifying the Facebook identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a Facebook sign in. -/// \param accessToken The Access Token from Facebook. -/// -/// -/// returns: -/// An AuthCredential containing the Facebook credentials. -+ (FIRAuthCredential* _Nonnull)credentialWithAccessToken: - (NSString* _Nonnull)accessToken SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -/// Utility type for constructing federated auth provider credentials. -SWIFT_PROTOCOL_NAMED("FederatedAuthProvider") -@protocol FIRFederatedAuthProvider -/// Used to obtain an auth credential via a mobile web flow. -/// This method is available on iOS only. -/// \param uiDelegate An optional UI delegate used to present the mobile web -/// flow. -/// -/// \param completionHandler Optionally; a block which is invoked -/// asynchronously on the main thread when the mobile web flow is -/// completed. -/// -- (void)getCredentialWithUIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nonnull)( - FIRAuthCredential* _Nullable, - NSError* _Nullable))completionHandler - SWIFT_AVAILABILITY(watchos, introduced = 8); -@end - -/// A concrete implementation of AuthProvider for Game Center Sign -/// In. Not available on watchOS. -SWIFT_CLASS_NAMED("GameCenterAuthProvider") -@interface FIRGameCenterAuthProvider : NSObject -/// A string constant identifying the Game Center identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a Game Center sign in. -+ (void)getCredentialWithCompletion: - (void (^_Nonnull)(FIRAuthCredential* _Nullable, - NSError* _Nullable))completion; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -/// Utility class for constructing GitHub Sign In credentials. -SWIFT_CLASS_NAMED("GitHubAuthProvider") -@interface FIRGitHubAuthProvider : NSObject -/// A string constant identifying the GitHub identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a GitHub sign in. -/// \param token The GitHub OAuth access token. -/// -/// -/// returns: -/// An AuthCredential containing the GitHub credentials. -+ (FIRAuthCredential* _Nonnull)credentialWithToken:(NSString* _Nonnull)token - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -/// Utility class for constructing Google Sign In credentials. -SWIFT_CLASS_NAMED("GoogleAuthProvider") -@interface FIRGoogleAuthProvider : NSObject -/// A string constant identifying the Google identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a Google sign in. -/// \param idToken The ID Token from Google. -/// -/// \param accessToken The Access Token from Google. -/// -/// -/// returns: -/// An AuthCredential containing the Google credentials. -+ (FIRAuthCredential* _Nonnull)credentialWithIDToken:(NSString* _Nonnull)idToken - accessToken: - (NSString* _Nonnull)accessToken - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -@class FIRMultiFactorInfo; -@class FIRMultiFactorSession; -@class FIRMultiFactorAssertion; -/// The interface defining the multi factor related properties and operations -/// pertaining to a user. This class is available on iOS and macOS. -SWIFT_CLASS_NAMED("MultiFactor") -@interface FIRMultiFactor : NSObject -@property(nonatomic, copy) - NSArray* _Nonnull enrolledFactors; -/// Get a session for a second factor enrollment operation. -/// This is used to identify the current user trying to enroll a second factor. -/// \param completion A block with the session identifier for a second factor -/// enrollment operation. -/// -- (void)getSessionWithCompletion: - (void (^_Nullable)(FIRMultiFactorSession* _Nullable, - NSError* _Nullable))completion; -/// Enrolls a second factor as identified by the -/// MultiFactorAssertion parameter for the current user. -/// \param assertion The MultiFactorAssertion. -/// -/// \param displayName An optional display name associated with the multi factor -/// to enroll. -/// -/// \param completion The block invoked when the request is complete, or fails. -/// -- (void)enrollWithAssertion:(FIRMultiFactorAssertion* _Nonnull)assertion - displayName:(NSString* _Nullable)displayName - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Unenroll the given multi factor. -/// \param factorInfo The second factor instance to unenroll. -/// -/// \param completion The block invoked when the request to send the -/// verification email is complete, or fails. -/// -- (void)unenrollWithInfo:(FIRMultiFactorInfo* _Nonnull)factorInfo - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Unenroll the given multi factor. -/// \param factorUID The unique identifier corresponding to the -/// second factor being unenrolled. -/// -/// \param completion The block invoked when the request to send the -/// verification email is complete, or fails. -/// -- (void)unenrollWithFactorUID:(NSString* _Nonnull)factorUID - completion:(void (^_Nullable)(NSError* _Nullable))completion; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -@end - -@interface FIRMultiFactor (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// The base class for asserting ownership of a second factor. This is -/// equivalent to the AuthCredential class. This class is available on iOS and -/// macOS. -SWIFT_CLASS_NAMED("MultiFactorAssertion") -@interface FIRMultiFactorAssertion : NSObject -/// The second factor identifier for this opaque object asserting a second -/// factor. -@property(nonatomic, copy) NSString* _Nonnull factorID; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Safe public structure used to represent a second factor entity from a client -/// perspective. This class is available on iOS and macOS. -SWIFT_CLASS_NAMED("MultiFactorInfo") -@interface FIRMultiFactorInfo : NSObject -/// The multi-factor enrollment ID. -@property(nonatomic, readonly, copy) NSString* _Nonnull UID; -/// The user friendly name of the current second factor. -@property(nonatomic, readonly, copy) NSString* _Nullable displayName; -/// The second factor enrollment date. -@property(nonatomic, readonly, copy) NSDate* _Nonnull enrollmentDate; -/// The identifier of the second factor. -@property(nonatomic, readonly, copy) NSString* _Nonnull factorID; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRMultiFactorInfo (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// The subclass of base class MultiFactorAssertion, used to assert -/// ownership of a phone second factor. This class is available on iOS and -/// macOS. -SWIFT_CLASS_NAMED("MultiFactorResolver") -@interface FIRMultiFactorResolver : NSObject -/// The opaque session identifier for the current sign-in flow. -@property(nonatomic, readonly, strong) FIRMultiFactorSession* _Nonnull session; -/// The list of hints for the second factors needed to complete the sign-in for -/// the current session. -@property(nonatomic, readonly, copy) - NSArray* _Nonnull hints; -/// The Auth reference for the current MultiResolver. -@property(nonatomic, readonly, strong) FIRAuth* _Nonnull auth; -/// A helper function to help users complete sign in with a second factor using -/// a -/// \param assertion The assertion confirming the user successfully -/// completed the second factor challenge. -/// -/// \param completion The block invoked when the request is complete, or fails. -/// -- (void)resolveSignInWithAssertion:(FIRMultiFactorAssertion* _Nonnull)assertion - completion: - (void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Opaque object that identifies the current session to enroll a second factor -/// or to complete sign in when previously enrolled. Identifies the current -/// session to enroll a second factor or to complete sign in when previously -/// enrolled. It contains additional context on the existing user, notably the -/// confirmation that the user passed the first factor challenge. This class is -/// available on iOS and macOS. -SWIFT_CLASS_NAMED("MultiFactorSession") -@interface FIRMultiFactorSession : NSObject -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Internal implementation of AuthCredential for generic -/// credentials. -SWIFT_CLASS_NAMED("OAuthCredential") -@interface FIROAuthCredential : FIRAuthCredential -/// The ID Token associated with this credential. -@property(nonatomic, readonly, copy) NSString* _Nullable IDToken; -/// The access token associated with this credential. -@property(nonatomic, readonly, copy) NSString* _Nullable accessToken; -/// The secret associated with this credential. This will be nil for OAuth 2.0 -/// providers. OAuthCredential already exposes a provider getter. -/// This will help the developer determine whether an access token / secret pair -/// is needed. -@property(nonatomic, readonly, copy) NSString* _Nullable secret; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -@end - -@class NSPersonNameComponents; -/// Utility class for constructing OAuth Sign In credentials. -SWIFT_CLASS_NAMED("OAuthProvider") -@interface FIROAuthProvider : NSObject -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Array used to configure the OAuth scopes. -@property(nonatomic, copy) NSArray* _Nullable scopes; -/// Dictionary used to configure the OAuth custom parameters. -@property(nonatomic, copy) - NSDictionary* _Nullable customParameters; -/// The provider ID indicating the specific OAuth provider this OAuthProvider -/// instance represents. -@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; -/// An instance of OAuthProvider corresponding to the given provider ID. -/// \param providerID The provider ID of the IDP for which this auth provider -/// instance will be configured. -/// -/// -/// returns: -/// An instance of OAuthProvider corresponding to the specified provider ID. -+ (FIROAuthProvider* _Nonnull)providerWithProviderID: - (NSString* _Nonnull)providerID SWIFT_WARN_UNUSED_RESULT; -/// An instance of OAuthProvider corresponding to the given provider ID and auth -/// instance. -/// \param providerID The provider ID of the IDP for which this auth provider -/// instance will be configured. -/// -/// \param auth The auth instance to be associated with the OAuthProvider -/// instance. -/// -/// -/// returns: -/// An instance of OAuthProvider corresponding to the specified provider ID. -+ (FIROAuthProvider* _Nonnull)providerWithProviderID: - (NSString* _Nonnull)providerID - auth:(FIRAuth* _Nonnull)auth - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for the OAuth 2 provider identified -/// by provider ID, ID token, and access token. -/// \param providerID The provider ID associated with the Auth credential being -/// created. -/// -/// \param idToken The IDToken associated with the Auth credential being -/// created. -/// -/// \param accessToken The access token associated with the Auth credential be -/// created, if available. -/// -/// -/// returns: -/// An AuthCredential for the specified provider ID, ID token and access token. -+ (FIROAuthCredential* _Nonnull) - credentialWithProviderID:(NSString* _Nonnull)providerID - IDToken:(NSString* _Nonnull)idToken - accessToken:(NSString* _Nullable)accessToken - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for the OAuth 2 provider identified -/// by provider ID, ID token, and access token. -/// \param providerID The provider ID associated with the Auth credential being -/// created. -/// -/// \param accessToken The access token associated with the Auth credential be -/// created, if available. -/// -/// -/// returns: -/// An AuthCredential for the specified provider ID, ID token and access token. -+ (FIROAuthCredential* _Nonnull) - credentialWithProviderID:(NSString* _Nonnull)providerID - accessToken:(NSString* _Nonnull)accessToken - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for that OAuth 2 provider identified -/// by provider ID, ID token, raw nonce, and access token. -/// \param providerID The provider ID associated with the Auth credential being -/// created. -/// -/// \param idToken The IDToken associated with the Auth credential being -/// created. -/// -/// \param rawNonce The raw nonce associated with the Auth credential being -/// created. -/// -/// \param accessToken The access token associated with the Auth credential be -/// created. -/// -/// -/// returns: -/// An AuthCredential for the specified provider ID, ID token and access token. -+ (FIROAuthCredential* _Nonnull) - credentialWithProviderID:(NSString* _Nonnull)providerID - IDToken:(NSString* _Nonnull)idToken - rawNonce:(NSString* _Nonnull)rawNonce - accessToken:(NSString* _Nonnull)accessToken - SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for that OAuth 2 provider identified -/// by providerID using an ID token and raw nonce. -/// \param providerID The provider ID associated with the Auth credential being -/// created. -/// -/// \param idToken The IDToken associated with the Auth credential being -/// created. -/// -/// \param rawNonce The raw nonce associated with the Auth credential being -/// created. -/// -/// -/// returns: -/// An AuthCredential. -+ (FIROAuthCredential* _Nonnull) - credentialWithProviderID:(NSString* _Nonnull)providerID - IDToken:(NSString* _Nonnull)idToken - rawNonce:(NSString* _Nonnull)rawNonce - SWIFT_WARN_UNUSED_RESULT; -/// Used to obtain an auth credential via a mobile web flow. -/// This method is available on iOS only. -/// \param uiDelegate An optional UI delegate used to present the mobile web -/// flow. -/// -/// \param completionHandler Optionally; a block which is invoked -/// asynchronously on the main thread when the mobile web flow is -/// completed. -/// -- (void)getCredentialWithUIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nonnull)( - FIRAuthCredential* _Nullable, - NSError* _Nullable))completionHandler - SWIFT_AVAILABILITY(watchos, introduced = 8) - SWIFT_AVAILABILITY(macos, introduced = 10.15) - SWIFT_AVAILABILITY(tvos, introduced = 13) - SWIFT_AVAILABILITY(ios, introduced = 13); -/// Creates an AuthCredential for the Sign in with Apple OAuth 2 -/// provider identified by ID token, raw nonce, and full name.This method is -/// specific to the Sign in with Apple OAuth 2 provider as this provider -/// requires the full name to be passed explicitly. -/// \param idToken The IDToken associated with the Sign in with Apple Auth -/// credential being created. -/// -/// \param rawNonce The raw nonce associated with the Sign in with Apple Auth -/// credential being created. -/// -/// \param fullName The full name associated with the Sign in with Apple Auth -/// credential being created. -/// -/// -/// returns: -/// An AuthCredential. -+ (FIROAuthCredential* _Nonnull) - appleCredentialWithIDToken:(NSString* _Nonnull)idToken - rawNonce:(NSString* _Nullable)rawNonce - fullName:(NSPersonNameComponents* _Nullable)fullName - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Implementation of AuthCredential for Phone Auth credentials. -/// This class is available on iOS only. -SWIFT_CLASS_NAMED("PhoneAuthCredential") -@interface FIRPhoneAuthCredential : FIRAuthCredential -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -@end - -@class FIRPhoneMultiFactorInfo; -/// A concrete implementation of AuthProvider for phone auth -/// providers. This class is available on iOS only. -SWIFT_CLASS_NAMED("PhoneAuthProvider") -@interface FIRPhoneAuthProvider : NSObject -/// A string constant identifying the phone identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Returns an instance of PhoneAuthProvider for the default -/// Auth object. -+ (FIRPhoneAuthProvider* _Nonnull)provider SWIFT_WARN_UNUSED_RESULT; -/// Returns an instance of PhoneAuthProvider for the provided -/// Auth object. -/// \param auth The auth object to associate with the phone auth provider -/// instance. -/// -+ (FIRPhoneAuthProvider* _Nonnull)providerWithAuth:(FIRAuth* _Nonnull)auth - SWIFT_WARN_UNUSED_RESULT; -/// Starts the phone number authentication flow by sending a verification code -/// to the specified phone number. Possible error codes:
    -///
  • -/// AuthErrorCodeCaptchaCheckFailed - Indicates that the -/// reCAPTCHA token obtained by the Firebase Auth is invalid or has expired. -///
  • -///
  • -/// AuthErrorCodeQuotaExceeded - Indicates that the phone -/// verification quota for this project has been exceeded. -///
  • -///
  • -/// AuthErrorCodeInvalidPhoneNumber - Indicates that the phone -/// number provided is invalid. -///
  • -///
  • -/// AuthErrorCodeMissingPhoneNumber - Indicates that a phone -/// number was not provided. -///
  • -///
-/// \param phoneNumber The phone number to be verified. -/// -/// \param uiDelegate An object used to present the SFSafariViewController. The -/// object is retained by this method until the completion block is executed. -/// -/// \param completion The callback to be invoked when the verification flow is -/// finished. -/// -- (void)verifyPhoneNumber:(NSString* _Nonnull)phoneNumber - UIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nullable)(NSString* _Nullable, - NSError* _Nullable))completion; -/// Verify ownership of the second factor phone number by the current user. -/// \param phoneNumber The phone number to be verified. -/// -/// \param uiDelegate An object used to present the SFSafariViewController. The -/// object is retained by this method until the completion block is executed. -/// -/// \param multiFactorSession A session to identify the MFA flow. For -/// enrollment, this identifies the user trying to enroll. For sign-in, this -/// identifies that the user already passed the first factor challenge. -/// -/// \param completion The callback to be invoked when the verification flow is -/// finished. -/// -- (void)verifyPhoneNumber:(NSString* _Nonnull)phoneNumber - UIDelegate:(id _Nullable)uiDelegate - multiFactorSession:(FIRMultiFactorSession* _Nullable)multiFactorSession - completion:(void (^_Nullable)(NSString* _Nullable, - NSError* _Nullable))completion; -/// Verify ownership of the second factor phone number by the current user. -/// \param multiFactorInfo The phone multi factor whose number need to be -/// verified. -/// -/// \param uiDelegate An object used to present the SFSafariViewController. The -/// object is retained by this method until the completion block is executed. -/// -/// \param multiFactorSession A session to identify the MFA flow. For -/// enrollment, this identifies the user trying to enroll. For sign-in, this -/// identifies that the user already passed the first factor challenge. -/// -/// \param completion The callback to be invoked when the verification flow is -/// finished. -/// -- (void) - verifyPhoneNumberWithMultiFactorInfo: - (FIRPhoneMultiFactorInfo* _Nonnull)multiFactorInfo - UIDelegate: - (id _Nullable)uiDelegate - multiFactorSession: - (FIRMultiFactorSession* _Nullable)multiFactorSession - completion:(void (^_Nullable)(NSString* _Nullable, - NSError* _Nullable)) - completion; -/// Creates an AuthCredential for the phone number provider -/// identified by the verification ID and verification code. -/// \param verificationID The verification ID obtained from invoking -/// verifyPhoneNumber:completion: -/// -/// \param verificationCode The verification code obtained from the user. -/// -/// -/// returns: -/// The corresponding phone auth credential for the verification ID and -/// verification code provided. -- (FIRPhoneAuthCredential* _Nonnull) - credentialWithVerificationID:(NSString* _Nonnull)verificationID - verificationCode:(NSString* _Nonnull)verificationCode - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// The subclass of base class FIRMultiFactorAssertion, used to assert ownership -/// of a phone second factor. This class is available on iOS and macOS. -SWIFT_CLASS_NAMED("PhoneMultiFactorAssertion") -@interface FIRPhoneMultiFactorAssertion : FIRMultiFactorAssertion -@end - -/// The data structure used to help initialize an assertion for a second factor -/// entity to the Firebase Auth/CICP server. Depending on the type of second -/// factor, this will help generate the assertion. This class is available on -/// iOS and macOS. -SWIFT_CLASS_NAMED("PhoneMultiFactorGenerator") -@interface FIRPhoneMultiFactorGenerator : NSObject -/// Initializes the MFA assertion to confirm ownership of the phone second -/// factor. Note that this API is used for both enrolling and signing in with a -/// phone second factor. -/// \param phoneAuthCredential The phone auth credential used for multi factor -/// flows. -/// -+ (FIRPhoneMultiFactorAssertion* _Nonnull)assertionWithCredential: - (FIRPhoneAuthCredential* _Nonnull)phoneAuthCredential - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -/// Extends the MultiFactorInfo class for phone number second factors. -/// The identifier of this second factor is “phone”. -/// This class is available on iOS and macOS. -SWIFT_CLASS_NAMED("PhoneMultiFactorInfo") -@interface FIRPhoneMultiFactorInfo : FIRMultiFactorInfo -/// The string identifier for using phone as a second factor. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull FIRPhoneMultiFactorID;) -+ (NSString* _Nonnull)FIRPhoneMultiFactorID SWIFT_WARN_UNUSED_RESULT; -/// The string identifier for using TOTP as a second factor. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull FIRTOTPMultiFactorID;) -+ (NSString* _Nonnull)FIRTOTPMultiFactorID SWIFT_WARN_UNUSED_RESULT; -/// This is the phone number associated with the current second factor. -@property(nonatomic, copy) NSString* _Nonnull phoneNumber; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -@end - -/// The subclass of base class MultiFactorAssertion, used to assert ownership of -/// a TOTP (Time-based One Time Password) second factor. This class is available -/// on iOS and macOS. -SWIFT_CLASS_NAMED("TOTPMultiFactorAssertion") -@interface FIRTOTPMultiFactorAssertion : FIRMultiFactorAssertion -@end - -@class FIRTOTPSecret; -/// The data structure used to help initialize an assertion for a second factor -/// entity to the Firebase Auth/CICP server. Depending on the type of second -/// factor, this will help generate the assertion. This class is available on -/// iOS and macOS. -SWIFT_CLASS_NAMED("TOTPMultiFactorGenerator") -@interface FIRTOTPMultiFactorGenerator : NSObject -/// Creates a TOTP secret as part of enrolling a TOTP second factor. Used for -/// generating a QR code URL or inputting into a TOTP app. This method uses the -/// auth instance corresponding to the user in the multiFactorSession. -/// \param session The multiFactorSession instance. -/// -/// \param completion Completion block -/// -+ (void)generateSecretWithMultiFactorSession: - (FIRMultiFactorSession* _Nonnull)session - completion:(void (^_Nonnull)( - FIRTOTPSecret* _Nullable, - NSError* _Nullable))completion; -/// Initializes the MFA assertion to confirm ownership of the TOTP second -/// factor. This assertion is used to complete enrollment of TOTP as a second -/// factor. -/// \param secret The TOTP secret. -/// -/// \param oneTimePassword One time password string. -/// -/// -/// returns: -/// The MFA assertion. -+ (FIRTOTPMultiFactorAssertion* _Nonnull) - assertionForEnrollmentWithSecret:(FIRTOTPSecret* _Nonnull)secret - oneTimePassword:(NSString* _Nonnull)oneTimePassword - SWIFT_WARN_UNUSED_RESULT; -/// Initializes the MFA assertion to confirm ownership of the TOTP second -/// factor. This assertion is used to complete signIn with TOTP as a second -/// factor. -/// \param enrollmentID The ID that identifies the enrolled TOTP second factor. -/// -/// \param oneTimePassword one time password string. -/// -/// -/// returns: -/// The MFA assertion. -+ (FIRTOTPMultiFactorAssertion* _Nonnull) - assertionForSignInWithEnrollmentID:(NSString* _Nonnull)enrollmentID - oneTimePassword:(NSString* _Nonnull)oneTimePassword - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -/// The subclass of base class MultiFactorAssertion, used to assert ownership of -/// a TOTP (Time-based One Time Password) second factor. This class is available -/// on iOS and macOS. -SWIFT_CLASS_NAMED("TOTPSecret") -@interface FIRTOTPSecret : NSObject -/// Returns the shared secret key/seed used to generate time-based one-time -/// passwords. -- (NSString* _Nonnull)sharedSecretKey SWIFT_WARN_UNUSED_RESULT; -/// Returns a QRCode URL as described in -/// https://github.com/google/google-authenticator/wiki/Key-Uri-Format. -/// This can be displayed to the user as a QRCode to be scanned into a TOTP app -/// like Google Authenticator. -/// \param accountName The name of the account/app. -/// -/// \param issuer Issuer of the TOTP(likely the app name). -/// -/// -/// returns: -/// A QRCode URL string. -- (NSString* _Nonnull) - generateQRCodeURLWithAccountName:(NSString* _Nonnull)accountName - issuer:(NSString* _Nonnull)issuer - SWIFT_WARN_UNUSED_RESULT; -/// Opens the specified QR Code URL in a password manager like iCloud Keychain. -/// See more details -/// here -- (void)openInOTPAppWithQRCodeURL:(NSString* _Nonnull)qrCodeURL; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -/// Utility class for constructing Twitter Sign In credentials. -SWIFT_CLASS_NAMED("TwitterAuthProvider") -@interface FIRTwitterAuthProvider : NSObject -/// A string constant identifying the Twitter identity provider. -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, copy) - NSString* _Nonnull id;) -+ (NSString* _Nonnull)id SWIFT_WARN_UNUSED_RESULT; -/// Creates an AuthCredential for a Twitter sign in. -/// \param token The Twitter OAuth token. -/// -/// \param secret The Twitter OAuth secret. -/// -/// -/// returns: -/// An AuthCredential containing the Twitter credentials. -+ (FIRAuthCredential* _Nonnull)credentialWithToken:(NSString* _Nonnull)token - secret:(NSString* _Nonnull)secret - SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE; -@end - -/// Represents user data returned from an identity provider. -SWIFT_PROTOCOL_NAMED("UserInfo") -@protocol FIRUserInfo -/// The provider identifier. -@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; -/// The provider’s user ID for the user. -@property(nonatomic, readonly, copy) NSString* _Nonnull uid; -/// The name of the user. -@property(nonatomic, readonly, copy) NSString* _Nullable displayName; -/// The URL of the user’s profile photo. -@property(nonatomic, readonly, copy) NSURL* _Nullable photoURL; -/// The user’s email address. -@property(nonatomic, readonly, copy) NSString* _Nullable email; -/// A phone number associated with the user. -/// This property is only available for users authenticated via phone number -/// auth. -@property(nonatomic, readonly, copy) NSString* _Nullable phoneNumber; -@end - -@class FIRUserMetadata; -@class FIRUserProfileChangeRequest; -/// Represents a user. -/// Firebase Auth does not attempt to validate users -/// when loading them from the keychain. Invalidated users (such as those -/// whose passwords have been changed on another client) are automatically -/// logged out when an auth-dependent operation is attempted or when the -/// ID token is automatically refreshed. -/// This class is thread-safe. -SWIFT_CLASS_NAMED("User") -@interface FIRUser : NSObject -/// Indicates the user represents an anonymous user. -@property(nonatomic, readonly) BOOL isAnonymous; -/// Indicates the user represents an anonymous user. -- (BOOL)anonymous SWIFT_WARN_UNUSED_RESULT; -/// Indicates the email address associated with this user has been verified. -@property(nonatomic, readonly) BOOL isEmailVerified; -/// Indicates the email address associated with this user has been verified. -- (BOOL)emailVerified SWIFT_WARN_UNUSED_RESULT; -/// Profile data for each identity provider, if any. -/// This data is cached on sign-in and updated when linking or unlinking. -@property(nonatomic, readonly, copy) - NSArray>* _Nonnull providerData; -/// Metadata associated with the Firebase user in question. -@property(nonatomic, readonly, strong) FIRUserMetadata* _Nonnull metadata; -/// The tenant ID of the current user. nil if none is available. -@property(nonatomic, readonly, copy) NSString* _Nullable tenantID; -/// Multi factor object associated with the user. -/// This property is available on iOS and macOS. -@property(nonatomic, readonly, strong) FIRMultiFactor* _Nonnull multiFactor; -/// [Deprecated] Updates the email address for the user. -/// On success, the cached user profile data is updated. Returns an error when -/// Email -/// Enumeration Protection is enabled. May fail if there is already an -/// account with this email address that was created using email and password -/// authentication. Invoked asynchronously on the main thread in the future. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
  • -/// AuthErrorCodeEmailAlreadyInUse - Indicates the email is -/// already in use by another account. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating a user’s email -/// is a security sensitive operation that requires a recent login from the -/// user. This error indicates the user has not signed in recently enough. -/// To resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
-/// \param email The email address for the user. -/// -/// \param completion Optionally; the block invoked when the user profile change -/// has finished. -/// -- (void)updateEmail:(NSString* _Nonnull)email - completion:(void (^_Nullable)(NSError* _Nullable))completion - SWIFT_DEPRECATED_MSG( - "`updateEmail` is deprecated and will be removed in a future release. " - "Use sendEmailVerification(beforeUpdatingEmail:) instead."); -/// Updates the password for the user. On success, the cached user profile data -/// is updated. Invoked asynchronously on the main thread in the future. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates the -/// administrator disabled sign in with the specified identity provider. -///
  • -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating a user’s -/// password is a security sensitive operation that requires a recent login -/// from the user. This error indicates the user has not signed in recently -/// enough. To resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
  • -/// AuthErrorCodeWeakPassword - Indicates an attempt to set a -/// password that is considered too weak. The -/// NSLocalizedFailureReasonErrorKey field in the -/// userInfo dictionary object will contain more detailed -/// explanation that can be shown to the user. -///
  • -///
-/// \param password The new password for the user. -/// -/// \param completion Optionally; the block invoked when the user profile change -/// has finished. -/// -- (void)updatePassword:(NSString* _Nonnull)password - completion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Updates the phone number for the user. On success, the cached user profile -/// data is updated. Invoked asynchronously on the main thread in the future. -/// This method is available on iOS only. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating a user’s phone -/// number is a security sensitive operation that requires a recent login -/// from the user. This error indicates the user has not signed in recently -/// enough. To resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
-/// \param credential The new phone number credential corresponding to the -/// phone number to be added to the Firebase account, if a phone number is -/// already linked to the account this new phone number will replace it. -/// -/// \param completion Optionally; the block invoked when the user profile change -/// has finished. -/// -- (void)updatePhoneNumberCredential:(FIRPhoneAuthCredential* _Nonnull)credential - completion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Creates an object which may be used to change the user’s profile data. -/// Set the properties of the returned object, then call -/// UserProfileChangeRequest.commitChanges() to perform the updates -/// atomically. -/// -/// returns: -/// An object which may be used to change the user’s profile data atomically. -- (FIRUserProfileChangeRequest* _Nonnull) - profileChangeRequest SWIFT_WARN_UNUSED_RESULT; -/// A refresh token; useful for obtaining new access tokens independently. -/// This property should only be used for advanced scenarios, and is not -/// typically needed. -@property(nonatomic, readonly, copy) NSString* _Nullable refreshToken; -/// Reloads the user’s profile data from the server. -/// May fail with an AuthErrorCodeRequiresRecentLogin error code. -/// In this case you should call reauthenticate(with:) before -/// re-invoking updateEmail(to:). -/// \param completion Optionally; the block invoked when the reload has -/// finished. Invoked asynchronously on the main thread in the future. -/// -- (void)reloadWithCompletion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Renews the user’s authentication tokens by validating a fresh set of -/// credentials supplied by the user and returns additional identity provider -/// data. If the user associated with the supplied credential is different from -/// the current user, or if the validation of the supplied credentials fails; an -/// error is returned and the current user remains signed in. Possible error -/// codes:
    -///
  • -/// AuthErrorCodeInvalidCredential - Indicates the supplied -/// credential is invalid. This could happen if it has expired or it is -/// malformed. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that accounts -/// with the identity provider represented by the credential are not -/// enabled. Enable them in the Auth section of the Firebase console. -///
  • -///
  • -/// AuthErrorCodeEmailAlreadyInUse - Indicates the email -/// asserted by the credential (e.g. the email in a Facebook access token) -/// is already in use by an existing account, that cannot be authenticated -/// with this method. This error will only be thrown if the “One account per -/// email address” setting is enabled in the Firebase console, under Auth -/// settings. Please note that the error code raised in this specific -/// situation may not be the same on Web and Android. -///
  • -///
  • -/// AuthErrorCodeUserDisabled - Indicates the user’s account is -/// disabled. -///
  • -///
  • -/// AuthErrorCodeWrongPassword - Indicates the user attempted -/// reauthentication with an incorrect password, if credential is of the -/// type EmailPasswordAuthCredential. -///
  • -///
  • -/// AuthErrorCodeUserMismatch - Indicates that an attempt was -/// made to reauthenticate with a user which is not the current user. -///
  • -///
  • -/// AuthErrorCodeInvalidEmail - Indicates the email address is -/// malformed. -///
  • -///
-/// \param credential A user-supplied credential, which will be validated by the -/// server. This can be a successful third-party identity provider sign-in, or -/// an email address and password. -/// -/// \param completion Optionally; the block invoked when the re-authentication -/// operation has finished. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)reauthenticateWithCredential:(FIRAuthCredential* _Nonnull)credential - completion: - (void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Renews the user’s authentication using the provided auth provider instance. -/// This method is available on iOS only. -/// \param provider An instance of an auth provider used to initiate the -/// reauthenticate flow. -/// -/// \param uiDelegate Optionally an instance of a class conforming to the -/// AuthUIDelegate protocol, used for presenting the web context. -/// If nil, a default AuthUIDelegate will be used. -/// -/// \param completion Optionally; a block which is invoked when the -/// reauthenticate flow finishes, or is canceled. Invoked asynchronously on the -/// main thread in the future. -/// -- (void)reauthenticateWithProvider: - (id _Nonnull)provider - UIDelegate:(id _Nullable)uiDelegate - completion: - (void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. -/// \param completion Optionally; the block invoked when the token is available. -/// Invoked asynchronously on the main thread in the future. -/// -- (void)getIDTokenWithCompletion: - (void (^_Nullable)(NSString* _Nullable, NSError* _Nullable))completion; -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. The authentication token will be refreshed (by making a network -/// request) if it has expired, or if forceRefresh is -/// true. -/// \param forceRefresh Forces a token refresh. Useful if the token becomes -/// invalid for some reason other than an expiration. -/// -/// \param completion Optionally; the block invoked when the token is available. -/// Invoked asynchronously on the main thread in the future. -/// -- (void)getIDTokenForcingRefresh:(BOOL)forceRefresh - completion: - (void (^_Nullable)(NSString* _Nullable, - NSError* _Nullable))completion; -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. -/// \param completion Optionally; the block invoked when the token is available. -/// Invoked asynchronously on the main thread in the future. -/// -- (void)getIDTokenResultWithCompletion: - (void (^_Nullable)(FIRAuthTokenResult* _Nullable, - NSError* _Nullable))completion; -/// Retrieves the Firebase authentication token, possibly refreshing it if it -/// has expired. The authentication token will be refreshed (by making a network -/// request) if it has expired, or if forcingRefresh is -/// true. -/// \param forcingRefresh Forces a token refresh. Useful if the token becomes -/// invalid for some reason other than an expiration. -/// -/// \param completion Optionally; the block invoked when the token is available. -/// Invoked asynchronously on the main thread in the future. -/// -- (void)getIDTokenResultForcingRefresh:(BOOL)forcingRefresh - completion:(void (^_Nullable)( - FIRAuthTokenResult* _Nullable, - NSError* _Nullable))completion; -/// Associates a user account from a third-party identity provider with this -/// user and returns additional identity provider data. Invoked asynchronously -/// on the main thread in the future. Possible error codes:
    -///
  • -/// AuthErrorCodeProviderAlreadyLinked - Indicates an attempt -/// to link a provider of a type already linked to this account. -///
  • -///
  • -/// AuthErrorCodeCredentialAlreadyInUse - Indicates an attempt -/// to link with a credential that has already been linked with a different -/// Firebase account. -///
  • -///
  • -/// AuthErrorCodeOperationNotAllowed - Indicates that accounts -/// with the identity provider represented by the credential are not -/// enabled. Enable them in the Auth section of the Firebase console. -///
  • -///
-/// This method may also return error codes associated with -/// updateEmail(to:) and updatePassword(to:) on -/// User. -/// \param credential The credential for the identity provider. -/// -/// \param completion Optionally; the block invoked when the unlinking is -/// complete, or fails. -/// -- (void)linkWithCredential:(FIRAuthCredential* _Nonnull)credential - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Link the user with the provided auth provider instance. -/// This method is available on iOSonly. -/// \param provider An instance of an auth provider used to initiate the link -/// flow. -/// -/// \param uiDelegate Optionally an instance of a class conforming to the -/// AuthUIDelegate protocol used for presenting the web context. If -/// nil, a default AuthUIDelegate will be used. -/// -/// \param completion Optionally; a block which is invoked when the link flow -/// finishes, or is canceled. Invoked asynchronously on the main thread in the -/// future. -/// -- (void)linkWithProvider:(id _Nonnull)provider - UIDelegate:(id _Nullable)uiDelegate - completion:(void (^_Nullable)(FIRAuthDataResult* _Nullable, - NSError* _Nullable))completion; -/// Disassociates a user account from a third-party identity provider with this -/// user. Invoked asynchronously on the main thread in the future. Possible -/// error codes:
    -///
  • -/// AuthErrorCodeNoSuchProvider - Indicates an attempt to -/// unlink a provider that is not linked to the account. -///
  • -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating email is a -/// security sensitive operation that requires a recent login from the user. -/// This error indicates the user has not signed in recently enough. To -/// resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
-/// \param provider The provider ID of the provider to unlink. -/// -/// \param completion Optionally; the block invoked when the unlinking is -/// complete, or fails. -/// -- (void)unlinkFromProvider:(NSString* _Nonnull)provider - completion:(void (^_Nullable)(FIRUser* _Nullable, - NSError* _Nullable))completion; -/// Initiates email verification for the user. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
  • -/// AuthErrorCodeUserNotFound - Indicates the user account was -/// not found. -///
  • -///
-/// \param completion Optionally; the block invoked when the request to send an -/// email verification is complete, or fails. Invoked asynchronously on the main -/// thread in the future. -/// -- (void)sendEmailVerificationWithCompletion: - (void (^_Nullable)(NSError* _Nullable))completion; -/// Initiates email verification for the user. -/// Possible error codes: -///
    -///
  • -/// AuthErrorCodeInvalidRecipientEmail - Indicates an invalid -/// recipient email was sent in the request. -///
  • -///
  • -/// AuthErrorCodeInvalidSender - Indicates an invalid sender -/// email is set in the console for this action. -///
  • -///
  • -/// AuthErrorCodeInvalidMessagePayload - Indicates an invalid -/// email template for sending update email. -///
  • -///
  • -/// AuthErrorCodeUserNotFound - Indicates the user account was -/// not found. -///
  • -///
-/// \param actionCodeSettings An ActionCodeSettings object -/// containing settings related to handling action codes. -/// -/// \param completion Optionally; the block invoked when the request to send an -/// email verification is complete, or fails. Invoked asynchronously on the main -/// thread in the future. -/// -- (void)sendEmailVerificationWithActionCodeSettings: - (FIRActionCodeSettings* _Nullable)actionCodeSettings - completion: - (void (^_Nullable)( - NSError* _Nullable))completion; -/// Deletes the user account (also signs out the user, if this was the current -/// user). Possible error codes:
    -///
  • -/// AuthErrorCodeRequiresRecentLogin - Updating email is a -/// security sensitive operation that requires a recent login from the user. -/// This error indicates the user has not signed in recently enough. To -/// resolve, reauthenticate the user by calling -/// reauthenticate(with:). -///
  • -///
-/// \param completion Optionally; the block invoked when the request to delete -/// the account is complete, or fails. Invoked asynchronously on the main thread -/// in the future. -/// -- (void)deleteWithCompletion:(void (^_Nullable)(NSError* _Nullable))completion; -/// Send an email to verify the ownership of the account then update to the new -/// email. -/// \param email The email to be updated to. -/// -/// \param completion Optionally; the block invoked when the request to send the -/// verification email is complete, or fails. -/// -- (void)sendEmailVerificationBeforeUpdatingEmail:(NSString* _Nonnull)email - completion: - (void (^_Nullable)( - NSError* _Nullable))completion; -/// Send an email to verify the ownership of the account then update to the new -/// email. -/// \param email The email to be updated to. -/// -/// \param actionCodeSettings An ActionCodeSettings object -/// containing settings related to handling action codes. -/// -/// \param completion Optionally; the block invoked when the request to send the -/// verification email is complete, or fails. -/// -- (void) - sendEmailVerificationBeforeUpdatingEmail:(NSString* _Nonnull)email - actionCodeSettings:(FIRActionCodeSettings* _Nullable) - actionCodeSettings - completion:(void (^_Nullable)( - NSError* _Nullable))completion; -@property(nonatomic, readonly, copy) NSString* _Nonnull providerID; -/// The provider’s user ID for the user. -@property(nonatomic, readonly, copy) NSString* _Nonnull uid; -/// The name of the user. -@property(nonatomic, copy) NSString* _Nullable displayName; -/// The URL of the user’s profile photo. -@property(nonatomic, copy) NSURL* _Nullable photoURL; -/// The user’s email address. -@property(nonatomic, readonly, copy) NSString* _Nullable email; -/// A phone number associated with the user. -/// This property is only available for users authenticated via phone number -/// auth. -@property(nonatomic, readonly, copy) NSString* _Nullable phoneNumber; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder - OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRUser (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// A data class representing the metadata corresponding to a Firebase user. -SWIFT_CLASS_NAMED("UserMetadata") -@interface FIRUserMetadata : NSObject -/// Stores the last sign in date for the corresponding Firebase user. -@property(nonatomic, readonly, copy) NSDate* _Nullable lastSignInDate; -/// Stores the creation date for the corresponding Firebase user. -@property(nonatomic, readonly, copy) NSDate* _Nullable creationDate; -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly) - BOOL supportsSecureCoding;) -+ (BOOL)supportsSecureCoding SWIFT_WARN_UNUSED_RESULT; -- (void)encodeWithCoder:(NSCoder* _Nonnull)coder; -- (nullable instancetype)initWithCoder:(NSCoder* _Nonnull)coder; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -@interface FIRUserMetadata (SWIFT_EXTENSION (FirebaseAuth)) -@end - -/// Represents an object capable of updating a user’s profile data. -/// Properties are marked as being part of a profile update when they are set. -/// Setting a property value to nil is not the same as leaving the property -/// unassigned. -SWIFT_CLASS_NAMED("UserProfileChangeRequest") -@interface FIRUserProfileChangeRequest : NSObject -/// The name of the user. -@property(nonatomic, copy) NSString* _Nullable displayName; -/// The URL of the user’s profile photo. -@property(nonatomic, copy) NSURL* _Nullable photoURL; -/// Commits any pending changes. -/// Invoked asynchronously on the main thread in the future. -/// This method should only be called once.Once called, property values should -/// not be changed. -/// \param completion Optionally; the block invoked when the user profile change -/// has been applied. -/// -- (void)commitChangesWithCompletion: - (void (^_Nullable)(NSError* _Nullable))completion; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#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 deleted file mode 100644 index 31e8b003f1..0000000000 --- a/ios_pod/swift_headers/FirebaseCoreInternal-Swift.h +++ /dev/null @@ -1,814 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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; -/// Asynchronously flushes heartbeats from storage into a heartbeats payload. -/// note: -/// This API is thread-safe. -/// -/// returns: -/// A heartbeats payload for the flushed heartbeat(s). -- (void)flushAsyncWithCompletionHandler: - (void (^_Nonnull)(FIRHeartbeatsPayload* _Nonnull))completionHandler; -/// 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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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; -/// Asynchronously flushes heartbeats from storage into a heartbeats payload. -/// note: -/// This API is thread-safe. -/// -/// returns: -/// A heartbeats payload for the flushed heartbeat(s). -- (void)flushAsyncWithCompletionHandler: - (void (^_Nonnull)(FIRHeartbeatsPayload* _Nonnull))completionHandler; -/// 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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseDatabase-Swift.h b/ios_pod/swift_headers/FirebaseDatabase-Swift.h deleted file mode 100644 index f4ede745b9..0000000000 --- a/ios_pod/swift_headers/FirebaseDatabase-Swift.h +++ /dev/null @@ -1,688 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEDATABASE_SWIFT_H -#define FIREBASEDATABASE_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseDatabase", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEDATABASE_SWIFT_H -#define FIREBASEDATABASE_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseDatabase", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#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 deleted file mode 100644 index bbca0e19a5..0000000000 --- a/ios_pod/swift_headers/FirebaseDatabaseSwift-Swift.h +++ /dev/null @@ -1,578 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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_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)) -#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 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 -#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") -#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__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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_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)) -#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 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 -#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") -#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 - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseFirestore-Swift.h b/ios_pod/swift_headers/FirebaseFirestore-Swift.h deleted file mode 100644 index f58a6ff816..0000000000 --- a/ios_pod/swift_headers/FirebaseFirestore-Swift.h +++ /dev/null @@ -1,704 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEFIRESTORE_SWIFT_H -#define FIREBASEFIRESTORE_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import FirebaseFirestoreInternal; -#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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseFirestore", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -SWIFT_UNAVAILABLE -@interface FIRFirestore (SWIFT_EXTENSION (FirebaseFirestore)) -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, - copy) void (^_Nonnull __no_op)(void);) -+ (void (^_Nonnull)(void))__no_op SWIFT_WARN_UNUSED_RESULT; -@end - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEFIRESTORE_SWIFT_H -#define FIREBASEFIRESTORE_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import FirebaseFirestoreInternal; -#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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseFirestore", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -SWIFT_UNAVAILABLE -@interface FIRFirestore (SWIFT_EXTENSION (FirebaseFirestore)) -SWIFT_CLASS_PROPERTY(@property(nonatomic, class, readonly, - copy) void (^_Nonnull __no_op)(void);) -+ (void (^_Nonnull)(void))__no_op SWIFT_WARN_UNUSED_RESULT; -@end - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#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 deleted file mode 100644 index 7e3a7847b4..0000000000 --- a/ios_pod/swift_headers/FirebaseFirestoreSwift-Swift.h +++ /dev/null @@ -1,578 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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_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)) -#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 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 -#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") -#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__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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_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)) -#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 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 -#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") -#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 - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseFunctions-Swift.h b/ios_pod/swift_headers/FirebaseFunctions-Swift.h deleted file mode 100644 index 07e26e99f1..0000000000 --- a/ios_pod/swift_headers/FirebaseFunctions-Swift.h +++ /dev/null @@ -1,1254 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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 custom domain 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 custom domain, 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 -/// trigger. 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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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 custom domain 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 custom domain, 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 -/// trigger. 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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseInAppMessaging-Swift.h b/ios_pod/swift_headers/FirebaseInAppMessaging-Swift.h deleted file mode 100644 index f572b43144..0000000000 --- a/ios_pod/swift_headers/FirebaseInAppMessaging-Swift.h +++ /dev/null @@ -1,688 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEINAPPMESSAGING_SWIFT_H -#define FIREBASEINAPPMESSAGING_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseInAppMessaging", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEINAPPMESSAGING_SWIFT_H -#define FIREBASEINAPPMESSAGING_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "FirebaseInAppMessaging", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#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 deleted file mode 100644 index 43d6dd6df4..0000000000 --- a/ios_pod/swift_headers/FirebaseInAppMessagingSwift-Swift.h +++ /dev/null @@ -1,578 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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 -#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)) -#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 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 -#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") -#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__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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 -#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)) -#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 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 -#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") -#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 - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h b/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h deleted file mode 100644 index 62b81589e1..0000000000 --- a/ios_pod/swift_headers/FirebaseMLModelDownloader-Swift.h +++ /dev/null @@ -1,688 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseRemoteConfig-Swift.h b/ios_pod/swift_headers/FirebaseRemoteConfig-Swift.h deleted file mode 100644 index 1c791b2a9e..0000000000 --- a/ios_pod/swift_headers/FirebaseRemoteConfig-Swift.h +++ /dev/null @@ -1,688 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEREMOTECONFIG_SWIFT_H -#define FIREBASEREMOTECONFIG_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseRemoteConfig", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASEREMOTECONFIG_SWIFT_H -#define FIREBASEREMOTECONFIG_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseRemoteConfig", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#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 deleted file mode 100644 index 92adb51a13..0000000000 --- a/ios_pod/swift_headers/FirebaseRemoteConfigSwift-Swift.h +++ /dev/null @@ -1,578 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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_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)) -#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 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 -#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") -#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__ -// Copyright 2023 Google LLC -// Copied from Firebase iOS SDK 10.17.0. - -// 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_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)) -#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 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 -#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") -#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 - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/FirebaseSessions-Swift.h b/ios_pod/swift_headers/FirebaseSessions-Swift.h deleted file mode 100644 index e695211ae9..0000000000 --- a/ios_pod/swift_headers/FirebaseSessions-Swift.h +++ /dev/null @@ -1,784 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASESESSIONS_SWIFT_H -#define FIREBASESESSIONS_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseSessions", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -@class NSString; -/// Session Payload is a container for Session Data passed to Subscribers -/// whenever the Session changes -SWIFT_CLASS_NAMED("SessionDetails") -@interface FIRSessionDetails : NSObject -@property(nonatomic, readonly, copy) NSString* _Nullable sessionId; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -enum FIRSessionsSubscriberName : NSInteger; -/// Sessions Dependencies determines when a dependent SDK is -/// installed in the app. The Sessions SDK uses this to figure -/// out which dependencies to wait for to getting the data -/// collection state. -/// This is important because the Sessions SDK starts up before -/// dependent SDKs -SWIFT_CLASS_NAMED("SessionsDependencies") -@interface FIRSessionsDependencies : NSObject -+ (void)addDependencyWithName:(enum FIRSessionsSubscriberName)name; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -@protocol FIRSessionsSubscriber; -SWIFT_PROTOCOL_NAMED("SessionsProvider") -@protocol FIRSessionsProvider -- (void)registerWithSubscriber:(id _Nonnull)subscriber; -@end - -/// Sessions Subscriber is an interface that dependent SDKs -/// must implement. -SWIFT_PROTOCOL_NAMED("SessionsSubscriber") -@protocol FIRSessionsSubscriber -- (void)onSessionChanged:(FIRSessionDetails* _Nonnull)session; -@property(nonatomic, readonly) BOOL isDataCollectionEnabled; -@property(nonatomic, readonly) - enum FIRSessionsSubscriberName sessionsSubscriberName; -@end - -/// Session Subscriber Names are used for identifying subscribers -typedef SWIFT_ENUM_NAMED(NSInteger, FIRSessionsSubscriberName, - "SessionsSubscriberName", open){ - FIRSessionsSubscriberNameUnknown = 0, - FIRSessionsSubscriberNameCrashlytics = 1, - FIRSessionsSubscriberNamePerformance = 2, -}; - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef FIREBASESESSIONS_SWIFT_H -#define FIREBASESESSIONS_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol(language = "Swift", \ - defined_in = "FirebaseSessions", \ - generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -@class NSString; -/// Session Payload is a container for Session Data passed to Subscribers -/// whenever the Session changes -SWIFT_CLASS_NAMED("SessionDetails") -@interface FIRSessionDetails : NSObject -@property(nonatomic, readonly, copy) NSString* _Nullable sessionId; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -enum FIRSessionsSubscriberName : NSInteger; -/// Sessions Dependencies determines when a dependent SDK is -/// installed in the app. The Sessions SDK uses this to figure -/// out which dependencies to wait for to getting the data -/// collection state. -/// This is important because the Sessions SDK starts up before -/// dependent SDKs -SWIFT_CLASS_NAMED("SessionsDependencies") -@interface FIRSessionsDependencies : NSObject -+ (void)addDependencyWithName:(enum FIRSessionsSubscriberName)name; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -@protocol FIRSessionsSubscriber; -SWIFT_PROTOCOL_NAMED("SessionsProvider") -@protocol FIRSessionsProvider -- (void)registerWithSubscriber:(id _Nonnull)subscriber; -@end - -/// Sessions Subscriber is an interface that dependent SDKs -/// must implement. -SWIFT_PROTOCOL_NAMED("SessionsSubscriber") -@protocol FIRSessionsSubscriber -- (void)onSessionChanged:(FIRSessionDetails* _Nonnull)session; -@property(nonatomic, readonly) BOOL isDataCollectionEnabled; -@property(nonatomic, readonly) - enum FIRSessionsSubscriberName sessionsSubscriberName; -@end - -/// Session Subscriber Names are used for identifying subscribers -typedef SWIFT_ENUM_NAMED(NSInteger, FIRSessionsSubscriberName, - "SessionsSubscriberName", open){ - FIRSessionsSubscriberNameUnknown = 0, - FIRSessionsSubscriberNameCrashlytics = 1, - FIRSessionsSubscriberNamePerformance = 2, -}; - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#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 deleted file mode 100644 index 93f6657f53..0000000000 --- a/ios_pod/swift_headers/FirebaseSharedSwift-Swift.h +++ /dev/null @@ -1,688 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#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 deleted file mode 100644 index a3d252ff9e..0000000000 --- a/ios_pod/swift_headers/FirebaseStorage-Swift.h +++ /dev/null @@ -1,2006 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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, but can be accessed -/// from any thread. 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. -/// \param host A string specifying the host. -/// -/// \param port The port specified as an Int. -/// -- (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 thread-safe. -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. -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. -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, - FIRStorageErrorCodeBucketMismatch = -13051, - FIRStorageErrorCodeInternalError = -13052, - FIRStorageErrorCodePathError = -13053, -}; -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. -@property(nonatomic, readonly, copy) - NSArray* _Nonnull prefixes; -/// The objects (files) returned by a list() operation. -@property(nonatomic, readonly, copy) - NSArray* _Nonnull items; -/// A token that can be used to resume a previous list() operation. -/// nil indicates that there are no more results. -@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 in the GCS -/// documentation -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; -/// 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; -/// Creates an empty instance of StorageMetadata. -/// @return An empty instance of StorageMetadata. -- (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. -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. -/// \code -/// For example: -/// path = foo/bar/baz parent = foo/bar -/// path = foo parent = (root) -/// path = (root) parent = nil -/// -/// \endcode -/// 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. -/// \code -/// 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 -/// -/// \endcode\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. -/// \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. -/// @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. -/// \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: -/// A 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 A 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. -/// 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; -/// NSObject override -- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; -/// NSObject override -- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; -/// NSObject override -@property(nonatomic, readonly) NSUInteger hash; -/// NSObject override -@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. -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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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, but can be accessed -/// from any thread. 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. -/// \param host A string specifying the host. -/// -/// \param port The port specified as an Int. -/// -- (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 thread-safe. -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. -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. -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, - FIRStorageErrorCodeBucketMismatch = -13051, - FIRStorageErrorCodeInternalError = -13052, - FIRStorageErrorCodePathError = -13053, -}; -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. -@property(nonatomic, readonly, copy) - NSArray* _Nonnull prefixes; -/// The objects (files) returned by a list() operation. -@property(nonatomic, readonly, copy) - NSArray* _Nonnull items; -/// A token that can be used to resume a previous list() operation. -/// nil indicates that there are no more results. -@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 in the GCS -/// documentation -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; -/// 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; -/// Creates an empty instance of StorageMetadata. -/// @return An empty instance of StorageMetadata. -- (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. -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. -/// \code -/// For example: -/// path = foo/bar/baz parent = foo/bar -/// path = foo parent = (root) -/// path = (root) parent = nil -/// -/// \endcode -/// 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. -/// \code -/// 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 -/// -/// \endcode\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. -/// \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. -/// @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. -/// \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: -/// A 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 A 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. -/// 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; -/// NSObject override -- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT; -/// NSObject override -- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; -/// NSObject override -@property(nonatomic, readonly) NSUInteger hash; -/// NSObject override -@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. -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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/ios_pod/swift_headers/Promises-Swift.h b/ios_pod/swift_headers/Promises-Swift.h deleted file mode 100644 index 110c5dfaa7..0000000000 --- a/ios_pod/swift_headers/Promises-Swift.h +++ /dev/null @@ -1,686 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef PROMISES_SWIFT_H -#define PROMISES_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "Promises", generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.18.0. - -// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 -// clang-1700.6.3.2) -#ifndef PROMISES_SWIFT_H -#define PROMISES_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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#endif - -#if !defined(SWIFT_TYPEDEFS) -#define SWIFT_TYPEDEFS 1 -#if __has_include() -#include -#elif !defined(__cplusplus) -typedef unsigned char char8_t; -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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#if __has_attribute(external_source_symbol) -#pragma push_macro("any") -#undef any -#pragma clang attribute push( \ - __attribute__((external_source_symbol( \ - language = "Swift", defined_in = "Promises", generated_declaration))), \ - apply_to = \ - any(function, enum, objc_interface, objc_category, objc_protocol)) -#pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#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 deleted file mode 100644 index b5c1b46f5e..0000000000 --- a/ios_pod/swift_headers/SwiftProtobuf-Swift.h +++ /dev/null @@ -1,684 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.8.0. - -// Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 -// clang-1600.0.30.1) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Copyright 2026 Google LLC -// Copied from Firebase iOS SDK 12.8.0. - -// Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 -// clang-1600.0.30.1) -#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 "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include - -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module" -#if defined(__arm64e__) && __has_include() -#include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -#ifndef __ptrauth_swift_value_witness_function_pointer -#define __ptrauth_swift_value_witness_function_pointer(x) -#endif -#ifndef __ptrauth_swift_class_method_pointer -#define __ptrauth_swift_class_method_pointer(x) -#endif -#pragma clang diagnostic pop -#endif -#pragma clang diagnostic pop -#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 !defined(SWIFT_RUNTIME_NAME) -#if __has_attribute(objc_runtime_name) -#define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -#define SWIFT_RUNTIME_NAME(X) -#endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -#if __has_attribute(swift_name) -#define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -#define SWIFT_COMPILE_NAME(X) -#endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -#if __has_attribute(objc_method_family) -#define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -#define SWIFT_METHOD_FAMILY(X) -#endif -#endif -#if !defined(SWIFT_NOESCAPE) -#if __has_attribute(noescape) -#define SWIFT_NOESCAPE __attribute__((noescape)) -#else -#define SWIFT_NOESCAPE -#endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -#if __has_attribute(ns_consumed) -#define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -#define SWIFT_RELEASES_ARGUMENT -#endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -#if __has_attribute(warn_unused_result) -#define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define SWIFT_WARN_UNUSED_RESULT -#endif -#endif -#if !defined(SWIFT_NORETURN) -#if __has_attribute(noreturn) -#define SWIFT_NORETURN __attribute__((noreturn)) -#else -#define SWIFT_NORETURN -#endif -#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 __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 !defined(SWIFT_DEPRECATED_OBJC) -#if __has_feature(attribute_diagnose_if_objc) -#define SWIFT_DEPRECATED_OBJC(Msg) \ - __attribute__((diagnose_if(1, Msg, "warning"))) -#else -#define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#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(SWIFT_INDIRECT_RESULT) -#define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -#define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -#define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -#define SWIFT_NOEXCEPT noexcept -#else -#define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -#if __has_attribute(always_inline) -#if __has_attribute(nodebug) -#define SWIFT_C_INLINE_THUNK \ - inline __attribute__((always_inline)) __attribute__((nodebug)) -#else -#define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -#endif -#else -#define SWIFT_C_INLINE_THUNK inline -#endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -#define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_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" -#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" - -#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 __has_attribute(external_source_symbol) -#pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/scripts/update_android_ios_dependencies.py b/scripts/update_android_ios_dependencies.py index a449de961a..d2ce9a6256 100644 --- a/scripts/update_android_ios_dependencies.py +++ b/scripts/update_android_ios_dependencies.py @@ -20,8 +20,7 @@ across the C++ repository. There are 3 types of files being updated by this script, -- Podfile : Files containing lists of cocoapods along with their versions. - Eg: `ios_pods/Podfile` and any integration tests podfiles. +- Package.swift : Files containing Swift packages along with their versions. - Android dependencies gradle file: Gradle files containing list of Android libraries and their versions that is