1
This commit is contained in:
38
Pods/LookinServer/Src/Main/Server/Others/LKS_Helper.m
generated
Normal file
38
Pods/LookinServer/Src/Main/Server/Others/LKS_Helper.m
generated
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifdef SHOULD_COMPILE_LOOKIN_SERVER
|
||||
|
||||
//
|
||||
// LKS_Helper.m
|
||||
// LookinServer
|
||||
//
|
||||
// Created by Li Kai on 2019/7/20.
|
||||
// https://lookin.work
|
||||
//
|
||||
|
||||
#import "LKS_Helper.h"
|
||||
#import "NSObject+LookinServer.h"
|
||||
|
||||
@implementation LKS_Helper
|
||||
|
||||
+ (NSString *)descriptionOfObject:(id)object {
|
||||
if (!object) {
|
||||
return @"nil";
|
||||
}
|
||||
NSString *className = NSStringFromClass([object class]);
|
||||
return [NSString stringWithFormat:@"(%@ *)", className];
|
||||
}
|
||||
|
||||
+ (NSBundle *)bundle {
|
||||
static id bundle = nil;
|
||||
if (bundle != nil) {
|
||||
#ifdef SPM_RESOURCE_BUNDLE_IDENTIFITER
|
||||
bundle = [NSBundle bundleWithIdentifier:SPM_RESOURCE_BUNDLE_IDENTIFITER];
|
||||
#else
|
||||
bundle = [NSBundle bundleForClass:self.class];
|
||||
#endif
|
||||
}
|
||||
return bundle;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif /* SHOULD_COMPILE_LOOKIN_SERVER */
|
||||
Reference in New Issue
Block a user