Procházet zdrojové kódy

[Core] Remove `Options.androidClientID` and `Options.trackingID` (#15013)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Nick Cooke před 9 měsíci
rodič
revize
318edd4231

+ 3 - 0
FirebaseCore/CHANGELOG.md

@@ -4,6 +4,9 @@
 - [removed] **Breaking change**: Removed the `Options.deepLinkURLScheme`
   property. This API was exclusively used by the Dynamic Links SDK, which
   has been removed.
+- [removed] **Breaking change**: Removed the following unused API.
+  - `Options.androidClientID`
+  - `Options.trackingID`
 
 # Firebase 11.15.0
 - [fixed] Remove c99 as the required C language standard. (#14950)

+ 0 - 20
FirebaseCore/Sources/FIROptions.m

@@ -20,11 +20,9 @@
 
 // Keys for the strings in the plist file.
 NSString *const kFIRAPIKey = @"API_KEY";
-NSString *const kFIRTrackingID = @"TRACKING_ID";
 NSString *const kFIRGoogleAppID = @"GOOGLE_APP_ID";
 NSString *const kFIRClientID = @"CLIENT_ID";
 NSString *const kFIRGCMSenderID = @"GCM_SENDER_ID";
-NSString *const kFIRAndroidClientID = @"ANDROID_CLIENT_ID";
 NSString *const kFIRDatabaseURL = @"DATABASE_URL";
 NSString *const kFIRStorageBucket = @"STORAGE_BUCKET";
 // The key to locate the expected bundle identifier in the plist file.
@@ -232,15 +230,6 @@ static dispatch_once_t sDefaultOptionsDictionaryOnceToken;
   _optionsDictionary[kFIRClientID] = [clientID copy];
 }
 
-- (NSString *)trackingID {
-  return self.optionsDictionary[kFIRTrackingID];
-}
-
-- (void)setTrackingID:(NSString *)trackingID {
-  [self checkEditingLocked];
-  _optionsDictionary[kFIRTrackingID] = [trackingID copy];
-}
-
 - (NSString *)GCMSenderID {
   return self.optionsDictionary[kFIRGCMSenderID];
 }
@@ -259,15 +248,6 @@ static dispatch_once_t sDefaultOptionsDictionaryOnceToken;
   _optionsDictionary[kFIRProjectID] = [projectID copy];
 }
 
-- (NSString *)androidClientID {
-  return self.optionsDictionary[kFIRAndroidClientID];
-}
-
-- (void)setAndroidClientID:(NSString *)androidClientID {
-  [self checkEditingLocked];
-  _optionsDictionary[kFIRAndroidClientID] = [androidClientID copy];
-}
-
 - (NSString *)googleAppID {
   return self.optionsDictionary[kFIRGoogleAppID];
 }

+ 0 - 10
FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h

@@ -49,11 +49,6 @@ NS_SWIFT_NAME(FirebaseOptions)
  */
 @property(nonatomic, copy, nullable) NSString *clientID;
 
-/**
- * Unused.
- */
-@property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE;
-
 /**
  * The Project Number from the Google Developer's console, for example @"012345678901", used to
  * configure Firebase Cloud Messaging.
@@ -65,11 +60,6 @@ NS_SWIFT_NAME(FirebaseOptions)
  */
 @property(nonatomic, copy, nullable) NSString *projectID;
 
-/**
- * Unused.
- */
-@property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE;
-
 /**
  * The Google App ID that is used to uniquely identify an instance of an app.
  */

+ 0 - 6
docs/FirebaseOptionsPerProduct.md

@@ -37,12 +37,6 @@ to GoogleService-Info.plist attributes.
 * Is there a better way to manage the fields that are only used by one product? *clientID*, *databaseURL*,
   and *storageBucket*.
 
-## Unused FirebaseOptions
-Proposal: Deprecate these in the SDK and stop generating them for GoogleService-Info.plist.
-
-* *androidClientID*
-* *trackingID*
-
 ## Unread GoogleService-Info.plist fields
 Proposal: Stop generating these for GoogleService-Info.plist.