Skip to content

[Core] Experiment with startup initialization #14914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions FirebaseCore/Sources/FIRAnalyticsConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,12 @@ static NSString *const kFIRAPersistedConfigMeasurementEnabledStateKey =

static NSString *const kFIRAnalyticsConfigurationSetEnabledNotification =
@"FIRAnalyticsConfigurationSetEnabledNotification";
static NSString *const kFIRAnalyticsConfigurationSetMinimumSessionIntervalNotification =
@"FIRAnalyticsConfigurationSetMinimumSessionIntervalNotification";
static NSString *const kFIRAnalyticsConfigurationSetSessionTimeoutIntervalNotification =
@"FIRAnalyticsConfigurationSetSessionTimeoutIntervalNotification";

@interface FIRAnalyticsConfiguration : NSObject

/// Returns the shared instance of FIRAnalyticsConfiguration.
+ (FIRAnalyticsConfiguration *)sharedInstance;

// Sets whether analytics collection is enabled for this app on this device. This setting is
// persisted across app sessions. By default it is enabled.
- (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled;

/// Sets whether analytics collection is enabled for this app on this device, and a flag to persist
/// the value or not. The setting should not be persisted if being set by the global data collection
/// flag.
Expand Down
4 changes: 0 additions & 4 deletions FirebaseCore/Sources/FIRAnalyticsConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ - (void)postNotificationName:(NSString *)name value:(id)value {
userInfo:@{name : value}];
}

- (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled {
[self setAnalyticsCollectionEnabled:analyticsCollectionEnabled persistSetting:YES];
}

- (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled
persistSetting:(BOOL)shouldPersist {
// Persist the measurementEnabledState. Use FIRAnalyticsEnabledState values instead of YES/NO.
Expand Down
28 changes: 4 additions & 24 deletions FirebaseCore/Sources/FIRApp.m
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ - (BOOL)configureCore {
return NO;
}

// Initialize the Analytics once there is a valid options under default app. Analytics should
// always initialize first by itself before the other SDKs.
if ([self.name isEqualToString:kFIRDefaultAppName]) {
static dispatch_once_t analyticsSetupOnceToken;
dispatch_once(&analyticsSetupOnceToken, ^{
// Analytics is initialized only once and for the first app configured.
Class firAnalyticsClass = NSClassFromString(@"FIRAnalytics");
if (firAnalyticsClass) {
#pragma clang diagnostic push
Expand All @@ -352,7 +352,7 @@ - (BOOL)configureCore {
#pragma clang diagnostic pop
}
}
}
});

[self subscribeForAppDidBecomeActiveNotifications];

Expand Down Expand Up @@ -448,26 +448,6 @@ + (void)sendNotificationsToSDKs:(FIRApp *)app {
userInfo:appInfoDict];
}

+ (NSError *)errorForMissingOptions {
NSDictionary *errorDict = @{
NSLocalizedDescriptionKey :
@"Unable to parse GoogleService-Info.plist in order to configure services.",
NSLocalizedRecoverySuggestionErrorKey :
@"Check formatting and location of GoogleService-Info.plist."
};
return [NSError errorWithDomain:kFirebaseCoreErrorDomain code:-100 userInfo:errorDict];
}

+ (NSError *)errorForInvalidAppID {
NSDictionary *errorDict = @{
NSLocalizedDescriptionKey : @"Unable to validate Google App ID",
NSLocalizedRecoverySuggestionErrorKey :
@"Check formatting and location of GoogleService-Info.plist or GoogleAppID set in the "
@"customized options."
};
return [NSError errorWithDomain:kFirebaseCoreErrorDomain code:-101 userInfo:errorDict];
}

+ (BOOL)isDefaultAppConfigured {
return (sDefaultApp != nil);
}
Expand Down
4 changes: 2 additions & 2 deletions FirebaseCore/Sources/FIROptions.m
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
self = [super init];
if (self) {
_optionsDictionary = [optionsDictionary mutableCopy];
_usingOptionsFromDefaultPlist = YES;

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-15)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-15)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-14)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-14)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / installation-test

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods, macos-15)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods, macos-14)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-15)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-15)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-14)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-binary

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-binary

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, catalyst)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, catalyst)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-14, Xcode_16.2, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-14, Xcode_16.2, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'

Check failure on line 154 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, iOS)

use of undeclared identifier '_usingOptionsFromDefaultPlist'
}
return self;
}
Expand All @@ -163,7 +163,7 @@
newOptions.deepLinkURLScheme = self.deepLinkURLScheme;
newOptions.appGroupID = self.appGroupID;
newOptions.editingLocked = self.isEditingLocked;
newOptions.usingOptionsFromDefaultPlist = self.usingOptionsFromDefaultPlist;

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-14)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-14)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-14)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm (iOS, ClientApp, macos-14)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / installation-test

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / installation-test

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / storage-combine-integration

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods, macos-14)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-cocoapods (ClientApp-CocoaPods, macos-14)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, visionOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, watchOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-15)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-14)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / client-app-spm-source-firestore (iOS, ClientApp, macos-14)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-binary

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-binary

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-binary

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-binary

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (tvOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / xcodebuild (macOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, catalyst)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-14, Xcode_16.2, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'

Check failure on line 166 in FirebaseCore/Sources/FIROptions.m

View workflow job for this annotation

GitHub Actions / spm-source (macos-15, Xcode_16.3, iOS)

property 'usingOptionsFromDefaultPlist' not found on object of type 'FIROptions *'
}
return newOptions;
}
Expand Down Expand Up @@ -414,8 +414,8 @@

/**
* Whether or not Measurement was enabled. Measurement is enabled unless explicitly disabled in
* GoogleService-Info.plist. This uses the old plist flag IS_MEASUREMENT_ENABLED, which should still
* be supported.
* GoogleService-Info.plist. This uses the old plist flag `IS_MEASUREMENT_ENABLED`, which should
* still be supported.
*/
- (BOOL)isMeasurementEnabled {
if (self.isAnalyticsCollectionDeactivated) {
Expand Down
12 changes: 0 additions & 12 deletions FirebaseCore/Sources/FIROptionsInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,6 @@
*/
@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`.
Expand Down
1 change: 0 additions & 1 deletion FirebaseCore/Tests/Unit/FIRAppTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ @interface FIRApp (TestInternal)
+ (void)resetApps;
- (instancetype)initInstanceWithName:(NSString *)name options:(FIROptions *)options;
- (BOOL)configureCore;
+ (NSError *)errorForInvalidAppID;
- (BOOL)isAppIDValid;
+ (NSString *)actualBundleID;
+ (NSNumber *)mapFromServiceStringToTypeEnum:(NSString *)serviceString;
Expand Down
12 changes: 12 additions & 0 deletions FirebaseCore/Tests/Unit/FIROptionsTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@

@interface FIROptions (Test)

/**
* 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;

- (nullable NSDictionary *)analyticsOptionsDictionaryWithInfoDictionary:
(nullable NSDictionary *)infoDictionary;

Expand Down
1 change: 0 additions & 1 deletion FirebaseFirestoreInternal.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
# that "quick open" by filename in Xcode will continue to work.
s.source_files = [
'FirebaseCore/Extension/*.h',
'FirebaseCore/Sources/FIROptionsInternal.h',
'Firestore/Source/Public/FirebaseFirestore/*.h',
'Firestore/Source/**/*.{m,mm}',
'Firestore/Protos/nanopb/**/*.cc',
Expand Down
2 changes: 1 addition & 1 deletion Firestore/Source/API/FSTFirestoreComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "Firestore/Source/API/FSTFirestoreComponent.h"

#import <FirebaseAppCheckInterop/FirebaseAppCheckInterop.h>
#import <FirebaseCore/FIROptions.h>

#include <memory>
#include <string>
Expand All @@ -28,7 +29,6 @@
#import "FirebaseCore/Extension/FIRComponentContainer.h"
#import "FirebaseCore/Extension/FIRComponentType.h"
#import "FirebaseCore/Extension/FIRLibrary.h"
#import "FirebaseCore/Sources/FIROptionsInternal.h"
#import "Firestore/Source/API/FIRFirestore+Internal.h"

#include "Firestore/core/include/firebase/firestore/firestore_version.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
* limitations under the License.
*/

#import <FirebaseCore/FIROptions.h>

#include "Firestore/core/src/remote/firebase_metadata_provider_apple.h"

#import "FirebaseCore/Extension/FIRAppInternal.h"
#import "FirebaseCore/Extension/FIRHeartbeatLogger.h"
#import "FirebaseCore/Sources/FIROptionsInternal.h"

#include "Firestore/core/src/util/string_apple.h"

Expand Down
Loading