File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 5
5
` open func reference(forURL url: String) -> StorageReference ` except it throws instead of
6
6
erroring. (#6974 )
7
7
- [ changed] The ` FirebaseStorageInternal ` CocoaPod has been discontinued.
8
- - [ changed] Remove the ` storageReference ` property of ` StorageMetadata ` . It had never been implemented
8
+ - [ changed] Deprecate the ` storageReference ` property of ` StorageMetadata ` . It had never been implemented
9
9
and always returned ` nil ` .
10
10
- [ changed] Storage APIs that previously threw an Objective-C exception now generate a Swift
11
11
` fatalError ` .
Original file line number Diff line number Diff line change @@ -100,6 +100,11 @@ import Foundation
100
100
*/
101
101
@objc public let updated : Date ?
102
102
103
+ /**
104
+ * Never used API
105
+ */
106
+ @available ( * , deprecated) @objc public let storageReference : StorageReference ? = nil
107
+
103
108
/**
104
109
* Creates a Dictionary from the contents of the metadata.
105
110
* @return A Dictionary that represents the contents of the metadata.
Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ - (void)FIRStorageMetadataApis {
169
169
[metadata size ];
170
170
[metadata timeCreated ];
171
171
[metadata updated ];
172
+ #pragma clang diagnostic push
173
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
174
+ [metadata storageReference ];
175
+ #pragma clang diagnostic pop
172
176
FIRStorageMetadata __unused *ref2 = [metadata initWithDictionary: @{}];
173
177
NSDictionary <NSString *, id > __unused *dict = [metadata dictionaryRepresentation ];
174
178
[metadata isFile ];
You can’t perform that action at this time.
0 commit comments