mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
extracted magic constant to acutal constant
This commit is contained in:
@@ -29,6 +29,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@class KPKAttribute;
|
@class KPKAttribute;
|
||||||
@class KPKTree;
|
@class KPKTree;
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
|
||||||
|
|
||||||
@interface MPPlugin : NSObject
|
@interface MPPlugin : NSObject
|
||||||
|
|
||||||
@property (copy, readonly) NSString *identifier;
|
@property (copy, readonly) NSString *identifier;
|
||||||
@@ -36,7 +38,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@property (copy, readonly) NSString *version;
|
@property (copy, readonly) NSString *version;
|
||||||
@property (nonatomic, strong, readonly) NSBundle *bundle;
|
@property (nonatomic, strong, readonly) NSBundle *bundle;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
If your plugin needs initalization override this method but you have to call [super initWithPluginHost:]
|
If your plugin needs initalization override this method but you have to call [super initWithPluginHost:]
|
||||||
Otherwise your plugin might not get registered correctly
|
Otherwise your plugin might not get registered correctly
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
#import "MPSettingsHelper.h"
|
#import "MPSettingsHelper.h"
|
||||||
#import "MPPluginConstants.h"
|
#import "MPPluginConstants.h"
|
||||||
|
|
||||||
|
NSString *const MPPluginUnkownVersion = @"unkown.plugin.version";
|
||||||
|
|
||||||
@implementation MPPlugin
|
@implementation MPPlugin
|
||||||
|
|
||||||
@synthesize bundle = _bundle;
|
@synthesize bundle = _bundle;
|
||||||
@@ -80,7 +82,7 @@
|
|||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return @"unknown.version";
|
return MPPluginUnkownVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user