123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- //
- // PrefixHeader.pch
- // 唔即云相册
- //
- // Created by 余衡武 on 2021/12/8.
- //
- #ifndef PrefixHeader_pch
- #define PrefixHeader_pch
- #ifdef DEBUG // 调试状态, 打开LOG功能
- #define KyoLog(fmt, ...) NSLog((@"%s [LinE %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
- #define KyoAlert(fmt, ...) { [[[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"%s\n [LinE %d] ", __PRETTY_FUNCTION__, __LINE__] message:[NSString stringWithFormat:fmt, ##__VA_ARGS__] delegate:nil cancelButtonTitle:@"OK(debug mode)" otherButtonTitles:nil] show]; }
- #define XYLog(fmt, ...) NSLog((@"%s [LinE %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
- #else // 发布状态, 关闭LOG功能
- #define KyoLog(...) (void)0;
- #define KyoAlert(...) (void)0;
- #define XYLog(...) (void)0;
- #endif
- #define ksharedAppDelegate [AppDelegate sharedAppDelegate] // AppDelegate 单例
- /**第三方库*/
- #import "Masonry.h"
- #import "UIView+HWCategory.h"
- #import "UIScrollView+EmptyDataSet.h"
- #import "SVProgressHUD.h"
- /**工具类*/
- #import "iToast.h"
- #import "iTools.h"
- #import "HWDataManager.h"
- #import "NSObject+Extensions.h"
- /**配置文件*/
- #import "Const.h"
- #import "Enum.h"
- #import "Notification.h"
- #import "ColorDefine.h"
- #import "BaseModel.h"
- //网络相关
- #import "netWorkManager.h"
- #import "newWorkInterface.h"
- #import "AFNetworkReachabilityManager.h"
- #import "AppDelegate.h"
- #import "connectDeviceManager.h"
- #import "cachesFileManager.h"
- #import "ComontAlretViewController.h"
- #import "webSocketManager.h"
- #import "webRtcManager.h"
- #import "pingManager.h"
- #import "MJExtension.h"
- #import "RSATool.h"
- #import "lastFileManager.h"
- #ifdef DEBUG // 调试状态, 打开LOG功能
- #define HLog(fmt, ...) NSLog((@"%@ %s [Line %d] " fmt),[iTools getNowTimeString3], __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
- #else // 发布状态, 关闭LOG功能
- #define HLog(...) (void)0;
- #endif
- #define globalBlock(block) dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), block)
- /**宏定义*/
- #define mainBlock(block) dispatch_async(dispatch_get_main_queue(), block)
- #define KWeakSelf __weak typeof(*&self) weakSelf = self; //block 快速宏定义
- #define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
- #define SCREEN_W [[UIScreen mainScreen] bounds].size.width
- #define SCREEN_H [[UIScreen mainScreen] bounds].size.height
- #define H_NAV_BAR self.navigationController.navigationBar.frame.size.height
- #define H_STATE_BAR [[UIApplication sharedApplication] statusBarFrame].size.height
- #define WAUTOSCALE ([[UIScreen mainScreen] bounds].size.width / 375) // 缩放比例
- #define HAUTOSCALE ([[UIScreen mainScreen] bounds].size.height / 667)
- //泛指刘海屏
- #define IPHONE_X ({\
- BOOL isBangsScreen = NO; \
- if (@available(iOS 11.0, *)) { \
- UIWindow *window = [[UIApplication sharedApplication].windows firstObject]; \
- isBangsScreen = window.safeAreaInsets.bottom > 0; \
- } \
- isBangsScreen; \
- })
- #define safeArea (IPHONE_X ? 44.f : 0.f) //安全区域
- #define NAVIHEIGHT (IPHONE_X ? 88 : 64) //导航
- #define TABBARHEIGHT (IPHONE_X ? 83 : 49) // 分栏
- #define AdaptTabHeight (IPHONE_X ? 34 : 0) //Tabbar 圆角部分高度
- #define AdaptNaviHeight (IPHONE_X ? 24 : 0) //状态栏高度
- #define AUTOSCALE ([[UIScreen mainScreen] bounds].size.width / 375)
- #define WAUTOSCALE ([[UIScreen mainScreen] bounds].size.width / 375)
- #define HAUTOSCALE ([[UIScreen mainScreen] bounds].size.height / 667)
- //#define CloudService @"http://14.18.190.141:11180"
- //#define CloudService @"http://14.18.190.141:1280"
- //创维盒子 测试地址 弃用
- //弃用 #define CloudService @"http://14.18.190.141:1801"
- //弃用 #define shareService @"http://testprivacy.phone.armclouding.com:1801/h5/#/pages/fileSharing/index?productType=Private-X&token="
- //创维盒子 测试地址 正在使用
- //#define CloudService @"http://testprivacy.phone.androidscloud.com:1801"
- //#define shareService @"http://testprivacy.phone.androidscloud.com:1801/h5/#/pages/fileSharing/index?productType=Private-X&token="
- //预生产环境
- #define CloudService @"http://testprivacy.phone.androidscloud.com:10900"
- #define shareService @"http://testprivacy.phone.androidscloud.com:10900/h5/#/pages/fileSharing/index?productType=Private-X&token="
- //生产环境 弃用
- //弃用 #define CloudService @"http://hiboxde.armclouding.com:7780"
- //弃用 #define shareService @"http://hiboxde.armclouding.com:7780/h5/#/pages/fileSharing/index?productType=Private-X&token="
- //生产环境 1.4.3 开始使用
- //#define CloudService @"http://hiboxde.androidscloud.com:7780"
- //#define shareService @"http://hiboxde.androidscloud.com:7780/h5/#/pages/fileSharing/index?productType=Private-X&token="
- #define AESCODEKEEYY @"fvO8gAfNSr1tbdQe"
- //弃用
- //#define EachPieceSzie (512*1024) //每片上传文件大小切割
- #define EachPieceSzie (2*1024*1024) //每片上传文件大小切割
- #define cutVideoPieceSzie (3 * EachPieceSzie) //视频每次切片多少(切完上传再切一次)
- //正在使用
- #define MaxNasUploadPieceSzie (15*1024*1024) //frp上传 限制每片最大xx M
- #define keyToForgetPwd @"%==%"
- #define pageSizeNum 5//500 //分页数量大小
- #define FileService @"http://file.phone.androidscloud.com:8210/document/file/lowLevelMultipartUpload"
- #define Const_File_Access_Key @"ikIm5C0KjKNvusTF6tIH" //@"13d0arghebcc4cm49cf04"
- #define CloudGameService @"http://14.18.190.140:9090"
- #define FileAPPManifestKey Const_File_APP_Manifest_Key_test
- #define WXAPPid @"wx9f3e477e0df9bf03"
- #define WXAppSecret @""
- #define wxuniversalLink @"https://c0b494fd81055077cdcd8bec3cddcb12.share2dlink.com/"
- #define QQAPPid @"102085690"
- #define QQUniversalLink @"https://c0b494fd81055077cdcd8bec3cddcb12.share2dlink.com/qq_conn/102085690"
- #define AirPaySecret @"shuangzixingiOSApp"
- #define User_Info_tableName(userName) [[NSString alloc] initWithFormat:@"User_Info_tableName_%@",userName];
- #define stringKeyAddSn(key) [[NSString alloc] initWithFormat:@"%@_%@",key,ksharedAppDelegate.DeviceThirdIdMod.data.sn]
- #pragma mark 音频相关宏定义
- #define USEAAC NO
- #define AACTOPCM YES
- #define USEAQAAC NO
- #define USEOPENGL YES
- #define USELOCALKEYBOARD NO/*是否使用键盘透传*/
- //#define fullScreenShow NO
- #define P2PModelList_bg_tableName(userName) [[NSString alloc] initWithFormat:@"P2PModelList_bg_tableName_%@",userName];
- #define DB_HWBuryPointModelList_TableName @"DB_HWBuryPointModelList_New"
- #define SignKey @"MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAI3dVMa6FJr+Yhw4sZGk5G+OKAd4gUUVWP1KxplzC4J78WdRk7KMP05l1vkQdQaZmxfZaAlxdDEAZIZWokVUCn5VWEbgHtHoAd9E3GeLmtGKhpwZiLUntlSHrWoWy3/1whTUBoPYmsXQk43LIPaQj6NJ6zmonPLSxyLUdrGZ0DKTAgMBAAECgYApIWen6mF5ApH9bq6E9JLKiSOv7s9D8UmIvnpQGRvYLAk0lGFHHgRovXwTYCMd08E0q/LO8hbm8h8zF8EaaqBTyAiKrirQRe7rK7bkndJufe8kwZqJScE/exSHcqhfOXCWpHUlY6ryiZxCh/MUsLSk/0rHmDJCbUbAVHhb+m3s6QJBAPilttXa7OvAEWGF8ts0Vu5WIejr/gAFwXHr/2RCEbkcATm7XtH0XXouohW9Y0pF0pKS0B4EwVQk/Kd9T2KSq38CQQCSD0K1il2cwg1WVCXBNsRUTW9VhjCp8+VVRFqAGLC6hArwYA6HU2y8UewD/tsuxgNgHGDTHxpy2wmOXGreR5LtAkBgTJ4BOWbk72BL6vrh1uWMLSO4+B1JmPEQ1Bv3kncWwDfhSiYxHnlNpt3zmYPo8h3Z0q5z0demZSTNIYUrYi61AkAGnDYyrR5rd8TOwWQsCGR+RDrjrf0J1AXvA/bskTF+X3d3RYGi0j27kCGUVLZquX9xnBctttylkhAupzQW9zpJAkEAvDoRbyZbj/DpacJF8lnIKyn9BkEC2otl/1vA5Xh/iQmNAhuriZbW7ElmWSNC+AObsnNbxa4UED3Ba52bb299Tg=="
- #pragma mark - 云盘文件缓存路径
- /**云盘文件下载-文件缓存路径*/
- #define kPath_YunPan_Download_Folder [HWDataManager cachesPathForAccount:ksharedAppDelegate.DeviceThirdIdMod.data.sn fileFolder:@"download"]
- /**云盘文件上传-文件缓存路径*/
- #define kPath_YunPan_Upload_Folder [HWDataManager cachesPathForAccount:ksharedAppDelegate.DeviceThirdIdMod.data.sn fileFolder:@"Upload"]
- #endif /* PrefixHeader_pch */
|