diff --git a/MacPass/MPPlugin.h b/MacPass/MPPlugin.h index 996d0b40..77fd1ac9 100644 --- a/MacPass/MPPlugin.h +++ b/MacPass/MPPlugin.h @@ -29,6 +29,8 @@ NS_ASSUME_NONNULL_BEGIN @class KPKAttribute; @class KPKTree; +FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion; + @interface MPPlugin : NSObject @property (copy, readonly) NSString *identifier; @@ -36,7 +38,6 @@ NS_ASSUME_NONNULL_BEGIN @property (copy, readonly) NSString *version; @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 diff --git a/MacPass/MPPlugin.m b/MacPass/MPPlugin.m index 889f2ce5..34516877 100644 --- a/MacPass/MPPlugin.m +++ b/MacPass/MPPlugin.m @@ -26,6 +26,8 @@ #import "MPSettingsHelper.h" #import "MPPluginConstants.h" +NSString *const MPPluginUnkownVersion = @"unkown.plugin.version"; + @implementation MPPlugin @synthesize bundle = _bundle; @@ -80,7 +82,7 @@ return version; } } - return @"unknown.version"; + return MPPluginUnkownVersion; }