Display a generic description text if the appropriate key is present in the InfoDictionary of the plugin bundle

This commit is contained in:
Michael Starke
2019-07-15 18:21:03 +02:00
parent fc21257173
commit 1baf2cd8e6
3 changed files with 28 additions and 7 deletions

View File

@@ -30,6 +30,7 @@ NS_ASSUME_NONNULL_BEGIN
@class KPKTree;
FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
FOUNDATION_EXPORT NSString *const MPPluginDescriptionInfoDictionaryKey;
@interface MPPlugin : NSObject
@@ -37,8 +38,10 @@ FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
@property (copy, readonly) NSString *name;
@property (nonatomic, copy, readonly, nullable) NSString *shortVersionString;
@property (nonatomic, copy, readonly) NSString *versionString;
@property (nonatomic, copy, readonly) NSString *localizedDescription;
@property (nonatomic, strong, readonly) NSBundle *bundle;
/**
If your plugin needs initalization override this method but you have to call [super initWithPluginHost:]
Otherwise your plugin might not get registered correctly