Skip to content

Commit 8216eb0

Browse files
authored
[Core] Deprecate '-[FIROptions deepLinkURLScheme]' API (#15001)
1 parent 60d57b4 commit 8216eb0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

FirebaseCore/Sources/FIROptions.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ - (id)copyWithZone:(NSZone *)zone {
160160
FIROptions *newOptions = [(FIROptions *)[[self class] allocWithZone:zone]
161161
initInternalWithOptionsDictionary:self.optionsDictionary];
162162
if (newOptions) {
163-
newOptions.deepLinkURLScheme = self.deepLinkURLScheme;
163+
newOptions->_deepLinkURLScheme = self->_deepLinkURLScheme;
164164
newOptions.appGroupID = self.appGroupID;
165165
newOptions.editingLocked = self.isEditingLocked;
166166
newOptions.usingOptionsFromDefaultPlist = self.usingOptionsFromDefaultPlist;
@@ -357,8 +357,8 @@ - (BOOL)isEqualToOptions:(FIROptions *)options {
357357

358358
// Validate extra properties not contained in the dictionary. Only validate it if one of the
359359
// objects has the property set.
360-
if ((options.deepLinkURLScheme != nil || self.deepLinkURLScheme != nil) &&
361-
![options.deepLinkURLScheme isEqualToString:self.deepLinkURLScheme]) {
360+
if ((options->_deepLinkURLScheme != nil || self->_deepLinkURLScheme != nil) &&
361+
![options->_deepLinkURLScheme isEqualToString:self->_deepLinkURLScheme]) {
362362
return NO;
363363
}
364364

@@ -384,7 +384,7 @@ - (NSUInteger)hash {
384384
// Note: `self.analyticsOptionsDictionary` was left out here since it solely relies on the
385385
// contents of the main bundle's `Info.plist`. We should avoid reading that file and the contents
386386
// should be identical.
387-
return self.optionsDictionary.hash ^ self.deepLinkURLScheme.hash ^ self.appGroupID.hash;
387+
return self.optionsDictionary.hash ^ self->_deepLinkURLScheme.hash ^ self.appGroupID.hash;
388388
}
389389

390390
#pragma mark - Internal instance methods

FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ NS_SWIFT_NAME(FirebaseOptions)
8383
/**
8484
* The URL scheme used to set up Durable Deep Link service.
8585
*/
86-
@property(nonatomic, copy, nullable) NSString *deepLinkURLScheme;
86+
@property(nonatomic, copy, nullable) NSString *deepLinkURLScheme DEPRECATED_ATTRIBUTE;
8787

8888
/**
8989
* The Google Cloud Storage bucket name, e.g. @"abc-xyz-123.storage.firebase.com".

0 commit comments

Comments
 (0)