diff --git a/ios/manifest b/ios/manifest
index 493660f..43fc643 100644
--- a/ios/manifest
+++ b/ios/manifest
@@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
-version: 7.1.0
+version: 8.0.0
apiversion: 2
architectures: arm64 x86_64
description: titanium-firebase-analytics
@@ -16,4 +16,4 @@ name: titanium-firebase-analytics
moduleid: firebase.analytics
guid: 9800b2f6-460e-4caa-bf9a-35b206c5d3af
platform: iphone
-minsdk: 10.0.0
+minsdk: 11.0.0
diff --git a/ios/platform/FirebaseAnalytics.xcframework/Info.plist b/ios/platform/FirebaseAnalytics.xcframework/Info.plist
index 10a7f22..d512d8b 100644
--- a/ios/platform/FirebaseAnalytics.xcframework/Info.plist
+++ b/ios/platform/FirebaseAnalytics.xcframework/Info.plist
@@ -6,23 +6,22 @@
/// let params = [ /// AnalyticsParameterItems : [ diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FirebaseAnalytics-umbrella.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Headers/FirebaseAnalytics-umbrella.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FirebaseAnalytics-umbrella.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Headers/FirebaseAnalytics-umbrella.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Info.plist b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Info.plist similarity index 95% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Info.plist rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Info.plist index c693b5a..34ab234 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Info.plist +++ b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Info.plist @@ -13,7 +13,7 @@CFBundlePackageType FMWK CFBundleVersion -9.6.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Modules/module.modulemap b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Modules/module.modulemap similarity index 89% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Modules/module.modulemap rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Modules/module.modulemap index bb0a969..37eb24b 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Modules/module.modulemap +++ b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64/FirebaseAnalytics.framework/Modules/module.modulemap @@ -2,7 +2,6 @@ framework module FirebaseAnalytics { umbrella header "FirebaseAnalytics-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" link framework "SystemConfiguration" diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/FirebaseAnalytics b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/FirebaseAnalytics deleted file mode 100644 index 0aea2b7..0000000 Binary files a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/FirebaseAnalytics and /dev/null differ diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics deleted file mode 100644 index 3410126..0000000 Binary files a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics and /dev/null differ diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/FirebaseAnalytics b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/FirebaseAnalytics index 4f4978b..23dd73b 100644 Binary files a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/FirebaseAnalytics and b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/FirebaseAnalytics differ diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics.h index 7521d85..e7ce5dc 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics.h +++ b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Headers/FIRAnalytics.h @@ -28,7 +28,6 @@ NS_SWIFT_NAME(Analytics) ///
/// let params = [ /// AnalyticsParameterItems : [ diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Info.plist b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Info.plist index c693b5a..34ab234 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Info.plist +++ b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Info.plist @@ -13,7 +13,7 @@CFBundlePackageType FMWK CFBundleVersion -9.6.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Modules/module.modulemap b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Modules/module.modulemap index bb0a969..37eb24b 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Modules/module.modulemap +++ b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseAnalytics.framework/Modules/module.modulemap @@ -2,7 +2,6 @@ framework module FirebaseAnalytics { umbrella header "FirebaseAnalytics-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" link framework "SystemConfiguration" diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics new file mode 100644 index 0000000..8403aca Binary files /dev/null and b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics differ diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+Consent.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+Consent.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+Consent.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+Consent.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+OnDevice.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+OnDevice.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+OnDevice.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics+OnDevice.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FIRAnalytics.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics.h similarity index 99% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FIRAnalytics.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics.h index 7521d85..e7ce5dc 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_armv7/FirebaseAnalytics.framework/Headers/FIRAnalytics.h +++ b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics.h @@ -28,7 +28,6 @@ NS_SWIFT_NAME(Analytics) ///
/// let params = [ /// AnalyticsParameterItems : [ diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FirebaseAnalytics-umbrella.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FirebaseAnalytics-umbrella.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FirebaseAnalytics-umbrella.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FirebaseAnalytics-umbrella.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h similarity index 100% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Info.plist b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Info.plist similarity index 95% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Info.plist rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Info.plist index c693b5a..34ab234 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Info.plist +++ b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Info.plist @@ -13,7 +13,7 @@CFBundlePackageType FMWK CFBundleVersion -9.6.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Modules/module.modulemap b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Modules/module.modulemap similarity index 89% rename from ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Modules/module.modulemap rename to ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Modules/module.modulemap index bb0a969..37eb24b 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseAnalytics.framework/Modules/module.modulemap +++ b/ios/platform/FirebaseAnalytics.xcframework/ios-arm64_x86_64-simulator/FirebaseAnalytics.framework/Modules/module.modulemap @@ -2,7 +2,6 @@ framework module FirebaseAnalytics { umbrella header "FirebaseAnalytics-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" link framework "SystemConfiguration" diff --git a/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/FirebaseAnalytics b/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/FirebaseAnalytics index 181b662..de69262 100644 Binary files a/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/FirebaseAnalytics and b/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/FirebaseAnalytics differ diff --git a/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Headers/FIRAnalytics.h b/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Headers/FIRAnalytics.h index 7521d85..e7ce5dc 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Headers/FIRAnalytics.h +++ b/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Headers/FIRAnalytics.h @@ -28,7 +28,6 @@ NS_SWIFT_NAME(Analytics) ///
/// let params = [ /// AnalyticsParameterItems : [ diff --git a/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Info.plist b/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Info.plist index c693b5a..34ab234 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Info.plist +++ b/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Info.plist @@ -13,7 +13,7 @@CFBundlePackageType FMWK CFBundleVersion -9.6.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Modules/module.modulemap b/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Modules/module.modulemap index 92d3b47..e33d8fa 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Modules/module.modulemap +++ b/ios/platform/FirebaseAnalytics.xcframework/macos-arm64_x86_64/FirebaseAnalytics.framework/Modules/module.modulemap @@ -3,7 +3,6 @@ umbrella header "FirebaseAnalytics-umbrella.h" export * module * { export * } link framework "AppKit" - link framework "CoreTelephony" link framework "Foundation" link framework "Security" link framework "SystemConfiguration" diff --git a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/FirebaseAnalytics b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/FirebaseAnalytics index 5b6a6bf..ab6efe4 100644 Binary files a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/FirebaseAnalytics and b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/FirebaseAnalytics differ diff --git a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/Headers/FIRAnalytics.h b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/Headers/FIRAnalytics.h index 7521d85..e7ce5dc 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/Headers/FIRAnalytics.h +++ b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/Headers/FIRAnalytics.h @@ -28,7 +28,6 @@ NS_SWIFT_NAME(Analytics) ///
/// let params = [ /// AnalyticsParameterItems : [ diff --git a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/Info.plist b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/Info.plist index c693b5a..34ab234 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/Info.plist +++ b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64/FirebaseAnalytics.framework/Info.plist @@ -13,7 +13,7 @@CFBundlePackageType FMWK CFBundleVersion -9.6.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics index 47bec0f..82517c7 100644 Binary files a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics and b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/FirebaseAnalytics differ diff --git a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics.h b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics.h index 7521d85..e7ce5dc 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics.h +++ b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/Headers/FIRAnalytics.h @@ -28,7 +28,6 @@ NS_SWIFT_NAME(Analytics) ///
/// let params = [ /// AnalyticsParameterItems : [ diff --git a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/Info.plist b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/Info.plist index c693b5a..34ab234 100644 --- a/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/Info.plist +++ b/ios/platform/FirebaseAnalytics.xcframework/tvos-arm64_x86_64-simulator/FirebaseAnalytics.framework/Info.plist @@ -13,7 +13,7 @@CFBundlePackageType FMWK CFBundleVersion -9.6.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/PromisesObjC.xcframework/Info.plist b/ios/shared/FirebaseABTesting.xcframework/Info.plist similarity index 84% rename from ios/shared/PromisesObjC.xcframework/Info.plist rename to ios/shared/FirebaseABTesting.xcframework/Info.plist index 17de591..ba4947a 100644 --- a/ios/shared/PromisesObjC.xcframework/Info.plist +++ b/ios/shared/FirebaseABTesting.xcframework/Info.plist @@ -6,87 +6,85 @@LibraryIdentifier -ios-arm64_i386_x86_64-simulator +macos-arm64_x86_64 LibraryPath -PromisesObjC.framework +FirebaseABTesting.framework SupportedArchitectures arm64 -i386 x86_64 SupportedPlatform -ios -SupportedPlatformVariant -simulator +macos LibraryIdentifier -macos-arm64_x86_64 +ios-arm64_x86_64-simulator LibraryPath -PromisesObjC.framework +FirebaseABTesting.framework SupportedArchitectures arm64 x86_64 SupportedPlatform -macos +ios +SupportedPlatformVariant +simulator LibraryIdentifier -tvos-arm64_x86_64-simulator +tvos-arm64 LibraryPath -PromisesObjC.framework +FirebaseABTesting.framework SupportedArchitectures arm64 -x86_64 SupportedPlatform tvos -SupportedPlatformVariant -simulator LibraryIdentifier -tvos-arm64 +ios-arm64 LibraryPath -PromisesObjC.framework +FirebaseABTesting.framework SupportedArchitectures arm64 SupportedPlatform -tvos +ios LibraryIdentifier -ios-arm64_x86_64-maccatalyst +tvos-arm64_x86_64-simulator LibraryPath -PromisesObjC.framework +FirebaseABTesting.framework SupportedArchitectures arm64 x86_64 SupportedPlatform -ios +tvos SupportedPlatformVariant -maccatalyst +simulator LibraryIdentifier -ios-arm64_armv7 +ios-arm64_x86_64-maccatalyst LibraryPath -PromisesObjC.framework +FirebaseABTesting.framework SupportedArchitectures arm64 -armv7 +x86_64 SupportedPlatform ios +SupportedPlatformVariant +maccatalyst CFBundlePackageType diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/FirebaseABTesting b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/FirebaseABTesting new file mode 100644 index 0000000..03bfd0e Binary files /dev/null and b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/FirebaseABTesting differ diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FIRExperimentController.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FIRExperimentController.h new file mode 100644 index 0000000..3bd757d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FIRExperimentController.h @@ -0,0 +1,83 @@ +// 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. + +#import+ +@class ABTExperimentPayload; + +// Forward declaration to avoid importing into the module header +typedef NS_ENUM(int32_t, ABTExperimentPayloadExperimentOverflowPolicy); + +NS_ASSUME_NONNULL_BEGIN + +@class FIRLifecycleEvents; + +/// The default experiment overflow policy, that is to discard the experiment with the oldest start +/// time when users start the experiment on the web console. +extern const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy; + +/// This class is for Firebase services to handle experiments updates to Firebase Analytics. +/// Experiments can be set, cleared and updated through this controller. +NS_SWIFT_NAME(ExperimentController) +@interface FIRExperimentController : NSObject + +/// Returns the FIRExperimentController singleton. ++ (FIRExperimentController *)sharedInstance; + +/// Updates the list of experiments with an optional completion handler. Experiments already +/// existing in payloads are not affected, whose state and payload is preserved. This method +/// compares whether the experiments have changed or not by their variant ID. This runs in a +/// background queue and calls the completion handler when finished executing. +/// @param origin The originating service affected by the experiment. +/// @param events A list of event names to be used for logging experiment lifecycle events, +/// if they are not defined in the payload. +/// @param policy The policy to handle new experiments when slots are full. +/// @param lastStartTime The last known experiment start timestamp for this affected service. +/// (Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970.). +/// @param payloads List of experiment metadata. +/// @param completionHandler Code to be executed after experiments are updated in the background +/// thread. +- (void)updateExperimentsWithServiceOrigin:(NSString *)origin + events:(FIRLifecycleEvents *)events + policy:(ABTExperimentPayloadExperimentOverflowPolicy)policy + lastStartTime:(NSTimeInterval)lastStartTime + payloads:(NSArray *)payloads + completionHandler: + (nullable void (^)(NSError *_Nullable error))completionHandler; + +/// Returns the latest experiment start timestamp given a current latest timestamp and a list of +/// experiment payloads. Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970. +/// @param timestamp Current latest experiment start timestamp. If not known, affected service +/// should specify -1; +/// @param payloads List of experiment metadata. +- (NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp + andPayloads:(NSArray *)payloads; + +/// Expires experiments that aren't in the list of running experiment payloads. +/// @param origin The originating service affected by the experiment. +/// @param payloads The list of valid, running experiments. +- (void)validateRunningExperimentsForServiceOrigin:(NSString *)origin + runningExperimentPayloads:(NSArray *)payloads; + +/// Directly sets a given experiment to be active. +/// @param experimentPayload The payload for the experiment that should be activated. +/// @param origin The originating service affected by the experiment. +- (void)activateExperiment:(ABTExperimentPayload *)experimentPayload + forServiceOrigin:(NSString *)origin; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h new file mode 100644 index 0000000..e20f9a3 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h @@ -0,0 +1,66 @@ +// 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. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Default event name for when an experiment is set. +extern NSString *const FIRSetExperimentEventName NS_SWIFT_NAME(DefaultSetExperimentEventName); +/// Default event name for when an experiment is activated. +// clang-format off +// clang-format12 will merge lines and exceed 100 character limit. +extern NSString *const FIRActivateExperimentEventName + NS_SWIFT_NAME(DefaultActivateExperimentEventName); +/// Default event name for when an experiment is cleared. +extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName); +/// Default event name for when an experiment times out for being activated. +extern NSString *const FIRTimeoutExperimentEventName + NS_SWIFT_NAME(DefaultTimeoutExperimentEventName); +// clang-format on +/// Default event name for when an experiment is expired as it reaches the end of TTL. +extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName); + +/// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be +/// logged by Firebase Analytics. +NS_SWIFT_NAME(LifecycleEvents) +@interface FIRLifecycleEvents : NSObject + +/// Event name for when an experiment is set. It defaults to `SetExperimentEventName` and can be +/// overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *setExperimentEventName; + +/// Event name for when an experiment is activated. It defaults to `ActivateExperimentEventName` +/// and can be overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *activateExperimentEventName; + +/// Event name for when an experiment is cleared. It is default to `ClearExperimentEventName` and +/// can be overridden. If experiment payload has a valid string of this field, always use experiment +/// payload. +@property(nonatomic, copy) NSString *clearExperimentEventName; +/// Event name for when an experiment is timeout from being STANDBY. It is default to +/// `TimeoutExperimentEventName` and can be overridden. If experiment payload has a valid string +/// of this field, always use experiment payload. +@property(nonatomic, copy) NSString *timeoutExperimentEventName; + +/// Event name when an experiment is expired when it reaches the end of its TTL. +/// It is default to `ExpireExperimentEventName` and can be overridden. If experiment payload has a +/// valid string of this field, always use experiment payload. +@property(nonatomic, copy) NSString *expireExperimentEventName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h new file mode 100644 index 0000000..6f49ae4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h @@ -0,0 +1,19 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseABTesting.h" +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" + +FOUNDATION_EXPORT double FirebaseABTestingVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseABTestingVersionString[]; + diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h new file mode 100755 index 0000000..cfa99b4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h @@ -0,0 +1,16 @@ +// 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. + +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Info.plist b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Info.plist new file mode 100644 index 0000000..e3bf9b0 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Modules/module.modulemap b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Modules/module.modulemap new file mode 100644 index 0000000..352183d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64/FirebaseABTesting.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseABTesting { +umbrella header "FirebaseABTesting-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/FirebaseABTesting b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/FirebaseABTesting new file mode 100644 index 0000000..a809ae7 Binary files /dev/null and b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/FirebaseABTesting differ diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FIRExperimentController.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FIRExperimentController.h new file mode 100644 index 0000000..3bd757d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FIRExperimentController.h @@ -0,0 +1,83 @@ +// 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. + +#import+ +CFBundleExecutable +FirebaseABTesting +CFBundleIdentifier +com.firebase.Firebase-FirebaseABTesting +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseABTesting +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class ABTExperimentPayload; + +// Forward declaration to avoid importing into the module header +typedef NS_ENUM(int32_t, ABTExperimentPayloadExperimentOverflowPolicy); + +NS_ASSUME_NONNULL_BEGIN + +@class FIRLifecycleEvents; + +/// The default experiment overflow policy, that is to discard the experiment with the oldest start +/// time when users start the experiment on the web console. +extern const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy; + +/// This class is for Firebase services to handle experiments updates to Firebase Analytics. +/// Experiments can be set, cleared and updated through this controller. +NS_SWIFT_NAME(ExperimentController) +@interface FIRExperimentController : NSObject + +/// Returns the FIRExperimentController singleton. ++ (FIRExperimentController *)sharedInstance; + +/// Updates the list of experiments with an optional completion handler. Experiments already +/// existing in payloads are not affected, whose state and payload is preserved. This method +/// compares whether the experiments have changed or not by their variant ID. This runs in a +/// background queue and calls the completion handler when finished executing. +/// @param origin The originating service affected by the experiment. +/// @param events A list of event names to be used for logging experiment lifecycle events, +/// if they are not defined in the payload. +/// @param policy The policy to handle new experiments when slots are full. +/// @param lastStartTime The last known experiment start timestamp for this affected service. +/// (Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970.). +/// @param payloads List of experiment metadata. +/// @param completionHandler Code to be executed after experiments are updated in the background +/// thread. +- (void)updateExperimentsWithServiceOrigin:(NSString *)origin + events:(FIRLifecycleEvents *)events + policy:(ABTExperimentPayloadExperimentOverflowPolicy)policy + lastStartTime:(NSTimeInterval)lastStartTime + payloads:(NSArray *)payloads + completionHandler: + (nullable void (^)(NSError *_Nullable error))completionHandler; + +/// Returns the latest experiment start timestamp given a current latest timestamp and a list of +/// experiment payloads. Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970. +/// @param timestamp Current latest experiment start timestamp. If not known, affected service +/// should specify -1; +/// @param payloads List of experiment metadata. +- (NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp + andPayloads:(NSArray *)payloads; + +/// Expires experiments that aren't in the list of running experiment payloads. +/// @param origin The originating service affected by the experiment. +/// @param payloads The list of valid, running experiments. +- (void)validateRunningExperimentsForServiceOrigin:(NSString *)origin + runningExperimentPayloads:(NSArray *)payloads; + +/// Directly sets a given experiment to be active. +/// @param experimentPayload The payload for the experiment that should be activated. +/// @param origin The originating service affected by the experiment. +- (void)activateExperiment:(ABTExperimentPayload *)experimentPayload + forServiceOrigin:(NSString *)origin; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h new file mode 100644 index 0000000..e20f9a3 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h @@ -0,0 +1,66 @@ +// 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. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Default event name for when an experiment is set. +extern NSString *const FIRSetExperimentEventName NS_SWIFT_NAME(DefaultSetExperimentEventName); +/// Default event name for when an experiment is activated. +// clang-format off +// clang-format12 will merge lines and exceed 100 character limit. +extern NSString *const FIRActivateExperimentEventName + NS_SWIFT_NAME(DefaultActivateExperimentEventName); +/// Default event name for when an experiment is cleared. +extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName); +/// Default event name for when an experiment times out for being activated. +extern NSString *const FIRTimeoutExperimentEventName + NS_SWIFT_NAME(DefaultTimeoutExperimentEventName); +// clang-format on +/// Default event name for when an experiment is expired as it reaches the end of TTL. +extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName); + +/// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be +/// logged by Firebase Analytics. +NS_SWIFT_NAME(LifecycleEvents) +@interface FIRLifecycleEvents : NSObject + +/// Event name for when an experiment is set. It defaults to `SetExperimentEventName` and can be +/// overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *setExperimentEventName; + +/// Event name for when an experiment is activated. It defaults to `ActivateExperimentEventName` +/// and can be overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *activateExperimentEventName; + +/// Event name for when an experiment is cleared. It is default to `ClearExperimentEventName` and +/// can be overridden. If experiment payload has a valid string of this field, always use experiment +/// payload. +@property(nonatomic, copy) NSString *clearExperimentEventName; +/// Event name for when an experiment is timeout from being STANDBY. It is default to +/// `TimeoutExperimentEventName` and can be overridden. If experiment payload has a valid string +/// of this field, always use experiment payload. +@property(nonatomic, copy) NSString *timeoutExperimentEventName; + +/// Event name when an experiment is expired when it reaches the end of its TTL. +/// It is default to `ExpireExperimentEventName` and can be overridden. If experiment payload has a +/// valid string of this field, always use experiment payload. +@property(nonatomic, copy) NSString *expireExperimentEventName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h new file mode 100644 index 0000000..6f49ae4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h @@ -0,0 +1,19 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseABTesting.h" +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" + +FOUNDATION_EXPORT double FirebaseABTestingVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseABTestingVersionString[]; + diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FirebaseABTesting.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FirebaseABTesting.h new file mode 100755 index 0000000..cfa99b4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Headers/FirebaseABTesting.h @@ -0,0 +1,16 @@ +// 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. + +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Info.plist b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Info.plist new file mode 100644 index 0000000..e3bf9b0 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Modules/module.modulemap b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Modules/module.modulemap new file mode 100644 index 0000000..352183d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseABTesting.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseABTesting { +umbrella header "FirebaseABTesting-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/FirebaseABTesting b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/FirebaseABTesting new file mode 100644 index 0000000..bdcb7f7 Binary files /dev/null and b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/FirebaseABTesting differ diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRExperimentController.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRExperimentController.h new file mode 100644 index 0000000..3bd757d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRExperimentController.h @@ -0,0 +1,83 @@ +// 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. + +#import+ +CFBundleExecutable +FirebaseABTesting +CFBundleIdentifier +com.firebase.Firebase-FirebaseABTesting +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseABTesting +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class ABTExperimentPayload; + +// Forward declaration to avoid importing into the module header +typedef NS_ENUM(int32_t, ABTExperimentPayloadExperimentOverflowPolicy); + +NS_ASSUME_NONNULL_BEGIN + +@class FIRLifecycleEvents; + +/// The default experiment overflow policy, that is to discard the experiment with the oldest start +/// time when users start the experiment on the web console. +extern const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy; + +/// This class is for Firebase services to handle experiments updates to Firebase Analytics. +/// Experiments can be set, cleared and updated through this controller. +NS_SWIFT_NAME(ExperimentController) +@interface FIRExperimentController : NSObject + +/// Returns the FIRExperimentController singleton. ++ (FIRExperimentController *)sharedInstance; + +/// Updates the list of experiments with an optional completion handler. Experiments already +/// existing in payloads are not affected, whose state and payload is preserved. This method +/// compares whether the experiments have changed or not by their variant ID. This runs in a +/// background queue and calls the completion handler when finished executing. +/// @param origin The originating service affected by the experiment. +/// @param events A list of event names to be used for logging experiment lifecycle events, +/// if they are not defined in the payload. +/// @param policy The policy to handle new experiments when slots are full. +/// @param lastStartTime The last known experiment start timestamp for this affected service. +/// (Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970.). +/// @param payloads List of experiment metadata. +/// @param completionHandler Code to be executed after experiments are updated in the background +/// thread. +- (void)updateExperimentsWithServiceOrigin:(NSString *)origin + events:(FIRLifecycleEvents *)events + policy:(ABTExperimentPayloadExperimentOverflowPolicy)policy + lastStartTime:(NSTimeInterval)lastStartTime + payloads:(NSArray *)payloads + completionHandler: + (nullable void (^)(NSError *_Nullable error))completionHandler; + +/// Returns the latest experiment start timestamp given a current latest timestamp and a list of +/// experiment payloads. Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970. +/// @param timestamp Current latest experiment start timestamp. If not known, affected service +/// should specify -1; +/// @param payloads List of experiment metadata. +- (NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp + andPayloads:(NSArray *)payloads; + +/// Expires experiments that aren't in the list of running experiment payloads. +/// @param origin The originating service affected by the experiment. +/// @param payloads The list of valid, running experiments. +- (void)validateRunningExperimentsForServiceOrigin:(NSString *)origin + runningExperimentPayloads:(NSArray *)payloads; + +/// Directly sets a given experiment to be active. +/// @param experimentPayload The payload for the experiment that should be activated. +/// @param origin The originating service affected by the experiment. +- (void)activateExperiment:(ABTExperimentPayload *)experimentPayload + forServiceOrigin:(NSString *)origin; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h new file mode 100644 index 0000000..e20f9a3 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h @@ -0,0 +1,66 @@ +// 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. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Default event name for when an experiment is set. +extern NSString *const FIRSetExperimentEventName NS_SWIFT_NAME(DefaultSetExperimentEventName); +/// Default event name for when an experiment is activated. +// clang-format off +// clang-format12 will merge lines and exceed 100 character limit. +extern NSString *const FIRActivateExperimentEventName + NS_SWIFT_NAME(DefaultActivateExperimentEventName); +/// Default event name for when an experiment is cleared. +extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName); +/// Default event name for when an experiment times out for being activated. +extern NSString *const FIRTimeoutExperimentEventName + NS_SWIFT_NAME(DefaultTimeoutExperimentEventName); +// clang-format on +/// Default event name for when an experiment is expired as it reaches the end of TTL. +extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName); + +/// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be +/// logged by Firebase Analytics. +NS_SWIFT_NAME(LifecycleEvents) +@interface FIRLifecycleEvents : NSObject + +/// Event name for when an experiment is set. It defaults to `SetExperimentEventName` and can be +/// overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *setExperimentEventName; + +/// Event name for when an experiment is activated. It defaults to `ActivateExperimentEventName` +/// and can be overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *activateExperimentEventName; + +/// Event name for when an experiment is cleared. It is default to `ClearExperimentEventName` and +/// can be overridden. If experiment payload has a valid string of this field, always use experiment +/// payload. +@property(nonatomic, copy) NSString *clearExperimentEventName; +/// Event name for when an experiment is timeout from being STANDBY. It is default to +/// `TimeoutExperimentEventName` and can be overridden. If experiment payload has a valid string +/// of this field, always use experiment payload. +@property(nonatomic, copy) NSString *timeoutExperimentEventName; + +/// Event name when an experiment is expired when it reaches the end of its TTL. +/// It is default to `ExpireExperimentEventName` and can be overridden. If experiment payload has a +/// valid string of this field, always use experiment payload. +@property(nonatomic, copy) NSString *expireExperimentEventName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h new file mode 100644 index 0000000..6f49ae4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h @@ -0,0 +1,19 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseABTesting.h" +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" + +FOUNDATION_EXPORT double FirebaseABTestingVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseABTestingVersionString[]; + diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting.h b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting.h new file mode 100755 index 0000000..cfa99b4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting.h @@ -0,0 +1,16 @@ +// 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. + +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Info.plist b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Info.plist new file mode 100644 index 0000000..e3bf9b0 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Modules/module.modulemap b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Modules/module.modulemap new file mode 100644 index 0000000..352183d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/ios-arm64_x86_64-simulator/FirebaseABTesting.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseABTesting { +umbrella header "FirebaseABTesting-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/FirebaseABTesting b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/FirebaseABTesting new file mode 100644 index 0000000..c3f83ac Binary files /dev/null and b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/FirebaseABTesting differ diff --git a/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FIRExperimentController.h b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FIRExperimentController.h new file mode 100644 index 0000000..3bd757d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FIRExperimentController.h @@ -0,0 +1,83 @@ +// 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. + +#import+ +CFBundleExecutable +FirebaseABTesting +CFBundleIdentifier +com.firebase.Firebase-FirebaseABTesting +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseABTesting +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class ABTExperimentPayload; + +// Forward declaration to avoid importing into the module header +typedef NS_ENUM(int32_t, ABTExperimentPayloadExperimentOverflowPolicy); + +NS_ASSUME_NONNULL_BEGIN + +@class FIRLifecycleEvents; + +/// The default experiment overflow policy, that is to discard the experiment with the oldest start +/// time when users start the experiment on the web console. +extern const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy; + +/// This class is for Firebase services to handle experiments updates to Firebase Analytics. +/// Experiments can be set, cleared and updated through this controller. +NS_SWIFT_NAME(ExperimentController) +@interface FIRExperimentController : NSObject + +/// Returns the FIRExperimentController singleton. ++ (FIRExperimentController *)sharedInstance; + +/// Updates the list of experiments with an optional completion handler. Experiments already +/// existing in payloads are not affected, whose state and payload is preserved. This method +/// compares whether the experiments have changed or not by their variant ID. This runs in a +/// background queue and calls the completion handler when finished executing. +/// @param origin The originating service affected by the experiment. +/// @param events A list of event names to be used for logging experiment lifecycle events, +/// if they are not defined in the payload. +/// @param policy The policy to handle new experiments when slots are full. +/// @param lastStartTime The last known experiment start timestamp for this affected service. +/// (Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970.). +/// @param payloads List of experiment metadata. +/// @param completionHandler Code to be executed after experiments are updated in the background +/// thread. +- (void)updateExperimentsWithServiceOrigin:(NSString *)origin + events:(FIRLifecycleEvents *)events + policy:(ABTExperimentPayloadExperimentOverflowPolicy)policy + lastStartTime:(NSTimeInterval)lastStartTime + payloads:(NSArray *)payloads + completionHandler: + (nullable void (^)(NSError *_Nullable error))completionHandler; + +/// Returns the latest experiment start timestamp given a current latest timestamp and a list of +/// experiment payloads. Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970. +/// @param timestamp Current latest experiment start timestamp. If not known, affected service +/// should specify -1; +/// @param payloads List of experiment metadata. +- (NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp + andPayloads:(NSArray *)payloads; + +/// Expires experiments that aren't in the list of running experiment payloads. +/// @param origin The originating service affected by the experiment. +/// @param payloads The list of valid, running experiments. +- (void)validateRunningExperimentsForServiceOrigin:(NSString *)origin + runningExperimentPayloads:(NSArray *)payloads; + +/// Directly sets a given experiment to be active. +/// @param experimentPayload The payload for the experiment that should be activated. +/// @param origin The originating service affected by the experiment. +- (void)activateExperiment:(ABTExperimentPayload *)experimentPayload + forServiceOrigin:(NSString *)origin; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h new file mode 100644 index 0000000..e20f9a3 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h @@ -0,0 +1,66 @@ +// 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. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Default event name for when an experiment is set. +extern NSString *const FIRSetExperimentEventName NS_SWIFT_NAME(DefaultSetExperimentEventName); +/// Default event name for when an experiment is activated. +// clang-format off +// clang-format12 will merge lines and exceed 100 character limit. +extern NSString *const FIRActivateExperimentEventName + NS_SWIFT_NAME(DefaultActivateExperimentEventName); +/// Default event name for when an experiment is cleared. +extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName); +/// Default event name for when an experiment times out for being activated. +extern NSString *const FIRTimeoutExperimentEventName + NS_SWIFT_NAME(DefaultTimeoutExperimentEventName); +// clang-format on +/// Default event name for when an experiment is expired as it reaches the end of TTL. +extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName); + +/// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be +/// logged by Firebase Analytics. +NS_SWIFT_NAME(LifecycleEvents) +@interface FIRLifecycleEvents : NSObject + +/// Event name for when an experiment is set. It defaults to `SetExperimentEventName` and can be +/// overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *setExperimentEventName; + +/// Event name for when an experiment is activated. It defaults to `ActivateExperimentEventName` +/// and can be overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *activateExperimentEventName; + +/// Event name for when an experiment is cleared. It is default to `ClearExperimentEventName` and +/// can be overridden. If experiment payload has a valid string of this field, always use experiment +/// payload. +@property(nonatomic, copy) NSString *clearExperimentEventName; +/// Event name for when an experiment is timeout from being STANDBY. It is default to +/// `TimeoutExperimentEventName` and can be overridden. If experiment payload has a valid string +/// of this field, always use experiment payload. +@property(nonatomic, copy) NSString *timeoutExperimentEventName; + +/// Event name when an experiment is expired when it reaches the end of its TTL. +/// It is default to `ExpireExperimentEventName` and can be overridden. If experiment payload has a +/// valid string of this field, always use experiment payload. +@property(nonatomic, copy) NSString *expireExperimentEventName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h new file mode 100644 index 0000000..db1983e --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h @@ -0,0 +1,19 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseABTesting.h" +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" + +FOUNDATION_EXPORT double FirebaseABTestingVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseABTestingVersionString[]; + diff --git a/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h new file mode 100755 index 0000000..cfa99b4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h @@ -0,0 +1,16 @@ +// 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. + +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" diff --git a/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Info.plist b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Info.plist new file mode 100644 index 0000000..e3bf9b0 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Modules/module.modulemap b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Modules/module.modulemap new file mode 100644 index 0000000..ba8668f --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/macos-arm64_x86_64/FirebaseABTesting.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseABTesting { +umbrella header "FirebaseABTesting-umbrella.h" +export * +module * { export * } + link framework "AppKit" + link framework "Foundation" + link framework "Security" + link "z" +} diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/FirebaseABTesting b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/FirebaseABTesting new file mode 100644 index 0000000..ce1096d Binary files /dev/null and b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/FirebaseABTesting differ diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FIRExperimentController.h b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FIRExperimentController.h new file mode 100644 index 0000000..3bd757d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FIRExperimentController.h @@ -0,0 +1,83 @@ +// 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. + +#import+ +CFBundleExecutable +FirebaseABTesting +CFBundleIdentifier +com.firebase.Firebase-FirebaseABTesting +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseABTesting +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class ABTExperimentPayload; + +// Forward declaration to avoid importing into the module header +typedef NS_ENUM(int32_t, ABTExperimentPayloadExperimentOverflowPolicy); + +NS_ASSUME_NONNULL_BEGIN + +@class FIRLifecycleEvents; + +/// The default experiment overflow policy, that is to discard the experiment with the oldest start +/// time when users start the experiment on the web console. +extern const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy; + +/// This class is for Firebase services to handle experiments updates to Firebase Analytics. +/// Experiments can be set, cleared and updated through this controller. +NS_SWIFT_NAME(ExperimentController) +@interface FIRExperimentController : NSObject + +/// Returns the FIRExperimentController singleton. ++ (FIRExperimentController *)sharedInstance; + +/// Updates the list of experiments with an optional completion handler. Experiments already +/// existing in payloads are not affected, whose state and payload is preserved. This method +/// compares whether the experiments have changed or not by their variant ID. This runs in a +/// background queue and calls the completion handler when finished executing. +/// @param origin The originating service affected by the experiment. +/// @param events A list of event names to be used for logging experiment lifecycle events, +/// if they are not defined in the payload. +/// @param policy The policy to handle new experiments when slots are full. +/// @param lastStartTime The last known experiment start timestamp for this affected service. +/// (Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970.). +/// @param payloads List of experiment metadata. +/// @param completionHandler Code to be executed after experiments are updated in the background +/// thread. +- (void)updateExperimentsWithServiceOrigin:(NSString *)origin + events:(FIRLifecycleEvents *)events + policy:(ABTExperimentPayloadExperimentOverflowPolicy)policy + lastStartTime:(NSTimeInterval)lastStartTime + payloads:(NSArray *)payloads + completionHandler: + (nullable void (^)(NSError *_Nullable error))completionHandler; + +/// Returns the latest experiment start timestamp given a current latest timestamp and a list of +/// experiment payloads. Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970. +/// @param timestamp Current latest experiment start timestamp. If not known, affected service +/// should specify -1; +/// @param payloads List of experiment metadata. +- (NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp + andPayloads:(NSArray *)payloads; + +/// Expires experiments that aren't in the list of running experiment payloads. +/// @param origin The originating service affected by the experiment. +/// @param payloads The list of valid, running experiments. +- (void)validateRunningExperimentsForServiceOrigin:(NSString *)origin + runningExperimentPayloads:(NSArray *)payloads; + +/// Directly sets a given experiment to be active. +/// @param experimentPayload The payload for the experiment that should be activated. +/// @param origin The originating service affected by the experiment. +- (void)activateExperiment:(ABTExperimentPayload *)experimentPayload + forServiceOrigin:(NSString *)origin; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h new file mode 100644 index 0000000..e20f9a3 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h @@ -0,0 +1,66 @@ +// 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. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Default event name for when an experiment is set. +extern NSString *const FIRSetExperimentEventName NS_SWIFT_NAME(DefaultSetExperimentEventName); +/// Default event name for when an experiment is activated. +// clang-format off +// clang-format12 will merge lines and exceed 100 character limit. +extern NSString *const FIRActivateExperimentEventName + NS_SWIFT_NAME(DefaultActivateExperimentEventName); +/// Default event name for when an experiment is cleared. +extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName); +/// Default event name for when an experiment times out for being activated. +extern NSString *const FIRTimeoutExperimentEventName + NS_SWIFT_NAME(DefaultTimeoutExperimentEventName); +// clang-format on +/// Default event name for when an experiment is expired as it reaches the end of TTL. +extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName); + +/// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be +/// logged by Firebase Analytics. +NS_SWIFT_NAME(LifecycleEvents) +@interface FIRLifecycleEvents : NSObject + +/// Event name for when an experiment is set. It defaults to `SetExperimentEventName` and can be +/// overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *setExperimentEventName; + +/// Event name for when an experiment is activated. It defaults to `ActivateExperimentEventName` +/// and can be overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *activateExperimentEventName; + +/// Event name for when an experiment is cleared. It is default to `ClearExperimentEventName` and +/// can be overridden. If experiment payload has a valid string of this field, always use experiment +/// payload. +@property(nonatomic, copy) NSString *clearExperimentEventName; +/// Event name for when an experiment is timeout from being STANDBY. It is default to +/// `TimeoutExperimentEventName` and can be overridden. If experiment payload has a valid string +/// of this field, always use experiment payload. +@property(nonatomic, copy) NSString *timeoutExperimentEventName; + +/// Event name when an experiment is expired when it reaches the end of its TTL. +/// It is default to `ExpireExperimentEventName` and can be overridden. If experiment payload has a +/// valid string of this field, always use experiment payload. +@property(nonatomic, copy) NSString *expireExperimentEventName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h new file mode 100644 index 0000000..6f49ae4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h @@ -0,0 +1,19 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseABTesting.h" +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" + +FOUNDATION_EXPORT double FirebaseABTestingVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseABTestingVersionString[]; + diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h new file mode 100755 index 0000000..cfa99b4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Headers/FirebaseABTesting.h @@ -0,0 +1,16 @@ +// 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. + +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Info.plist b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Info.plist new file mode 100644 index 0000000..e3bf9b0 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Modules/module.modulemap b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Modules/module.modulemap new file mode 100644 index 0000000..352183d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64/FirebaseABTesting.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseABTesting { +umbrella header "FirebaseABTesting-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/FirebaseABTesting b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/FirebaseABTesting new file mode 100644 index 0000000..744bb2b Binary files /dev/null and b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/FirebaseABTesting differ diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRExperimentController.h b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRExperimentController.h new file mode 100644 index 0000000..3bd757d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRExperimentController.h @@ -0,0 +1,83 @@ +// 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. + +#import+ +CFBundleExecutable +FirebaseABTesting +CFBundleIdentifier +com.firebase.Firebase-FirebaseABTesting +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseABTesting +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class ABTExperimentPayload; + +// Forward declaration to avoid importing into the module header +typedef NS_ENUM(int32_t, ABTExperimentPayloadExperimentOverflowPolicy); + +NS_ASSUME_NONNULL_BEGIN + +@class FIRLifecycleEvents; + +/// The default experiment overflow policy, that is to discard the experiment with the oldest start +/// time when users start the experiment on the web console. +extern const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy; + +/// This class is for Firebase services to handle experiments updates to Firebase Analytics. +/// Experiments can be set, cleared and updated through this controller. +NS_SWIFT_NAME(ExperimentController) +@interface FIRExperimentController : NSObject + +/// Returns the FIRExperimentController singleton. ++ (FIRExperimentController *)sharedInstance; + +/// Updates the list of experiments with an optional completion handler. Experiments already +/// existing in payloads are not affected, whose state and payload is preserved. This method +/// compares whether the experiments have changed or not by their variant ID. This runs in a +/// background queue and calls the completion handler when finished executing. +/// @param origin The originating service affected by the experiment. +/// @param events A list of event names to be used for logging experiment lifecycle events, +/// if they are not defined in the payload. +/// @param policy The policy to handle new experiments when slots are full. +/// @param lastStartTime The last known experiment start timestamp for this affected service. +/// (Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970.). +/// @param payloads List of experiment metadata. +/// @param completionHandler Code to be executed after experiments are updated in the background +/// thread. +- (void)updateExperimentsWithServiceOrigin:(NSString *)origin + events:(FIRLifecycleEvents *)events + policy:(ABTExperimentPayloadExperimentOverflowPolicy)policy + lastStartTime:(NSTimeInterval)lastStartTime + payloads:(NSArray *)payloads + completionHandler: + (nullable void (^)(NSError *_Nullable error))completionHandler; + +/// Returns the latest experiment start timestamp given a current latest timestamp and a list of +/// experiment payloads. Timestamps are specified by the number of seconds from 00:00:00 UTC on 1 +/// January 1970. +/// @param timestamp Current latest experiment start timestamp. If not known, affected service +/// should specify -1; +/// @param payloads List of experiment metadata. +- (NSTimeInterval)latestExperimentStartTimestampBetweenTimestamp:(NSTimeInterval)timestamp + andPayloads:(NSArray *)payloads; + +/// Expires experiments that aren't in the list of running experiment payloads. +/// @param origin The originating service affected by the experiment. +/// @param payloads The list of valid, running experiments. +- (void)validateRunningExperimentsForServiceOrigin:(NSString *)origin + runningExperimentPayloads:(NSArray *)payloads; + +/// Directly sets a given experiment to be active. +/// @param experimentPayload The payload for the experiment that should be activated. +/// @param origin The originating service affected by the experiment. +- (void)activateExperiment:(ABTExperimentPayload *)experimentPayload + forServiceOrigin:(NSString *)origin; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h new file mode 100644 index 0000000..e20f9a3 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FIRLifecycleEvents.h @@ -0,0 +1,66 @@ +// 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. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Default event name for when an experiment is set. +extern NSString *const FIRSetExperimentEventName NS_SWIFT_NAME(DefaultSetExperimentEventName); +/// Default event name for when an experiment is activated. +// clang-format off +// clang-format12 will merge lines and exceed 100 character limit. +extern NSString *const FIRActivateExperimentEventName + NS_SWIFT_NAME(DefaultActivateExperimentEventName); +/// Default event name for when an experiment is cleared. +extern NSString *const FIRClearExperimentEventName NS_SWIFT_NAME(DefaultClearExperimentEventName); +/// Default event name for when an experiment times out for being activated. +extern NSString *const FIRTimeoutExperimentEventName + NS_SWIFT_NAME(DefaultTimeoutExperimentEventName); +// clang-format on +/// Default event name for when an experiment is expired as it reaches the end of TTL. +extern NSString *const FIRExpireExperimentEventName NS_SWIFT_NAME(DefaultExpireExperimentEventName); + +/// An Experiment Lifecycle Event Object that specifies the name of the experiment event to be +/// logged by Firebase Analytics. +NS_SWIFT_NAME(LifecycleEvents) +@interface FIRLifecycleEvents : NSObject + +/// Event name for when an experiment is set. It defaults to `SetExperimentEventName` and can be +/// overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *setExperimentEventName; + +/// Event name for when an experiment is activated. It defaults to `ActivateExperimentEventName` +/// and can be overridden. If experiment payload has a valid string of this field, always use +/// experiment payload. +@property(nonatomic, copy) NSString *activateExperimentEventName; + +/// Event name for when an experiment is cleared. It is default to `ClearExperimentEventName` and +/// can be overridden. If experiment payload has a valid string of this field, always use experiment +/// payload. +@property(nonatomic, copy) NSString *clearExperimentEventName; +/// Event name for when an experiment is timeout from being STANDBY. It is default to +/// `TimeoutExperimentEventName` and can be overridden. If experiment payload has a valid string +/// of this field, always use experiment payload. +@property(nonatomic, copy) NSString *timeoutExperimentEventName; + +/// Event name when an experiment is expired when it reaches the end of its TTL. +/// It is default to `ExpireExperimentEventName` and can be overridden. If experiment payload has a +/// valid string of this field, always use experiment payload. +@property(nonatomic, copy) NSString *expireExperimentEventName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h new file mode 100644 index 0000000..6f49ae4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting-umbrella.h @@ -0,0 +1,19 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseABTesting.h" +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" + +FOUNDATION_EXPORT double FirebaseABTestingVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseABTestingVersionString[]; + diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting.h b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting.h new file mode 100755 index 0000000..cfa99b4 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Headers/FirebaseABTesting.h @@ -0,0 +1,16 @@ +// 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. + +#import "FIRExperimentController.h" +#import "FIRLifecycleEvents.h" diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Info.plist b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Info.plist new file mode 100644 index 0000000..e3bf9b0 --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Modules/module.modulemap b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Modules/module.modulemap new file mode 100644 index 0000000..352183d --- /dev/null +++ b/ios/shared/FirebaseABTesting.xcframework/tvos-arm64_x86_64-simulator/FirebaseABTesting.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseABTesting { +umbrella header "FirebaseABTesting-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseCore.xcframework/Info.plist b/ios/shared/FirebaseCore.xcframework/Info.plist index abf6987..b39ec99 100644 --- a/ios/shared/FirebaseCore.xcframework/Info.plist +++ b/ios/shared/FirebaseCore.xcframework/Info.plist @@ -6,38 +6,40 @@+ +CFBundleExecutable +FirebaseABTesting +CFBundleIdentifier +com.firebase.Firebase-FirebaseABTesting +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseABTesting +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 +LibraryIdentifier -tvos-arm64 +tvos-arm64_x86_64-simulator LibraryPath FirebaseCore.framework SupportedArchitectures arm64 +x86_64 SupportedPlatform tvos +SupportedPlatformVariant +simulator LibraryIdentifier -ios-arm64_armv7 +macos-arm64_x86_64 LibraryPath FirebaseCore.framework SupportedArchitectures arm64 -armv7 +x86_64 SupportedPlatform -ios +macos LibraryIdentifier -ios-arm64_i386_x86_64-simulator +ios-arm64_x86_64-simulator LibraryPath FirebaseCore.framework SupportedArchitectures arm64 -i386 x86_64 SupportedPlatform @@ -62,31 +64,27 @@LibraryIdentifier -macos-arm64_x86_64 +tvos-arm64 LibraryPath FirebaseCore.framework SupportedArchitectures arm64 -x86_64 SupportedPlatform -macos +tvos LibraryIdentifier -tvos-arm64_x86_64-simulator +ios-arm64 LibraryPath FirebaseCore.framework SupportedArchitectures arm64 -x86_64 SupportedPlatform -tvos -SupportedPlatformVariant -simulator +ios CFBundlePackageType diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/FirebaseCore b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/FirebaseCore new file mode 100644 index 0000000..4876978 Binary files /dev/null and b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/FirebaseCore differ diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRApp.h similarity index 75% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRApp.h index f5578c6..58ef2a6 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRApp.h @@ -21,25 +21,27 @@ NS_ASSUME_NONNULL_BEGIN /** A block that takes a BOOL and has no return value. */ -typedef void (^FIRAppVoidBoolCallback)(BOOL success) NS_SWIFT_NAME(FirebaseAppVoidBoolCallback); +typedef void (^FIRAppVoidBoolCallback)(BOOL success) + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The entry point of Firebase SDKs. * - * Initialize and configure FIRApp using +[FIRApp configure] + * Initialize and configure `FirebaseApp` using `FirebaseApp.configure()` * or other customized ways as shown below. * * The logging system has two modes: default mode and debug mode. In default mode, only logs with * log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent * to device. The log levels that Firebase uses are consistent with the ASL log levels. * - * Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this - * argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, + * Enable debug mode by passing the `-FIRDebugEnabled` argument to the application. You can add this + * argument in the application's Xcode scheme. When debug mode is enabled via `-FIRDebugEnabled`, * further executions of the application will also be in debug mode. In order to return to default - * mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled. + * mode, you must explicitly disable the debug mode with the application argument + * `-FIRDebugDisabled`. * - * It is also possible to change the default logging level in code by calling setLoggerLevel: on - * the FIRConfiguration interface. + * It is also possible to change the default logging level in code by calling + * `FirebaseConfiguration.shared.setLoggerLevel(_:)` with the desired level. */ NS_SWIFT_NAME(FirebaseApp) @interface FIRApp : NSObject @@ -75,31 +77,31 @@ NS_SWIFT_NAME(FirebaseApp) // clang-format on /** - * Returns the default app, or nil if the default app does not exist. + * Returns the default app, or `nil` if the default app does not exist. */ + (nullable FIRApp *)defaultApp NS_SWIFT_NAME(app()); /** - * Returns a previously created FIRApp instance with the given name, or nil if no such app exists. - * This method is thread safe. + * Returns a previously created `FirebaseApp` instance with the given name, or `nil` if no such app + * exists. This method is thread safe. */ + (nullable FIRApp *)appNamed:(NSString *)name NS_SWIFT_NAME(app(name:)); /** - * Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This - * method is thread safe. + * Returns the set of all extant `FirebaseApp` instances, or `nil` if there are no `FirebaseApp` + * instances. This method is thread safe. */ @property(class, readonly, nullable) NSDictionary*allApps; /** - * Cleans up the current FIRApp, freeing associated data and returning its name to the pool for - * future use. This method is thread safe. + * Cleans up the current `FirebaseApp`, freeing associated data and returning its name to the pool + * for future use. This method is thread safe. */ -- (void)deleteApp:(FIRAppVoidBoolCallback)completion; +- (void)deleteApp:(void (^)(BOOL success))completion; /** - * FIRApp instances should not be initialized directly. Call +[FIRApp configure], - * +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly. + * `FirebaseApp` instances should not be initialized directly. Call `FirebaseApp.configure()`, + * `FirebaseApp.configure(options:)`, or `FirebaseApp.configure(name:options:)` directly. */ - (instancetype)init NS_UNAVAILABLE; @@ -114,7 +116,7 @@ NS_SWIFT_NAME(FirebaseApp) @property(nonatomic, copy, readonly) FIROptions *options; /** - * Gets or sets whether automatic data collection is enabled for all products. Defaults to `YES` + * Gets or sets whether automatic data collection is enabled for all products. Defaults to `true` * unless `FirebaseDataCollectionDefaultEnabled` is set to `NO` in your app's Info.plist. This value * is persisted across runs of the app so that it can be set once when users have consented to * collection. diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRConfiguration.h b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRConfiguration.h similarity index 88% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRConfiguration.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRConfiguration.h index 2b8e678..408bcad 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRConfiguration.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRConfiguration.h @@ -31,9 +31,9 @@ NS_SWIFT_NAME(FirebaseConfiguration) /** * Sets the logging level for internal Firebase logging. Firebase will only log messages - * that are logged at or below loggerLevel. The messages are logged both to the Xcode + * that are logged at or below `loggerLevel`. The messages are logged both to the Xcode * console and to the device's log. Note that if an app is running from AppStore, it will - * never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose) + * never log above `.notice` even if `loggerLevel` is set to a higher (more verbose) * setting. * * @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice. diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRLoggerLevel.h b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRLoggerLevel.h similarity index 100% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRLoggerLevel.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRLoggerLevel.h diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIROptions.h similarity index 77% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIROptions.h index 2498f1d..8f8d945 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIROptions.h @@ -31,32 +31,32 @@ NS_SWIFT_NAME(FirebaseOptions) + (nullable FIROptions *)defaultOptions NS_SWIFT_NAME(defaultOptions()); /** - * An iOS API key used for authenticating requests from your app, e.g. + * An API key used for authenticating requests from your Apple app, e.g. * The key must begin with "A" and contain exactly 39 alphanumeric characters, used to identify your * app to Google servers. */ @property(nonatomic, copy, nullable) NSString *APIKey NS_SWIFT_NAME(apiKey); /** - * The bundle ID for the application. Defaults to `[[NSBundle mainBundle] bundleID]` when not set + * The bundle ID for the application. Defaults to `Bundle.main.bundleIdentifier` when not set * manually or in a plist. */ @property(nonatomic, copy) NSString *bundleID; /** - * The OAuth2 client ID for iOS application used to authenticate Google users, for example + * The OAuth2 client ID for Apple applications used to authenticate Google users, for example * @"12345.apps.googleusercontent.com", used for signing in with Google. */ @property(nonatomic, copy, nullable) NSString *clientID; /** - * The tracking ID for Google Analytics, e.g. @"UA-12345678-1", used to configure Google Analytics. + * Unused. */ -@property(nonatomic, copy, nullable) NSString *trackingID; +@property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE; /** * The Project Number from the Google Developer's console, for example @"012345678901", used to - * configure Google Cloud Messaging. + * configure Firebase Cloud Messaging. */ @property(nonatomic, copy) NSString *GCMSenderID NS_SWIFT_NAME(gcmSenderID); @@ -66,10 +66,9 @@ NS_SWIFT_NAME(FirebaseOptions) @property(nonatomic, copy, nullable) NSString *projectID; /** - * The Android client ID used in Google AppInvite when an iOS app has its Android version, for - * example @"12345.apps.googleusercontent.com". + * Unused. */ -@property(nonatomic, copy, nullable) NSString *androidClientID; +@property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE; /** * The Google App ID that is used to uniquely identify an instance of an app. @@ -107,17 +106,17 @@ NS_SWIFT_NAME(FirebaseOptions) * let options = FirebaseOptions(contentsOfFile: path) * } * ``` - * Note that it is not possible to customize FirebaseOptions for Firebase Analytics which expects a - * static file named `GoogleServices-Info.plist` - + * Note that it is not possible to customize `FirebaseOptions` for Firebase Analytics which expects + * a static file named `GoogleServices-Info.plist` - * https://github.com/firebase/firebase-ios-sdk/issues/230. - * Returns nil if the plist file does not exist or is invalid. + * Returns `nil` if the plist file does not exist or is invalid. */ - (nullable instancetype)initWithContentsOfFile:(NSString *)plistPath NS_DESIGNATED_INITIALIZER; /** - * Initializes a customized instance of FirebaseOptions with required fields. Use the mutable + * Initializes a customized instance of `FirebaseOptions` with required fields. Use the mutable * properties to modify fields for configuring specific services. Note that it is not possible to - * customize FirebaseOptions for Firebase Analytics which expects a static file named + * customize `FirebaseOptions` for Firebase Analytics which expects a static file named * `GoogleServices-Info.plist` - https://github.com/firebase/firebase-ios-sdk/issues/230. */ - (instancetype)initWithGoogleAppID:(NSString *)googleAppID diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRVersion.h b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRVersion.h similarity index 100% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRVersion.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FIRVersion.h diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h new file mode 100644 index 0000000..0f96d94 --- /dev/null +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h @@ -0,0 +1,22 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRApp.h" +#import "FIRConfiguration.h" +#import "FirebaseCore.h" +#import "FIRLoggerLevel.h" +#import "FIROptions.h" +#import "FIRVersion.h" + +FOUNDATION_EXPORT double FirebaseCoreVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreVersionString[]; + diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FirebaseCore.h b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FirebaseCore.h similarity index 100% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FirebaseCore.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Headers/FirebaseCore.h diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Info.plist b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Info.plist similarity index 95% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Info.plist rename to ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Info.plist index 508c1e0..e694049 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Info.plist +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.1 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Modules/module.modulemap b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Modules/module.modulemap similarity index 60% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Modules/module.modulemap rename to ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Modules/module.modulemap index 1db47ff..e5cdc8d 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64/FirebaseCore.framework/Modules/module.modulemap @@ -1,11 +1,9 @@ framework module FirebaseCore { -umbrella header "FirebaseCore.h" +umbrella header "FirebaseCore-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/FirebaseCore b/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/FirebaseCore deleted file mode 100644 index f7a6ab2..0000000 Binary files a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/FirebaseCore and /dev/null differ diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/FirebaseCore b/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/FirebaseCore deleted file mode 100644 index ac46560..0000000 Binary files a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/FirebaseCore and /dev/null differ diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/FirebaseCore b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/FirebaseCore index 0e616a6..a169503 100644 Binary files a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/FirebaseCore and b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/FirebaseCore differ diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIRApp.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIRApp.h index f5578c6..58ef2a6 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIRApp.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIRApp.h @@ -21,25 +21,27 @@ NS_ASSUME_NONNULL_BEGIN /** A block that takes a BOOL and has no return value. */ -typedef void (^FIRAppVoidBoolCallback)(BOOL success) NS_SWIFT_NAME(FirebaseAppVoidBoolCallback); +typedef void (^FIRAppVoidBoolCallback)(BOOL success) + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The entry point of Firebase SDKs. * - * Initialize and configure FIRApp using +[FIRApp configure] + * Initialize and configure `FirebaseApp` using `FirebaseApp.configure()` * or other customized ways as shown below. * * The logging system has two modes: default mode and debug mode. In default mode, only logs with * log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent * to device. The log levels that Firebase uses are consistent with the ASL log levels. * - * Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this - * argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, + * Enable debug mode by passing the `-FIRDebugEnabled` argument to the application. You can add this + * argument in the application's Xcode scheme. When debug mode is enabled via `-FIRDebugEnabled`, * further executions of the application will also be in debug mode. In order to return to default - * mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled. + * mode, you must explicitly disable the debug mode with the application argument + * `-FIRDebugDisabled`. * - * It is also possible to change the default logging level in code by calling setLoggerLevel: on - * the FIRConfiguration interface. + * It is also possible to change the default logging level in code by calling + * `FirebaseConfiguration.shared.setLoggerLevel(_:)` with the desired level. */ NS_SWIFT_NAME(FirebaseApp) @interface FIRApp : NSObject @@ -75,31 +77,31 @@ NS_SWIFT_NAME(FirebaseApp) // clang-format on /** - * Returns the default app, or nil if the default app does not exist. + * Returns the default app, or `nil` if the default app does not exist. */ + (nullable FIRApp *)defaultApp NS_SWIFT_NAME(app()); /** - * Returns a previously created FIRApp instance with the given name, or nil if no such app exists. - * This method is thread safe. + * Returns a previously created `FirebaseApp` instance with the given name, or `nil` if no such app + * exists. This method is thread safe. */ + (nullable FIRApp *)appNamed:(NSString *)name NS_SWIFT_NAME(app(name:)); /** - * Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This - * method is thread safe. + * Returns the set of all extant `FirebaseApp` instances, or `nil` if there are no `FirebaseApp` + * instances. This method is thread safe. */ @property(class, readonly, nullable) NSDictionary*allApps; /** - * Cleans up the current FIRApp, freeing associated data and returning its name to the pool for - * future use. This method is thread safe. + * Cleans up the current `FirebaseApp`, freeing associated data and returning its name to the pool + * for future use. This method is thread safe. */ -- (void)deleteApp:(FIRAppVoidBoolCallback)completion; +- (void)deleteApp:(void (^)(BOOL success))completion; /** - * FIRApp instances should not be initialized directly. Call +[FIRApp configure], - * +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly. + * `FirebaseApp` instances should not be initialized directly. Call `FirebaseApp.configure()`, + * `FirebaseApp.configure(options:)`, or `FirebaseApp.configure(name:options:)` directly. */ - (instancetype)init NS_UNAVAILABLE; @@ -114,7 +116,7 @@ NS_SWIFT_NAME(FirebaseApp) @property(nonatomic, copy, readonly) FIROptions *options; /** - * Gets or sets whether automatic data collection is enabled for all products. Defaults to `YES` + * Gets or sets whether automatic data collection is enabled for all products. Defaults to `true` * unless `FirebaseDataCollectionDefaultEnabled` is set to `NO` in your app's Info.plist. This value * is persisted across runs of the app so that it can be set once when users have consented to * collection. diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIRConfiguration.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIRConfiguration.h index 2b8e678..408bcad 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIRConfiguration.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIRConfiguration.h @@ -31,9 +31,9 @@ NS_SWIFT_NAME(FirebaseConfiguration) /** * Sets the logging level for internal Firebase logging. Firebase will only log messages - * that are logged at or below loggerLevel. The messages are logged both to the Xcode + * that are logged at or below `loggerLevel`. The messages are logged both to the Xcode * console and to the device's log. Note that if an app is running from AppStore, it will - * never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose) + * never log above `.notice` even if `loggerLevel` is set to a higher (more verbose) * setting. * * @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice. diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIROptions.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIROptions.h index 2498f1d..8f8d945 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIROptions.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FIROptions.h @@ -31,32 +31,32 @@ NS_SWIFT_NAME(FirebaseOptions) + (nullable FIROptions *)defaultOptions NS_SWIFT_NAME(defaultOptions()); /** - * An iOS API key used for authenticating requests from your app, e.g. + * An API key used for authenticating requests from your Apple app, e.g. * The key must begin with "A" and contain exactly 39 alphanumeric characters, used to identify your * app to Google servers. */ @property(nonatomic, copy, nullable) NSString *APIKey NS_SWIFT_NAME(apiKey); /** - * The bundle ID for the application. Defaults to `[[NSBundle mainBundle] bundleID]` when not set + * The bundle ID for the application. Defaults to `Bundle.main.bundleIdentifier` when not set * manually or in a plist. */ @property(nonatomic, copy) NSString *bundleID; /** - * The OAuth2 client ID for iOS application used to authenticate Google users, for example + * The OAuth2 client ID for Apple applications used to authenticate Google users, for example * @"12345.apps.googleusercontent.com", used for signing in with Google. */ @property(nonatomic, copy, nullable) NSString *clientID; /** - * The tracking ID for Google Analytics, e.g. @"UA-12345678-1", used to configure Google Analytics. + * Unused. */ -@property(nonatomic, copy, nullable) NSString *trackingID; +@property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE; /** * The Project Number from the Google Developer's console, for example @"012345678901", used to - * configure Google Cloud Messaging. + * configure Firebase Cloud Messaging. */ @property(nonatomic, copy) NSString *GCMSenderID NS_SWIFT_NAME(gcmSenderID); @@ -66,10 +66,9 @@ NS_SWIFT_NAME(FirebaseOptions) @property(nonatomic, copy, nullable) NSString *projectID; /** - * The Android client ID used in Google AppInvite when an iOS app has its Android version, for - * example @"12345.apps.googleusercontent.com". + * Unused. */ -@property(nonatomic, copy, nullable) NSString *androidClientID; +@property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE; /** * The Google App ID that is used to uniquely identify an instance of an app. @@ -107,17 +106,17 @@ NS_SWIFT_NAME(FirebaseOptions) * let options = FirebaseOptions(contentsOfFile: path) * } * ``` - * Note that it is not possible to customize FirebaseOptions for Firebase Analytics which expects a - * static file named `GoogleServices-Info.plist` - + * Note that it is not possible to customize `FirebaseOptions` for Firebase Analytics which expects + * a static file named `GoogleServices-Info.plist` - * https://github.com/firebase/firebase-ios-sdk/issues/230. - * Returns nil if the plist file does not exist or is invalid. + * Returns `nil` if the plist file does not exist or is invalid. */ - (nullable instancetype)initWithContentsOfFile:(NSString *)plistPath NS_DESIGNATED_INITIALIZER; /** - * Initializes a customized instance of FirebaseOptions with required fields. Use the mutable + * Initializes a customized instance of `FirebaseOptions` with required fields. Use the mutable * properties to modify fields for configuring specific services. Note that it is not possible to - * customize FirebaseOptions for Firebase Analytics which expects a static file named + * customize `FirebaseOptions` for Firebase Analytics which expects a static file named * `GoogleServices-Info.plist` - https://github.com/firebase/firebase-ios-sdk/issues/230. */ - (instancetype)initWithGoogleAppID:(NSString *)googleAppID diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h new file mode 100644 index 0000000..0f96d94 --- /dev/null +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h @@ -0,0 +1,22 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRApp.h" +#import "FIRConfiguration.h" +#import "FirebaseCore.h" +#import "FIRLoggerLevel.h" +#import "FIROptions.h" +#import "FIRVersion.h" + +FOUNDATION_EXPORT double FirebaseCoreVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreVersionString[]; + diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Info.plist b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Info.plist index 508c1e0..e694049 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Info.plist +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.1 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Modules/module.modulemap b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Modules/module.modulemap index 1db47ff..e5cdc8d 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCore.framework/Modules/module.modulemap @@ -1,11 +1,9 @@ framework module FirebaseCore { -umbrella header "FirebaseCore.h" +umbrella header "FirebaseCore-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/FirebaseCore b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/FirebaseCore new file mode 100644 index 0000000..cedf3aa Binary files /dev/null and b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/FirebaseCore differ diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRApp.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h similarity index 75% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRApp.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h index f5578c6..58ef2a6 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIRApp.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h @@ -21,25 +21,27 @@ NS_ASSUME_NONNULL_BEGIN /** A block that takes a BOOL and has no return value. */ -typedef void (^FIRAppVoidBoolCallback)(BOOL success) NS_SWIFT_NAME(FirebaseAppVoidBoolCallback); +typedef void (^FIRAppVoidBoolCallback)(BOOL success) + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The entry point of Firebase SDKs. * - * Initialize and configure FIRApp using +[FIRApp configure] + * Initialize and configure `FirebaseApp` using `FirebaseApp.configure()` * or other customized ways as shown below. * * The logging system has two modes: default mode and debug mode. In default mode, only logs with * log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent * to device. The log levels that Firebase uses are consistent with the ASL log levels. * - * Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this - * argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, + * Enable debug mode by passing the `-FIRDebugEnabled` argument to the application. You can add this + * argument in the application's Xcode scheme. When debug mode is enabled via `-FIRDebugEnabled`, * further executions of the application will also be in debug mode. In order to return to default - * mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled. + * mode, you must explicitly disable the debug mode with the application argument + * `-FIRDebugDisabled`. * - * It is also possible to change the default logging level in code by calling setLoggerLevel: on - * the FIRConfiguration interface. + * It is also possible to change the default logging level in code by calling + * `FirebaseConfiguration.shared.setLoggerLevel(_:)` with the desired level. */ NS_SWIFT_NAME(FirebaseApp) @interface FIRApp : NSObject @@ -75,31 +77,31 @@ NS_SWIFT_NAME(FirebaseApp) // clang-format on /** - * Returns the default app, or nil if the default app does not exist. + * Returns the default app, or `nil` if the default app does not exist. */ + (nullable FIRApp *)defaultApp NS_SWIFT_NAME(app()); /** - * Returns a previously created FIRApp instance with the given name, or nil if no such app exists. - * This method is thread safe. + * Returns a previously created `FirebaseApp` instance with the given name, or `nil` if no such app + * exists. This method is thread safe. */ + (nullable FIRApp *)appNamed:(NSString *)name NS_SWIFT_NAME(app(name:)); /** - * Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This - * method is thread safe. + * Returns the set of all extant `FirebaseApp` instances, or `nil` if there are no `FirebaseApp` + * instances. This method is thread safe. */ @property(class, readonly, nullable) NSDictionary*allApps; /** - * Cleans up the current FIRApp, freeing associated data and returning its name to the pool for - * future use. This method is thread safe. + * Cleans up the current `FirebaseApp`, freeing associated data and returning its name to the pool + * for future use. This method is thread safe. */ -- (void)deleteApp:(FIRAppVoidBoolCallback)completion; +- (void)deleteApp:(void (^)(BOOL success))completion; /** - * FIRApp instances should not be initialized directly. Call +[FIRApp configure], - * +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly. + * `FirebaseApp` instances should not be initialized directly. Call `FirebaseApp.configure()`, + * `FirebaseApp.configure(options:)`, or `FirebaseApp.configure(name:options:)` directly. */ - (instancetype)init NS_UNAVAILABLE; @@ -114,7 +116,7 @@ NS_SWIFT_NAME(FirebaseApp) @property(nonatomic, copy, readonly) FIROptions *options; /** - * Gets or sets whether automatic data collection is enabled for all products. Defaults to `YES` + * Gets or sets whether automatic data collection is enabled for all products. Defaults to `true` * unless `FirebaseDataCollectionDefaultEnabled` is set to `NO` in your app's Info.plist. This value * is persisted across runs of the app so that it can be set once when users have consented to * collection. diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h similarity index 88% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h index 2b8e678..408bcad 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h @@ -31,9 +31,9 @@ NS_SWIFT_NAME(FirebaseConfiguration) /** * Sets the logging level for internal Firebase logging. Firebase will only log messages - * that are logged at or below loggerLevel. The messages are logged both to the Xcode + * that are logged at or below `loggerLevel`. The messages are logged both to the Xcode * console and to the device's log. Note that if an app is running from AppStore, it will - * never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose) + * never log above `.notice` even if `loggerLevel` is set to a higher (more verbose) * setting. * * @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice. diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRLoggerLevel.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRLoggerLevel.h similarity index 100% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRLoggerLevel.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRLoggerLevel.h diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIROptions.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h similarity index 77% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIROptions.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h index 2498f1d..8f8d945 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_armv7/FirebaseCore.framework/Headers/FIROptions.h +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h @@ -31,32 +31,32 @@ NS_SWIFT_NAME(FirebaseOptions) + (nullable FIROptions *)defaultOptions NS_SWIFT_NAME(defaultOptions()); /** - * An iOS API key used for authenticating requests from your app, e.g. + * An API key used for authenticating requests from your Apple app, e.g. * The key must begin with "A" and contain exactly 39 alphanumeric characters, used to identify your * app to Google servers. */ @property(nonatomic, copy, nullable) NSString *APIKey NS_SWIFT_NAME(apiKey); /** - * The bundle ID for the application. Defaults to `[[NSBundle mainBundle] bundleID]` when not set + * The bundle ID for the application. Defaults to `Bundle.main.bundleIdentifier` when not set * manually or in a plist. */ @property(nonatomic, copy) NSString *bundleID; /** - * The OAuth2 client ID for iOS application used to authenticate Google users, for example + * The OAuth2 client ID for Apple applications used to authenticate Google users, for example * @"12345.apps.googleusercontent.com", used for signing in with Google. */ @property(nonatomic, copy, nullable) NSString *clientID; /** - * The tracking ID for Google Analytics, e.g. @"UA-12345678-1", used to configure Google Analytics. + * Unused. */ -@property(nonatomic, copy, nullable) NSString *trackingID; +@property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE; /** * The Project Number from the Google Developer's console, for example @"012345678901", used to - * configure Google Cloud Messaging. + * configure Firebase Cloud Messaging. */ @property(nonatomic, copy) NSString *GCMSenderID NS_SWIFT_NAME(gcmSenderID); @@ -66,10 +66,9 @@ NS_SWIFT_NAME(FirebaseOptions) @property(nonatomic, copy, nullable) NSString *projectID; /** - * The Android client ID used in Google AppInvite when an iOS app has its Android version, for - * example @"12345.apps.googleusercontent.com". + * Unused. */ -@property(nonatomic, copy, nullable) NSString *androidClientID; +@property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE; /** * The Google App ID that is used to uniquely identify an instance of an app. @@ -107,17 +106,17 @@ NS_SWIFT_NAME(FirebaseOptions) * let options = FirebaseOptions(contentsOfFile: path) * } * ``` - * Note that it is not possible to customize FirebaseOptions for Firebase Analytics which expects a - * static file named `GoogleServices-Info.plist` - + * Note that it is not possible to customize `FirebaseOptions` for Firebase Analytics which expects + * a static file named `GoogleServices-Info.plist` - * https://github.com/firebase/firebase-ios-sdk/issues/230. - * Returns nil if the plist file does not exist or is invalid. + * Returns `nil` if the plist file does not exist or is invalid. */ - (nullable instancetype)initWithContentsOfFile:(NSString *)plistPath NS_DESIGNATED_INITIALIZER; /** - * Initializes a customized instance of FirebaseOptions with required fields. Use the mutable + * Initializes a customized instance of `FirebaseOptions` with required fields. Use the mutable * properties to modify fields for configuring specific services. Note that it is not possible to - * customize FirebaseOptions for Firebase Analytics which expects a static file named + * customize `FirebaseOptions` for Firebase Analytics which expects a static file named * `GoogleServices-Info.plist` - https://github.com/firebase/firebase-ios-sdk/issues/230. */ - (instancetype)initWithGoogleAppID:(NSString *)googleAppID diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRVersion.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRVersion.h similarity index 100% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FIRVersion.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRVersion.h diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h new file mode 100644 index 0000000..0f96d94 --- /dev/null +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h @@ -0,0 +1,22 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRApp.h" +#import "FIRConfiguration.h" +#import "FirebaseCore.h" +#import "FIRLoggerLevel.h" +#import "FIROptions.h" +#import "FIRVersion.h" + +FOUNDATION_EXPORT double FirebaseCoreVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreVersionString[]; + diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore.h b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore.h similarity index 100% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore.h rename to ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore.h diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Info.plist b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Info.plist similarity index 95% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Info.plist rename to ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Info.plist index 508c1e0..e694049 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Info.plist +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.1 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap similarity index 60% rename from ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap rename to ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap index 1db47ff..e5cdc8d 100644 --- a/ios/shared/FirebaseCore.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseCore.xcframework/ios-arm64_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap @@ -1,11 +1,9 @@ framework module FirebaseCore { -umbrella header "FirebaseCore.h" +umbrella header "FirebaseCore-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/FirebaseCore b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/FirebaseCore index 3b62cb6..7839207 100644 Binary files a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/FirebaseCore and b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/FirebaseCore differ diff --git a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIRApp.h b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIRApp.h index f5578c6..58ef2a6 100644 --- a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIRApp.h +++ b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIRApp.h @@ -21,25 +21,27 @@ NS_ASSUME_NONNULL_BEGIN /** A block that takes a BOOL and has no return value. */ -typedef void (^FIRAppVoidBoolCallback)(BOOL success) NS_SWIFT_NAME(FirebaseAppVoidBoolCallback); +typedef void (^FIRAppVoidBoolCallback)(BOOL success) + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The entry point of Firebase SDKs. * - * Initialize and configure FIRApp using +[FIRApp configure] + * Initialize and configure `FirebaseApp` using `FirebaseApp.configure()` * or other customized ways as shown below. * * The logging system has two modes: default mode and debug mode. In default mode, only logs with * log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent * to device. The log levels that Firebase uses are consistent with the ASL log levels. * - * Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this - * argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, + * Enable debug mode by passing the `-FIRDebugEnabled` argument to the application. You can add this + * argument in the application's Xcode scheme. When debug mode is enabled via `-FIRDebugEnabled`, * further executions of the application will also be in debug mode. In order to return to default - * mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled. + * mode, you must explicitly disable the debug mode with the application argument + * `-FIRDebugDisabled`. * - * It is also possible to change the default logging level in code by calling setLoggerLevel: on - * the FIRConfiguration interface. + * It is also possible to change the default logging level in code by calling + * `FirebaseConfiguration.shared.setLoggerLevel(_:)` with the desired level. */ NS_SWIFT_NAME(FirebaseApp) @interface FIRApp : NSObject @@ -75,31 +77,31 @@ NS_SWIFT_NAME(FirebaseApp) // clang-format on /** - * Returns the default app, or nil if the default app does not exist. + * Returns the default app, or `nil` if the default app does not exist. */ + (nullable FIRApp *)defaultApp NS_SWIFT_NAME(app()); /** - * Returns a previously created FIRApp instance with the given name, or nil if no such app exists. - * This method is thread safe. + * Returns a previously created `FirebaseApp` instance with the given name, or `nil` if no such app + * exists. This method is thread safe. */ + (nullable FIRApp *)appNamed:(NSString *)name NS_SWIFT_NAME(app(name:)); /** - * Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This - * method is thread safe. + * Returns the set of all extant `FirebaseApp` instances, or `nil` if there are no `FirebaseApp` + * instances. This method is thread safe. */ @property(class, readonly, nullable) NSDictionary*allApps; /** - * Cleans up the current FIRApp, freeing associated data and returning its name to the pool for - * future use. This method is thread safe. + * Cleans up the current `FirebaseApp`, freeing associated data and returning its name to the pool + * for future use. This method is thread safe. */ -- (void)deleteApp:(FIRAppVoidBoolCallback)completion; +- (void)deleteApp:(void (^)(BOOL success))completion; /** - * FIRApp instances should not be initialized directly. Call +[FIRApp configure], - * +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly. + * `FirebaseApp` instances should not be initialized directly. Call `FirebaseApp.configure()`, + * `FirebaseApp.configure(options:)`, or `FirebaseApp.configure(name:options:)` directly. */ - (instancetype)init NS_UNAVAILABLE; @@ -114,7 +116,7 @@ NS_SWIFT_NAME(FirebaseApp) @property(nonatomic, copy, readonly) FIROptions *options; /** - * Gets or sets whether automatic data collection is enabled for all products. Defaults to `YES` + * Gets or sets whether automatic data collection is enabled for all products. Defaults to `true` * unless `FirebaseDataCollectionDefaultEnabled` is set to `NO` in your app's Info.plist. This value * is persisted across runs of the app so that it can be set once when users have consented to * collection. diff --git a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIRConfiguration.h b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIRConfiguration.h index 2b8e678..408bcad 100644 --- a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIRConfiguration.h +++ b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIRConfiguration.h @@ -31,9 +31,9 @@ NS_SWIFT_NAME(FirebaseConfiguration) /** * Sets the logging level for internal Firebase logging. Firebase will only log messages - * that are logged at or below loggerLevel. The messages are logged both to the Xcode + * that are logged at or below `loggerLevel`. The messages are logged both to the Xcode * console and to the device's log. Note that if an app is running from AppStore, it will - * never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose) + * never log above `.notice` even if `loggerLevel` is set to a higher (more verbose) * setting. * * @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice. diff --git a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIROptions.h b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIROptions.h index 2498f1d..8f8d945 100644 --- a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIROptions.h +++ b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FIROptions.h @@ -31,32 +31,32 @@ NS_SWIFT_NAME(FirebaseOptions) + (nullable FIROptions *)defaultOptions NS_SWIFT_NAME(defaultOptions()); /** - * An iOS API key used for authenticating requests from your app, e.g. + * An API key used for authenticating requests from your Apple app, e.g. * The key must begin with "A" and contain exactly 39 alphanumeric characters, used to identify your * app to Google servers. */ @property(nonatomic, copy, nullable) NSString *APIKey NS_SWIFT_NAME(apiKey); /** - * The bundle ID for the application. Defaults to `[[NSBundle mainBundle] bundleID]` when not set + * The bundle ID for the application. Defaults to `Bundle.main.bundleIdentifier` when not set * manually or in a plist. */ @property(nonatomic, copy) NSString *bundleID; /** - * The OAuth2 client ID for iOS application used to authenticate Google users, for example + * The OAuth2 client ID for Apple applications used to authenticate Google users, for example * @"12345.apps.googleusercontent.com", used for signing in with Google. */ @property(nonatomic, copy, nullable) NSString *clientID; /** - * The tracking ID for Google Analytics, e.g. @"UA-12345678-1", used to configure Google Analytics. + * Unused. */ -@property(nonatomic, copy, nullable) NSString *trackingID; +@property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE; /** * The Project Number from the Google Developer's console, for example @"012345678901", used to - * configure Google Cloud Messaging. + * configure Firebase Cloud Messaging. */ @property(nonatomic, copy) NSString *GCMSenderID NS_SWIFT_NAME(gcmSenderID); @@ -66,10 +66,9 @@ NS_SWIFT_NAME(FirebaseOptions) @property(nonatomic, copy, nullable) NSString *projectID; /** - * The Android client ID used in Google AppInvite when an iOS app has its Android version, for - * example @"12345.apps.googleusercontent.com". + * Unused. */ -@property(nonatomic, copy, nullable) NSString *androidClientID; +@property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE; /** * The Google App ID that is used to uniquely identify an instance of an app. @@ -107,17 +106,17 @@ NS_SWIFT_NAME(FirebaseOptions) * let options = FirebaseOptions(contentsOfFile: path) * } * ``` - * Note that it is not possible to customize FirebaseOptions for Firebase Analytics which expects a - * static file named `GoogleServices-Info.plist` - + * Note that it is not possible to customize `FirebaseOptions` for Firebase Analytics which expects + * a static file named `GoogleServices-Info.plist` - * https://github.com/firebase/firebase-ios-sdk/issues/230. - * Returns nil if the plist file does not exist or is invalid. + * Returns `nil` if the plist file does not exist or is invalid. */ - (nullable instancetype)initWithContentsOfFile:(NSString *)plistPath NS_DESIGNATED_INITIALIZER; /** - * Initializes a customized instance of FirebaseOptions with required fields. Use the mutable + * Initializes a customized instance of `FirebaseOptions` with required fields. Use the mutable * properties to modify fields for configuring specific services. Note that it is not possible to - * customize FirebaseOptions for Firebase Analytics which expects a static file named + * customize `FirebaseOptions` for Firebase Analytics which expects a static file named * `GoogleServices-Info.plist` - https://github.com/firebase/firebase-ios-sdk/issues/230. */ - (instancetype)initWithGoogleAppID:(NSString *)googleAppID diff --git a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h new file mode 100644 index 0000000..fe9e61a --- /dev/null +++ b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h @@ -0,0 +1,22 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRApp.h" +#import "FIRConfiguration.h" +#import "FirebaseCore.h" +#import "FIRLoggerLevel.h" +#import "FIROptions.h" +#import "FIRVersion.h" + +FOUNDATION_EXPORT double FirebaseCoreVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreVersionString[]; + diff --git a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Info.plist b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Info.plist index 508c1e0..e694049 100644 --- a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Info.plist +++ b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.1 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Modules/module.modulemap b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Modules/module.modulemap index de70d90..62fa6ef 100644 --- a/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseCore.xcframework/macos-arm64_x86_64/FirebaseCore.framework/Modules/module.modulemap @@ -1,11 +1,9 @@ framework module FirebaseCore { -umbrella header "FirebaseCore.h" +umbrella header "FirebaseCore-umbrella.h" export * module * { export * } link framework "AppKit" - link framework "CoreTelephony" link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link "z" } diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/FirebaseCore b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/FirebaseCore index 3d89660..d55b01c 100644 Binary files a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/FirebaseCore and b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/FirebaseCore differ diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIRApp.h b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIRApp.h index f5578c6..58ef2a6 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIRApp.h +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIRApp.h @@ -21,25 +21,27 @@ NS_ASSUME_NONNULL_BEGIN /** A block that takes a BOOL and has no return value. */ -typedef void (^FIRAppVoidBoolCallback)(BOOL success) NS_SWIFT_NAME(FirebaseAppVoidBoolCallback); +typedef void (^FIRAppVoidBoolCallback)(BOOL success) + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The entry point of Firebase SDKs. * - * Initialize and configure FIRApp using +[FIRApp configure] + * Initialize and configure `FirebaseApp` using `FirebaseApp.configure()` * or other customized ways as shown below. * * The logging system has two modes: default mode and debug mode. In default mode, only logs with * log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent * to device. The log levels that Firebase uses are consistent with the ASL log levels. * - * Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this - * argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, + * Enable debug mode by passing the `-FIRDebugEnabled` argument to the application. You can add this + * argument in the application's Xcode scheme. When debug mode is enabled via `-FIRDebugEnabled`, * further executions of the application will also be in debug mode. In order to return to default - * mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled. + * mode, you must explicitly disable the debug mode with the application argument + * `-FIRDebugDisabled`. * - * It is also possible to change the default logging level in code by calling setLoggerLevel: on - * the FIRConfiguration interface. + * It is also possible to change the default logging level in code by calling + * `FirebaseConfiguration.shared.setLoggerLevel(_:)` with the desired level. */ NS_SWIFT_NAME(FirebaseApp) @interface FIRApp : NSObject @@ -75,31 +77,31 @@ NS_SWIFT_NAME(FirebaseApp) // clang-format on /** - * Returns the default app, or nil if the default app does not exist. + * Returns the default app, or `nil` if the default app does not exist. */ + (nullable FIRApp *)defaultApp NS_SWIFT_NAME(app()); /** - * Returns a previously created FIRApp instance with the given name, or nil if no such app exists. - * This method is thread safe. + * Returns a previously created `FirebaseApp` instance with the given name, or `nil` if no such app + * exists. This method is thread safe. */ + (nullable FIRApp *)appNamed:(NSString *)name NS_SWIFT_NAME(app(name:)); /** - * Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This - * method is thread safe. + * Returns the set of all extant `FirebaseApp` instances, or `nil` if there are no `FirebaseApp` + * instances. This method is thread safe. */ @property(class, readonly, nullable) NSDictionary*allApps; /** - * Cleans up the current FIRApp, freeing associated data and returning its name to the pool for - * future use. This method is thread safe. + * Cleans up the current `FirebaseApp`, freeing associated data and returning its name to the pool + * for future use. This method is thread safe. */ -- (void)deleteApp:(FIRAppVoidBoolCallback)completion; +- (void)deleteApp:(void (^)(BOOL success))completion; /** - * FIRApp instances should not be initialized directly. Call +[FIRApp configure], - * +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly. + * `FirebaseApp` instances should not be initialized directly. Call `FirebaseApp.configure()`, + * `FirebaseApp.configure(options:)`, or `FirebaseApp.configure(name:options:)` directly. */ - (instancetype)init NS_UNAVAILABLE; @@ -114,7 +116,7 @@ NS_SWIFT_NAME(FirebaseApp) @property(nonatomic, copy, readonly) FIROptions *options; /** - * Gets or sets whether automatic data collection is enabled for all products. Defaults to `YES` + * Gets or sets whether automatic data collection is enabled for all products. Defaults to `true` * unless `FirebaseDataCollectionDefaultEnabled` is set to `NO` in your app's Info.plist. This value * is persisted across runs of the app so that it can be set once when users have consented to * collection. diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIRConfiguration.h b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIRConfiguration.h index 2b8e678..408bcad 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIRConfiguration.h +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIRConfiguration.h @@ -31,9 +31,9 @@ NS_SWIFT_NAME(FirebaseConfiguration) /** * Sets the logging level for internal Firebase logging. Firebase will only log messages - * that are logged at or below loggerLevel. The messages are logged both to the Xcode + * that are logged at or below `loggerLevel`. The messages are logged both to the Xcode * console and to the device's log. Note that if an app is running from AppStore, it will - * never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose) + * never log above `.notice` even if `loggerLevel` is set to a higher (more verbose) * setting. * * @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice. diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIROptions.h b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIROptions.h index 2498f1d..8f8d945 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIROptions.h +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FIROptions.h @@ -31,32 +31,32 @@ NS_SWIFT_NAME(FirebaseOptions) + (nullable FIROptions *)defaultOptions NS_SWIFT_NAME(defaultOptions()); /** - * An iOS API key used for authenticating requests from your app, e.g. + * An API key used for authenticating requests from your Apple app, e.g. * The key must begin with "A" and contain exactly 39 alphanumeric characters, used to identify your * app to Google servers. */ @property(nonatomic, copy, nullable) NSString *APIKey NS_SWIFT_NAME(apiKey); /** - * The bundle ID for the application. Defaults to `[[NSBundle mainBundle] bundleID]` when not set + * The bundle ID for the application. Defaults to `Bundle.main.bundleIdentifier` when not set * manually or in a plist. */ @property(nonatomic, copy) NSString *bundleID; /** - * The OAuth2 client ID for iOS application used to authenticate Google users, for example + * The OAuth2 client ID for Apple applications used to authenticate Google users, for example * @"12345.apps.googleusercontent.com", used for signing in with Google. */ @property(nonatomic, copy, nullable) NSString *clientID; /** - * The tracking ID for Google Analytics, e.g. @"UA-12345678-1", used to configure Google Analytics. + * Unused. */ -@property(nonatomic, copy, nullable) NSString *trackingID; +@property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE; /** * The Project Number from the Google Developer's console, for example @"012345678901", used to - * configure Google Cloud Messaging. + * configure Firebase Cloud Messaging. */ @property(nonatomic, copy) NSString *GCMSenderID NS_SWIFT_NAME(gcmSenderID); @@ -66,10 +66,9 @@ NS_SWIFT_NAME(FirebaseOptions) @property(nonatomic, copy, nullable) NSString *projectID; /** - * The Android client ID used in Google AppInvite when an iOS app has its Android version, for - * example @"12345.apps.googleusercontent.com". + * Unused. */ -@property(nonatomic, copy, nullable) NSString *androidClientID; +@property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE; /** * The Google App ID that is used to uniquely identify an instance of an app. @@ -107,17 +106,17 @@ NS_SWIFT_NAME(FirebaseOptions) * let options = FirebaseOptions(contentsOfFile: path) * } * ``` - * Note that it is not possible to customize FirebaseOptions for Firebase Analytics which expects a - * static file named `GoogleServices-Info.plist` - + * Note that it is not possible to customize `FirebaseOptions` for Firebase Analytics which expects + * a static file named `GoogleServices-Info.plist` - * https://github.com/firebase/firebase-ios-sdk/issues/230. - * Returns nil if the plist file does not exist or is invalid. + * Returns `nil` if the plist file does not exist or is invalid. */ - (nullable instancetype)initWithContentsOfFile:(NSString *)plistPath NS_DESIGNATED_INITIALIZER; /** - * Initializes a customized instance of FirebaseOptions with required fields. Use the mutable + * Initializes a customized instance of `FirebaseOptions` with required fields. Use the mutable * properties to modify fields for configuring specific services. Note that it is not possible to - * customize FirebaseOptions for Firebase Analytics which expects a static file named + * customize `FirebaseOptions` for Firebase Analytics which expects a static file named * `GoogleServices-Info.plist` - https://github.com/firebase/firebase-ios-sdk/issues/230. */ - (instancetype)initWithGoogleAppID:(NSString *)googleAppID diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h new file mode 100644 index 0000000..0f96d94 --- /dev/null +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h @@ -0,0 +1,22 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRApp.h" +#import "FIRConfiguration.h" +#import "FirebaseCore.h" +#import "FIRLoggerLevel.h" +#import "FIROptions.h" +#import "FIRVersion.h" + +FOUNDATION_EXPORT double FirebaseCoreVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreVersionString[]; + diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Info.plist b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Info.plist index 508c1e0..e694049 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Info.plist +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.1 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Modules/module.modulemap b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Modules/module.modulemap index 019e544..e5cdc8d 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64/FirebaseCore.framework/Modules/module.modulemap @@ -1,10 +1,9 @@ framework module FirebaseCore { -umbrella header "FirebaseCore.h" +umbrella header "FirebaseCore-umbrella.h" export * module * { export * } link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/FirebaseCore b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/FirebaseCore index 1f9acaa..dc68da3 100644 Binary files a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/FirebaseCore and b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/FirebaseCore differ diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h index f5578c6..58ef2a6 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRApp.h @@ -21,25 +21,27 @@ NS_ASSUME_NONNULL_BEGIN /** A block that takes a BOOL and has no return value. */ -typedef void (^FIRAppVoidBoolCallback)(BOOL success) NS_SWIFT_NAME(FirebaseAppVoidBoolCallback); +typedef void (^FIRAppVoidBoolCallback)(BOOL success) + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The entry point of Firebase SDKs. * - * Initialize and configure FIRApp using +[FIRApp configure] + * Initialize and configure `FirebaseApp` using `FirebaseApp.configure()` * or other customized ways as shown below. * * The logging system has two modes: default mode and debug mode. In default mode, only logs with * log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent * to device. The log levels that Firebase uses are consistent with the ASL log levels. * - * Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this - * argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, + * Enable debug mode by passing the `-FIRDebugEnabled` argument to the application. You can add this + * argument in the application's Xcode scheme. When debug mode is enabled via `-FIRDebugEnabled`, * further executions of the application will also be in debug mode. In order to return to default - * mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled. + * mode, you must explicitly disable the debug mode with the application argument + * `-FIRDebugDisabled`. * - * It is also possible to change the default logging level in code by calling setLoggerLevel: on - * the FIRConfiguration interface. + * It is also possible to change the default logging level in code by calling + * `FirebaseConfiguration.shared.setLoggerLevel(_:)` with the desired level. */ NS_SWIFT_NAME(FirebaseApp) @interface FIRApp : NSObject @@ -75,31 +77,31 @@ NS_SWIFT_NAME(FirebaseApp) // clang-format on /** - * Returns the default app, or nil if the default app does not exist. + * Returns the default app, or `nil` if the default app does not exist. */ + (nullable FIRApp *)defaultApp NS_SWIFT_NAME(app()); /** - * Returns a previously created FIRApp instance with the given name, or nil if no such app exists. - * This method is thread safe. + * Returns a previously created `FirebaseApp` instance with the given name, or `nil` if no such app + * exists. This method is thread safe. */ + (nullable FIRApp *)appNamed:(NSString *)name NS_SWIFT_NAME(app(name:)); /** - * Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This - * method is thread safe. + * Returns the set of all extant `FirebaseApp` instances, or `nil` if there are no `FirebaseApp` + * instances. This method is thread safe. */ @property(class, readonly, nullable) NSDictionary*allApps; /** - * Cleans up the current FIRApp, freeing associated data and returning its name to the pool for - * future use. This method is thread safe. + * Cleans up the current `FirebaseApp`, freeing associated data and returning its name to the pool + * for future use. This method is thread safe. */ -- (void)deleteApp:(FIRAppVoidBoolCallback)completion; +- (void)deleteApp:(void (^)(BOOL success))completion; /** - * FIRApp instances should not be initialized directly. Call +[FIRApp configure], - * +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly. + * `FirebaseApp` instances should not be initialized directly. Call `FirebaseApp.configure()`, + * `FirebaseApp.configure(options:)`, or `FirebaseApp.configure(name:options:)` directly. */ - (instancetype)init NS_UNAVAILABLE; @@ -114,7 +116,7 @@ NS_SWIFT_NAME(FirebaseApp) @property(nonatomic, copy, readonly) FIROptions *options; /** - * Gets or sets whether automatic data collection is enabled for all products. Defaults to `YES` + * Gets or sets whether automatic data collection is enabled for all products. Defaults to `true` * unless `FirebaseDataCollectionDefaultEnabled` is set to `NO` in your app's Info.plist. This value * is persisted across runs of the app so that it can be set once when users have consented to * collection. diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h index 2b8e678..408bcad 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIRConfiguration.h @@ -31,9 +31,9 @@ NS_SWIFT_NAME(FirebaseConfiguration) /** * Sets the logging level for internal Firebase logging. Firebase will only log messages - * that are logged at or below loggerLevel. The messages are logged both to the Xcode + * that are logged at or below `loggerLevel`. The messages are logged both to the Xcode * console and to the device's log. Note that if an app is running from AppStore, it will - * never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose) + * never log above `.notice` even if `loggerLevel` is set to a higher (more verbose) * setting. * * @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice. diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h index 2498f1d..8f8d945 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FIROptions.h @@ -31,32 +31,32 @@ NS_SWIFT_NAME(FirebaseOptions) + (nullable FIROptions *)defaultOptions NS_SWIFT_NAME(defaultOptions()); /** - * An iOS API key used for authenticating requests from your app, e.g. + * An API key used for authenticating requests from your Apple app, e.g. * The key must begin with "A" and contain exactly 39 alphanumeric characters, used to identify your * app to Google servers. */ @property(nonatomic, copy, nullable) NSString *APIKey NS_SWIFT_NAME(apiKey); /** - * The bundle ID for the application. Defaults to `[[NSBundle mainBundle] bundleID]` when not set + * The bundle ID for the application. Defaults to `Bundle.main.bundleIdentifier` when not set * manually or in a plist. */ @property(nonatomic, copy) NSString *bundleID; /** - * The OAuth2 client ID for iOS application used to authenticate Google users, for example + * The OAuth2 client ID for Apple applications used to authenticate Google users, for example * @"12345.apps.googleusercontent.com", used for signing in with Google. */ @property(nonatomic, copy, nullable) NSString *clientID; /** - * The tracking ID for Google Analytics, e.g. @"UA-12345678-1", used to configure Google Analytics. + * Unused. */ -@property(nonatomic, copy, nullable) NSString *trackingID; +@property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE; /** * The Project Number from the Google Developer's console, for example @"012345678901", used to - * configure Google Cloud Messaging. + * configure Firebase Cloud Messaging. */ @property(nonatomic, copy) NSString *GCMSenderID NS_SWIFT_NAME(gcmSenderID); @@ -66,10 +66,9 @@ NS_SWIFT_NAME(FirebaseOptions) @property(nonatomic, copy, nullable) NSString *projectID; /** - * The Android client ID used in Google AppInvite when an iOS app has its Android version, for - * example @"12345.apps.googleusercontent.com". + * Unused. */ -@property(nonatomic, copy, nullable) NSString *androidClientID; +@property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE; /** * The Google App ID that is used to uniquely identify an instance of an app. @@ -107,17 +106,17 @@ NS_SWIFT_NAME(FirebaseOptions) * let options = FirebaseOptions(contentsOfFile: path) * } * ``` - * Note that it is not possible to customize FirebaseOptions for Firebase Analytics which expects a - * static file named `GoogleServices-Info.plist` - + * Note that it is not possible to customize `FirebaseOptions` for Firebase Analytics which expects + * a static file named `GoogleServices-Info.plist` - * https://github.com/firebase/firebase-ios-sdk/issues/230. - * Returns nil if the plist file does not exist or is invalid. + * Returns `nil` if the plist file does not exist or is invalid. */ - (nullable instancetype)initWithContentsOfFile:(NSString *)plistPath NS_DESIGNATED_INITIALIZER; /** - * Initializes a customized instance of FirebaseOptions with required fields. Use the mutable + * Initializes a customized instance of `FirebaseOptions` with required fields. Use the mutable * properties to modify fields for configuring specific services. Note that it is not possible to - * customize FirebaseOptions for Firebase Analytics which expects a static file named + * customize `FirebaseOptions` for Firebase Analytics which expects a static file named * `GoogleServices-Info.plist` - https://github.com/firebase/firebase-ios-sdk/issues/230. */ - (instancetype)initWithGoogleAppID:(NSString *)googleAppID diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h new file mode 100644 index 0000000..0f96d94 --- /dev/null +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h @@ -0,0 +1,22 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRApp.h" +#import "FIRConfiguration.h" +#import "FirebaseCore.h" +#import "FIRLoggerLevel.h" +#import "FIROptions.h" +#import "FIRVersion.h" + +FOUNDATION_EXPORT double FirebaseCoreVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreVersionString[]; + diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Info.plist b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Info.plist index 508c1e0..e694049 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Info.plist +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.1 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap index 019e544..e5cdc8d 100644 --- a/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseCore.xcframework/tvos-arm64_x86_64-simulator/FirebaseCore.framework/Modules/module.modulemap @@ -1,10 +1,9 @@ framework module FirebaseCore { -umbrella header "FirebaseCore.h" +umbrella header "FirebaseCore-umbrella.h" export * module * { export * } link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics deleted file mode 100644 index 52c96a1..0000000 Binary files a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics and /dev/null differ diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Info.plist b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Info.plist deleted file mode 100644 index 20fd6d6..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - -- diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Modules/module.modulemap deleted file mode 100644 index ac53310..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Modules/module.modulemap +++ /dev/null @@ -1,10 +0,0 @@ -framework module FirebaseCoreDiagnostics { -umbrella header "FirebaseCoreDiagnostics-umbrella.h" -export * -module * { export * } - link framework "CoreTelephony" - link framework "Foundation" - link framework "Security" - link framework "SystemConfiguration" - link "z" -} diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics deleted file mode 100644 index 8260d67..0000000 Binary files a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics and /dev/null differ diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Info.plist b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Info.plist deleted file mode 100644 index 20fd6d6..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - -- -CFBundleExecutable -FirebaseCoreDiagnostics -CFBundleIdentifier -com.firebase.Firebase-FirebaseCoreDiagnostics -CFBundleInfoDictionaryVersion -6.0 -CFBundleName -FirebaseCoreDiagnostics -CFBundlePackageType -FMWK -CFBundleVersion -8.12.0 -DTSDKName -iphonesimulator11.2 -- diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Modules/module.modulemap deleted file mode 100644 index ac53310..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Modules/module.modulemap +++ /dev/null @@ -1,10 +0,0 @@ -framework module FirebaseCoreDiagnostics { -umbrella header "FirebaseCoreDiagnostics-umbrella.h" -export * -module * { export * } - link framework "CoreTelephony" - link framework "Foundation" - link framework "Security" - link framework "SystemConfiguration" - link "z" -} diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics deleted file mode 100644 index 558e1e2..0000000 Binary files a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics and /dev/null differ diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h deleted file mode 100644 index 5076d6b..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2020 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. - */ - -// There are no actual public headers in the lib. This is a dummy public header to prevent Cocoapods -// from adding all internal headers as public. diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Info.plist b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Info.plist deleted file mode 100644 index 20fd6d6..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - -- -CFBundleExecutable -FirebaseCoreDiagnostics -CFBundleIdentifier -com.firebase.Firebase-FirebaseCoreDiagnostics -CFBundleInfoDictionaryVersion -6.0 -CFBundleName -FirebaseCoreDiagnostics -CFBundlePackageType -FMWK -CFBundleVersion -8.12.0 -DTSDKName -iphonesimulator11.2 -- diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Modules/module.modulemap deleted file mode 100644 index ac53310..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Modules/module.modulemap +++ /dev/null @@ -1,10 +0,0 @@ -framework module FirebaseCoreDiagnostics { -umbrella header "FirebaseCoreDiagnostics-umbrella.h" -export * -module * { export * } - link framework "CoreTelephony" - link framework "Foundation" - link framework "Security" - link framework "SystemConfiguration" - link "z" -} diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics b/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics deleted file mode 100644 index 269a6fb..0000000 Binary files a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics and /dev/null differ diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h b/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h deleted file mode 100644 index 5076d6b..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2020 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. - */ - -// There are no actual public headers in the lib. This is a dummy public header to prevent Cocoapods -// from adding all internal headers as public. diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Info.plist b/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Info.plist deleted file mode 100644 index 20fd6d6..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - -- -CFBundleExecutable -FirebaseCoreDiagnostics -CFBundleIdentifier -com.firebase.Firebase-FirebaseCoreDiagnostics -CFBundleInfoDictionaryVersion -6.0 -CFBundleName -FirebaseCoreDiagnostics -CFBundlePackageType -FMWK -CFBundleVersion -8.12.0 -DTSDKName -iphonesimulator11.2 -- diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Modules/module.modulemap deleted file mode 100644 index ac53310..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Modules/module.modulemap +++ /dev/null @@ -1,10 +0,0 @@ -framework module FirebaseCoreDiagnostics { -umbrella header "FirebaseCoreDiagnostics-umbrella.h" -export * -module * { export * } - link framework "CoreTelephony" - link framework "Foundation" - link framework "Security" - link framework "SystemConfiguration" - link "z" -} diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics deleted file mode 100644 index 2eaab13..0000000 Binary files a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics and /dev/null differ diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h deleted file mode 100644 index 5076d6b..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2020 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. - */ - -// There are no actual public headers in the lib. This is a dummy public header to prevent Cocoapods -// from adding all internal headers as public. diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Info.plist b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Info.plist deleted file mode 100644 index 20fd6d6..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - -- -CFBundleExecutable -FirebaseCoreDiagnostics -CFBundleIdentifier -com.firebase.Firebase-FirebaseCoreDiagnostics -CFBundleInfoDictionaryVersion -6.0 -CFBundleName -FirebaseCoreDiagnostics -CFBundlePackageType -FMWK -CFBundleVersion -8.12.0 -DTSDKName -iphonesimulator11.2 -- diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Modules/module.modulemap deleted file mode 100644 index 762befc..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module FirebaseCoreDiagnostics { -umbrella header "FirebaseCoreDiagnostics-umbrella.h" -export * -module * { export * } - link framework "Foundation" - link framework "Security" - link framework "SystemConfiguration" - link "z" -} diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics deleted file mode 100644 index 9fe7844..0000000 Binary files a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/FirebaseCoreDiagnostics and /dev/null differ diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h deleted file mode 100644 index 5076d6b..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2020 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. - */ - -// There are no actual public headers in the lib. This is a dummy public header to prevent Cocoapods -// from adding all internal headers as public. diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h deleted file mode 100644 index a27569f..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifdef __OBJC__ -#import- -CFBundleExecutable -FirebaseCoreDiagnostics -CFBundleIdentifier -com.firebase.Firebase-FirebaseCoreDiagnostics -CFBundleInfoDictionaryVersion -6.0 -CFBundleName -FirebaseCoreDiagnostics -CFBundlePackageType -FMWK -CFBundleVersion -8.12.0 -DTSDKName -iphonesimulator11.2 --#else -#ifndef FOUNDATION_EXPORT -#if defined(__cplusplus) -#define FOUNDATION_EXPORT extern "C" -#else -#define FOUNDATION_EXPORT extern -#endif -#endif -#endif - -#import "FIRCoreDiagnostics.h" - -FOUNDATION_EXPORT double FirebaseCoreDiagnosticsVersionNumber; -FOUNDATION_EXPORT const unsigned char FirebaseCoreDiagnosticsVersionString[]; - diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Info.plist b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Info.plist deleted file mode 100644 index 20fd6d6..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ - - - - diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Modules/module.modulemap deleted file mode 100644 index 762befc..0000000 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreDiagnostics.framework/Modules/module.modulemap +++ /dev/null @@ -1,9 +0,0 @@ -framework module FirebaseCoreDiagnostics { -umbrella header "FirebaseCoreDiagnostics-umbrella.h" -export * -module * { export * } - link framework "Foundation" - link framework "Security" - link framework "SystemConfiguration" - link "z" -} diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/Info.plist b/ios/shared/FirebaseCoreExtension.xcframework/Info.plist similarity index 82% rename from ios/shared/FirebaseCoreDiagnostics.xcframework/Info.plist rename to ios/shared/FirebaseCoreExtension.xcframework/Info.plist index 4f3b400..85d0bba 100644 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/Info.plist +++ b/ios/shared/FirebaseCoreExtension.xcframework/Info.plist @@ -6,87 +6,85 @@- -CFBundleExecutable -FirebaseCoreDiagnostics -CFBundleIdentifier -com.firebase.Firebase-FirebaseCoreDiagnostics -CFBundleInfoDictionaryVersion -6.0 -CFBundleName -FirebaseCoreDiagnostics -CFBundlePackageType -FMWK -CFBundleVersion -8.12.0 -DTSDKName -iphonesimulator11.2 -LibraryIdentifier -macos-arm64_x86_64 +tvos-arm64_x86_64-simulator LibraryPath -FirebaseCoreDiagnostics.framework +FirebaseCoreExtension.framework SupportedArchitectures arm64 x86_64 SupportedPlatform -macos +tvos +SupportedPlatformVariant +simulator LibraryIdentifier -tvos-arm64 +ios-arm64_x86_64-simulator LibraryPath -FirebaseCoreDiagnostics.framework +FirebaseCoreExtension.framework SupportedArchitectures arm64 +x86_64 SupportedPlatform -tvos +ios +SupportedPlatformVariant +simulator LibraryIdentifier -ios-arm64_x86_64-maccatalyst +tvos-arm64 LibraryPath -FirebaseCoreDiagnostics.framework +FirebaseCoreExtension.framework SupportedArchitectures arm64 -x86_64 SupportedPlatform -ios -SupportedPlatformVariant -maccatalyst +tvos LibraryIdentifier -ios-arm64_armv7 +ios-arm64_x86_64-maccatalyst LibraryPath -FirebaseCoreDiagnostics.framework +FirebaseCoreExtension.framework SupportedArchitectures arm64 -armv7 +x86_64 SupportedPlatform ios +SupportedPlatformVariant +maccatalyst LibraryIdentifier -ios-arm64_i386_x86_64-simulator +macos-arm64_x86_64 LibraryPath -FirebaseCoreDiagnostics.framework +FirebaseCoreExtension.framework SupportedArchitectures arm64 -i386 x86_64 SupportedPlatform -ios -SupportedPlatformVariant -simulator +macos LibraryIdentifier -tvos-arm64_x86_64-simulator +ios-arm64 LibraryPath -FirebaseCoreDiagnostics.framework +FirebaseCoreExtension.framework SupportedArchitectures arm64 -x86_64 SupportedPlatform -tvos -SupportedPlatformVariant -simulator +ios CFBundlePackageType diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/FirebaseCoreExtension b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/FirebaseCoreExtension new file mode 100644 index 0000000..05bc8dd Binary files /dev/null and b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/FirebaseCoreExtension differ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h new file mode 100644 index 0000000..49104f0 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h @@ -0,0 +1,159 @@ +/* + * Copyright 2017 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. + */ + +#import+ +@class FIRComponentContainer; +@class FIRHeartbeatLogger; +@protocol FIRLibrary; + +/** + * The internal interface to `FirebaseApp`. This is meant for first-party integrators, who need to + * receive `FirebaseApp` notifications, log info about the success or failure of their + * configuration, and access other internal functionality of `FirebaseApp`. + */ +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, FIRConfigType) { + FIRConfigTypeCore = 1, + FIRConfigTypeSDK = 2, +}; + +extern NSString *const kFIRDefaultAppName; +extern NSString *const kFIRAppReadyToConfigureSDKNotification; +extern NSString *const kFIRAppDeleteNotification; +extern NSString *const kFIRAppIsDefaultAppKey; +extern NSString *const kFIRAppNameKey; +extern NSString *const kFIRGoogleAppIDKey; +extern NSString *const kFirebaseCoreErrorDomain; + +/** The `UserDefaults` suite name for `FirebaseCore`, for those storage locations that use it. */ +extern NSString *const kFirebaseCoreDefaultsSuiteName; + +/** + * The format string for the `UserDefaults` key used for storing the data collection enabled flag. + * This includes formatting to append the `FirebaseApp`'s name. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledDefaultsKeyFormat; + +/** + * The plist key used for storing the data collection enabled flag. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledPlistKey; + +/** @var FirebaseAuthStateDidChangeInternalNotification + @brief The name of the @c NotificationCenter notification which is posted when the auth state + changes (e.g. a new token has been produced, a user logs in or out). The object parameter of + the notification is a dictionary possibly containing the key: + @c FirebaseAuthStateDidChangeInternalNotificationTokenKey (the new access token.) If it does not + contain this key it indicates a sign-out event took place. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotification; + +/** @var FirebaseAuthStateDidChangeInternalNotificationTokenKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new access token. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationAppKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the FirebaseApp associated with the auth instance. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationAppKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationUIDKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new user's UID (or nil if there is no longer a user signed in). + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey; + +@interface FIRApp () + +/** + * A flag indicating if this is the default app (has the default app name). + */ +@property(nonatomic, readonly) BOOL isDefaultApp; + +/** + * The container of interop SDKs for this app. + */ +@property(nonatomic) FIRComponentContainer *container; + +/** + * The heartbeat logger associated with this app. + * + * Firebase apps have a 1:1 relationship with heartbeat loggers. + */ +@property(readonly) FIRHeartbeatLogger *heartbeatLogger; + +/** + * Checks if the default app is configured without trying to configure it. + */ ++ (BOOL)isDefaultAppConfigured; + +/** + * Registers a given third-party library with the given version number to be reported for + * analytics. + * + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerLibrary:(nonnull NSString *)name withVersion:(nonnull NSString *)version; + +/** + * Registers a given internal library to be reported for analytics. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name; + +/** + * Registers a given internal library with the given version number to be reported for + * analytics. This should only be used for non-Firebase libraries that have their own versioning + * scheme. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name + withVersion:(nonnull NSString *)version; + +/** + * A concatenated string representing all the third-party libraries and version numbers. + */ ++ (NSString *)firebaseUserAgent; + +/** + * Can be used by the unit tests in each SDK to reset `FirebaseApp`. This method is thread unsafe. + */ ++ (void)resetApps; + +/** + * Can be used by the unit tests in each SDK to set customized options. + */ +- (instancetype)initInstanceWithName:(NSString *)name options:(FIROptions *)options; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponent.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponent.h new file mode 100644 index 0000000..e4c8a27 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponent.h @@ -0,0 +1,91 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRApp; +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Provides a system to clean up cached instances returned from the component system. +NS_SWIFT_NAME(ComponentLifecycleMaintainer) +@protocol FIRComponentLifecycleMaintainer +/// The associated app will be deleted, clean up any resources as they are about to be deallocated. +- (void)appWillBeDeleted:(FIRApp *)app; +@end + +typedef _Nullable id (^FIRComponentCreationBlock)(FIRComponentContainer *container, + BOOL *isCacheable) + NS_SWIFT_NAME(ComponentCreationBlock); + +@class FIRDependency; + +/// Describes the timing of instantiation. Note: new components should default to lazy unless there +/// is a strong reason to be eager. +typedef NS_ENUM(NSInteger, FIRInstantiationTiming) { + FIRInstantiationTimingLazy, + FIRInstantiationTimingAlwaysEager, + FIRInstantiationTimingEagerInDefaultApp +} NS_SWIFT_NAME(InstantiationTiming); + +/// A component that can be used from other Firebase SDKs. +NS_SWIFT_NAME(Component) +@interface FIRComponent : NSObject + +/// The protocol describing functionality provided from the `Component`. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// The timing of instantiation. +@property(nonatomic, readonly) FIRInstantiationTiming instantiationTiming; + +/// An array of dependencies for the component. +@property(nonatomic, copy, readonly) NSArray *dependencies; + +/// A block to instantiate an instance of the component with the appropriate dependencies. +@property(nonatomic, copy, readonly) FIRComponentCreationBlock creationBlock; + +// There's an issue with long NS_SWIFT_NAMES that causes compilation to fail, disable clang-format +// for the next two methods. +// clang-format off + +/// Creates a component with no dependencies that will be lazily initialized. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:creationBlock:)); + +/// Creates a component to be registered with the component container. +/// +/// @param protocol - The protocol describing functionality provided by the component. +/// @param instantiationTiming - When the component should be initialized. Use .lazy unless there's +/// a good reason to be instantiated earlier. +/// @param dependencies - Any dependencies the `implementingClass` has, optional or required. +/// @param creationBlock - A block to instantiate the component with a container, and if +/// @return A component that can be registered with the component container. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + instantiationTiming:(FIRInstantiationTiming)instantiationTiming + dependencies:(NSArray *)dependencies + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:instantiationTiming:dependencies:creationBlock:)); + +// clang-format on + +/// Unavailable. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h new file mode 100644 index 0000000..6ec6147 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A type-safe macro to retrieve a component from a container. This should be used to retrieve +/// components instead of using the container directly. +#define FIR_COMPONENT(type, container) \ + [FIRComponentType > instanceForProtocol:@protocol(type) inContainer:container] + +@class FIRApp; + +/// A container that holds different components that are registered via the +/// `registerAsComponentRegistrant` call. These classes should conform to `ComponentRegistrant` +/// in order to properly register components for Core. +NS_SWIFT_NAME(FirebaseComponentContainer) +@interface FIRComponentContainer : NSObject + +/// A weak reference to the app that an instance of the container belongs to. +@property(nonatomic, weak, readonly) FIRApp *app; + +// TODO: See if we can get improved type safety here. +/// A Swift only API for fetching an instance since the top macro isn't available. +- (nullable id)__instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:)); + +/// Unavailable. Use the `container` property on `FirebaseApp`. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h similarity index 50% rename from ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h rename to ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h index 5076d6b..6f2aca7 100644 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2018 Google * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,5 +14,21 @@ * limitations under the License. */ -// There are no actual public headers in the lib. This is a dummy public header to prevent Cocoapods -// from adding all internal headers as public. +#import + +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Do not use directly. A placeholder type in order to provide a macro that will warn users of +/// mis-matched protocols. +NS_SWIFT_NAME(ComponentType) +@interface FIRComponentType<__covariant T> : NSObject + +/// Do not use directly. A factory method to retrieve an instance that provides a specific +/// functionality. ++ (T)instanceForProtocol:(Protocol *)protocol inContainer:(FIRComponentContainer *)container; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRDependency.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRDependency.h new file mode 100644 index 0000000..a070557 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRDependency.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A dependency on a specific protocol's functionality. +NS_SWIFT_NAME(Dependency) +@interface FIRDependency : NSObject + +/// The protocol describing functionality being depended on. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// A flag to specify if the dependency is required or not. +@property(nonatomic, readonly) BOOL isRequired; + +/// Initializes a dependency that is required. Calls `init(protocol:isRequired:)` with true for +/// the required parameter. +/// Creates a required dependency on the specified protocol's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol; + +/// Creates a dependency on the specified protocol's functionality and specify if it's required for +/// the class's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol isRequired:(BOOL)required; + +/// Use `init(withProtocol:isRequired:)` instead. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h new file mode 100644 index 0000000..0f39ad9 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h @@ -0,0 +1,90 @@ +// Copyright 2021 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 + +NS_ASSUME_NONNULL_BEGIN + +#ifndef FIREBASE_BUILD_CMAKE +@class FIRHeartbeatsPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Enum representing different daily heartbeat codes. +/// This enum is only used by clients using platform logging V1. This is because +/// the V1 payload only supports a single daily heartbeat. +typedef NS_ENUM(NSInteger, FIRDailyHeartbeatCode) { + /// Represents the absence of a daily heartbeat. + FIRDailyHeartbeatCodeNone = 0, + /// Represents the presence of a daily heartbeat. + FIRDailyHeartbeatCodeSome = 2, +}; + +@protocol FIRHeartbeatLoggerProtocol + +/// Asynchronously logs a heartbeat. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets the heartbeat code for today. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +#ifndef FIREBASE_BUILD_CMAKE +/// Returns a nullable string header value from a given heartbeats payload. +/// +/// This API returns `nil` when the given heartbeats payload is considered empty. +/// +/// @param heartbeatsPayload The heartbeats payload. +NSString *_Nullable FIRHeaderValueFromHeartbeatsPayload(FIRHeartbeatsPayload *heartbeatsPayload); +#endif // FIREBASE_BUILD_CMAKE + +/// A thread safe, synchronized object that logs and flushes platform logging info. +@interface FIRHeartbeatLogger : NSObject + +/// Designated initializer. +/// +/// @param appID The app ID that this heartbeat logger corresponds to. +- (instancetype)initWithAppID:(NSString *)appID; + +/// Asynchronously logs a new heartbeat corresponding to the Firebase User Agent, if needed. +/// +/// @note This API is thread-safe. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +/// +/// This API is for clients using platform logging V2. +/// +/// @note This API is thread-safe. +/// @return A payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets today's corresponding heartbeat code. +/// +/// This API is for clients using platform logging V1. +/// +/// @note This API is thread-safe. +/// @return Heartbeat code indicating whether or not there is an unsent global heartbeat. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h new file mode 100644 index 0000000..15e2865 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h @@ -0,0 +1,44 @@ +/* + * Copyright 2018 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. + */ + +#ifndef FIRLibrary_h +#define FIRLibrary_h + +#import + +@class FIRApp; +@class FIRComponent; + +NS_ASSUME_NONNULL_BEGIN + +/// Provide an interface to register a library for userAgent logging and availability to others. +NS_SWIFT_NAME(Library) +@protocol FIRLibrary + +/// Returns one or more Components that will be registered in +/// FirebaseApp and participate in dependency resolution and injection. ++ (NSArray *)componentsToRegister; + +@optional +/// Implement this method if the library needs notifications for lifecycle events. This method is +/// called when the developer calls `FirebaseApp.configure()`. ++ (void)configureWithApp:(FIRApp *)app; + +@end + +NS_ASSUME_NONNULL_END + +#endif /* FIRLibrary_h */ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRLogger.h new file mode 100644 index 0000000..0a287f5 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIRLogger.h @@ -0,0 +1,188 @@ +/* + * Copyright 2017 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. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + * The Firebase services used in Firebase logger. + */ +typedef NSString *const FIRLoggerService; + +extern FIRLoggerService kFIRLoggerAnalytics; +extern FIRLoggerService kFIRLoggerCrash; +extern FIRLoggerService kFIRLoggerCore; +extern FIRLoggerService kFIRLoggerRemoteConfig; + +/** + * The key used to store the logger's error count. + */ +extern NSString *const kFIRLoggerErrorCountKey; + +/** + * The key used to store the logger's warning count. + */ +extern NSString *const kFIRLoggerWarningCountKey; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +/** + * Enables or disables Analytics debug mode. + * If set to true, the logging level for Analytics will be set to FirebaseLoggerLevelDebug. + * Enabling the debug mode has no effect if the app is running from App Store. + * (required) analytics debug mode flag. + */ +void FIRSetAnalyticsDebugMode(BOOL analyticsDebugMode); + +/** + * Changes the default logging level of FirebaseLoggerLevelNotice to a user-specified level. + * The default level cannot be set above FirebaseLoggerLevelNotice if the app is running from App + * Store. (required) log level (one of the FirebaseLoggerLevel enum values). + */ +void FIRSetLoggerLevel(FIRLoggerLevel loggerLevel); + +/** + * Checks if the specified logger level is loggable given the current settings. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) whether or not this function is called from the Analytics component. + */ +BOOL FIRIsLoggableLevel(FIRLoggerLevel loggerLevel, BOOL analyticsComponent); + +/** + * Logs a message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) service name of type FirebaseLoggerService. + * (required) message code starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * (required) message string which can be a format string. + * (optional) variable arguments list obtained from calling va_start, used when message is a format + * string. + */ +extern void FIRLogBasic(FIRLoggerLevel level, + FIRLoggerService service, + NSString *messageCode, + NSString *message, +// On 64-bit simulators, va_list is not a pointer, so cannot be marked nullable +// See: http://stackoverflow.com/q/29095469 +#if __LP64__ && TARGET_OS_SIMULATOR || TARGET_OS_OSX + va_list args_ptr +#else + va_list _Nullable args_ptr +#endif +); + +/** + * The following functions accept the following parameters in order: + * (required) service name of type FirebaseLoggerService. + * (required) message code starting from "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * See go/firebase-log-proposal for details. + * (required) message string which can be a format string. + * (optional) the list of arguments to substitute into the format string. + * Example usage: + * FirebaseLogError(kFirebaseLoggerCore, @"I-COR000001", @"Configuration of %@ failed.", app.name); + */ +extern void FIRLogError(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogWarning(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogNotice(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogInfo(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogDebug(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); + +// TODO: Come up with a better logging scheme for Swift. +/** + * Logs a debug message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogDebugSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +/** + * Logs a warning message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogWarningSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +NS_SWIFT_NAME(FirebaseLogger) +@interface FIRLoggerWrapper : NSObject + +/// Logs a given message at a given log level. This API is effectively a wrapper for the +/// `FIRLogBasic` C API. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + withService:(FIRLoggerService)service + withCode:(NSString *)messageCode + withMessage:(NSString *)message + withArgs:(va_list)args; + +/// Logs a given message at a given log level. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + service:(FIRLoggerService)service + code:(NSString *)code + message:(NSString *)message + __attribute__((__swift_name__("log(level:service:code:message:)"))); + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h new file mode 100644 index 0000000..93a03d6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h @@ -0,0 +1,106 @@ +/* + * Copyright 2017 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. + */ + +#import + +/** + * Keys for the strings in the plist file. + */ +extern NSString *const kFIRAPIKey; +extern NSString *const kFIRTrackingID; +extern NSString *const kFIRGoogleAppID; +extern NSString *const kFIRClientID; +extern NSString *const kFIRGCMSenderID; +extern NSString *const kFIRAndroidClientID; +extern NSString *const kFIRDatabaseURL; +extern NSString *const kFIRStorageBucket; +extern NSString *const kFIRBundleID; +extern NSString *const kFIRProjectID; + +/** + * Keys for the plist file name + */ +extern NSString *const kServiceInfoFileName; + +extern NSString *const kServiceInfoFileType; + +/** + * This header file exposes the initialization of FirebaseOptions to internal use. + */ +@interface FIROptions () + +/** + * `resetDefaultOptions` and `initInternalWithOptionsDictionary` are exposed only for unit tests. + */ ++ (void)resetDefaultOptions; + +/** + * Initializes the options with dictionary. The above strings are the keys of the dictionary. + * This is the designated initializer. + */ +- (instancetype)initInternalWithOptionsDictionary:(NSDictionary *)serviceInfoDictionary + NS_DESIGNATED_INITIALIZER; + +/** + * `defaultOptions` and `defaultOptionsDictionary` are exposed in order to be used in FirebaseApp + * and other first party services. + */ ++ (FIROptions *)defaultOptions; + ++ (NSDictionary *)defaultOptionsDictionary; + +/** + * Indicates whether or not Analytics collection was explicitly enabled via a plist flag or at + * runtime. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionExplicitlySet; + +/** + * Whether or not Analytics Collection was enabled. Analytics Collection is enabled unless + * explicitly disabled in GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionEnabled; + +/** + * Whether or not Analytics Collection was completely disabled. If true, then + * isAnalyticsCollectionEnabled will be false. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionDeactivated; + +/** + * The version ID of the client library, e.g. @"1100000". + */ +@property(nonatomic, readonly, copy) NSString *libraryVersionID; + +/** + * The flag indicating whether this object was constructed with the values in the default plist + * file. + */ +@property(nonatomic) BOOL usingOptionsFromDefaultPlist; + +/** + * Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in + * GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isMeasurementEnabled; + +/** + * Whether or not editing is locked. This should occur after `FirebaseOptions` has been set on a + * `FirebaseApp`. + */ +@property(nonatomic, getter=isEditingLocked) BOOL editingLocked; + +@end diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h new file mode 100644 index 0000000..64ea389 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h @@ -0,0 +1,26 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FirebaseCoreInternal.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" + +FOUNDATION_EXPORT double FirebaseCoreExtensionVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreExtensionVersionString[]; + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h new file mode 100644 index 0000000..0669ae6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h @@ -0,0 +1,25 @@ +// Copyright 2020 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 FirebaseCore; + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Info.plist b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Info.plist new file mode 100644 index 0000000..55df497 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Modules/module.modulemap new file mode 100644 index 0000000..934487e --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64/FirebaseCoreExtension.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseCoreExtension { +umbrella header "FirebaseCoreExtension-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/FirebaseCoreExtension b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/FirebaseCoreExtension new file mode 100644 index 0000000..c99ba86 Binary files /dev/null and b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/FirebaseCoreExtension differ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h new file mode 100644 index 0000000..49104f0 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h @@ -0,0 +1,159 @@ +/* + * Copyright 2017 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. + */ + +#import+ +CFBundleExecutable +FirebaseCoreExtension +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreExtension +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreExtension +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class FIRComponentContainer; +@class FIRHeartbeatLogger; +@protocol FIRLibrary; + +/** + * The internal interface to `FirebaseApp`. This is meant for first-party integrators, who need to + * receive `FirebaseApp` notifications, log info about the success or failure of their + * configuration, and access other internal functionality of `FirebaseApp`. + */ +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, FIRConfigType) { + FIRConfigTypeCore = 1, + FIRConfigTypeSDK = 2, +}; + +extern NSString *const kFIRDefaultAppName; +extern NSString *const kFIRAppReadyToConfigureSDKNotification; +extern NSString *const kFIRAppDeleteNotification; +extern NSString *const kFIRAppIsDefaultAppKey; +extern NSString *const kFIRAppNameKey; +extern NSString *const kFIRGoogleAppIDKey; +extern NSString *const kFirebaseCoreErrorDomain; + +/** The `UserDefaults` suite name for `FirebaseCore`, for those storage locations that use it. */ +extern NSString *const kFirebaseCoreDefaultsSuiteName; + +/** + * The format string for the `UserDefaults` key used for storing the data collection enabled flag. + * This includes formatting to append the `FirebaseApp`'s name. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledDefaultsKeyFormat; + +/** + * The plist key used for storing the data collection enabled flag. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledPlistKey; + +/** @var FirebaseAuthStateDidChangeInternalNotification + @brief The name of the @c NotificationCenter notification which is posted when the auth state + changes (e.g. a new token has been produced, a user logs in or out). The object parameter of + the notification is a dictionary possibly containing the key: + @c FirebaseAuthStateDidChangeInternalNotificationTokenKey (the new access token.) If it does not + contain this key it indicates a sign-out event took place. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotification; + +/** @var FirebaseAuthStateDidChangeInternalNotificationTokenKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new access token. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationAppKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the FirebaseApp associated with the auth instance. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationAppKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationUIDKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new user's UID (or nil if there is no longer a user signed in). + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey; + +@interface FIRApp () + +/** + * A flag indicating if this is the default app (has the default app name). + */ +@property(nonatomic, readonly) BOOL isDefaultApp; + +/** + * The container of interop SDKs for this app. + */ +@property(nonatomic) FIRComponentContainer *container; + +/** + * The heartbeat logger associated with this app. + * + * Firebase apps have a 1:1 relationship with heartbeat loggers. + */ +@property(readonly) FIRHeartbeatLogger *heartbeatLogger; + +/** + * Checks if the default app is configured without trying to configure it. + */ ++ (BOOL)isDefaultAppConfigured; + +/** + * Registers a given third-party library with the given version number to be reported for + * analytics. + * + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerLibrary:(nonnull NSString *)name withVersion:(nonnull NSString *)version; + +/** + * Registers a given internal library to be reported for analytics. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name; + +/** + * Registers a given internal library with the given version number to be reported for + * analytics. This should only be used for non-Firebase libraries that have their own versioning + * scheme. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name + withVersion:(nonnull NSString *)version; + +/** + * A concatenated string representing all the third-party libraries and version numbers. + */ ++ (NSString *)firebaseUserAgent; + +/** + * Can be used by the unit tests in each SDK to reset `FirebaseApp`. This method is thread unsafe. + */ ++ (void)resetApps; + +/** + * Can be used by the unit tests in each SDK to set customized options. + */ +- (instancetype)initInstanceWithName:(NSString *)name options:(FIROptions *)options; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponent.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponent.h new file mode 100644 index 0000000..e4c8a27 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponent.h @@ -0,0 +1,91 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRApp; +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Provides a system to clean up cached instances returned from the component system. +NS_SWIFT_NAME(ComponentLifecycleMaintainer) +@protocol FIRComponentLifecycleMaintainer +/// The associated app will be deleted, clean up any resources as they are about to be deallocated. +- (void)appWillBeDeleted:(FIRApp *)app; +@end + +typedef _Nullable id (^FIRComponentCreationBlock)(FIRComponentContainer *container, + BOOL *isCacheable) + NS_SWIFT_NAME(ComponentCreationBlock); + +@class FIRDependency; + +/// Describes the timing of instantiation. Note: new components should default to lazy unless there +/// is a strong reason to be eager. +typedef NS_ENUM(NSInteger, FIRInstantiationTiming) { + FIRInstantiationTimingLazy, + FIRInstantiationTimingAlwaysEager, + FIRInstantiationTimingEagerInDefaultApp +} NS_SWIFT_NAME(InstantiationTiming); + +/// A component that can be used from other Firebase SDKs. +NS_SWIFT_NAME(Component) +@interface FIRComponent : NSObject + +/// The protocol describing functionality provided from the `Component`. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// The timing of instantiation. +@property(nonatomic, readonly) FIRInstantiationTiming instantiationTiming; + +/// An array of dependencies for the component. +@property(nonatomic, copy, readonly) NSArray *dependencies; + +/// A block to instantiate an instance of the component with the appropriate dependencies. +@property(nonatomic, copy, readonly) FIRComponentCreationBlock creationBlock; + +// There's an issue with long NS_SWIFT_NAMES that causes compilation to fail, disable clang-format +// for the next two methods. +// clang-format off + +/// Creates a component with no dependencies that will be lazily initialized. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:creationBlock:)); + +/// Creates a component to be registered with the component container. +/// +/// @param protocol - The protocol describing functionality provided by the component. +/// @param instantiationTiming - When the component should be initialized. Use .lazy unless there's +/// a good reason to be instantiated earlier. +/// @param dependencies - Any dependencies the `implementingClass` has, optional or required. +/// @param creationBlock - A block to instantiate the component with a container, and if +/// @return A component that can be registered with the component container. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + instantiationTiming:(FIRInstantiationTiming)instantiationTiming + dependencies:(NSArray *)dependencies + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:instantiationTiming:dependencies:creationBlock:)); + +// clang-format on + +/// Unavailable. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h new file mode 100644 index 0000000..6ec6147 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A type-safe macro to retrieve a component from a container. This should be used to retrieve +/// components instead of using the container directly. +#define FIR_COMPONENT(type, container) \ + [FIRComponentType > instanceForProtocol:@protocol(type) inContainer:container] + +@class FIRApp; + +/// A container that holds different components that are registered via the +/// `registerAsComponentRegistrant` call. These classes should conform to `ComponentRegistrant` +/// in order to properly register components for Core. +NS_SWIFT_NAME(FirebaseComponentContainer) +@interface FIRComponentContainer : NSObject + +/// A weak reference to the app that an instance of the container belongs to. +@property(nonatomic, weak, readonly) FIRApp *app; + +// TODO: See if we can get improved type safety here. +/// A Swift only API for fetching an instance since the top macro isn't available. +- (nullable id)__instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:)); + +/// Unavailable. Use the `container` property on `FirebaseApp`. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponentType.h similarity index 50% rename from ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h rename to ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponentType.h index 5076d6b..6f2aca7 100644 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FIRCoreDiagnostics.h +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRComponentType.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2018 Google * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,5 +14,21 @@ * limitations under the License. */ -// There are no actual public headers in the lib. This is a dummy public header to prevent Cocoapods -// from adding all internal headers as public. +#import + +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Do not use directly. A placeholder type in order to provide a macro that will warn users of +/// mis-matched protocols. +NS_SWIFT_NAME(ComponentType) +@interface FIRComponentType<__covariant T> : NSObject + +/// Do not use directly. A factory method to retrieve an instance that provides a specific +/// functionality. ++ (T)instanceForProtocol:(Protocol *)protocol inContainer:(FIRComponentContainer *)container; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRDependency.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRDependency.h new file mode 100644 index 0000000..a070557 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRDependency.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A dependency on a specific protocol's functionality. +NS_SWIFT_NAME(Dependency) +@interface FIRDependency : NSObject + +/// The protocol describing functionality being depended on. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// A flag to specify if the dependency is required or not. +@property(nonatomic, readonly) BOOL isRequired; + +/// Initializes a dependency that is required. Calls `init(protocol:isRequired:)` with true for +/// the required parameter. +/// Creates a required dependency on the specified protocol's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol; + +/// Creates a dependency on the specified protocol's functionality and specify if it's required for +/// the class's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol isRequired:(BOOL)required; + +/// Use `init(withProtocol:isRequired:)` instead. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h new file mode 100644 index 0000000..0f39ad9 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h @@ -0,0 +1,90 @@ +// Copyright 2021 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 + +NS_ASSUME_NONNULL_BEGIN + +#ifndef FIREBASE_BUILD_CMAKE +@class FIRHeartbeatsPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Enum representing different daily heartbeat codes. +/// This enum is only used by clients using platform logging V1. This is because +/// the V1 payload only supports a single daily heartbeat. +typedef NS_ENUM(NSInteger, FIRDailyHeartbeatCode) { + /// Represents the absence of a daily heartbeat. + FIRDailyHeartbeatCodeNone = 0, + /// Represents the presence of a daily heartbeat. + FIRDailyHeartbeatCodeSome = 2, +}; + +@protocol FIRHeartbeatLoggerProtocol + +/// Asynchronously logs a heartbeat. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets the heartbeat code for today. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +#ifndef FIREBASE_BUILD_CMAKE +/// Returns a nullable string header value from a given heartbeats payload. +/// +/// This API returns `nil` when the given heartbeats payload is considered empty. +/// +/// @param heartbeatsPayload The heartbeats payload. +NSString *_Nullable FIRHeaderValueFromHeartbeatsPayload(FIRHeartbeatsPayload *heartbeatsPayload); +#endif // FIREBASE_BUILD_CMAKE + +/// A thread safe, synchronized object that logs and flushes platform logging info. +@interface FIRHeartbeatLogger : NSObject + +/// Designated initializer. +/// +/// @param appID The app ID that this heartbeat logger corresponds to. +- (instancetype)initWithAppID:(NSString *)appID; + +/// Asynchronously logs a new heartbeat corresponding to the Firebase User Agent, if needed. +/// +/// @note This API is thread-safe. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +/// +/// This API is for clients using platform logging V2. +/// +/// @note This API is thread-safe. +/// @return A payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets today's corresponding heartbeat code. +/// +/// This API is for clients using platform logging V1. +/// +/// @note This API is thread-safe. +/// @return Heartbeat code indicating whether or not there is an unsent global heartbeat. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRLibrary.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRLibrary.h new file mode 100644 index 0000000..15e2865 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRLibrary.h @@ -0,0 +1,44 @@ +/* + * Copyright 2018 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. + */ + +#ifndef FIRLibrary_h +#define FIRLibrary_h + +#import + +@class FIRApp; +@class FIRComponent; + +NS_ASSUME_NONNULL_BEGIN + +/// Provide an interface to register a library for userAgent logging and availability to others. +NS_SWIFT_NAME(Library) +@protocol FIRLibrary + +/// Returns one or more Components that will be registered in +/// FirebaseApp and participate in dependency resolution and injection. ++ (NSArray *)componentsToRegister; + +@optional +/// Implement this method if the library needs notifications for lifecycle events. This method is +/// called when the developer calls `FirebaseApp.configure()`. ++ (void)configureWithApp:(FIRApp *)app; + +@end + +NS_ASSUME_NONNULL_END + +#endif /* FIRLibrary_h */ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRLogger.h new file mode 100644 index 0000000..0a287f5 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIRLogger.h @@ -0,0 +1,188 @@ +/* + * Copyright 2017 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. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + * The Firebase services used in Firebase logger. + */ +typedef NSString *const FIRLoggerService; + +extern FIRLoggerService kFIRLoggerAnalytics; +extern FIRLoggerService kFIRLoggerCrash; +extern FIRLoggerService kFIRLoggerCore; +extern FIRLoggerService kFIRLoggerRemoteConfig; + +/** + * The key used to store the logger's error count. + */ +extern NSString *const kFIRLoggerErrorCountKey; + +/** + * The key used to store the logger's warning count. + */ +extern NSString *const kFIRLoggerWarningCountKey; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +/** + * Enables or disables Analytics debug mode. + * If set to true, the logging level for Analytics will be set to FirebaseLoggerLevelDebug. + * Enabling the debug mode has no effect if the app is running from App Store. + * (required) analytics debug mode flag. + */ +void FIRSetAnalyticsDebugMode(BOOL analyticsDebugMode); + +/** + * Changes the default logging level of FirebaseLoggerLevelNotice to a user-specified level. + * The default level cannot be set above FirebaseLoggerLevelNotice if the app is running from App + * Store. (required) log level (one of the FirebaseLoggerLevel enum values). + */ +void FIRSetLoggerLevel(FIRLoggerLevel loggerLevel); + +/** + * Checks if the specified logger level is loggable given the current settings. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) whether or not this function is called from the Analytics component. + */ +BOOL FIRIsLoggableLevel(FIRLoggerLevel loggerLevel, BOOL analyticsComponent); + +/** + * Logs a message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) service name of type FirebaseLoggerService. + * (required) message code starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * (required) message string which can be a format string. + * (optional) variable arguments list obtained from calling va_start, used when message is a format + * string. + */ +extern void FIRLogBasic(FIRLoggerLevel level, + FIRLoggerService service, + NSString *messageCode, + NSString *message, +// On 64-bit simulators, va_list is not a pointer, so cannot be marked nullable +// See: http://stackoverflow.com/q/29095469 +#if __LP64__ && TARGET_OS_SIMULATOR || TARGET_OS_OSX + va_list args_ptr +#else + va_list _Nullable args_ptr +#endif +); + +/** + * The following functions accept the following parameters in order: + * (required) service name of type FirebaseLoggerService. + * (required) message code starting from "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * See go/firebase-log-proposal for details. + * (required) message string which can be a format string. + * (optional) the list of arguments to substitute into the format string. + * Example usage: + * FirebaseLogError(kFirebaseLoggerCore, @"I-COR000001", @"Configuration of %@ failed.", app.name); + */ +extern void FIRLogError(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogWarning(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogNotice(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogInfo(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogDebug(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); + +// TODO: Come up with a better logging scheme for Swift. +/** + * Logs a debug message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogDebugSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +/** + * Logs a warning message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogWarningSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +NS_SWIFT_NAME(FirebaseLogger) +@interface FIRLoggerWrapper : NSObject + +/// Logs a given message at a given log level. This API is effectively a wrapper for the +/// `FIRLogBasic` C API. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + withService:(FIRLoggerService)service + withCode:(NSString *)messageCode + withMessage:(NSString *)message + withArgs:(va_list)args; + +/// Logs a given message at a given log level. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + service:(FIRLoggerService)service + code:(NSString *)code + message:(NSString *)message + __attribute__((__swift_name__("log(level:service:code:message:)"))); + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h new file mode 100644 index 0000000..93a03d6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h @@ -0,0 +1,106 @@ +/* + * Copyright 2017 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. + */ + +#import + +/** + * Keys for the strings in the plist file. + */ +extern NSString *const kFIRAPIKey; +extern NSString *const kFIRTrackingID; +extern NSString *const kFIRGoogleAppID; +extern NSString *const kFIRClientID; +extern NSString *const kFIRGCMSenderID; +extern NSString *const kFIRAndroidClientID; +extern NSString *const kFIRDatabaseURL; +extern NSString *const kFIRStorageBucket; +extern NSString *const kFIRBundleID; +extern NSString *const kFIRProjectID; + +/** + * Keys for the plist file name + */ +extern NSString *const kServiceInfoFileName; + +extern NSString *const kServiceInfoFileType; + +/** + * This header file exposes the initialization of FirebaseOptions to internal use. + */ +@interface FIROptions () + +/** + * `resetDefaultOptions` and `initInternalWithOptionsDictionary` are exposed only for unit tests. + */ ++ (void)resetDefaultOptions; + +/** + * Initializes the options with dictionary. The above strings are the keys of the dictionary. + * This is the designated initializer. + */ +- (instancetype)initInternalWithOptionsDictionary:(NSDictionary *)serviceInfoDictionary + NS_DESIGNATED_INITIALIZER; + +/** + * `defaultOptions` and `defaultOptionsDictionary` are exposed in order to be used in FirebaseApp + * and other first party services. + */ ++ (FIROptions *)defaultOptions; + ++ (NSDictionary *)defaultOptionsDictionary; + +/** + * Indicates whether or not Analytics collection was explicitly enabled via a plist flag or at + * runtime. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionExplicitlySet; + +/** + * Whether or not Analytics Collection was enabled. Analytics Collection is enabled unless + * explicitly disabled in GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionEnabled; + +/** + * Whether or not Analytics Collection was completely disabled. If true, then + * isAnalyticsCollectionEnabled will be false. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionDeactivated; + +/** + * The version ID of the client library, e.g. @"1100000". + */ +@property(nonatomic, readonly, copy) NSString *libraryVersionID; + +/** + * The flag indicating whether this object was constructed with the values in the default plist + * file. + */ +@property(nonatomic) BOOL usingOptionsFromDefaultPlist; + +/** + * Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in + * GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isMeasurementEnabled; + +/** + * Whether or not editing is locked. This should occur after `FirebaseOptions` has been set on a + * `FirebaseApp`. + */ +@property(nonatomic, getter=isEditingLocked) BOOL editingLocked; + +@end diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h new file mode 100644 index 0000000..64ea389 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h @@ -0,0 +1,26 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FirebaseCoreInternal.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" + +FOUNDATION_EXPORT double FirebaseCoreExtensionVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreExtensionVersionString[]; + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h new file mode 100644 index 0000000..0669ae6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h @@ -0,0 +1,25 @@ +// Copyright 2020 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 FirebaseCore; + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Info.plist b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Info.plist new file mode 100644 index 0000000..55df497 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Modules/module.modulemap new file mode 100644 index 0000000..934487e --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreExtension.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseCoreExtension { +umbrella header "FirebaseCoreExtension-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/FirebaseCoreExtension b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/FirebaseCoreExtension new file mode 100644 index 0000000..854c76f Binary files /dev/null and b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/FirebaseCoreExtension differ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h new file mode 100644 index 0000000..49104f0 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h @@ -0,0 +1,159 @@ +/* + * Copyright 2017 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. + */ + +#import+ +CFBundleExecutable +FirebaseCoreExtension +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreExtension +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreExtension +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class FIRComponentContainer; +@class FIRHeartbeatLogger; +@protocol FIRLibrary; + +/** + * The internal interface to `FirebaseApp`. This is meant for first-party integrators, who need to + * receive `FirebaseApp` notifications, log info about the success or failure of their + * configuration, and access other internal functionality of `FirebaseApp`. + */ +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, FIRConfigType) { + FIRConfigTypeCore = 1, + FIRConfigTypeSDK = 2, +}; + +extern NSString *const kFIRDefaultAppName; +extern NSString *const kFIRAppReadyToConfigureSDKNotification; +extern NSString *const kFIRAppDeleteNotification; +extern NSString *const kFIRAppIsDefaultAppKey; +extern NSString *const kFIRAppNameKey; +extern NSString *const kFIRGoogleAppIDKey; +extern NSString *const kFirebaseCoreErrorDomain; + +/** The `UserDefaults` suite name for `FirebaseCore`, for those storage locations that use it. */ +extern NSString *const kFirebaseCoreDefaultsSuiteName; + +/** + * The format string for the `UserDefaults` key used for storing the data collection enabled flag. + * This includes formatting to append the `FirebaseApp`'s name. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledDefaultsKeyFormat; + +/** + * The plist key used for storing the data collection enabled flag. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledPlistKey; + +/** @var FirebaseAuthStateDidChangeInternalNotification + @brief The name of the @c NotificationCenter notification which is posted when the auth state + changes (e.g. a new token has been produced, a user logs in or out). The object parameter of + the notification is a dictionary possibly containing the key: + @c FirebaseAuthStateDidChangeInternalNotificationTokenKey (the new access token.) If it does not + contain this key it indicates a sign-out event took place. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotification; + +/** @var FirebaseAuthStateDidChangeInternalNotificationTokenKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new access token. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationAppKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the FirebaseApp associated with the auth instance. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationAppKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationUIDKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new user's UID (or nil if there is no longer a user signed in). + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey; + +@interface FIRApp () + +/** + * A flag indicating if this is the default app (has the default app name). + */ +@property(nonatomic, readonly) BOOL isDefaultApp; + +/** + * The container of interop SDKs for this app. + */ +@property(nonatomic) FIRComponentContainer *container; + +/** + * The heartbeat logger associated with this app. + * + * Firebase apps have a 1:1 relationship with heartbeat loggers. + */ +@property(readonly) FIRHeartbeatLogger *heartbeatLogger; + +/** + * Checks if the default app is configured without trying to configure it. + */ ++ (BOOL)isDefaultAppConfigured; + +/** + * Registers a given third-party library with the given version number to be reported for + * analytics. + * + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerLibrary:(nonnull NSString *)name withVersion:(nonnull NSString *)version; + +/** + * Registers a given internal library to be reported for analytics. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name; + +/** + * Registers a given internal library with the given version number to be reported for + * analytics. This should only be used for non-Firebase libraries that have their own versioning + * scheme. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name + withVersion:(nonnull NSString *)version; + +/** + * A concatenated string representing all the third-party libraries and version numbers. + */ ++ (NSString *)firebaseUserAgent; + +/** + * Can be used by the unit tests in each SDK to reset `FirebaseApp`. This method is thread unsafe. + */ ++ (void)resetApps; + +/** + * Can be used by the unit tests in each SDK to set customized options. + */ +- (instancetype)initInstanceWithName:(NSString *)name options:(FIROptions *)options; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponent.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponent.h new file mode 100644 index 0000000..e4c8a27 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponent.h @@ -0,0 +1,91 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRApp; +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Provides a system to clean up cached instances returned from the component system. +NS_SWIFT_NAME(ComponentLifecycleMaintainer) +@protocol FIRComponentLifecycleMaintainer +/// The associated app will be deleted, clean up any resources as they are about to be deallocated. +- (void)appWillBeDeleted:(FIRApp *)app; +@end + +typedef _Nullable id (^FIRComponentCreationBlock)(FIRComponentContainer *container, + BOOL *isCacheable) + NS_SWIFT_NAME(ComponentCreationBlock); + +@class FIRDependency; + +/// Describes the timing of instantiation. Note: new components should default to lazy unless there +/// is a strong reason to be eager. +typedef NS_ENUM(NSInteger, FIRInstantiationTiming) { + FIRInstantiationTimingLazy, + FIRInstantiationTimingAlwaysEager, + FIRInstantiationTimingEagerInDefaultApp +} NS_SWIFT_NAME(InstantiationTiming); + +/// A component that can be used from other Firebase SDKs. +NS_SWIFT_NAME(Component) +@interface FIRComponent : NSObject + +/// The protocol describing functionality provided from the `Component`. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// The timing of instantiation. +@property(nonatomic, readonly) FIRInstantiationTiming instantiationTiming; + +/// An array of dependencies for the component. +@property(nonatomic, copy, readonly) NSArray *dependencies; + +/// A block to instantiate an instance of the component with the appropriate dependencies. +@property(nonatomic, copy, readonly) FIRComponentCreationBlock creationBlock; + +// There's an issue with long NS_SWIFT_NAMES that causes compilation to fail, disable clang-format +// for the next two methods. +// clang-format off + +/// Creates a component with no dependencies that will be lazily initialized. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:creationBlock:)); + +/// Creates a component to be registered with the component container. +/// +/// @param protocol - The protocol describing functionality provided by the component. +/// @param instantiationTiming - When the component should be initialized. Use .lazy unless there's +/// a good reason to be instantiated earlier. +/// @param dependencies - Any dependencies the `implementingClass` has, optional or required. +/// @param creationBlock - A block to instantiate the component with a container, and if +/// @return A component that can be registered with the component container. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + instantiationTiming:(FIRInstantiationTiming)instantiationTiming + dependencies:(NSArray *)dependencies + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:instantiationTiming:dependencies:creationBlock:)); + +// clang-format on + +/// Unavailable. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h new file mode 100644 index 0000000..6ec6147 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A type-safe macro to retrieve a component from a container. This should be used to retrieve +/// components instead of using the container directly. +#define FIR_COMPONENT(type, container) \ + [FIRComponentType > instanceForProtocol:@protocol(type) inContainer:container] + +@class FIRApp; + +/// A container that holds different components that are registered via the +/// `registerAsComponentRegistrant` call. These classes should conform to `ComponentRegistrant` +/// in order to properly register components for Core. +NS_SWIFT_NAME(FirebaseComponentContainer) +@interface FIRComponentContainer : NSObject + +/// A weak reference to the app that an instance of the container belongs to. +@property(nonatomic, weak, readonly) FIRApp *app; + +// TODO: See if we can get improved type safety here. +/// A Swift only API for fetching an instance since the top macro isn't available. +- (nullable id)__instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:)); + +/// Unavailable. Use the `container` property on `FirebaseApp`. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentType.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentType.h new file mode 100644 index 0000000..6f2aca7 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentType.h @@ -0,0 +1,34 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Do not use directly. A placeholder type in order to provide a macro that will warn users of +/// mis-matched protocols. +NS_SWIFT_NAME(ComponentType) +@interface FIRComponentType<__covariant T> : NSObject + +/// Do not use directly. A factory method to retrieve an instance that provides a specific +/// functionality. ++ (T)instanceForProtocol:(Protocol *)protocol inContainer:(FIRComponentContainer *)container; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRDependency.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRDependency.h new file mode 100644 index 0000000..a070557 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRDependency.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A dependency on a specific protocol's functionality. +NS_SWIFT_NAME(Dependency) +@interface FIRDependency : NSObject + +/// The protocol describing functionality being depended on. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// A flag to specify if the dependency is required or not. +@property(nonatomic, readonly) BOOL isRequired; + +/// Initializes a dependency that is required. Calls `init(protocol:isRequired:)` with true for +/// the required parameter. +/// Creates a required dependency on the specified protocol's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol; + +/// Creates a dependency on the specified protocol's functionality and specify if it's required for +/// the class's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol isRequired:(BOOL)required; + +/// Use `init(withProtocol:isRequired:)` instead. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h new file mode 100644 index 0000000..0f39ad9 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h @@ -0,0 +1,90 @@ +// Copyright 2021 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 + +NS_ASSUME_NONNULL_BEGIN + +#ifndef FIREBASE_BUILD_CMAKE +@class FIRHeartbeatsPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Enum representing different daily heartbeat codes. +/// This enum is only used by clients using platform logging V1. This is because +/// the V1 payload only supports a single daily heartbeat. +typedef NS_ENUM(NSInteger, FIRDailyHeartbeatCode) { + /// Represents the absence of a daily heartbeat. + FIRDailyHeartbeatCodeNone = 0, + /// Represents the presence of a daily heartbeat. + FIRDailyHeartbeatCodeSome = 2, +}; + +@protocol FIRHeartbeatLoggerProtocol + +/// Asynchronously logs a heartbeat. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets the heartbeat code for today. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +#ifndef FIREBASE_BUILD_CMAKE +/// Returns a nullable string header value from a given heartbeats payload. +/// +/// This API returns `nil` when the given heartbeats payload is considered empty. +/// +/// @param heartbeatsPayload The heartbeats payload. +NSString *_Nullable FIRHeaderValueFromHeartbeatsPayload(FIRHeartbeatsPayload *heartbeatsPayload); +#endif // FIREBASE_BUILD_CMAKE + +/// A thread safe, synchronized object that logs and flushes platform logging info. +@interface FIRHeartbeatLogger : NSObject + +/// Designated initializer. +/// +/// @param appID The app ID that this heartbeat logger corresponds to. +- (instancetype)initWithAppID:(NSString *)appID; + +/// Asynchronously logs a new heartbeat corresponding to the Firebase User Agent, if needed. +/// +/// @note This API is thread-safe. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +/// +/// This API is for clients using platform logging V2. +/// +/// @note This API is thread-safe. +/// @return A payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets today's corresponding heartbeat code. +/// +/// This API is for clients using platform logging V1. +/// +/// @note This API is thread-safe. +/// @return Heartbeat code indicating whether or not there is an unsent global heartbeat. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLibrary.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLibrary.h new file mode 100644 index 0000000..15e2865 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLibrary.h @@ -0,0 +1,44 @@ +/* + * Copyright 2018 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. + */ + +#ifndef FIRLibrary_h +#define FIRLibrary_h + +#import + +@class FIRApp; +@class FIRComponent; + +NS_ASSUME_NONNULL_BEGIN + +/// Provide an interface to register a library for userAgent logging and availability to others. +NS_SWIFT_NAME(Library) +@protocol FIRLibrary + +/// Returns one or more Components that will be registered in +/// FirebaseApp and participate in dependency resolution and injection. ++ (NSArray *)componentsToRegister; + +@optional +/// Implement this method if the library needs notifications for lifecycle events. This method is +/// called when the developer calls `FirebaseApp.configure()`. ++ (void)configureWithApp:(FIRApp *)app; + +@end + +NS_ASSUME_NONNULL_END + +#endif /* FIRLibrary_h */ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLogger.h new file mode 100644 index 0000000..0a287f5 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLogger.h @@ -0,0 +1,188 @@ +/* + * Copyright 2017 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. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + * The Firebase services used in Firebase logger. + */ +typedef NSString *const FIRLoggerService; + +extern FIRLoggerService kFIRLoggerAnalytics; +extern FIRLoggerService kFIRLoggerCrash; +extern FIRLoggerService kFIRLoggerCore; +extern FIRLoggerService kFIRLoggerRemoteConfig; + +/** + * The key used to store the logger's error count. + */ +extern NSString *const kFIRLoggerErrorCountKey; + +/** + * The key used to store the logger's warning count. + */ +extern NSString *const kFIRLoggerWarningCountKey; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +/** + * Enables or disables Analytics debug mode. + * If set to true, the logging level for Analytics will be set to FirebaseLoggerLevelDebug. + * Enabling the debug mode has no effect if the app is running from App Store. + * (required) analytics debug mode flag. + */ +void FIRSetAnalyticsDebugMode(BOOL analyticsDebugMode); + +/** + * Changes the default logging level of FirebaseLoggerLevelNotice to a user-specified level. + * The default level cannot be set above FirebaseLoggerLevelNotice if the app is running from App + * Store. (required) log level (one of the FirebaseLoggerLevel enum values). + */ +void FIRSetLoggerLevel(FIRLoggerLevel loggerLevel); + +/** + * Checks if the specified logger level is loggable given the current settings. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) whether or not this function is called from the Analytics component. + */ +BOOL FIRIsLoggableLevel(FIRLoggerLevel loggerLevel, BOOL analyticsComponent); + +/** + * Logs a message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) service name of type FirebaseLoggerService. + * (required) message code starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * (required) message string which can be a format string. + * (optional) variable arguments list obtained from calling va_start, used when message is a format + * string. + */ +extern void FIRLogBasic(FIRLoggerLevel level, + FIRLoggerService service, + NSString *messageCode, + NSString *message, +// On 64-bit simulators, va_list is not a pointer, so cannot be marked nullable +// See: http://stackoverflow.com/q/29095469 +#if __LP64__ && TARGET_OS_SIMULATOR || TARGET_OS_OSX + va_list args_ptr +#else + va_list _Nullable args_ptr +#endif +); + +/** + * The following functions accept the following parameters in order: + * (required) service name of type FirebaseLoggerService. + * (required) message code starting from "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * See go/firebase-log-proposal for details. + * (required) message string which can be a format string. + * (optional) the list of arguments to substitute into the format string. + * Example usage: + * FirebaseLogError(kFirebaseLoggerCore, @"I-COR000001", @"Configuration of %@ failed.", app.name); + */ +extern void FIRLogError(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogWarning(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogNotice(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogInfo(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogDebug(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); + +// TODO: Come up with a better logging scheme for Swift. +/** + * Logs a debug message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogDebugSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +/** + * Logs a warning message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogWarningSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +NS_SWIFT_NAME(FirebaseLogger) +@interface FIRLoggerWrapper : NSObject + +/// Logs a given message at a given log level. This API is effectively a wrapper for the +/// `FIRLogBasic` C API. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + withService:(FIRLoggerService)service + withCode:(NSString *)messageCode + withMessage:(NSString *)message + withArgs:(va_list)args; + +/// Logs a given message at a given log level. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + service:(FIRLoggerService)service + code:(NSString *)code + message:(NSString *)message + __attribute__((__swift_name__("log(level:service:code:message:)"))); + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h new file mode 100644 index 0000000..93a03d6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h @@ -0,0 +1,106 @@ +/* + * Copyright 2017 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. + */ + +#import + +/** + * Keys for the strings in the plist file. + */ +extern NSString *const kFIRAPIKey; +extern NSString *const kFIRTrackingID; +extern NSString *const kFIRGoogleAppID; +extern NSString *const kFIRClientID; +extern NSString *const kFIRGCMSenderID; +extern NSString *const kFIRAndroidClientID; +extern NSString *const kFIRDatabaseURL; +extern NSString *const kFIRStorageBucket; +extern NSString *const kFIRBundleID; +extern NSString *const kFIRProjectID; + +/** + * Keys for the plist file name + */ +extern NSString *const kServiceInfoFileName; + +extern NSString *const kServiceInfoFileType; + +/** + * This header file exposes the initialization of FirebaseOptions to internal use. + */ +@interface FIROptions () + +/** + * `resetDefaultOptions` and `initInternalWithOptionsDictionary` are exposed only for unit tests. + */ ++ (void)resetDefaultOptions; + +/** + * Initializes the options with dictionary. The above strings are the keys of the dictionary. + * This is the designated initializer. + */ +- (instancetype)initInternalWithOptionsDictionary:(NSDictionary *)serviceInfoDictionary + NS_DESIGNATED_INITIALIZER; + +/** + * `defaultOptions` and `defaultOptionsDictionary` are exposed in order to be used in FirebaseApp + * and other first party services. + */ ++ (FIROptions *)defaultOptions; + ++ (NSDictionary *)defaultOptionsDictionary; + +/** + * Indicates whether or not Analytics collection was explicitly enabled via a plist flag or at + * runtime. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionExplicitlySet; + +/** + * Whether or not Analytics Collection was enabled. Analytics Collection is enabled unless + * explicitly disabled in GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionEnabled; + +/** + * Whether or not Analytics Collection was completely disabled. If true, then + * isAnalyticsCollectionEnabled will be false. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionDeactivated; + +/** + * The version ID of the client library, e.g. @"1100000". + */ +@property(nonatomic, readonly, copy) NSString *libraryVersionID; + +/** + * The flag indicating whether this object was constructed with the values in the default plist + * file. + */ +@property(nonatomic) BOOL usingOptionsFromDefaultPlist; + +/** + * Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in + * GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isMeasurementEnabled; + +/** + * Whether or not editing is locked. This should occur after `FirebaseOptions` has been set on a + * `FirebaseApp`. + */ +@property(nonatomic, getter=isEditingLocked) BOOL editingLocked; + +@end diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h new file mode 100644 index 0000000..64ea389 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h @@ -0,0 +1,26 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FirebaseCoreInternal.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" + +FOUNDATION_EXPORT double FirebaseCoreExtensionVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreExtensionVersionString[]; + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h new file mode 100644 index 0000000..0669ae6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h @@ -0,0 +1,25 @@ +// Copyright 2020 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 FirebaseCore; + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Info.plist b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Info.plist new file mode 100644 index 0000000..55df497 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Modules/module.modulemap new file mode 100644 index 0000000..934487e --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseCoreExtension { +umbrella header "FirebaseCoreExtension-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/FirebaseCoreExtension b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/FirebaseCoreExtension new file mode 100644 index 0000000..b577e08 Binary files /dev/null and b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/FirebaseCoreExtension differ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h new file mode 100644 index 0000000..49104f0 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h @@ -0,0 +1,159 @@ +/* + * Copyright 2017 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. + */ + +#import+ +CFBundleExecutable +FirebaseCoreExtension +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreExtension +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreExtension +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class FIRComponentContainer; +@class FIRHeartbeatLogger; +@protocol FIRLibrary; + +/** + * The internal interface to `FirebaseApp`. This is meant for first-party integrators, who need to + * receive `FirebaseApp` notifications, log info about the success or failure of their + * configuration, and access other internal functionality of `FirebaseApp`. + */ +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, FIRConfigType) { + FIRConfigTypeCore = 1, + FIRConfigTypeSDK = 2, +}; + +extern NSString *const kFIRDefaultAppName; +extern NSString *const kFIRAppReadyToConfigureSDKNotification; +extern NSString *const kFIRAppDeleteNotification; +extern NSString *const kFIRAppIsDefaultAppKey; +extern NSString *const kFIRAppNameKey; +extern NSString *const kFIRGoogleAppIDKey; +extern NSString *const kFirebaseCoreErrorDomain; + +/** The `UserDefaults` suite name for `FirebaseCore`, for those storage locations that use it. */ +extern NSString *const kFirebaseCoreDefaultsSuiteName; + +/** + * The format string for the `UserDefaults` key used for storing the data collection enabled flag. + * This includes formatting to append the `FirebaseApp`'s name. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledDefaultsKeyFormat; + +/** + * The plist key used for storing the data collection enabled flag. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledPlistKey; + +/** @var FirebaseAuthStateDidChangeInternalNotification + @brief The name of the @c NotificationCenter notification which is posted when the auth state + changes (e.g. a new token has been produced, a user logs in or out). The object parameter of + the notification is a dictionary possibly containing the key: + @c FirebaseAuthStateDidChangeInternalNotificationTokenKey (the new access token.) If it does not + contain this key it indicates a sign-out event took place. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotification; + +/** @var FirebaseAuthStateDidChangeInternalNotificationTokenKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new access token. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationAppKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the FirebaseApp associated with the auth instance. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationAppKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationUIDKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new user's UID (or nil if there is no longer a user signed in). + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey; + +@interface FIRApp () + +/** + * A flag indicating if this is the default app (has the default app name). + */ +@property(nonatomic, readonly) BOOL isDefaultApp; + +/** + * The container of interop SDKs for this app. + */ +@property(nonatomic) FIRComponentContainer *container; + +/** + * The heartbeat logger associated with this app. + * + * Firebase apps have a 1:1 relationship with heartbeat loggers. + */ +@property(readonly) FIRHeartbeatLogger *heartbeatLogger; + +/** + * Checks if the default app is configured without trying to configure it. + */ ++ (BOOL)isDefaultAppConfigured; + +/** + * Registers a given third-party library with the given version number to be reported for + * analytics. + * + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerLibrary:(nonnull NSString *)name withVersion:(nonnull NSString *)version; + +/** + * Registers a given internal library to be reported for analytics. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name; + +/** + * Registers a given internal library with the given version number to be reported for + * analytics. This should only be used for non-Firebase libraries that have their own versioning + * scheme. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name + withVersion:(nonnull NSString *)version; + +/** + * A concatenated string representing all the third-party libraries and version numbers. + */ ++ (NSString *)firebaseUserAgent; + +/** + * Can be used by the unit tests in each SDK to reset `FirebaseApp`. This method is thread unsafe. + */ ++ (void)resetApps; + +/** + * Can be used by the unit tests in each SDK to set customized options. + */ +- (instancetype)initInstanceWithName:(NSString *)name options:(FIROptions *)options; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponent.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponent.h new file mode 100644 index 0000000..e4c8a27 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponent.h @@ -0,0 +1,91 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRApp; +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Provides a system to clean up cached instances returned from the component system. +NS_SWIFT_NAME(ComponentLifecycleMaintainer) +@protocol FIRComponentLifecycleMaintainer +/// The associated app will be deleted, clean up any resources as they are about to be deallocated. +- (void)appWillBeDeleted:(FIRApp *)app; +@end + +typedef _Nullable id (^FIRComponentCreationBlock)(FIRComponentContainer *container, + BOOL *isCacheable) + NS_SWIFT_NAME(ComponentCreationBlock); + +@class FIRDependency; + +/// Describes the timing of instantiation. Note: new components should default to lazy unless there +/// is a strong reason to be eager. +typedef NS_ENUM(NSInteger, FIRInstantiationTiming) { + FIRInstantiationTimingLazy, + FIRInstantiationTimingAlwaysEager, + FIRInstantiationTimingEagerInDefaultApp +} NS_SWIFT_NAME(InstantiationTiming); + +/// A component that can be used from other Firebase SDKs. +NS_SWIFT_NAME(Component) +@interface FIRComponent : NSObject + +/// The protocol describing functionality provided from the `Component`. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// The timing of instantiation. +@property(nonatomic, readonly) FIRInstantiationTiming instantiationTiming; + +/// An array of dependencies for the component. +@property(nonatomic, copy, readonly) NSArray *dependencies; + +/// A block to instantiate an instance of the component with the appropriate dependencies. +@property(nonatomic, copy, readonly) FIRComponentCreationBlock creationBlock; + +// There's an issue with long NS_SWIFT_NAMES that causes compilation to fail, disable clang-format +// for the next two methods. +// clang-format off + +/// Creates a component with no dependencies that will be lazily initialized. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:creationBlock:)); + +/// Creates a component to be registered with the component container. +/// +/// @param protocol - The protocol describing functionality provided by the component. +/// @param instantiationTiming - When the component should be initialized. Use .lazy unless there's +/// a good reason to be instantiated earlier. +/// @param dependencies - Any dependencies the `implementingClass` has, optional or required. +/// @param creationBlock - A block to instantiate the component with a container, and if +/// @return A component that can be registered with the component container. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + instantiationTiming:(FIRInstantiationTiming)instantiationTiming + dependencies:(NSArray *)dependencies + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:instantiationTiming:dependencies:creationBlock:)); + +// clang-format on + +/// Unavailable. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h new file mode 100644 index 0000000..6ec6147 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A type-safe macro to retrieve a component from a container. This should be used to retrieve +/// components instead of using the container directly. +#define FIR_COMPONENT(type, container) \ + [FIRComponentType > instanceForProtocol:@protocol(type) inContainer:container] + +@class FIRApp; + +/// A container that holds different components that are registered via the +/// `registerAsComponentRegistrant` call. These classes should conform to `ComponentRegistrant` +/// in order to properly register components for Core. +NS_SWIFT_NAME(FirebaseComponentContainer) +@interface FIRComponentContainer : NSObject + +/// A weak reference to the app that an instance of the container belongs to. +@property(nonatomic, weak, readonly) FIRApp *app; + +// TODO: See if we can get improved type safety here. +/// A Swift only API for fetching an instance since the top macro isn't available. +- (nullable id)__instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:)); + +/// Unavailable. Use the `container` property on `FirebaseApp`. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h new file mode 100644 index 0000000..6f2aca7 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h @@ -0,0 +1,34 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Do not use directly. A placeholder type in order to provide a macro that will warn users of +/// mis-matched protocols. +NS_SWIFT_NAME(ComponentType) +@interface FIRComponentType<__covariant T> : NSObject + +/// Do not use directly. A factory method to retrieve an instance that provides a specific +/// functionality. ++ (T)instanceForProtocol:(Protocol *)protocol inContainer:(FIRComponentContainer *)container; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRDependency.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRDependency.h new file mode 100644 index 0000000..a070557 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRDependency.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A dependency on a specific protocol's functionality. +NS_SWIFT_NAME(Dependency) +@interface FIRDependency : NSObject + +/// The protocol describing functionality being depended on. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// A flag to specify if the dependency is required or not. +@property(nonatomic, readonly) BOOL isRequired; + +/// Initializes a dependency that is required. Calls `init(protocol:isRequired:)` with true for +/// the required parameter. +/// Creates a required dependency on the specified protocol's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol; + +/// Creates a dependency on the specified protocol's functionality and specify if it's required for +/// the class's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol isRequired:(BOOL)required; + +/// Use `init(withProtocol:isRequired:)` instead. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h new file mode 100644 index 0000000..0f39ad9 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h @@ -0,0 +1,90 @@ +// Copyright 2021 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 + +NS_ASSUME_NONNULL_BEGIN + +#ifndef FIREBASE_BUILD_CMAKE +@class FIRHeartbeatsPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Enum representing different daily heartbeat codes. +/// This enum is only used by clients using platform logging V1. This is because +/// the V1 payload only supports a single daily heartbeat. +typedef NS_ENUM(NSInteger, FIRDailyHeartbeatCode) { + /// Represents the absence of a daily heartbeat. + FIRDailyHeartbeatCodeNone = 0, + /// Represents the presence of a daily heartbeat. + FIRDailyHeartbeatCodeSome = 2, +}; + +@protocol FIRHeartbeatLoggerProtocol + +/// Asynchronously logs a heartbeat. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets the heartbeat code for today. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +#ifndef FIREBASE_BUILD_CMAKE +/// Returns a nullable string header value from a given heartbeats payload. +/// +/// This API returns `nil` when the given heartbeats payload is considered empty. +/// +/// @param heartbeatsPayload The heartbeats payload. +NSString *_Nullable FIRHeaderValueFromHeartbeatsPayload(FIRHeartbeatsPayload *heartbeatsPayload); +#endif // FIREBASE_BUILD_CMAKE + +/// A thread safe, synchronized object that logs and flushes platform logging info. +@interface FIRHeartbeatLogger : NSObject + +/// Designated initializer. +/// +/// @param appID The app ID that this heartbeat logger corresponds to. +- (instancetype)initWithAppID:(NSString *)appID; + +/// Asynchronously logs a new heartbeat corresponding to the Firebase User Agent, if needed. +/// +/// @note This API is thread-safe. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +/// +/// This API is for clients using platform logging V2. +/// +/// @note This API is thread-safe. +/// @return A payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets today's corresponding heartbeat code. +/// +/// This API is for clients using platform logging V1. +/// +/// @note This API is thread-safe. +/// @return Heartbeat code indicating whether or not there is an unsent global heartbeat. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h new file mode 100644 index 0000000..15e2865 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h @@ -0,0 +1,44 @@ +/* + * Copyright 2018 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. + */ + +#ifndef FIRLibrary_h +#define FIRLibrary_h + +#import + +@class FIRApp; +@class FIRComponent; + +NS_ASSUME_NONNULL_BEGIN + +/// Provide an interface to register a library for userAgent logging and availability to others. +NS_SWIFT_NAME(Library) +@protocol FIRLibrary + +/// Returns one or more Components that will be registered in +/// FirebaseApp and participate in dependency resolution and injection. ++ (NSArray *)componentsToRegister; + +@optional +/// Implement this method if the library needs notifications for lifecycle events. This method is +/// called when the developer calls `FirebaseApp.configure()`. ++ (void)configureWithApp:(FIRApp *)app; + +@end + +NS_ASSUME_NONNULL_END + +#endif /* FIRLibrary_h */ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRLogger.h new file mode 100644 index 0000000..0a287f5 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIRLogger.h @@ -0,0 +1,188 @@ +/* + * Copyright 2017 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. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + * The Firebase services used in Firebase logger. + */ +typedef NSString *const FIRLoggerService; + +extern FIRLoggerService kFIRLoggerAnalytics; +extern FIRLoggerService kFIRLoggerCrash; +extern FIRLoggerService kFIRLoggerCore; +extern FIRLoggerService kFIRLoggerRemoteConfig; + +/** + * The key used to store the logger's error count. + */ +extern NSString *const kFIRLoggerErrorCountKey; + +/** + * The key used to store the logger's warning count. + */ +extern NSString *const kFIRLoggerWarningCountKey; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +/** + * Enables or disables Analytics debug mode. + * If set to true, the logging level for Analytics will be set to FirebaseLoggerLevelDebug. + * Enabling the debug mode has no effect if the app is running from App Store. + * (required) analytics debug mode flag. + */ +void FIRSetAnalyticsDebugMode(BOOL analyticsDebugMode); + +/** + * Changes the default logging level of FirebaseLoggerLevelNotice to a user-specified level. + * The default level cannot be set above FirebaseLoggerLevelNotice if the app is running from App + * Store. (required) log level (one of the FirebaseLoggerLevel enum values). + */ +void FIRSetLoggerLevel(FIRLoggerLevel loggerLevel); + +/** + * Checks if the specified logger level is loggable given the current settings. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) whether or not this function is called from the Analytics component. + */ +BOOL FIRIsLoggableLevel(FIRLoggerLevel loggerLevel, BOOL analyticsComponent); + +/** + * Logs a message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) service name of type FirebaseLoggerService. + * (required) message code starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * (required) message string which can be a format string. + * (optional) variable arguments list obtained from calling va_start, used when message is a format + * string. + */ +extern void FIRLogBasic(FIRLoggerLevel level, + FIRLoggerService service, + NSString *messageCode, + NSString *message, +// On 64-bit simulators, va_list is not a pointer, so cannot be marked nullable +// See: http://stackoverflow.com/q/29095469 +#if __LP64__ && TARGET_OS_SIMULATOR || TARGET_OS_OSX + va_list args_ptr +#else + va_list _Nullable args_ptr +#endif +); + +/** + * The following functions accept the following parameters in order: + * (required) service name of type FirebaseLoggerService. + * (required) message code starting from "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * See go/firebase-log-proposal for details. + * (required) message string which can be a format string. + * (optional) the list of arguments to substitute into the format string. + * Example usage: + * FirebaseLogError(kFirebaseLoggerCore, @"I-COR000001", @"Configuration of %@ failed.", app.name); + */ +extern void FIRLogError(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogWarning(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogNotice(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogInfo(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogDebug(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); + +// TODO: Come up with a better logging scheme for Swift. +/** + * Logs a debug message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogDebugSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +/** + * Logs a warning message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogWarningSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +NS_SWIFT_NAME(FirebaseLogger) +@interface FIRLoggerWrapper : NSObject + +/// Logs a given message at a given log level. This API is effectively a wrapper for the +/// `FIRLogBasic` C API. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + withService:(FIRLoggerService)service + withCode:(NSString *)messageCode + withMessage:(NSString *)message + withArgs:(va_list)args; + +/// Logs a given message at a given log level. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + service:(FIRLoggerService)service + code:(NSString *)code + message:(NSString *)message + __attribute__((__swift_name__("log(level:service:code:message:)"))); + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h new file mode 100644 index 0000000..93a03d6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h @@ -0,0 +1,106 @@ +/* + * Copyright 2017 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. + */ + +#import + +/** + * Keys for the strings in the plist file. + */ +extern NSString *const kFIRAPIKey; +extern NSString *const kFIRTrackingID; +extern NSString *const kFIRGoogleAppID; +extern NSString *const kFIRClientID; +extern NSString *const kFIRGCMSenderID; +extern NSString *const kFIRAndroidClientID; +extern NSString *const kFIRDatabaseURL; +extern NSString *const kFIRStorageBucket; +extern NSString *const kFIRBundleID; +extern NSString *const kFIRProjectID; + +/** + * Keys for the plist file name + */ +extern NSString *const kServiceInfoFileName; + +extern NSString *const kServiceInfoFileType; + +/** + * This header file exposes the initialization of FirebaseOptions to internal use. + */ +@interface FIROptions () + +/** + * `resetDefaultOptions` and `initInternalWithOptionsDictionary` are exposed only for unit tests. + */ ++ (void)resetDefaultOptions; + +/** + * Initializes the options with dictionary. The above strings are the keys of the dictionary. + * This is the designated initializer. + */ +- (instancetype)initInternalWithOptionsDictionary:(NSDictionary *)serviceInfoDictionary + NS_DESIGNATED_INITIALIZER; + +/** + * `defaultOptions` and `defaultOptionsDictionary` are exposed in order to be used in FirebaseApp + * and other first party services. + */ ++ (FIROptions *)defaultOptions; + ++ (NSDictionary *)defaultOptionsDictionary; + +/** + * Indicates whether or not Analytics collection was explicitly enabled via a plist flag or at + * runtime. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionExplicitlySet; + +/** + * Whether or not Analytics Collection was enabled. Analytics Collection is enabled unless + * explicitly disabled in GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionEnabled; + +/** + * Whether or not Analytics Collection was completely disabled. If true, then + * isAnalyticsCollectionEnabled will be false. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionDeactivated; + +/** + * The version ID of the client library, e.g. @"1100000". + */ +@property(nonatomic, readonly, copy) NSString *libraryVersionID; + +/** + * The flag indicating whether this object was constructed with the values in the default plist + * file. + */ +@property(nonatomic) BOOL usingOptionsFromDefaultPlist; + +/** + * Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in + * GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isMeasurementEnabled; + +/** + * Whether or not editing is locked. This should occur after `FirebaseOptions` has been set on a + * `FirebaseApp`. + */ +@property(nonatomic, getter=isEditingLocked) BOOL editingLocked; + +@end diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h new file mode 100644 index 0000000..c6be1b6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h @@ -0,0 +1,26 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FirebaseCoreInternal.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" + +FOUNDATION_EXPORT double FirebaseCoreExtensionVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreExtensionVersionString[]; + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h new file mode 100644 index 0000000..0669ae6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h @@ -0,0 +1,25 @@ +// Copyright 2020 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 FirebaseCore; + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Info.plist b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Info.plist new file mode 100644 index 0000000..55df497 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Modules/module.modulemap new file mode 100644 index 0000000..f8792f1 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/macos-arm64_x86_64/FirebaseCoreExtension.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseCoreExtension { +umbrella header "FirebaseCoreExtension-umbrella.h" +export * +module * { export * } + link framework "AppKit" + link framework "Foundation" + link framework "Security" + link "z" +} diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/FirebaseCoreExtension b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/FirebaseCoreExtension new file mode 100644 index 0000000..b036f65 Binary files /dev/null and b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/FirebaseCoreExtension differ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h new file mode 100644 index 0000000..49104f0 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h @@ -0,0 +1,159 @@ +/* + * Copyright 2017 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. + */ + +#import+ +CFBundleExecutable +FirebaseCoreExtension +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreExtension +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreExtension +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class FIRComponentContainer; +@class FIRHeartbeatLogger; +@protocol FIRLibrary; + +/** + * The internal interface to `FirebaseApp`. This is meant for first-party integrators, who need to + * receive `FirebaseApp` notifications, log info about the success or failure of their + * configuration, and access other internal functionality of `FirebaseApp`. + */ +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, FIRConfigType) { + FIRConfigTypeCore = 1, + FIRConfigTypeSDK = 2, +}; + +extern NSString *const kFIRDefaultAppName; +extern NSString *const kFIRAppReadyToConfigureSDKNotification; +extern NSString *const kFIRAppDeleteNotification; +extern NSString *const kFIRAppIsDefaultAppKey; +extern NSString *const kFIRAppNameKey; +extern NSString *const kFIRGoogleAppIDKey; +extern NSString *const kFirebaseCoreErrorDomain; + +/** The `UserDefaults` suite name for `FirebaseCore`, for those storage locations that use it. */ +extern NSString *const kFirebaseCoreDefaultsSuiteName; + +/** + * The format string for the `UserDefaults` key used for storing the data collection enabled flag. + * This includes formatting to append the `FirebaseApp`'s name. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledDefaultsKeyFormat; + +/** + * The plist key used for storing the data collection enabled flag. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledPlistKey; + +/** @var FirebaseAuthStateDidChangeInternalNotification + @brief The name of the @c NotificationCenter notification which is posted when the auth state + changes (e.g. a new token has been produced, a user logs in or out). The object parameter of + the notification is a dictionary possibly containing the key: + @c FirebaseAuthStateDidChangeInternalNotificationTokenKey (the new access token.) If it does not + contain this key it indicates a sign-out event took place. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotification; + +/** @var FirebaseAuthStateDidChangeInternalNotificationTokenKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new access token. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationAppKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the FirebaseApp associated with the auth instance. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationAppKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationUIDKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new user's UID (or nil if there is no longer a user signed in). + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey; + +@interface FIRApp () + +/** + * A flag indicating if this is the default app (has the default app name). + */ +@property(nonatomic, readonly) BOOL isDefaultApp; + +/** + * The container of interop SDKs for this app. + */ +@property(nonatomic) FIRComponentContainer *container; + +/** + * The heartbeat logger associated with this app. + * + * Firebase apps have a 1:1 relationship with heartbeat loggers. + */ +@property(readonly) FIRHeartbeatLogger *heartbeatLogger; + +/** + * Checks if the default app is configured without trying to configure it. + */ ++ (BOOL)isDefaultAppConfigured; + +/** + * Registers a given third-party library with the given version number to be reported for + * analytics. + * + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerLibrary:(nonnull NSString *)name withVersion:(nonnull NSString *)version; + +/** + * Registers a given internal library to be reported for analytics. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name; + +/** + * Registers a given internal library with the given version number to be reported for + * analytics. This should only be used for non-Firebase libraries that have their own versioning + * scheme. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name + withVersion:(nonnull NSString *)version; + +/** + * A concatenated string representing all the third-party libraries and version numbers. + */ ++ (NSString *)firebaseUserAgent; + +/** + * Can be used by the unit tests in each SDK to reset `FirebaseApp`. This method is thread unsafe. + */ ++ (void)resetApps; + +/** + * Can be used by the unit tests in each SDK to set customized options. + */ +- (instancetype)initInstanceWithName:(NSString *)name options:(FIROptions *)options; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponent.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponent.h new file mode 100644 index 0000000..e4c8a27 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponent.h @@ -0,0 +1,91 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRApp; +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Provides a system to clean up cached instances returned from the component system. +NS_SWIFT_NAME(ComponentLifecycleMaintainer) +@protocol FIRComponentLifecycleMaintainer +/// The associated app will be deleted, clean up any resources as they are about to be deallocated. +- (void)appWillBeDeleted:(FIRApp *)app; +@end + +typedef _Nullable id (^FIRComponentCreationBlock)(FIRComponentContainer *container, + BOOL *isCacheable) + NS_SWIFT_NAME(ComponentCreationBlock); + +@class FIRDependency; + +/// Describes the timing of instantiation. Note: new components should default to lazy unless there +/// is a strong reason to be eager. +typedef NS_ENUM(NSInteger, FIRInstantiationTiming) { + FIRInstantiationTimingLazy, + FIRInstantiationTimingAlwaysEager, + FIRInstantiationTimingEagerInDefaultApp +} NS_SWIFT_NAME(InstantiationTiming); + +/// A component that can be used from other Firebase SDKs. +NS_SWIFT_NAME(Component) +@interface FIRComponent : NSObject + +/// The protocol describing functionality provided from the `Component`. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// The timing of instantiation. +@property(nonatomic, readonly) FIRInstantiationTiming instantiationTiming; + +/// An array of dependencies for the component. +@property(nonatomic, copy, readonly) NSArray *dependencies; + +/// A block to instantiate an instance of the component with the appropriate dependencies. +@property(nonatomic, copy, readonly) FIRComponentCreationBlock creationBlock; + +// There's an issue with long NS_SWIFT_NAMES that causes compilation to fail, disable clang-format +// for the next two methods. +// clang-format off + +/// Creates a component with no dependencies that will be lazily initialized. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:creationBlock:)); + +/// Creates a component to be registered with the component container. +/// +/// @param protocol - The protocol describing functionality provided by the component. +/// @param instantiationTiming - When the component should be initialized. Use .lazy unless there's +/// a good reason to be instantiated earlier. +/// @param dependencies - Any dependencies the `implementingClass` has, optional or required. +/// @param creationBlock - A block to instantiate the component with a container, and if +/// @return A component that can be registered with the component container. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + instantiationTiming:(FIRInstantiationTiming)instantiationTiming + dependencies:(NSArray *)dependencies + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:instantiationTiming:dependencies:creationBlock:)); + +// clang-format on + +/// Unavailable. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h new file mode 100644 index 0000000..6ec6147 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A type-safe macro to retrieve a component from a container. This should be used to retrieve +/// components instead of using the container directly. +#define FIR_COMPONENT(type, container) \ + [FIRComponentType > instanceForProtocol:@protocol(type) inContainer:container] + +@class FIRApp; + +/// A container that holds different components that are registered via the +/// `registerAsComponentRegistrant` call. These classes should conform to `ComponentRegistrant` +/// in order to properly register components for Core. +NS_SWIFT_NAME(FirebaseComponentContainer) +@interface FIRComponentContainer : NSObject + +/// A weak reference to the app that an instance of the container belongs to. +@property(nonatomic, weak, readonly) FIRApp *app; + +// TODO: See if we can get improved type safety here. +/// A Swift only API for fetching an instance since the top macro isn't available. +- (nullable id)__instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:)); + +/// Unavailable. Use the `container` property on `FirebaseApp`. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h new file mode 100644 index 0000000..6f2aca7 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRComponentType.h @@ -0,0 +1,34 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Do not use directly. A placeholder type in order to provide a macro that will warn users of +/// mis-matched protocols. +NS_SWIFT_NAME(ComponentType) +@interface FIRComponentType<__covariant T> : NSObject + +/// Do not use directly. A factory method to retrieve an instance that provides a specific +/// functionality. ++ (T)instanceForProtocol:(Protocol *)protocol inContainer:(FIRComponentContainer *)container; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRDependency.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRDependency.h new file mode 100644 index 0000000..a070557 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRDependency.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A dependency on a specific protocol's functionality. +NS_SWIFT_NAME(Dependency) +@interface FIRDependency : NSObject + +/// The protocol describing functionality being depended on. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// A flag to specify if the dependency is required or not. +@property(nonatomic, readonly) BOOL isRequired; + +/// Initializes a dependency that is required. Calls `init(protocol:isRequired:)` with true for +/// the required parameter. +/// Creates a required dependency on the specified protocol's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol; + +/// Creates a dependency on the specified protocol's functionality and specify if it's required for +/// the class's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol isRequired:(BOOL)required; + +/// Use `init(withProtocol:isRequired:)` instead. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h new file mode 100644 index 0000000..0f39ad9 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h @@ -0,0 +1,90 @@ +// Copyright 2021 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 + +NS_ASSUME_NONNULL_BEGIN + +#ifndef FIREBASE_BUILD_CMAKE +@class FIRHeartbeatsPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Enum representing different daily heartbeat codes. +/// This enum is only used by clients using platform logging V1. This is because +/// the V1 payload only supports a single daily heartbeat. +typedef NS_ENUM(NSInteger, FIRDailyHeartbeatCode) { + /// Represents the absence of a daily heartbeat. + FIRDailyHeartbeatCodeNone = 0, + /// Represents the presence of a daily heartbeat. + FIRDailyHeartbeatCodeSome = 2, +}; + +@protocol FIRHeartbeatLoggerProtocol + +/// Asynchronously logs a heartbeat. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets the heartbeat code for today. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +#ifndef FIREBASE_BUILD_CMAKE +/// Returns a nullable string header value from a given heartbeats payload. +/// +/// This API returns `nil` when the given heartbeats payload is considered empty. +/// +/// @param heartbeatsPayload The heartbeats payload. +NSString *_Nullable FIRHeaderValueFromHeartbeatsPayload(FIRHeartbeatsPayload *heartbeatsPayload); +#endif // FIREBASE_BUILD_CMAKE + +/// A thread safe, synchronized object that logs and flushes platform logging info. +@interface FIRHeartbeatLogger : NSObject + +/// Designated initializer. +/// +/// @param appID The app ID that this heartbeat logger corresponds to. +- (instancetype)initWithAppID:(NSString *)appID; + +/// Asynchronously logs a new heartbeat corresponding to the Firebase User Agent, if needed. +/// +/// @note This API is thread-safe. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +/// +/// This API is for clients using platform logging V2. +/// +/// @note This API is thread-safe. +/// @return A payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets today's corresponding heartbeat code. +/// +/// This API is for clients using platform logging V1. +/// +/// @note This API is thread-safe. +/// @return Heartbeat code indicating whether or not there is an unsent global heartbeat. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h new file mode 100644 index 0000000..15e2865 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRLibrary.h @@ -0,0 +1,44 @@ +/* + * Copyright 2018 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. + */ + +#ifndef FIRLibrary_h +#define FIRLibrary_h + +#import + +@class FIRApp; +@class FIRComponent; + +NS_ASSUME_NONNULL_BEGIN + +/// Provide an interface to register a library for userAgent logging and availability to others. +NS_SWIFT_NAME(Library) +@protocol FIRLibrary + +/// Returns one or more Components that will be registered in +/// FirebaseApp and participate in dependency resolution and injection. ++ (NSArray *)componentsToRegister; + +@optional +/// Implement this method if the library needs notifications for lifecycle events. This method is +/// called when the developer calls `FirebaseApp.configure()`. ++ (void)configureWithApp:(FIRApp *)app; + +@end + +NS_ASSUME_NONNULL_END + +#endif /* FIRLibrary_h */ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRLogger.h new file mode 100644 index 0000000..0a287f5 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIRLogger.h @@ -0,0 +1,188 @@ +/* + * Copyright 2017 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. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + * The Firebase services used in Firebase logger. + */ +typedef NSString *const FIRLoggerService; + +extern FIRLoggerService kFIRLoggerAnalytics; +extern FIRLoggerService kFIRLoggerCrash; +extern FIRLoggerService kFIRLoggerCore; +extern FIRLoggerService kFIRLoggerRemoteConfig; + +/** + * The key used to store the logger's error count. + */ +extern NSString *const kFIRLoggerErrorCountKey; + +/** + * The key used to store the logger's warning count. + */ +extern NSString *const kFIRLoggerWarningCountKey; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +/** + * Enables or disables Analytics debug mode. + * If set to true, the logging level for Analytics will be set to FirebaseLoggerLevelDebug. + * Enabling the debug mode has no effect if the app is running from App Store. + * (required) analytics debug mode flag. + */ +void FIRSetAnalyticsDebugMode(BOOL analyticsDebugMode); + +/** + * Changes the default logging level of FirebaseLoggerLevelNotice to a user-specified level. + * The default level cannot be set above FirebaseLoggerLevelNotice if the app is running from App + * Store. (required) log level (one of the FirebaseLoggerLevel enum values). + */ +void FIRSetLoggerLevel(FIRLoggerLevel loggerLevel); + +/** + * Checks if the specified logger level is loggable given the current settings. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) whether or not this function is called from the Analytics component. + */ +BOOL FIRIsLoggableLevel(FIRLoggerLevel loggerLevel, BOOL analyticsComponent); + +/** + * Logs a message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) service name of type FirebaseLoggerService. + * (required) message code starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * (required) message string which can be a format string. + * (optional) variable arguments list obtained from calling va_start, used when message is a format + * string. + */ +extern void FIRLogBasic(FIRLoggerLevel level, + FIRLoggerService service, + NSString *messageCode, + NSString *message, +// On 64-bit simulators, va_list is not a pointer, so cannot be marked nullable +// See: http://stackoverflow.com/q/29095469 +#if __LP64__ && TARGET_OS_SIMULATOR || TARGET_OS_OSX + va_list args_ptr +#else + va_list _Nullable args_ptr +#endif +); + +/** + * The following functions accept the following parameters in order: + * (required) service name of type FirebaseLoggerService. + * (required) message code starting from "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * See go/firebase-log-proposal for details. + * (required) message string which can be a format string. + * (optional) the list of arguments to substitute into the format string. + * Example usage: + * FirebaseLogError(kFirebaseLoggerCore, @"I-COR000001", @"Configuration of %@ failed.", app.name); + */ +extern void FIRLogError(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogWarning(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogNotice(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogInfo(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogDebug(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); + +// TODO: Come up with a better logging scheme for Swift. +/** + * Logs a debug message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogDebugSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +/** + * Logs a warning message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogWarningSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +NS_SWIFT_NAME(FirebaseLogger) +@interface FIRLoggerWrapper : NSObject + +/// Logs a given message at a given log level. This API is effectively a wrapper for the +/// `FIRLogBasic` C API. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + withService:(FIRLoggerService)service + withCode:(NSString *)messageCode + withMessage:(NSString *)message + withArgs:(va_list)args; + +/// Logs a given message at a given log level. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + service:(FIRLoggerService)service + code:(NSString *)code + message:(NSString *)message + __attribute__((__swift_name__("log(level:service:code:message:)"))); + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h new file mode 100644 index 0000000..93a03d6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h @@ -0,0 +1,106 @@ +/* + * Copyright 2017 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. + */ + +#import + +/** + * Keys for the strings in the plist file. + */ +extern NSString *const kFIRAPIKey; +extern NSString *const kFIRTrackingID; +extern NSString *const kFIRGoogleAppID; +extern NSString *const kFIRClientID; +extern NSString *const kFIRGCMSenderID; +extern NSString *const kFIRAndroidClientID; +extern NSString *const kFIRDatabaseURL; +extern NSString *const kFIRStorageBucket; +extern NSString *const kFIRBundleID; +extern NSString *const kFIRProjectID; + +/** + * Keys for the plist file name + */ +extern NSString *const kServiceInfoFileName; + +extern NSString *const kServiceInfoFileType; + +/** + * This header file exposes the initialization of FirebaseOptions to internal use. + */ +@interface FIROptions () + +/** + * `resetDefaultOptions` and `initInternalWithOptionsDictionary` are exposed only for unit tests. + */ ++ (void)resetDefaultOptions; + +/** + * Initializes the options with dictionary. The above strings are the keys of the dictionary. + * This is the designated initializer. + */ +- (instancetype)initInternalWithOptionsDictionary:(NSDictionary *)serviceInfoDictionary + NS_DESIGNATED_INITIALIZER; + +/** + * `defaultOptions` and `defaultOptionsDictionary` are exposed in order to be used in FirebaseApp + * and other first party services. + */ ++ (FIROptions *)defaultOptions; + ++ (NSDictionary *)defaultOptionsDictionary; + +/** + * Indicates whether or not Analytics collection was explicitly enabled via a plist flag or at + * runtime. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionExplicitlySet; + +/** + * Whether or not Analytics Collection was enabled. Analytics Collection is enabled unless + * explicitly disabled in GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionEnabled; + +/** + * Whether or not Analytics Collection was completely disabled. If true, then + * isAnalyticsCollectionEnabled will be false. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionDeactivated; + +/** + * The version ID of the client library, e.g. @"1100000". + */ +@property(nonatomic, readonly, copy) NSString *libraryVersionID; + +/** + * The flag indicating whether this object was constructed with the values in the default plist + * file. + */ +@property(nonatomic) BOOL usingOptionsFromDefaultPlist; + +/** + * Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in + * GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isMeasurementEnabled; + +/** + * Whether or not editing is locked. This should occur after `FirebaseOptions` has been set on a + * `FirebaseApp`. + */ +@property(nonatomic, getter=isEditingLocked) BOOL editingLocked; + +@end diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h new file mode 100644 index 0000000..64ea389 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h @@ -0,0 +1,26 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FirebaseCoreInternal.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" + +FOUNDATION_EXPORT double FirebaseCoreExtensionVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreExtensionVersionString[]; + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h new file mode 100644 index 0000000..0669ae6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h @@ -0,0 +1,25 @@ +// Copyright 2020 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 FirebaseCore; + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Info.plist b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Info.plist new file mode 100644 index 0000000..55df497 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Modules/module.modulemap new file mode 100644 index 0000000..934487e --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64/FirebaseCoreExtension.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseCoreExtension { +umbrella header "FirebaseCoreExtension-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/FirebaseCoreExtension b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/FirebaseCoreExtension new file mode 100644 index 0000000..09c93b9 Binary files /dev/null and b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/FirebaseCoreExtension differ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h new file mode 100644 index 0000000..49104f0 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRAppInternal.h @@ -0,0 +1,159 @@ +/* + * Copyright 2017 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. + */ + +#import+ +CFBundleExecutable +FirebaseCoreExtension +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreExtension +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreExtension +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ +@class FIRComponentContainer; +@class FIRHeartbeatLogger; +@protocol FIRLibrary; + +/** + * The internal interface to `FirebaseApp`. This is meant for first-party integrators, who need to + * receive `FirebaseApp` notifications, log info about the success or failure of their + * configuration, and access other internal functionality of `FirebaseApp`. + */ +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, FIRConfigType) { + FIRConfigTypeCore = 1, + FIRConfigTypeSDK = 2, +}; + +extern NSString *const kFIRDefaultAppName; +extern NSString *const kFIRAppReadyToConfigureSDKNotification; +extern NSString *const kFIRAppDeleteNotification; +extern NSString *const kFIRAppIsDefaultAppKey; +extern NSString *const kFIRAppNameKey; +extern NSString *const kFIRGoogleAppIDKey; +extern NSString *const kFirebaseCoreErrorDomain; + +/** The `UserDefaults` suite name for `FirebaseCore`, for those storage locations that use it. */ +extern NSString *const kFirebaseCoreDefaultsSuiteName; + +/** + * The format string for the `UserDefaults` key used for storing the data collection enabled flag. + * This includes formatting to append the `FirebaseApp`'s name. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledDefaultsKeyFormat; + +/** + * The plist key used for storing the data collection enabled flag. + */ +extern NSString *const kFIRGlobalAppDataCollectionEnabledPlistKey; + +/** @var FirebaseAuthStateDidChangeInternalNotification + @brief The name of the @c NotificationCenter notification which is posted when the auth state + changes (e.g. a new token has been produced, a user logs in or out). The object parameter of + the notification is a dictionary possibly containing the key: + @c FirebaseAuthStateDidChangeInternalNotificationTokenKey (the new access token.) If it does not + contain this key it indicates a sign-out event took place. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotification; + +/** @var FirebaseAuthStateDidChangeInternalNotificationTokenKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new access token. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationAppKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the FirebaseApp associated with the auth instance. + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationAppKey; + +/** @var FirebaseAuthStateDidChangeInternalNotificationUIDKey + @brief A key present in the dictionary object parameter of the + @c FirebaseAuthStateDidChangeInternalNotification notification. The value associated with this + key will contain the new user's UID (or nil if there is no longer a user signed in). + */ +extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey; + +@interface FIRApp () + +/** + * A flag indicating if this is the default app (has the default app name). + */ +@property(nonatomic, readonly) BOOL isDefaultApp; + +/** + * The container of interop SDKs for this app. + */ +@property(nonatomic) FIRComponentContainer *container; + +/** + * The heartbeat logger associated with this app. + * + * Firebase apps have a 1:1 relationship with heartbeat loggers. + */ +@property(readonly) FIRHeartbeatLogger *heartbeatLogger; + +/** + * Checks if the default app is configured without trying to configure it. + */ ++ (BOOL)isDefaultAppConfigured; + +/** + * Registers a given third-party library with the given version number to be reported for + * analytics. + * + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerLibrary:(nonnull NSString *)name withVersion:(nonnull NSString *)version; + +/** + * Registers a given internal library to be reported for analytics. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name; + +/** + * Registers a given internal library with the given version number to be reported for + * analytics. This should only be used for non-Firebase libraries that have their own versioning + * scheme. + * + * @param library Optional parameter for component registration. + * @param name Name of the library. + * @param version Version of the library. + */ ++ (void)registerInternalLibrary:(nonnull Class )library + withName:(nonnull NSString *)name + withVersion:(nonnull NSString *)version; + +/** + * A concatenated string representing all the third-party libraries and version numbers. + */ ++ (NSString *)firebaseUserAgent; + +/** + * Can be used by the unit tests in each SDK to reset `FirebaseApp`. This method is thread unsafe. + */ ++ (void)resetApps; + +/** + * Can be used by the unit tests in each SDK to set customized options. + */ +- (instancetype)initInstanceWithName:(NSString *)name options:(FIROptions *)options; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponent.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponent.h new file mode 100644 index 0000000..e4c8a27 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponent.h @@ -0,0 +1,91 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRApp; +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Provides a system to clean up cached instances returned from the component system. +NS_SWIFT_NAME(ComponentLifecycleMaintainer) +@protocol FIRComponentLifecycleMaintainer +/// The associated app will be deleted, clean up any resources as they are about to be deallocated. +- (void)appWillBeDeleted:(FIRApp *)app; +@end + +typedef _Nullable id (^FIRComponentCreationBlock)(FIRComponentContainer *container, + BOOL *isCacheable) + NS_SWIFT_NAME(ComponentCreationBlock); + +@class FIRDependency; + +/// Describes the timing of instantiation. Note: new components should default to lazy unless there +/// is a strong reason to be eager. +typedef NS_ENUM(NSInteger, FIRInstantiationTiming) { + FIRInstantiationTimingLazy, + FIRInstantiationTimingAlwaysEager, + FIRInstantiationTimingEagerInDefaultApp +} NS_SWIFT_NAME(InstantiationTiming); + +/// A component that can be used from other Firebase SDKs. +NS_SWIFT_NAME(Component) +@interface FIRComponent : NSObject + +/// The protocol describing functionality provided from the `Component`. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// The timing of instantiation. +@property(nonatomic, readonly) FIRInstantiationTiming instantiationTiming; + +/// An array of dependencies for the component. +@property(nonatomic, copy, readonly) NSArray *dependencies; + +/// A block to instantiate an instance of the component with the appropriate dependencies. +@property(nonatomic, copy, readonly) FIRComponentCreationBlock creationBlock; + +// There's an issue with long NS_SWIFT_NAMES that causes compilation to fail, disable clang-format +// for the next two methods. +// clang-format off + +/// Creates a component with no dependencies that will be lazily initialized. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:creationBlock:)); + +/// Creates a component to be registered with the component container. +/// +/// @param protocol - The protocol describing functionality provided by the component. +/// @param instantiationTiming - When the component should be initialized. Use .lazy unless there's +/// a good reason to be instantiated earlier. +/// @param dependencies - Any dependencies the `implementingClass` has, optional or required. +/// @param creationBlock - A block to instantiate the component with a container, and if +/// @return A component that can be registered with the component container. ++ (instancetype)componentWithProtocol:(Protocol *)protocol + instantiationTiming:(FIRInstantiationTiming)instantiationTiming + dependencies:(NSArray *)dependencies + creationBlock:(FIRComponentCreationBlock)creationBlock +NS_SWIFT_NAME(init(_:instantiationTiming:dependencies:creationBlock:)); + +// clang-format on + +/// Unavailable. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h new file mode 100644 index 0000000..6ec6147 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentContainer.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A type-safe macro to retrieve a component from a container. This should be used to retrieve +/// components instead of using the container directly. +#define FIR_COMPONENT(type, container) \ + [FIRComponentType > instanceForProtocol:@protocol(type) inContainer:container] + +@class FIRApp; + +/// A container that holds different components that are registered via the +/// `registerAsComponentRegistrant` call. These classes should conform to `ComponentRegistrant` +/// in order to properly register components for Core. +NS_SWIFT_NAME(FirebaseComponentContainer) +@interface FIRComponentContainer : NSObject + +/// A weak reference to the app that an instance of the container belongs to. +@property(nonatomic, weak, readonly) FIRApp *app; + +// TODO: See if we can get improved type safety here. +/// A Swift only API for fetching an instance since the top macro isn't available. +- (nullable id)__instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:)); + +/// Unavailable. Use the `container` property on `FirebaseApp`. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentType.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentType.h new file mode 100644 index 0000000..6f2aca7 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRComponentType.h @@ -0,0 +1,34 @@ +/* + * Copyright 2018 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. + */ + +#import + +@class FIRComponentContainer; + +NS_ASSUME_NONNULL_BEGIN + +/// Do not use directly. A placeholder type in order to provide a macro that will warn users of +/// mis-matched protocols. +NS_SWIFT_NAME(ComponentType) +@interface FIRComponentType<__covariant T> : NSObject + +/// Do not use directly. A factory method to retrieve an instance that provides a specific +/// functionality. ++ (T)instanceForProtocol:(Protocol *)protocol inContainer:(FIRComponentContainer *)container; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRDependency.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRDependency.h new file mode 100644 index 0000000..a070557 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRDependency.h @@ -0,0 +1,45 @@ +/* + * Copyright 2018 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. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A dependency on a specific protocol's functionality. +NS_SWIFT_NAME(Dependency) +@interface FIRDependency : NSObject + +/// The protocol describing functionality being depended on. +@property(nonatomic, strong, readonly) Protocol *protocol; + +/// A flag to specify if the dependency is required or not. +@property(nonatomic, readonly) BOOL isRequired; + +/// Initializes a dependency that is required. Calls `init(protocol:isRequired:)` with true for +/// the required parameter. +/// Creates a required dependency on the specified protocol's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol; + +/// Creates a dependency on the specified protocol's functionality and specify if it's required for +/// the class's functionality. ++ (instancetype)dependencyWithProtocol:(Protocol *)protocol isRequired:(BOOL)required; + +/// Use `init(withProtocol:isRequired:)` instead. +- (instancetype)init NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h new file mode 100644 index 0000000..0f39ad9 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRHeartbeatLogger.h @@ -0,0 +1,90 @@ +// Copyright 2021 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 + +NS_ASSUME_NONNULL_BEGIN + +#ifndef FIREBASE_BUILD_CMAKE +@class FIRHeartbeatsPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Enum representing different daily heartbeat codes. +/// This enum is only used by clients using platform logging V1. This is because +/// the V1 payload only supports a single daily heartbeat. +typedef NS_ENUM(NSInteger, FIRDailyHeartbeatCode) { + /// Represents the absence of a daily heartbeat. + FIRDailyHeartbeatCodeNone = 0, + /// Represents the presence of a daily heartbeat. + FIRDailyHeartbeatCodeSome = 2, +}; + +@protocol FIRHeartbeatLoggerProtocol + +/// Asynchronously logs a heartbeat. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets the heartbeat code for today. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +#ifndef FIREBASE_BUILD_CMAKE +/// Returns a nullable string header value from a given heartbeats payload. +/// +/// This API returns `nil` when the given heartbeats payload is considered empty. +/// +/// @param heartbeatsPayload The heartbeats payload. +NSString *_Nullable FIRHeaderValueFromHeartbeatsPayload(FIRHeartbeatsPayload *heartbeatsPayload); +#endif // FIREBASE_BUILD_CMAKE + +/// A thread safe, synchronized object that logs and flushes platform logging info. +@interface FIRHeartbeatLogger : NSObject + +/// Designated initializer. +/// +/// @param appID The app ID that this heartbeat logger corresponds to. +- (instancetype)initWithAppID:(NSString *)appID; + +/// Asynchronously logs a new heartbeat corresponding to the Firebase User Agent, if needed. +/// +/// @note This API is thread-safe. +- (void)log; + +#ifndef FIREBASE_BUILD_CMAKE +/// Flushes heartbeats from storage into a structured payload of heartbeats. +/// +/// This API is for clients using platform logging V2. +/// +/// @note This API is thread-safe. +/// @return A payload of heartbeats. +- (FIRHeartbeatsPayload *)flushHeartbeatsIntoPayload; +#endif // FIREBASE_BUILD_CMAKE + +/// Gets today's corresponding heartbeat code. +/// +/// This API is for clients using platform logging V1. +/// +/// @note This API is thread-safe. +/// @return Heartbeat code indicating whether or not there is an unsent global heartbeat. +- (FIRDailyHeartbeatCode)heartbeatCodeForToday; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLibrary.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLibrary.h new file mode 100644 index 0000000..15e2865 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLibrary.h @@ -0,0 +1,44 @@ +/* + * Copyright 2018 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. + */ + +#ifndef FIRLibrary_h +#define FIRLibrary_h + +#import + +@class FIRApp; +@class FIRComponent; + +NS_ASSUME_NONNULL_BEGIN + +/// Provide an interface to register a library for userAgent logging and availability to others. +NS_SWIFT_NAME(Library) +@protocol FIRLibrary + +/// Returns one or more Components that will be registered in +/// FirebaseApp and participate in dependency resolution and injection. ++ (NSArray *)componentsToRegister; + +@optional +/// Implement this method if the library needs notifications for lifecycle events. This method is +/// called when the developer calls `FirebaseApp.configure()`. ++ (void)configureWithApp:(FIRApp *)app; + +@end + +NS_ASSUME_NONNULL_END + +#endif /* FIRLibrary_h */ diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLogger.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLogger.h new file mode 100644 index 0000000..0a287f5 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIRLogger.h @@ -0,0 +1,188 @@ +/* + * Copyright 2017 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. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + * The Firebase services used in Firebase logger. + */ +typedef NSString *const FIRLoggerService; + +extern FIRLoggerService kFIRLoggerAnalytics; +extern FIRLoggerService kFIRLoggerCrash; +extern FIRLoggerService kFIRLoggerCore; +extern FIRLoggerService kFIRLoggerRemoteConfig; + +/** + * The key used to store the logger's error count. + */ +extern NSString *const kFIRLoggerErrorCountKey; + +/** + * The key used to store the logger's warning count. + */ +extern NSString *const kFIRLoggerWarningCountKey; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +/** + * Enables or disables Analytics debug mode. + * If set to true, the logging level for Analytics will be set to FirebaseLoggerLevelDebug. + * Enabling the debug mode has no effect if the app is running from App Store. + * (required) analytics debug mode flag. + */ +void FIRSetAnalyticsDebugMode(BOOL analyticsDebugMode); + +/** + * Changes the default logging level of FirebaseLoggerLevelNotice to a user-specified level. + * The default level cannot be set above FirebaseLoggerLevelNotice if the app is running from App + * Store. (required) log level (one of the FirebaseLoggerLevel enum values). + */ +void FIRSetLoggerLevel(FIRLoggerLevel loggerLevel); + +/** + * Checks if the specified logger level is loggable given the current settings. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) whether or not this function is called from the Analytics component. + */ +BOOL FIRIsLoggableLevel(FIRLoggerLevel loggerLevel, BOOL analyticsComponent); + +/** + * Logs a message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * (required) log level (one of the FirebaseLoggerLevel enum values). + * (required) service name of type FirebaseLoggerService. + * (required) message code starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * (required) message string which can be a format string. + * (optional) variable arguments list obtained from calling va_start, used when message is a format + * string. + */ +extern void FIRLogBasic(FIRLoggerLevel level, + FIRLoggerService service, + NSString *messageCode, + NSString *message, +// On 64-bit simulators, va_list is not a pointer, so cannot be marked nullable +// See: http://stackoverflow.com/q/29095469 +#if __LP64__ && TARGET_OS_SIMULATOR || TARGET_OS_OSX + va_list args_ptr +#else + va_list _Nullable args_ptr +#endif +); + +/** + * The following functions accept the following parameters in order: + * (required) service name of type FirebaseLoggerService. + * (required) message code starting from "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique + * within the service. + * An example of the message code is @"I-COR000001". + * See go/firebase-log-proposal for details. + * (required) message string which can be a format string. + * (optional) the list of arguments to substitute into the format string. + * Example usage: + * FirebaseLogError(kFirebaseLoggerCore, @"I-COR000001", @"Configuration of %@ failed.", app.name); + */ +extern void FIRLogError(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogWarning(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogNotice(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogInfo(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); +extern void FIRLogDebug(FIRLoggerService service, NSString *messageCode, NSString *message, ...) + NS_FORMAT_FUNCTION(3, 4); + +// TODO: Come up with a better logging scheme for Swift. +/** + * Logs a debug message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogDebugSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +/** + * Logs a warning message to the Xcode console and the device log. If running from AppStore, will + * not log any messages with a level higher than FirebaseLoggerLevelNotice to avoid log spamming. + * This function is intended to be used by Swift clients that do not support variadic parameters. + * + * @param service The service name of type `FirebaseLoggerService`. + * @param messageCode The mesage code. starting with "I-" which means iOS, followed by a capitalized + * three-character service identifier and a six digit integer message ID that is unique within the + * service. An example of the message code is @"I-COR000001". + * @param message The message string. + */ +extern void FIRLogWarningSwift(FIRLoggerService service, NSString *messageCode, NSString *message); + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +NS_SWIFT_NAME(FirebaseLogger) +@interface FIRLoggerWrapper : NSObject + +/// Logs a given message at a given log level. This API is effectively a wrapper for the +/// `FIRLogBasic` C API. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + withService:(FIRLoggerService)service + withCode:(NSString *)messageCode + withMessage:(NSString *)message + withArgs:(va_list)args; + +/// Logs a given message at a given log level. +/// +/// - Parameters: +/// - level: The log level to use (defined by `FirebaseLoggerLevel` enum values). +/// - service: The service name of type `FirebaseLoggerService`. +/// - code: The mesage code. Starting with "I-" which means iOS, followed by a capitalized +/// three-character service identifier and a six digit integer message ID that is unique within +/// the service. An example of the message code is @"I-COR000001". +/// - message: Formatted string to be used as the log's message. +/// - args: Arguments list obtained from calling `va_start`, used when message is a format string. ++ (void)logWithLevel:(FIRLoggerLevel)level + service:(FIRLoggerService)service + code:(NSString *)code + message:(NSString *)message + __attribute__((__swift_name__("log(level:service:code:message:)"))); + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h new file mode 100644 index 0000000..93a03d6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FIROptionsInternal.h @@ -0,0 +1,106 @@ +/* + * Copyright 2017 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. + */ + +#import + +/** + * Keys for the strings in the plist file. + */ +extern NSString *const kFIRAPIKey; +extern NSString *const kFIRTrackingID; +extern NSString *const kFIRGoogleAppID; +extern NSString *const kFIRClientID; +extern NSString *const kFIRGCMSenderID; +extern NSString *const kFIRAndroidClientID; +extern NSString *const kFIRDatabaseURL; +extern NSString *const kFIRStorageBucket; +extern NSString *const kFIRBundleID; +extern NSString *const kFIRProjectID; + +/** + * Keys for the plist file name + */ +extern NSString *const kServiceInfoFileName; + +extern NSString *const kServiceInfoFileType; + +/** + * This header file exposes the initialization of FirebaseOptions to internal use. + */ +@interface FIROptions () + +/** + * `resetDefaultOptions` and `initInternalWithOptionsDictionary` are exposed only for unit tests. + */ ++ (void)resetDefaultOptions; + +/** + * Initializes the options with dictionary. The above strings are the keys of the dictionary. + * This is the designated initializer. + */ +- (instancetype)initInternalWithOptionsDictionary:(NSDictionary *)serviceInfoDictionary + NS_DESIGNATED_INITIALIZER; + +/** + * `defaultOptions` and `defaultOptionsDictionary` are exposed in order to be used in FirebaseApp + * and other first party services. + */ ++ (FIROptions *)defaultOptions; + ++ (NSDictionary *)defaultOptionsDictionary; + +/** + * Indicates whether or not Analytics collection was explicitly enabled via a plist flag or at + * runtime. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionExplicitlySet; + +/** + * Whether or not Analytics Collection was enabled. Analytics Collection is enabled unless + * explicitly disabled in GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionEnabled; + +/** + * Whether or not Analytics Collection was completely disabled. If true, then + * isAnalyticsCollectionEnabled will be false. + */ +@property(nonatomic, readonly) BOOL isAnalyticsCollectionDeactivated; + +/** + * The version ID of the client library, e.g. @"1100000". + */ +@property(nonatomic, readonly, copy) NSString *libraryVersionID; + +/** + * The flag indicating whether this object was constructed with the values in the default plist + * file. + */ +@property(nonatomic) BOOL usingOptionsFromDefaultPlist; + +/** + * Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in + * GoogleService-Info.plist. + */ +@property(nonatomic, readonly) BOOL isMeasurementEnabled; + +/** + * Whether or not editing is locked. This should occur after `FirebaseOptions` has been set on a + * `FirebaseApp`. + */ +@property(nonatomic, getter=isEditingLocked) BOOL editingLocked; + +@end diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h new file mode 100644 index 0000000..64ea389 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreExtension-umbrella.h @@ -0,0 +1,26 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FirebaseCoreInternal.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" + +FOUNDATION_EXPORT double FirebaseCoreExtensionVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreExtensionVersionString[]; + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h new file mode 100644 index 0000000..0669ae6 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Headers/FirebaseCoreInternal.h @@ -0,0 +1,25 @@ +// Copyright 2020 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 FirebaseCore; + +#import "FIRAppInternal.h" +#import "FIRComponent.h" +#import "FIRComponentContainer.h" +#import "FIRComponentType.h" +#import "FIRDependency.h" +#import "FIRHeartbeatLogger.h" +#import "FIRLibrary.h" +#import "FIRLogger.h" +#import "FIROptionsInternal.h" diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Info.plist b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Info.plist new file mode 100644 index 0000000..55df497 --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Modules/module.modulemap new file mode 100644 index 0000000..934487e --- /dev/null +++ b/ios/shared/FirebaseCoreExtension.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreExtension.framework/Modules/module.modulemap @@ -0,0 +1,9 @@ +framework module FirebaseCoreExtension { +umbrella header "FirebaseCoreExtension-umbrella.h" +export * +module * { export * } + link framework "Foundation" + link framework "Security" + link framework "UIKit" + link "z" +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/Info.plist b/ios/shared/FirebaseCoreInternal.xcframework/Info.plist new file mode 100644 index 0000000..a61af2c --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/Info.plist @@ -0,0 +1,95 @@ + + ++ +CFBundleExecutable +FirebaseCoreExtension +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreExtension +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreExtension +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 ++ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/FirebaseCoreInternal b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/FirebaseCoreInternal new file mode 100644 index 0000000..b6fce12 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/FirebaseCoreInternal differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h new file mode 100644 index 0000000..8750a58 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h @@ -0,0 +1,271 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#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(+ +AvailableLibraries ++ ++ +LibraryIdentifier +macos-arm64_x86_64 +LibraryPath +FirebaseCoreInternal.framework +SupportedArchitectures ++ +arm64 +x86_64 +SupportedPlatform +macos ++ +LibraryIdentifier +ios-arm64_x86_64-maccatalyst +LibraryPath +FirebaseCoreInternal.framework +SupportedArchitectures ++ +arm64 +x86_64 +SupportedPlatform +ios +SupportedPlatformVariant +maccatalyst ++ +LibraryIdentifier +tvos-arm64 +LibraryPath +FirebaseCoreInternal.framework +SupportedArchitectures ++ +arm64 +SupportedPlatform +tvos ++ +LibraryIdentifier +ios-arm64_x86_64-simulator +LibraryPath +FirebaseCoreInternal.framework +SupportedArchitectures ++ +arm64 +x86_64 +SupportedPlatform +ios +SupportedPlatformVariant +simulator ++ +LibraryIdentifier +ios-arm64 +LibraryPath +FirebaseCoreInternal.framework +SupportedArchitectures ++ +arm64 +SupportedPlatform +ios ++ +LibraryIdentifier +tvos-arm64_x86_64-simulator +LibraryPath +FirebaseCoreInternal.framework +SupportedArchitectures ++ +arm64 +x86_64 +SupportedPlatform +tvos +SupportedPlatformVariant +simulator +CFBundlePackageType +XFWK +XCFrameworkFormatVersion +1.0 +) +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#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(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#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" + +#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 + + +@class NSString; +@class FIRHeartbeatsPayload; + +/// An object that provides API to log and flush heartbeats from a synchronized storage container. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") +@interface FIRHeartbeatController : NSObject +/// Public initializer. +/// \param id The id
to associate this controller’s heartbeat storage with. +/// +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +/// Asynchronously logs a new heartbeat, if needed. +/// note: +/// This API is thread-safe. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. +/// +- (void)log:(NSString * _Nonnull)agent; +/// Synchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +/// Synchronously flushes the heartbeat for today. +/// If no heartbeat was logged today, the returned payload is empty. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat. +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A model object representing a payload of heartbeat data intended for sending in network requests. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") +@interface FIRHeartbeatsPayload : NSObject +/// Returns a processed payload string intended for use in a HTTP header. +/// +/// returns: +/// A string value from the heartbeats payload. +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value indicating whether the payload is empty. +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h similarity index 53% rename from ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h rename to ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h index a27569f..559d38b 100644 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_armv7/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h @@ -10,8 +10,7 @@ #endif #endif -#import "FIRCoreDiagnostics.h" -FOUNDATION_EXPORT double FirebaseCoreDiagnosticsVersionNumber; -FOUNDATION_EXPORT const unsigned char FirebaseCoreDiagnosticsVersionString[]; +FOUNDATION_EXPORT double FirebaseCoreInternalVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreInternalVersionString[]; diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Info.plist b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Info.plist new file mode 100644 index 0000000..53d8a32 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Info.plist @@ -0,0 +1,20 @@ + + ++ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo new file mode 100644 index 0000000..8ca3216 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios.swiftdoc new file mode 100644 index 0000000..96e5c1e Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios.swiftinterface new file mode 100644 index 0000000..f0bece4 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/module.modulemap new file mode 100644 index 0000000..c45ad76 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64/FirebaseCoreInternal.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FirebaseCoreInternal { + umbrella header "FirebaseCoreInternal-umbrella.h" + + export * + module * { export * } +} + +module FirebaseCoreInternal.Swift { + header "FirebaseCoreInternal-Swift.h" + requires objc +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/FirebaseCoreInternal b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/FirebaseCoreInternal new file mode 100644 index 0000000..3eb50e2 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/FirebaseCoreInternal differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h new file mode 100644 index 0000000..8750a58 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h @@ -0,0 +1,271 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#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(+ +CFBundleExecutable +FirebaseCoreInternal +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreInternal +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreInternal +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 +) +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#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(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#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" + +#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 + + +@class NSString; +@class FIRHeartbeatsPayload; + +/// An object that provides API to log and flush heartbeats from a synchronized storage container. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") +@interface FIRHeartbeatController : NSObject +/// Public initializer. +/// \param id The id
to associate this controller’s heartbeat storage with. +/// +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +/// Asynchronously logs a new heartbeat, if needed. +/// note: +/// This API is thread-safe. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. +/// +- (void)log:(NSString * _Nonnull)agent; +/// Synchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +/// Synchronously flushes the heartbeat for today. +/// If no heartbeat was logged today, the returned payload is empty. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat. +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A model object representing a payload of heartbeat data intended for sending in network requests. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") +@interface FIRHeartbeatsPayload : NSObject +/// Returns a processed payload string intended for use in a HTTP header. +/// +/// returns: +/// A string value from the heartbeats payload. +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value indicating whether the payload is empty. +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h similarity index 53% rename from ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h rename to ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h index a27569f..559d38b 100644 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h @@ -10,8 +10,7 @@ #endif #endif -#import "FIRCoreDiagnostics.h" -FOUNDATION_EXPORT double FirebaseCoreDiagnosticsVersionNumber; -FOUNDATION_EXPORT const unsigned char FirebaseCoreDiagnosticsVersionString[]; +FOUNDATION_EXPORT double FirebaseCoreInternalVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreInternalVersionString[]; diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Info.plist b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Info.plist new file mode 100644 index 0000000..53d8a32 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Info.plist @@ -0,0 +1,20 @@ + + ++ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios-macabi.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios-macabi.swiftsourceinfo new file mode 100644 index 0000000..8a7570c Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios-macabi.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-ios-macabi.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-ios-macabi.swiftsourceinfo new file mode 100644 index 0000000..2eab0c8 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-ios-macabi.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-macabi.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-macabi.swiftdoc new file mode 100644 index 0000000..571ed57 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-macabi.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-macabi.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-macabi.swiftinterface new file mode 100644 index 0000000..6a922a5 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-macabi.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-macabi.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-macabi.swiftdoc new file mode 100644 index 0000000..159b0ad Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-macabi.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-macabi.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-macabi.swiftinterface new file mode 100644 index 0000000..3fdb80d --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-macabi.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/module.modulemap new file mode 100644 index 0000000..c45ad76 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreInternal.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FirebaseCoreInternal { + umbrella header "FirebaseCoreInternal-umbrella.h" + + export * + module * { export * } +} + +module FirebaseCoreInternal.Swift { + header "FirebaseCoreInternal-Swift.h" + requires objc +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/FirebaseCoreInternal b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/FirebaseCoreInternal new file mode 100644 index 0000000..2969af5 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/FirebaseCoreInternal differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h new file mode 100644 index 0000000..8750a58 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h @@ -0,0 +1,271 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#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(+ +CFBundleExecutable +FirebaseCoreInternal +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreInternal +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreInternal +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 +) +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#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(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#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" + +#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 + + +@class NSString; +@class FIRHeartbeatsPayload; + +/// An object that provides API to log and flush heartbeats from a synchronized storage container. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") +@interface FIRHeartbeatController : NSObject +/// Public initializer. +/// \param id The id
to associate this controller’s heartbeat storage with. +/// +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +/// Asynchronously logs a new heartbeat, if needed. +/// note: +/// This API is thread-safe. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. +/// +- (void)log:(NSString * _Nonnull)agent; +/// Synchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +/// Synchronously flushes the heartbeat for today. +/// If no heartbeat was logged today, the returned payload is empty. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat. +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A model object representing a payload of heartbeat data intended for sending in network requests. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") +@interface FIRHeartbeatsPayload : NSObject +/// Returns a processed payload string intended for use in a HTTP header. +/// +/// returns: +/// A string value from the heartbeats payload. +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value indicating whether the payload is empty. +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h similarity index 53% rename from ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h rename to ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h index a27569f..559d38b 100644 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h @@ -10,8 +10,7 @@ #endif #endif -#import "FIRCoreDiagnostics.h" -FOUNDATION_EXPORT double FirebaseCoreDiagnosticsVersionNumber; -FOUNDATION_EXPORT const unsigned char FirebaseCoreDiagnosticsVersionString[]; +FOUNDATION_EXPORT double FirebaseCoreInternalVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreInternalVersionString[]; diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Info.plist b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Info.plist new file mode 100644 index 0000000..53d8a32 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Info.plist @@ -0,0 +1,20 @@ + + ++ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo new file mode 100644 index 0000000..fca48e2 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo new file mode 100644 index 0000000..f7f82b6 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-simulator.swiftdoc new file mode 100644 index 0000000..78d4b9f Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-simulator.swiftinterface new file mode 100644 index 0000000..f7396ee --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios10.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-simulator.swiftdoc new file mode 100644 index 0000000..a0e64c3 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface new file mode 100644 index 0000000..a443a5a --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-ios10.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/module.modulemap new file mode 100644 index 0000000..c45ad76 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/ios-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FirebaseCoreInternal { + umbrella header "FirebaseCoreInternal-umbrella.h" + + export * + module * { export * } +} + +module FirebaseCoreInternal.Swift { + header "FirebaseCoreInternal-Swift.h" + requires objc +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/FirebaseCoreInternal b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/FirebaseCoreInternal new file mode 100644 index 0000000..08fe62f Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/FirebaseCoreInternal differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h new file mode 100644 index 0000000..eb2a51b --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h @@ -0,0 +1,548 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#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(+ +CFBundleExecutable +FirebaseCoreInternal +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreInternal +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreInternal +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 +) +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#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(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#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" + +#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 + + +@class NSString; +@class FIRHeartbeatsPayload; + +/// An object that provides API to log and flush heartbeats from a synchronized storage container. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") +@interface FIRHeartbeatController : NSObject +/// Public initializer. +/// \param id The id
to associate this controller’s heartbeat storage with. +/// +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +/// Asynchronously logs a new heartbeat, if needed. +/// note: +/// This API is thread-safe. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. +/// +- (void)log:(NSString * _Nonnull)agent; +/// Synchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +/// Synchronously flushes the heartbeat for today. +/// If no heartbeat was logged today, the returned payload is empty. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat. +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A model object representing a payload of heartbeat data intended for sending in network requests. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") +@interface FIRHeartbeatsPayload : NSObject +/// Returns a processed payload string intended for use in a HTTP header. +/// +/// returns: +/// A string value from the heartbeats payload. +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value indicating whether the payload is empty. +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#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" +#include +#include +#include +#include + +#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(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#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" + +#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 + + +@class NSString; +@class FIRHeartbeatsPayload; + +/// An object that provides API to log and flush heartbeats from a synchronized storage container. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") +@interface FIRHeartbeatController : NSObject +/// Public initializer. +/// \param id The id
to associate this controller’s heartbeat storage with. +/// +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +/// Asynchronously logs a new heartbeat, if needed. +/// note: +/// This API is thread-safe. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. +/// +- (void)log:(NSString * _Nonnull)agent; +/// Synchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +/// Synchronously flushes the heartbeat for today. +/// If no heartbeat was logged today, the returned payload is empty. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat. +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A model object representing a payload of heartbeat data intended for sending in network requests. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") +@interface FIRHeartbeatsPayload : NSObject +/// Returns a processed payload string intended for use in a HTTP header. +/// +/// returns: +/// A string value from the heartbeats payload. +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value indicating whether the payload is empty. +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h similarity index 53% rename from ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h rename to ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h index add21ae..b162b2b 100644 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/macos-arm64_x86_64/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h +++ b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h @@ -10,8 +10,7 @@ #endif #endif -#import "FIRCoreDiagnostics.h" -FOUNDATION_EXPORT double FirebaseCoreDiagnosticsVersionNumber; -FOUNDATION_EXPORT const unsigned char FirebaseCoreDiagnosticsVersionString[]; +FOUNDATION_EXPORT double FirebaseCoreInternalVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreInternalVersionString[]; diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Info.plist b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Info.plist new file mode 100644 index 0000000..53d8a32 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Info.plist @@ -0,0 +1,20 @@ + + ++ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo new file mode 100644 index 0000000..fe029f0 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo new file mode 100644 index 0000000..01517c3 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-macos.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-macos.swiftdoc new file mode 100644 index 0000000..c52a45c Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-macos.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-macos.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-macos.swiftinterface new file mode 100644 index 0000000..56a3234 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-macos.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-macos10.13 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-macos.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-macos.swiftdoc new file mode 100644 index 0000000..e6298b9 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-macos.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-macos.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-macos.swiftinterface new file mode 100644 index 0000000..735cea2 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-macos.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-macos10.13 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/module.modulemap new file mode 100644 index 0000000..c45ad76 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/macos-arm64_x86_64/FirebaseCoreInternal.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FirebaseCoreInternal { + umbrella header "FirebaseCoreInternal-umbrella.h" + + export * + module * { export * } +} + +module FirebaseCoreInternal.Swift { + header "FirebaseCoreInternal-Swift.h" + requires objc +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/FirebaseCoreInternal b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/FirebaseCoreInternal new file mode 100644 index 0000000..2a92faf Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/FirebaseCoreInternal differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h new file mode 100644 index 0000000..8750a58 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h @@ -0,0 +1,271 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#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(+ +CFBundleExecutable +FirebaseCoreInternal +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreInternal +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreInternal +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 +) +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#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(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#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" + +#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 + + +@class NSString; +@class FIRHeartbeatsPayload; + +/// An object that provides API to log and flush heartbeats from a synchronized storage container. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") +@interface FIRHeartbeatController : NSObject +/// Public initializer. +/// \param id The id
to associate this controller’s heartbeat storage with. +/// +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +/// Asynchronously logs a new heartbeat, if needed. +/// note: +/// This API is thread-safe. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. +/// +- (void)log:(NSString * _Nonnull)agent; +/// Synchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +/// Synchronously flushes the heartbeat for today. +/// If no heartbeat was logged today, the returned payload is empty. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat. +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A model object representing a payload of heartbeat data intended for sending in network requests. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") +@interface FIRHeartbeatsPayload : NSObject +/// Returns a processed payload string intended for use in a HTTP header. +/// +/// returns: +/// A string value from the heartbeats payload. +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value indicating whether the payload is empty. +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h similarity index 53% rename from ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h rename to ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h index a27569f..559d38b 100644 --- a/ios/shared/FirebaseCoreDiagnostics.xcframework/tvos-arm64/FirebaseCoreDiagnostics.framework/Headers/FirebaseCoreDiagnostics-umbrella.h +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h @@ -10,8 +10,7 @@ #endif #endif -#import "FIRCoreDiagnostics.h" -FOUNDATION_EXPORT double FirebaseCoreDiagnosticsVersionNumber; -FOUNDATION_EXPORT const unsigned char FirebaseCoreDiagnosticsVersionString[]; +FOUNDATION_EXPORT double FirebaseCoreInternalVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreInternalVersionString[]; diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Info.plist b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Info.plist new file mode 100644 index 0000000..53d8a32 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Info.plist @@ -0,0 +1,20 @@ + + ++ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo new file mode 100644 index 0000000..c7fd229 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos.swiftdoc new file mode 100644 index 0000000..88c00bb Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos.swiftinterface new file mode 100644 index 0000000..fe89947 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-tvos12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/module.modulemap new file mode 100644 index 0000000..c45ad76 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64/FirebaseCoreInternal.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FirebaseCoreInternal { + umbrella header "FirebaseCoreInternal-umbrella.h" + + export * + module * { export * } +} + +module FirebaseCoreInternal.Swift { + header "FirebaseCoreInternal-Swift.h" + requires objc +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/FirebaseCoreInternal b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/FirebaseCoreInternal new file mode 100644 index 0000000..17b6f41 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/FirebaseCoreInternal differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h new file mode 100644 index 0000000..8750a58 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-Swift.h @@ -0,0 +1,271 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#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(+ +CFBundleExecutable +FirebaseCoreInternal +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreInternal +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreInternal +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 +) +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#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(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import ObjectiveC; +#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" + +#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 + + +@class NSString; +@class FIRHeartbeatsPayload; + +/// An object that provides API to log and flush heartbeats from a synchronized storage container. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") +@interface FIRHeartbeatController : NSObject +/// Public initializer. +/// \param id The id
to associate this controller’s heartbeat storage with. +/// +- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; +/// Asynchronously logs a new heartbeat, if needed. +/// note: +/// This API is thread-safe. +/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. +/// +- (void)log:(NSString * _Nonnull)agent; +/// Synchronously flushes heartbeats from storage into a heartbeats payload. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat(s). +- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; +/// Synchronously flushes the heartbeat for today. +/// If no heartbeat was logged today, the returned payload is empty. +/// note: +/// This API is thread-safe. +/// +/// returns: +/// A heartbeats payload for the flushed heartbeat. +- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +/// A model object representing a payload of heartbeat data intended for sending in network requests. +SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") +@interface FIRHeartbeatsPayload : NSObject +/// Returns a processed payload string intended for use in a HTTP header. +/// +/// returns: +/// A string value from the heartbeats payload. +- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value indicating whether the payload is empty. +@property (nonatomic, readonly) BOOL isEmpty; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h new file mode 100644 index 0000000..559d38b --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Headers/FirebaseCoreInternal-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import+#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double FirebaseCoreInternalVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseCoreInternalVersionString[]; + diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Info.plist b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Info.plist new file mode 100644 index 0000000..53d8a32 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Info.plist @@ -0,0 +1,20 @@ + + + + diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo new file mode 100644 index 0000000..fabf90b Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo new file mode 100644 index 0000000..4ec4ac1 Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos-simulator.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos-simulator.swiftdoc new file mode 100644 index 0000000..8f2e1ce Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos-simulator.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos-simulator.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos-simulator.swiftinterface new file mode 100644 index 0000000..5a28652 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/arm64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc new file mode 100644 index 0000000..bfdbdcf Binary files /dev/null and b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc differ diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface new file mode 100644 index 0000000..eecd4bd --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/FirebaseCoreInternal.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,57 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FirebaseCoreInternal +@_exported import FirebaseCoreInternal +import Foundation +import GoogleUtilities +import Swift +import _Concurrency +@objc(FIRHeartbeatController) @objcMembers public class _ObjC_HeartbeatController : ObjectiveC.NSObject { + @objc public init(id: Swift.String) + @objc public func log(_ agent: Swift.String) + @objc public func flush() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc public func flushHeartbeatFromToday() -> FirebaseCoreInternal._ObjC_HeartbeatsPayload + @objc deinit +} +@objc(FIRHeartbeatsPayload) public class _ObjC_HeartbeatsPayload : ObjectiveC.NSObject, FirebaseCoreInternal.HTTPHeaderRepresentable { + public init(_ heartbeatsPayload: FirebaseCoreInternal.HeartbeatsPayload) + @objc public func headerValue() -> Swift.String + @objc public var isEmpty: Swift.Bool { + @objc get + } + @objc deinit +} +@_hasMissingDesignatedInitializers final public class HeartbeatController { + convenience public init(id: Swift.String) + final public func log(_ agent: Swift.String) + @discardableResult + final public func flush() -> FirebaseCoreInternal.HeartbeatsPayload + @discardableResult + final public func flushHeartbeatFromToday() -> FirebaseCoreInternal.HeartbeatsPayload + @objc deinit +} +public protocol HTTPHeaderRepresentable { + func headerValue() -> Swift.String +} +public struct HeartbeatsPayload : Swift.Codable { + public var isEmpty: Swift.Bool { + get + } + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} +extension FirebaseCoreInternal.HeartbeatsPayload : FirebaseCoreInternal.HTTPHeaderRepresentable { + public func headerValue() -> Swift.String +} +extension FirebaseCoreInternal.HeartbeatsPayload { + public static let dateFormatter: Foundation.DateFormatter +} +extension FirebaseCoreInternal.HeartbeatsPayload : Swift.Equatable { + public static func == (a: FirebaseCoreInternal.HeartbeatsPayload, b: FirebaseCoreInternal.HeartbeatsPayload) -> Swift.Bool +} +extension Foundation.Data { + public func base64URLEncodedString(options: Foundation.Data.Base64EncodingOptions = []) -> Swift.String + public init?(base64URLEncoded base64URLString: Swift.String, options: Foundation.Data.Base64DecodingOptions = []) + public func zipped() throws -> Foundation.Data + public func unzipped() throws -> Foundation.Data +} diff --git a/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/module.modulemap b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/module.modulemap new file mode 100644 index 0000000..c45ad76 --- /dev/null +++ b/ios/shared/FirebaseCoreInternal.xcframework/tvos-arm64_x86_64-simulator/FirebaseCoreInternal.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FirebaseCoreInternal { + umbrella header "FirebaseCoreInternal-umbrella.h" + + export * + module * { export * } +} + +module FirebaseCoreInternal.Swift { + header "FirebaseCoreInternal-Swift.h" + requires objc +} diff --git a/ios/shared/FirebaseInstallations.xcframework/Info.plist b/ios/shared/FirebaseInstallations.xcframework/Info.plist index d16be4e..b192a3e 100644 --- a/ios/shared/FirebaseInstallations.xcframework/Info.plist +++ b/ios/shared/FirebaseInstallations.xcframework/Info.plist @@ -6,7 +6,7 @@+ +CFBundleExecutable +FirebaseCoreInternal +CFBundleIdentifier +com.firebase.Firebase-FirebaseCoreInternal +CFBundleInfoDictionaryVersion +6.0 +CFBundleName +FirebaseCoreInternal +CFBundlePackageType +FMWK +CFBundleVersion +10.12.0 +DTSDKName +iphonesimulator11.2 +LibraryIdentifier -macos-arm64_x86_64 +tvos-arm64_x86_64-simulator LibraryPath FirebaseInstallations.framework SupportedArchitectures @@ -15,38 +15,40 @@x86_64 SupportedPlatform -macos +tvos +SupportedPlatformVariant +simulator LibraryIdentifier -tvos-arm64 +ios-arm64_x86_64-maccatalyst LibraryPath FirebaseInstallations.framework SupportedArchitectures arm64 +x86_64 SupportedPlatform -tvos +ios +SupportedPlatformVariant +maccatalyst LibraryIdentifier -tvos-arm64_x86_64-simulator +ios-arm64 LibraryPath FirebaseInstallations.framework SupportedArchitectures arm64 -x86_64 SupportedPlatform -tvos -SupportedPlatformVariant -simulator +ios LibraryIdentifier -ios-arm64_x86_64-maccatalyst +macos-arm64_x86_64 LibraryPath FirebaseInstallations.framework SupportedArchitectures @@ -55,38 +57,34 @@x86_64 SupportedPlatform -ios -SupportedPlatformVariant -maccatalyst +macos LibraryIdentifier -ios-arm64_armv7 +ios-arm64_x86_64-simulator LibraryPath FirebaseInstallations.framework SupportedArchitectures arm64 -armv7 +x86_64 SupportedPlatform ios +SupportedPlatformVariant +simulator LibraryIdentifier -ios-arm64_i386_x86_64-simulator +tvos-arm64 LibraryPath FirebaseInstallations.framework SupportedArchitectures arm64 -i386 -x86_64 SupportedPlatform -ios -SupportedPlatformVariant -simulator +tvos CFBundlePackageType diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/FirebaseInstallations b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/FirebaseInstallations new file mode 100644 index 0000000..a6ae462 Binary files /dev/null and b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/FirebaseInstallations differ diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FIRInstallations.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h similarity index 74% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FIRInstallations.h rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h index 9ffe9ee..1811d2b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FIRInstallations.h +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN // clang-format12 merges the next two lines. FOUNDATION_EXPORT const NSNotificationName FIRInstallationIDDidChangeNotification NS_SWIFT_NAME(InstallationIDDidChange); -/** `userInfo` key for the `FirebaseApp.name` in `FIRInstallationIDDidChangeNotification`. */ +/** `userInfo` key for the `FirebaseApp.name` in `InstallationIDDidChangeNotification`. */ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppNameKey NS_SWIFT_NAME(InstallationIDDidChangeAppNameKey); // clang-format on @@ -38,7 +38,7 @@ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppName */ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsIDHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * An authorization token handler block. @@ -48,7 +48,7 @@ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, */ typedef void (^FIRInstallationsTokenHandler)( FIRInstallationsAuthTokenResult *__nullable tokenResult, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsTokenHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The class provides API for Firebase Installations. @@ -64,7 +64,7 @@ NS_SWIFT_NAME(Installations) /** * Returns a default instance of `Installations`. - * @returns An instance of `Installations` for `FirebaseApp.defaultApp(). + * @return An instance of `Installations` for `FirebaseApp.defaultApp(). * @throw Throws an exception if the default app is not configured yet or required `FirebaseApp` * options are missing. */ @@ -73,45 +73,45 @@ NS_SWIFT_NAME(Installations) /** * Returns an instance of `Installations` for an application. * @param application A configured `FirebaseApp` instance. - * @returns An instance of `Installations` corresponding to the passed application. + * @return An instance of `Installations` corresponding to the passed application. * @throw Throws an exception if required `FirebaseApp` options are missing. */ -+ (FIRInstallations *)installationsWithApp:(FIRApp *)application - NS_SWIFT_NAME(installations(app:)); ++ (FIRInstallations *)installationsWithApp:(FIRApp *)application NS_SWIFT_NAME(installations(app:)); /** * The method creates or retrieves an installation ID. The installation ID is a stable identifier * that uniquely identifies the app instance. NOTE: If the application already has an existing * FirebaseInstanceID then the InstanceID identifier will be used. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsIDHandler` for additional details. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)installationIDWithCompletion:(FIRInstallationsIDHandler)completion; +- (void)installationIDWithCompletion:(void (^)(NSString *__nullable identifier, + NSError *__nullable error))completion; /** * Retrieves (locally if it exists or from the server) a valid installation auth token. An existing * token may be invalidated or expired, so it is recommended to fetch the installation auth token - * before each server request. The method does the same as `Installations.authTokenForcingRefresh(:, - * completion:)` with forcing refresh `NO`. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsTokenHandler` for additional details. + * before each server request. The method does the same as + * `Installations.authToken(forcingRefresh:completion:)` with forcing refresh `false`. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)authTokenWithCompletion:(FIRInstallationsTokenHandler)completion; +- (void)authTokenWithCompletion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Retrieves (locally or from the server depending on `forceRefresh` value) a valid installation * auth token. An existing token may be invalidated or expire, so it is recommended to fetch the * installation auth token before each server request. This method should be used with `forceRefresh - * == YES` when e.g. a request with the previously fetched installation auth token failed with "Not + * == true` when e.g. a request with the previously fetched installation auth token failed with "Not * Authorized" error. - * @param forceRefresh If `YES` then the locally cached installation auth token will be ignored and - * a new one will be requested from the server. If `NO`, then the locally cached installation auth - * token will be returned if exists and has not expired yet. + * @param forceRefresh If `true` then the locally cached installation auth token will be ignored and + * a new one will be requested from the server. If `false`, then the locally cached installation + * auth token will be returned if exists and has not expired yet. * @param completion A completion handler which is invoked when the operation completes. See * `InstallationsTokenHandler` for additional details. */ - (void)authTokenForcingRefresh:(BOOL)forceRefresh - completion:(FIRInstallationsTokenHandler)completion; + completion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Deletes all the installation data including the unique identifier, auth tokens and diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FIRInstallationsAuthTokenResult.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsAuthTokenResult.h similarity index 100% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FIRInstallationsAuthTokenResult.h rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsAuthTokenResult.h diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h new file mode 100644 index 0000000..939ca0a --- /dev/null +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h @@ -0,0 +1,35 @@ +/* + * 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. + */ + +#import+ +extern NSString *const kFirebaseInstallationsErrorDomain NS_SWIFT_NAME(InstallationsErrorDomain); + +typedef NS_ERROR_ENUM(kFirebaseInstallationsErrorDomain, FIRInstallationsErrorCode){ + /** Unknown error. See `userInfo` for details. */ + FIRInstallationsErrorCodeUnknown = 0, + + /** Keychain error. See `userInfo` for details. */ + FIRInstallationsErrorCodeKeychain = 1, + + /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ + FIRInstallationsErrorCodeServerUnreachable = 2, + + /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. + */ + FIRInstallationsErrorCodeInvalidConfiguration = 3, + +} NS_SWIFT_NAME(InstallationsErrorCode); diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h new file mode 100644 index 0000000..431ef45 --- /dev/null +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h @@ -0,0 +1,20 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseInstallations.h" +#import "FIRInstallations.h" +#import "FIRInstallationsAuthTokenResult.h" +#import "FIRInstallationsErrors.h" + +FOUNDATION_EXPORT double FirebaseInstallationsVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseInstallationsVersionString[]; + diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FirebaseInstallations.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FirebaseInstallations.h similarity index 100% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FirebaseInstallations.h rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Headers/FirebaseInstallations.h diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Info.plist b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Info.plist similarity index 96% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Info.plist rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Info.plist index 3159bd3..bd9050b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Info.plist +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Modules/module.modulemap b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Modules/module.modulemap similarity index 59% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Modules/module.modulemap rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Modules/module.modulemap index 222f6b2..be6b28f 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64/FirebaseInstallations.framework/Modules/module.modulemap @@ -1,11 +1,9 @@ framework module FirebaseInstallations { -umbrella header "FirebaseInstallations.h" +umbrella header "FirebaseInstallations-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/FirebaseInstallations b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/FirebaseInstallations deleted file mode 100644 index 9868c28..0000000 Binary files a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/FirebaseInstallations and /dev/null differ diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h deleted file mode 100644 index d0c3b99..0000000 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_armv7/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h +++ /dev/null @@ -1,34 +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. - */ - -#import- -extern NSString *const kFirebaseInstallationsErrorDomain; - -typedef NS_ENUM(NSUInteger, FIRInstallationsErrorCode) { - /** Unknown error. See `userInfo` for details. */ - FIRInstallationsErrorCodeUnknown = 0, - - /** Keychain error. See `userInfo` for details. */ - FIRInstallationsErrorCodeKeychain = 1, - - /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ - FIRInstallationsErrorCodeServerUnreachable = 2, - - /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. */ - FIRInstallationsErrorCodeInvalidConfiguration = 3, - -} NS_SWIFT_NAME(InstallationsErrorCode); diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations deleted file mode 100644 index dd41b6c..0000000 Binary files a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations and /dev/null differ diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h deleted file mode 100644 index d0c3b99..0000000 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h +++ /dev/null @@ -1,34 +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. - */ - -#import - -extern NSString *const kFirebaseInstallationsErrorDomain; - -typedef NS_ENUM(NSUInteger, FIRInstallationsErrorCode) { - /** Unknown error. See `userInfo` for details. */ - FIRInstallationsErrorCodeUnknown = 0, - - /** Keychain error. See `userInfo` for details. */ - FIRInstallationsErrorCodeKeychain = 1, - - /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ - FIRInstallationsErrorCodeServerUnreachable = 2, - - /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. */ - FIRInstallationsErrorCodeInvalidConfiguration = 3, - -} NS_SWIFT_NAME(InstallationsErrorCode); diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/FirebaseInstallations b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/FirebaseInstallations index 50da784..8baf7f4 100644 Binary files a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/FirebaseInstallations and b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/FirebaseInstallations differ diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FIRInstallations.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FIRInstallations.h index 9ffe9ee..1811d2b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FIRInstallations.h +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FIRInstallations.h @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN // clang-format12 merges the next two lines. FOUNDATION_EXPORT const NSNotificationName FIRInstallationIDDidChangeNotification NS_SWIFT_NAME(InstallationIDDidChange); -/** `userInfo` key for the `FirebaseApp.name` in `FIRInstallationIDDidChangeNotification`. */ +/** `userInfo` key for the `FirebaseApp.name` in `InstallationIDDidChangeNotification`. */ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppNameKey NS_SWIFT_NAME(InstallationIDDidChangeAppNameKey); // clang-format on @@ -38,7 +38,7 @@ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppName */ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsIDHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * An authorization token handler block. @@ -48,7 +48,7 @@ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, */ typedef void (^FIRInstallationsTokenHandler)( FIRInstallationsAuthTokenResult *__nullable tokenResult, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsTokenHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The class provides API for Firebase Installations. @@ -64,7 +64,7 @@ NS_SWIFT_NAME(Installations) /** * Returns a default instance of `Installations`. - * @returns An instance of `Installations` for `FirebaseApp.defaultApp(). + * @return An instance of `Installations` for `FirebaseApp.defaultApp(). * @throw Throws an exception if the default app is not configured yet or required `FirebaseApp` * options are missing. */ @@ -73,45 +73,45 @@ NS_SWIFT_NAME(Installations) /** * Returns an instance of `Installations` for an application. * @param application A configured `FirebaseApp` instance. - * @returns An instance of `Installations` corresponding to the passed application. + * @return An instance of `Installations` corresponding to the passed application. * @throw Throws an exception if required `FirebaseApp` options are missing. */ -+ (FIRInstallations *)installationsWithApp:(FIRApp *)application - NS_SWIFT_NAME(installations(app:)); ++ (FIRInstallations *)installationsWithApp:(FIRApp *)application NS_SWIFT_NAME(installations(app:)); /** * The method creates or retrieves an installation ID. The installation ID is a stable identifier * that uniquely identifies the app instance. NOTE: If the application already has an existing * FirebaseInstanceID then the InstanceID identifier will be used. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsIDHandler` for additional details. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)installationIDWithCompletion:(FIRInstallationsIDHandler)completion; +- (void)installationIDWithCompletion:(void (^)(NSString *__nullable identifier, + NSError *__nullable error))completion; /** * Retrieves (locally if it exists or from the server) a valid installation auth token. An existing * token may be invalidated or expired, so it is recommended to fetch the installation auth token - * before each server request. The method does the same as `Installations.authTokenForcingRefresh(:, - * completion:)` with forcing refresh `NO`. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsTokenHandler` for additional details. + * before each server request. The method does the same as + * `Installations.authToken(forcingRefresh:completion:)` with forcing refresh `false`. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)authTokenWithCompletion:(FIRInstallationsTokenHandler)completion; +- (void)authTokenWithCompletion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Retrieves (locally or from the server depending on `forceRefresh` value) a valid installation * auth token. An existing token may be invalidated or expire, so it is recommended to fetch the * installation auth token before each server request. This method should be used with `forceRefresh - * == YES` when e.g. a request with the previously fetched installation auth token failed with "Not + * == true` when e.g. a request with the previously fetched installation auth token failed with "Not * Authorized" error. - * @param forceRefresh If `YES` then the locally cached installation auth token will be ignored and - * a new one will be requested from the server. If `NO`, then the locally cached installation auth - * token will be returned if exists and has not expired yet. + * @param forceRefresh If `true` then the locally cached installation auth token will be ignored and + * a new one will be requested from the server. If `false`, then the locally cached installation + * auth token will be returned if exists and has not expired yet. * @param completion A completion handler which is invoked when the operation completes. See * `InstallationsTokenHandler` for additional details. */ - (void)authTokenForcingRefresh:(BOOL)forceRefresh - completion:(FIRInstallationsTokenHandler)completion; + completion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Deletes all the installation data including the unique identifier, auth tokens and diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h index d0c3b99..939ca0a 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h @@ -16,19 +16,20 @@ #import -extern NSString *const kFirebaseInstallationsErrorDomain; +extern NSString *const kFirebaseInstallationsErrorDomain NS_SWIFT_NAME(InstallationsErrorDomain); -typedef NS_ENUM(NSUInteger, FIRInstallationsErrorCode) { - /** Unknown error. See `userInfo` for details. */ - FIRInstallationsErrorCodeUnknown = 0, +typedef NS_ERROR_ENUM(kFirebaseInstallationsErrorDomain, FIRInstallationsErrorCode){ + /** Unknown error. See `userInfo` for details. */ + FIRInstallationsErrorCodeUnknown = 0, - /** Keychain error. See `userInfo` for details. */ - FIRInstallationsErrorCodeKeychain = 1, + /** Keychain error. See `userInfo` for details. */ + FIRInstallationsErrorCodeKeychain = 1, - /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ - FIRInstallationsErrorCodeServerUnreachable = 2, + /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ + FIRInstallationsErrorCodeServerUnreachable = 2, - /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. */ - FIRInstallationsErrorCodeInvalidConfiguration = 3, + /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. + */ + FIRInstallationsErrorCodeInvalidConfiguration = 3, } NS_SWIFT_NAME(InstallationsErrorCode); diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h new file mode 100644 index 0000000..431ef45 --- /dev/null +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h @@ -0,0 +1,20 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseInstallations.h" +#import "FIRInstallations.h" +#import "FIRInstallationsAuthTokenResult.h" +#import "FIRInstallationsErrors.h" + +FOUNDATION_EXPORT double FirebaseInstallationsVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseInstallationsVersionString[]; + diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Info.plist b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Info.plist index 3159bd3..bd9050b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Info.plist +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Modules/module.modulemap b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Modules/module.modulemap index 222f6b2..be6b28f 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-maccatalyst/FirebaseInstallations.framework/Modules/module.modulemap @@ -1,11 +1,9 @@ framework module FirebaseInstallations { -umbrella header "FirebaseInstallations.h" +umbrella header "FirebaseInstallations-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations new file mode 100644 index 0000000..d3e6af8 Binary files /dev/null and b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations differ diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h similarity index 74% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h index 9ffe9ee..1811d2b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN // clang-format12 merges the next two lines. FOUNDATION_EXPORT const NSNotificationName FIRInstallationIDDidChangeNotification NS_SWIFT_NAME(InstallationIDDidChange); -/** `userInfo` key for the `FirebaseApp.name` in `FIRInstallationIDDidChangeNotification`. */ +/** `userInfo` key for the `FirebaseApp.name` in `InstallationIDDidChangeNotification`. */ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppNameKey NS_SWIFT_NAME(InstallationIDDidChangeAppNameKey); // clang-format on @@ -38,7 +38,7 @@ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppName */ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsIDHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * An authorization token handler block. @@ -48,7 +48,7 @@ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, */ typedef void (^FIRInstallationsTokenHandler)( FIRInstallationsAuthTokenResult *__nullable tokenResult, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsTokenHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The class provides API for Firebase Installations. @@ -64,7 +64,7 @@ NS_SWIFT_NAME(Installations) /** * Returns a default instance of `Installations`. - * @returns An instance of `Installations` for `FirebaseApp.defaultApp(). + * @return An instance of `Installations` for `FirebaseApp.defaultApp(). * @throw Throws an exception if the default app is not configured yet or required `FirebaseApp` * options are missing. */ @@ -73,45 +73,45 @@ NS_SWIFT_NAME(Installations) /** * Returns an instance of `Installations` for an application. * @param application A configured `FirebaseApp` instance. - * @returns An instance of `Installations` corresponding to the passed application. + * @return An instance of `Installations` corresponding to the passed application. * @throw Throws an exception if required `FirebaseApp` options are missing. */ -+ (FIRInstallations *)installationsWithApp:(FIRApp *)application - NS_SWIFT_NAME(installations(app:)); ++ (FIRInstallations *)installationsWithApp:(FIRApp *)application NS_SWIFT_NAME(installations(app:)); /** * The method creates or retrieves an installation ID. The installation ID is a stable identifier * that uniquely identifies the app instance. NOTE: If the application already has an existing * FirebaseInstanceID then the InstanceID identifier will be used. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsIDHandler` for additional details. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)installationIDWithCompletion:(FIRInstallationsIDHandler)completion; +- (void)installationIDWithCompletion:(void (^)(NSString *__nullable identifier, + NSError *__nullable error))completion; /** * Retrieves (locally if it exists or from the server) a valid installation auth token. An existing * token may be invalidated or expired, so it is recommended to fetch the installation auth token - * before each server request. The method does the same as `Installations.authTokenForcingRefresh(:, - * completion:)` with forcing refresh `NO`. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsTokenHandler` for additional details. + * before each server request. The method does the same as + * `Installations.authToken(forcingRefresh:completion:)` with forcing refresh `false`. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)authTokenWithCompletion:(FIRInstallationsTokenHandler)completion; +- (void)authTokenWithCompletion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Retrieves (locally or from the server depending on `forceRefresh` value) a valid installation * auth token. An existing token may be invalidated or expire, so it is recommended to fetch the * installation auth token before each server request. This method should be used with `forceRefresh - * == YES` when e.g. a request with the previously fetched installation auth token failed with "Not + * == true` when e.g. a request with the previously fetched installation auth token failed with "Not * Authorized" error. - * @param forceRefresh If `YES` then the locally cached installation auth token will be ignored and - * a new one will be requested from the server. If `NO`, then the locally cached installation auth - * token will be returned if exists and has not expired yet. + * @param forceRefresh If `true` then the locally cached installation auth token will be ignored and + * a new one will be requested from the server. If `false`, then the locally cached installation + * auth token will be returned if exists and has not expired yet. * @param completion A completion handler which is invoked when the operation completes. See * `InstallationsTokenHandler` for additional details. */ - (void)authTokenForcingRefresh:(BOOL)forceRefresh - completion:(FIRInstallationsTokenHandler)completion; + completion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Deletes all the installation data including the unique identifier, auth tokens and diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsAuthTokenResult.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsAuthTokenResult.h similarity index 100% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsAuthTokenResult.h rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsAuthTokenResult.h diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h new file mode 100644 index 0000000..939ca0a --- /dev/null +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h @@ -0,0 +1,35 @@ +/* + * 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. + */ + +#import+ +extern NSString *const kFirebaseInstallationsErrorDomain NS_SWIFT_NAME(InstallationsErrorDomain); + +typedef NS_ERROR_ENUM(kFirebaseInstallationsErrorDomain, FIRInstallationsErrorCode){ + /** Unknown error. See `userInfo` for details. */ + FIRInstallationsErrorCodeUnknown = 0, + + /** Keychain error. See `userInfo` for details. */ + FIRInstallationsErrorCodeKeychain = 1, + + /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ + FIRInstallationsErrorCodeServerUnreachable = 2, + + /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. + */ + FIRInstallationsErrorCodeInvalidConfiguration = 3, + +} NS_SWIFT_NAME(InstallationsErrorCode); diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h new file mode 100644 index 0000000..431ef45 --- /dev/null +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h @@ -0,0 +1,20 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseInstallations.h" +#import "FIRInstallations.h" +#import "FIRInstallationsAuthTokenResult.h" +#import "FIRInstallationsErrors.h" + +FOUNDATION_EXPORT double FirebaseInstallationsVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseInstallationsVersionString[]; + diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations.h b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations.h similarity index 100% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations.h rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations.h diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Info.plist b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Info.plist similarity index 96% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Info.plist rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Info.plist index 3159bd3..bd9050b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Info.plist +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap similarity index 59% rename from ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap rename to ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap index 222f6b2..be6b28f 100644 --- a/ios/shared/FirebaseInstallations.xcframework/ios-arm64_i386_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseInstallations.xcframework/ios-arm64_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap @@ -1,11 +1,9 @@ framework module FirebaseInstallations { -umbrella header "FirebaseInstallations.h" +umbrella header "FirebaseInstallations-umbrella.h" export * module * { export * } - link framework "CoreTelephony" link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/FirebaseInstallations b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/FirebaseInstallations index a3d97e8..062c3ab 100644 Binary files a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/FirebaseInstallations and b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/FirebaseInstallations differ diff --git a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FIRInstallations.h b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FIRInstallations.h index 9ffe9ee..1811d2b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FIRInstallations.h +++ b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FIRInstallations.h @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN // clang-format12 merges the next two lines. FOUNDATION_EXPORT const NSNotificationName FIRInstallationIDDidChangeNotification NS_SWIFT_NAME(InstallationIDDidChange); -/** `userInfo` key for the `FirebaseApp.name` in `FIRInstallationIDDidChangeNotification`. */ +/** `userInfo` key for the `FirebaseApp.name` in `InstallationIDDidChangeNotification`. */ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppNameKey NS_SWIFT_NAME(InstallationIDDidChangeAppNameKey); // clang-format on @@ -38,7 +38,7 @@ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppName */ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsIDHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * An authorization token handler block. @@ -48,7 +48,7 @@ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, */ typedef void (^FIRInstallationsTokenHandler)( FIRInstallationsAuthTokenResult *__nullable tokenResult, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsTokenHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The class provides API for Firebase Installations. @@ -64,7 +64,7 @@ NS_SWIFT_NAME(Installations) /** * Returns a default instance of `Installations`. - * @returns An instance of `Installations` for `FirebaseApp.defaultApp(). + * @return An instance of `Installations` for `FirebaseApp.defaultApp(). * @throw Throws an exception if the default app is not configured yet or required `FirebaseApp` * options are missing. */ @@ -73,45 +73,45 @@ NS_SWIFT_NAME(Installations) /** * Returns an instance of `Installations` for an application. * @param application A configured `FirebaseApp` instance. - * @returns An instance of `Installations` corresponding to the passed application. + * @return An instance of `Installations` corresponding to the passed application. * @throw Throws an exception if required `FirebaseApp` options are missing. */ -+ (FIRInstallations *)installationsWithApp:(FIRApp *)application - NS_SWIFT_NAME(installations(app:)); ++ (FIRInstallations *)installationsWithApp:(FIRApp *)application NS_SWIFT_NAME(installations(app:)); /** * The method creates or retrieves an installation ID. The installation ID is a stable identifier * that uniquely identifies the app instance. NOTE: If the application already has an existing * FirebaseInstanceID then the InstanceID identifier will be used. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsIDHandler` for additional details. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)installationIDWithCompletion:(FIRInstallationsIDHandler)completion; +- (void)installationIDWithCompletion:(void (^)(NSString *__nullable identifier, + NSError *__nullable error))completion; /** * Retrieves (locally if it exists or from the server) a valid installation auth token. An existing * token may be invalidated or expired, so it is recommended to fetch the installation auth token - * before each server request. The method does the same as `Installations.authTokenForcingRefresh(:, - * completion:)` with forcing refresh `NO`. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsTokenHandler` for additional details. + * before each server request. The method does the same as + * `Installations.authToken(forcingRefresh:completion:)` with forcing refresh `false`. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)authTokenWithCompletion:(FIRInstallationsTokenHandler)completion; +- (void)authTokenWithCompletion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Retrieves (locally or from the server depending on `forceRefresh` value) a valid installation * auth token. An existing token may be invalidated or expire, so it is recommended to fetch the * installation auth token before each server request. This method should be used with `forceRefresh - * == YES` when e.g. a request with the previously fetched installation auth token failed with "Not + * == true` when e.g. a request with the previously fetched installation auth token failed with "Not * Authorized" error. - * @param forceRefresh If `YES` then the locally cached installation auth token will be ignored and - * a new one will be requested from the server. If `NO`, then the locally cached installation auth - * token will be returned if exists and has not expired yet. + * @param forceRefresh If `true` then the locally cached installation auth token will be ignored and + * a new one will be requested from the server. If `false`, then the locally cached installation + * auth token will be returned if exists and has not expired yet. * @param completion A completion handler which is invoked when the operation completes. See * `InstallationsTokenHandler` for additional details. */ - (void)authTokenForcingRefresh:(BOOL)forceRefresh - completion:(FIRInstallationsTokenHandler)completion; + completion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Deletes all the installation data including the unique identifier, auth tokens and diff --git a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h index d0c3b99..939ca0a 100644 --- a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h +++ b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h @@ -16,19 +16,20 @@ #import-extern NSString *const kFirebaseInstallationsErrorDomain; +extern NSString *const kFirebaseInstallationsErrorDomain NS_SWIFT_NAME(InstallationsErrorDomain); -typedef NS_ENUM(NSUInteger, FIRInstallationsErrorCode) { - /** Unknown error. See `userInfo` for details. */ - FIRInstallationsErrorCodeUnknown = 0, +typedef NS_ERROR_ENUM(kFirebaseInstallationsErrorDomain, FIRInstallationsErrorCode){ + /** Unknown error. See `userInfo` for details. */ + FIRInstallationsErrorCodeUnknown = 0, - /** Keychain error. See `userInfo` for details. */ - FIRInstallationsErrorCodeKeychain = 1, + /** Keychain error. See `userInfo` for details. */ + FIRInstallationsErrorCodeKeychain = 1, - /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ - FIRInstallationsErrorCodeServerUnreachable = 2, + /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ + FIRInstallationsErrorCodeServerUnreachable = 2, - /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. */ - FIRInstallationsErrorCodeInvalidConfiguration = 3, + /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. + */ + FIRInstallationsErrorCodeInvalidConfiguration = 3, } NS_SWIFT_NAME(InstallationsErrorCode); diff --git a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h new file mode 100644 index 0000000..4f6338d --- /dev/null +++ b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h @@ -0,0 +1,20 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseInstallations.h" +#import "FIRInstallations.h" +#import "FIRInstallationsAuthTokenResult.h" +#import "FIRInstallationsErrors.h" + +FOUNDATION_EXPORT double FirebaseInstallationsVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseInstallationsVersionString[]; + diff --git a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Info.plist b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Info.plist index 3159bd3..bd9050b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Info.plist +++ b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Modules/module.modulemap b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Modules/module.modulemap index 521c053..3d0ba0d 100644 --- a/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseInstallations.xcframework/macos-arm64_x86_64/FirebaseInstallations.framework/Modules/module.modulemap @@ -1,11 +1,9 @@ framework module FirebaseInstallations { -umbrella header "FirebaseInstallations.h" +umbrella header "FirebaseInstallations-umbrella.h" export * module * { export * } link framework "AppKit" - link framework "CoreTelephony" link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link "z" } diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/FirebaseInstallations b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/FirebaseInstallations index 9c7e739..52ba663 100644 Binary files a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/FirebaseInstallations and b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/FirebaseInstallations differ diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h index 9ffe9ee..1811d2b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallations.h @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN // clang-format12 merges the next two lines. FOUNDATION_EXPORT const NSNotificationName FIRInstallationIDDidChangeNotification NS_SWIFT_NAME(InstallationIDDidChange); -/** `userInfo` key for the `FirebaseApp.name` in `FIRInstallationIDDidChangeNotification`. */ +/** `userInfo` key for the `FirebaseApp.name` in `InstallationIDDidChangeNotification`. */ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppNameKey NS_SWIFT_NAME(InstallationIDDidChangeAppNameKey); // clang-format on @@ -38,7 +38,7 @@ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppName */ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsIDHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * An authorization token handler block. @@ -48,7 +48,7 @@ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, */ typedef void (^FIRInstallationsTokenHandler)( FIRInstallationsAuthTokenResult *__nullable tokenResult, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsTokenHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The class provides API for Firebase Installations. @@ -64,7 +64,7 @@ NS_SWIFT_NAME(Installations) /** * Returns a default instance of `Installations`. - * @returns An instance of `Installations` for `FirebaseApp.defaultApp(). + * @return An instance of `Installations` for `FirebaseApp.defaultApp(). * @throw Throws an exception if the default app is not configured yet or required `FirebaseApp` * options are missing. */ @@ -73,45 +73,45 @@ NS_SWIFT_NAME(Installations) /** * Returns an instance of `Installations` for an application. * @param application A configured `FirebaseApp` instance. - * @returns An instance of `Installations` corresponding to the passed application. + * @return An instance of `Installations` corresponding to the passed application. * @throw Throws an exception if required `FirebaseApp` options are missing. */ -+ (FIRInstallations *)installationsWithApp:(FIRApp *)application - NS_SWIFT_NAME(installations(app:)); ++ (FIRInstallations *)installationsWithApp:(FIRApp *)application NS_SWIFT_NAME(installations(app:)); /** * The method creates or retrieves an installation ID. The installation ID is a stable identifier * that uniquely identifies the app instance. NOTE: If the application already has an existing * FirebaseInstanceID then the InstanceID identifier will be used. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsIDHandler` for additional details. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)installationIDWithCompletion:(FIRInstallationsIDHandler)completion; +- (void)installationIDWithCompletion:(void (^)(NSString *__nullable identifier, + NSError *__nullable error))completion; /** * Retrieves (locally if it exists or from the server) a valid installation auth token. An existing * token may be invalidated or expired, so it is recommended to fetch the installation auth token - * before each server request. The method does the same as `Installations.authTokenForcingRefresh(:, - * completion:)` with forcing refresh `NO`. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsTokenHandler` for additional details. + * before each server request. The method does the same as + * `Installations.authToken(forcingRefresh:completion:)` with forcing refresh `false`. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)authTokenWithCompletion:(FIRInstallationsTokenHandler)completion; +- (void)authTokenWithCompletion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Retrieves (locally or from the server depending on `forceRefresh` value) a valid installation * auth token. An existing token may be invalidated or expire, so it is recommended to fetch the * installation auth token before each server request. This method should be used with `forceRefresh - * == YES` when e.g. a request with the previously fetched installation auth token failed with "Not + * == true` when e.g. a request with the previously fetched installation auth token failed with "Not * Authorized" error. - * @param forceRefresh If `YES` then the locally cached installation auth token will be ignored and - * a new one will be requested from the server. If `NO`, then the locally cached installation auth - * token will be returned if exists and has not expired yet. + * @param forceRefresh If `true` then the locally cached installation auth token will be ignored and + * a new one will be requested from the server. If `false`, then the locally cached installation + * auth token will be returned if exists and has not expired yet. * @param completion A completion handler which is invoked when the operation completes. See * `InstallationsTokenHandler` for additional details. */ - (void)authTokenForcingRefresh:(BOOL)forceRefresh - completion:(FIRInstallationsTokenHandler)completion; + completion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Deletes all the installation data including the unique identifier, auth tokens and diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h index d0c3b99..939ca0a 100644 --- a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h @@ -16,19 +16,20 @@ #import-extern NSString *const kFirebaseInstallationsErrorDomain; +extern NSString *const kFirebaseInstallationsErrorDomain NS_SWIFT_NAME(InstallationsErrorDomain); -typedef NS_ENUM(NSUInteger, FIRInstallationsErrorCode) { - /** Unknown error. See `userInfo` for details. */ - FIRInstallationsErrorCodeUnknown = 0, +typedef NS_ERROR_ENUM(kFirebaseInstallationsErrorDomain, FIRInstallationsErrorCode){ + /** Unknown error. See `userInfo` for details. */ + FIRInstallationsErrorCodeUnknown = 0, - /** Keychain error. See `userInfo` for details. */ - FIRInstallationsErrorCodeKeychain = 1, + /** Keychain error. See `userInfo` for details. */ + FIRInstallationsErrorCodeKeychain = 1, - /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ - FIRInstallationsErrorCodeServerUnreachable = 2, + /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ + FIRInstallationsErrorCodeServerUnreachable = 2, - /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. */ - FIRInstallationsErrorCodeInvalidConfiguration = 3, + /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. + */ + FIRInstallationsErrorCodeInvalidConfiguration = 3, } NS_SWIFT_NAME(InstallationsErrorCode); diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h new file mode 100644 index 0000000..431ef45 --- /dev/null +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h @@ -0,0 +1,20 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseInstallations.h" +#import "FIRInstallations.h" +#import "FIRInstallationsAuthTokenResult.h" +#import "FIRInstallationsErrors.h" + +FOUNDATION_EXPORT double FirebaseInstallationsVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseInstallationsVersionString[]; + diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Info.plist b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Info.plist index 3159bd3..bd9050b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Info.plist +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Modules/module.modulemap b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Modules/module.modulemap index f3f6ab7..be6b28f 100644 --- a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64/FirebaseInstallations.framework/Modules/module.modulemap @@ -1,10 +1,9 @@ framework module FirebaseInstallations { -umbrella header "FirebaseInstallations.h" +umbrella header "FirebaseInstallations-umbrella.h" export * module * { export * } link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations index caa1d0d..063a7a9 100644 Binary files a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations and b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/FirebaseInstallations differ diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h index 9ffe9ee..1811d2b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallations.h @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN // clang-format12 merges the next two lines. FOUNDATION_EXPORT const NSNotificationName FIRInstallationIDDidChangeNotification NS_SWIFT_NAME(InstallationIDDidChange); -/** `userInfo` key for the `FirebaseApp.name` in `FIRInstallationIDDidChangeNotification`. */ +/** `userInfo` key for the `FirebaseApp.name` in `InstallationIDDidChangeNotification`. */ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppNameKey NS_SWIFT_NAME(InstallationIDDidChangeAppNameKey); // clang-format on @@ -38,7 +38,7 @@ FOUNDATION_EXPORT NSString *const kFIRInstallationIDDidChangeNotificationAppName */ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsIDHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * An authorization token handler block. @@ -48,7 +48,7 @@ typedef void (^FIRInstallationsIDHandler)(NSString *__nullable identifier, */ typedef void (^FIRInstallationsTokenHandler)( FIRInstallationsAuthTokenResult *__nullable tokenResult, NSError *__nullable error) - NS_SWIFT_NAME(InstallationsTokenHandler); + NS_SWIFT_UNAVAILABLE("Use Swift's closure syntax instead."); /** * The class provides API for Firebase Installations. @@ -64,7 +64,7 @@ NS_SWIFT_NAME(Installations) /** * Returns a default instance of `Installations`. - * @returns An instance of `Installations` for `FirebaseApp.defaultApp(). + * @return An instance of `Installations` for `FirebaseApp.defaultApp(). * @throw Throws an exception if the default app is not configured yet or required `FirebaseApp` * options are missing. */ @@ -73,45 +73,45 @@ NS_SWIFT_NAME(Installations) /** * Returns an instance of `Installations` for an application. * @param application A configured `FirebaseApp` instance. - * @returns An instance of `Installations` corresponding to the passed application. + * @return An instance of `Installations` corresponding to the passed application. * @throw Throws an exception if required `FirebaseApp` options are missing. */ -+ (FIRInstallations *)installationsWithApp:(FIRApp *)application - NS_SWIFT_NAME(installations(app:)); ++ (FIRInstallations *)installationsWithApp:(FIRApp *)application NS_SWIFT_NAME(installations(app:)); /** * The method creates or retrieves an installation ID. The installation ID is a stable identifier * that uniquely identifies the app instance. NOTE: If the application already has an existing * FirebaseInstanceID then the InstanceID identifier will be used. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsIDHandler` for additional details. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)installationIDWithCompletion:(FIRInstallationsIDHandler)completion; +- (void)installationIDWithCompletion:(void (^)(NSString *__nullable identifier, + NSError *__nullable error))completion; /** * Retrieves (locally if it exists or from the server) a valid installation auth token. An existing * token may be invalidated or expired, so it is recommended to fetch the installation auth token - * before each server request. The method does the same as `Installations.authTokenForcingRefresh(:, - * completion:)` with forcing refresh `NO`. - * @param completion A completion handler which is invoked when the operation completes. See - * `InstallationsTokenHandler` for additional details. + * before each server request. The method does the same as + * `Installations.authToken(forcingRefresh:completion:)` with forcing refresh `false`. + * @param completion A completion handler which is invoked when the operation completes. */ -- (void)authTokenWithCompletion:(FIRInstallationsTokenHandler)completion; +- (void)authTokenWithCompletion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Retrieves (locally or from the server depending on `forceRefresh` value) a valid installation * auth token. An existing token may be invalidated or expire, so it is recommended to fetch the * installation auth token before each server request. This method should be used with `forceRefresh - * == YES` when e.g. a request with the previously fetched installation auth token failed with "Not + * == true` when e.g. a request with the previously fetched installation auth token failed with "Not * Authorized" error. - * @param forceRefresh If `YES` then the locally cached installation auth token will be ignored and - * a new one will be requested from the server. If `NO`, then the locally cached installation auth - * token will be returned if exists and has not expired yet. + * @param forceRefresh If `true` then the locally cached installation auth token will be ignored and + * a new one will be requested from the server. If `false`, then the locally cached installation + * auth token will be returned if exists and has not expired yet. * @param completion A completion handler which is invoked when the operation completes. See * `InstallationsTokenHandler` for additional details. */ - (void)authTokenForcingRefresh:(BOOL)forceRefresh - completion:(FIRInstallationsTokenHandler)completion; + completion:(void (^)(FIRInstallationsAuthTokenResult *__nullable tokenResult, + NSError *__nullable error))completion; /** * Deletes all the installation data including the unique identifier, auth tokens and diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h index d0c3b99..939ca0a 100644 --- a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FIRInstallationsErrors.h @@ -16,19 +16,20 @@ #import-extern NSString *const kFirebaseInstallationsErrorDomain; +extern NSString *const kFirebaseInstallationsErrorDomain NS_SWIFT_NAME(InstallationsErrorDomain); -typedef NS_ENUM(NSUInteger, FIRInstallationsErrorCode) { - /** Unknown error. See `userInfo` for details. */ - FIRInstallationsErrorCodeUnknown = 0, +typedef NS_ERROR_ENUM(kFirebaseInstallationsErrorDomain, FIRInstallationsErrorCode){ + /** Unknown error. See `userInfo` for details. */ + FIRInstallationsErrorCodeUnknown = 0, - /** Keychain error. See `userInfo` for details. */ - FIRInstallationsErrorCodeKeychain = 1, + /** Keychain error. See `userInfo` for details. */ + FIRInstallationsErrorCodeKeychain = 1, - /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ - FIRInstallationsErrorCodeServerUnreachable = 2, + /** Server unreachable. A network error or server is unavailable. See `userInfo` for details. */ + FIRInstallationsErrorCodeServerUnreachable = 2, - /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. */ - FIRInstallationsErrorCodeInvalidConfiguration = 3, + /** FirebaseApp configuration issues e.g. invalid GMP-App-ID, etc. See `userInfo` for details. + */ + FIRInstallationsErrorCodeInvalidConfiguration = 3, } NS_SWIFT_NAME(InstallationsErrorCode); diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h new file mode 100644 index 0000000..431ef45 --- /dev/null +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Headers/FirebaseInstallations-umbrella.h @@ -0,0 +1,20 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "FirebaseInstallations.h" +#import "FIRInstallations.h" +#import "FIRInstallationsAuthTokenResult.h" +#import "FIRInstallationsErrors.h" + +FOUNDATION_EXPORT double FirebaseInstallationsVersionNumber; +FOUNDATION_EXPORT const unsigned char FirebaseInstallationsVersionString[]; + diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Info.plist b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Info.plist index 3159bd3..bd9050b 100644 --- a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Info.plist +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType FMWK CFBundleVersion -8.12.0 +10.12.0 DTSDKName iphonesimulator11.2 diff --git a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap index f3f6ab7..be6b28f 100644 --- a/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap +++ b/ios/shared/FirebaseInstallations.xcframework/tvos-arm64_x86_64-simulator/FirebaseInstallations.framework/Modules/module.modulemap @@ -1,10 +1,9 @@ framework module FirebaseInstallations { -umbrella header "FirebaseInstallations.h" +umbrella header "FirebaseInstallations-umbrella.h" export * module * { export * } link framework "Foundation" link framework "Security" - link framework "SystemConfiguration" link framework "UIKit" link "z" } diff --git a/ios/shared/GoogleAppMeasurement.xcframework/Info.plist b/ios/shared/GoogleAppMeasurement.xcframework/Info.plist index 46438e9..3e15ad1 100644 --- a/ios/shared/GoogleAppMeasurement.xcframework/Info.plist +++ b/ios/shared/GoogleAppMeasurement.xcframework/Info.plist @@ -6,7 +6,7 @@