新增调试工具
This commit is contained in:
@@ -25,8 +25,12 @@
|
||||
|
||||
+ (NSString *)appName {
|
||||
#ifdef DEBUG
|
||||
NSString *isProduction = [[NSUserDefaults standardUserDefaults]valueForKey:@"kIsProductionEnvironment"];
|
||||
if([isProduction isEqualToString:@"YES"]){
|
||||
return @"youmi";
|
||||
}
|
||||
NSString *text = [NSString stringWithFormat:@"%@%@%@%@",@"p",@"e",@"k",@"o"];
|
||||
return text;
|
||||
return text;
|
||||
|
||||
#else
|
||||
|
||||
@@ -76,6 +80,10 @@ static NSString * const kMobileFrameworkResourceBundleName = @"YYMobileFramework
|
||||
|
||||
+ (NSString *)buildType{
|
||||
#ifdef DEBUG
|
||||
NSString *isProduction = [[NSUserDefaults standardUserDefaults]valueForKey:@"kIsProductionEnvironment"];
|
||||
if([isProduction isEqualToString:@"YES"]){
|
||||
return @"RELEASE";
|
||||
}
|
||||
return @"DEBUG";
|
||||
#else
|
||||
return @"RELEASE";
|
||||
|
Reference in New Issue
Block a user