diff --git a/FirebaseCore/Sources/FIROptions.m b/FirebaseCore/Sources/FIROptions.m index bfaeff1620e..16fdb6f41bc 100644 --- a/FirebaseCore/Sources/FIROptions.m +++ b/FirebaseCore/Sources/FIROptions.m @@ -160,7 +160,7 @@ - (id)copyWithZone:(NSZone *)zone { FIROptions *newOptions = [(FIROptions *)[[self class] allocWithZone:zone] initInternalWithOptionsDictionary:self.optionsDictionary]; if (newOptions) { - newOptions.deepLinkURLScheme = self.deepLinkURLScheme; + newOptions->_deepLinkURLScheme = self->_deepLinkURLScheme; newOptions.appGroupID = self.appGroupID; newOptions.editingLocked = self.isEditingLocked; newOptions.usingOptionsFromDefaultPlist = self.usingOptionsFromDefaultPlist; @@ -357,8 +357,8 @@ - (BOOL)isEqualToOptions:(FIROptions *)options { // Validate extra properties not contained in the dictionary. Only validate it if one of the // objects has the property set. - if ((options.deepLinkURLScheme != nil || self.deepLinkURLScheme != nil) && - ![options.deepLinkURLScheme isEqualToString:self.deepLinkURLScheme]) { + if ((options->_deepLinkURLScheme != nil || self->_deepLinkURLScheme != nil) && + ![options->_deepLinkURLScheme isEqualToString:self->_deepLinkURLScheme]) { return NO; } @@ -384,7 +384,7 @@ - (NSUInteger)hash { // Note: `self.analyticsOptionsDictionary` was left out here since it solely relies on the // contents of the main bundle's `Info.plist`. We should avoid reading that file and the contents // should be identical. - return self.optionsDictionary.hash ^ self.deepLinkURLScheme.hash ^ self.appGroupID.hash; + return self.optionsDictionary.hash ^ self->_deepLinkURLScheme.hash ^ self.appGroupID.hash; } #pragma mark - Internal instance methods diff --git a/FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h b/FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h index 14e60fcde33..db1570a083c 100644 --- a/FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h +++ b/FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h @@ -83,7 +83,7 @@ NS_SWIFT_NAME(FirebaseOptions) /** * The URL scheme used to set up Durable Deep Link service. */ -@property(nonatomic, copy, nullable) NSString *deepLinkURLScheme; +@property(nonatomic, copy, nullable) NSString *deepLinkURLScheme DEPRECATED_ATTRIBUTE; /** * The Google Cloud Storage bucket name, e.g. @"abc-xyz-123.storage.firebase.com".