Mark init methods as unavailable

This commit is contained in:
Zorg committed 2021-06-21 00:11:06 -07:00
1 parent 31f6f512e1
commit 6e3cd6b313
2 files changed
+4

No files matched your search

+2
View File
@@ -25,6 +25,8 @@ NS_ASSUME_NONNULL_BEGIN
// Class used to resolve Appcast Item properties that rely on external factors such as a host
SU_EXPORT @interface SPUAppcastItemStateResolver : NSObject
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithHostVersion:(NSString *)hostVersion applicationVersionComparator:(id<SUVersionComparison>)applicationVersionComparator standardVersionComparator:(SUStandardVersionComparator *)standardVersionComparator;
@end
+2
View File
@@ -65,6 +65,8 @@ SU_EXPORT @interface SUAppcastItem : NSObject<NSSecureCoding>
// Returns the dictionary representing the appcast item; this might be useful later for extensions.
@property (readonly, copy) NSDictionary *propertiesDictionary;
- (instancetype)init NS_UNAVAILABLE;
// Deprecated initializers
- (nullable instancetype)initWithDictionary:(NSDictionary *)dict __deprecated_msg("Extended properties that depend on the system or application version are not supported when used with this deprecated initializer. Please adopt supported APIs instead or contact us to describe your use case.");
- (nullable instancetype)initWithDictionary:(NSDictionary *)dict failureReason:(NSString * _Nullable __autoreleasing *_Nullable)error __deprecated_msg("Extended properties that depend on the system or application version are not supported when used with this deprecated initializer. Please adopt supported APIs instead or contact us to describe your use case.");