32 lines
894 B
Plaintext
32 lines
894 B
Plaintext
//
|
|
// Base.pch
|
|
// xplan-ios
|
|
//
|
|
// Created by zu on 2021/9/1.
|
|
//
|
|
|
|
#ifndef Base_pch
|
|
#define Base_pch
|
|
|
|
// Include any system framework and library headers here that should be included in all compilation units.
|
|
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#define AppName ([[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"])
|
|
|
|
#ifdef DEBUG
|
|
#define NSLog(fmt,...) NSLog((@"%s [Line %d]" fmt),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__)
|
|
#else
|
|
#define NSLog(...)
|
|
#endif
|
|
|
|
#define isEnterprise \
|
|
({BOOL isEnterprise = NO;\
|
|
if (@available(iOS 11.0, *)) {\
|
|
NSString *bundleID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];\
|
|
isEnterprise = [bundleID isEqualToString:@"com.yinyou.enterprise.ios"];\
|
|
}\
|
|
(isEnterprise);})
|
|
|
|
#endif /* Base_pch */
|