mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
extracted magic constant to acutal constant
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user