Reverting back to string based version compare. Using customized comparator based ond Sparkle verison compare

This commit is contained in:
Michael Starke
2018-10-24 16:07:38 +02:00
parent 20ed81a5e7
commit 3cd8d07552
23 changed files with 495 additions and 470 deletions

View File

@@ -28,7 +28,6 @@ NS_ASSUME_NONNULL_BEGIN
@class KPKEntry;
@class KPKAttribute;
@class KPKTree;
@class MPPluginVersion;
FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
@@ -36,8 +35,7 @@ FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
@property (copy, readonly) NSString *identifier;
@property (copy, readonly) NSString *name;
@property (nonatomic, copy, readonly, nullable) NSString *humanVersionString;
@property (nonatomic, copy, readonly, nullable) MPPluginVersion *version;
@property (nonatomic, copy, readonly, nullable) NSString *shortVersionString;
@property (nonatomic, copy, readonly) NSString *versionString;
@property (nonatomic, strong, readonly) NSBundle *bundle;
@@ -89,21 +87,12 @@ FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
- (NSString *)initialValueForAttributeWithKey:(NSString *)key;
@end
@protocol MPExportPluginViewController <NSObject>
@protocol MPImportPlugin <NSObject>
@required
@property (nonatomic, copy) NSDictionary *exportOptions;
@property (readonly, copy) NSArray<NSString *> *supportedUTIs;
- (KPKTree *)importTreeWithContentsOfURL:(NSURL *)url;
@end
@protocol MPExportPlugin <NSObject>
@required
/* Ideally supply a list of Formats supported. This format specifier is used when being called */
@property (nonatomic, copy) NSDictionary<NSString *, NSString *>* localizedSuportedFormats;
- (NSData *)dataForTree:(KPKTree *)tree withFormat:(NSString *)format options:(NSDictionary *)options;
@optional
- (NSViewController<MPExportPluginViewController> *)exportViewControllerForTree:(KPKTree *)tree withFormat:(NSString *)format;
@end
@interface MPPlugin (Deprecated)
- (instancetype)initWithPluginManager:(id)manager;