| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- #ifndef PrefixHeader_pch
- #define PrefixHeader_pch
- #ifdef __OBJC__
- #import "MBProgressHUD+MJ.h"
- #import "cityDefault.h"
- #import "UIImageView+WebCache.h"
- //#import "UIImage+AFNetworking.h"
- #import "UIButton+WebCache.h"
- #import "SBJson.h"
- #import "Config.h"
- #import "common.h"
- #import "YBPower.h"
- #import "Masonry.h"
- #import "UIView+AdditionsX12.h"
- #import "UIImage+RKColor.h"
- #import "YBBaseAppDelegate.h"
- #import "DspLoginVC.h"
- #import "AppDelegate.h"
- #import <JPUSHService.h>
- #import <JMessage/JMessage.h>
- #import "JChatConstants.h"
- #import "BGSetting.h"
- #import "PublicObj.h"
- #import "PublicView.h"
- #import "YBNetworking.h"
- #import "MyTextField.h"
- #import "MyTextView.h"
- #import "UIView+LBExtension.h"
- #import <SDWebImage/UIImage+GIF.h>
- #import <SDWebImage/SDWebImageManager.h>
- #import <SDWebImage/SDWebImageDownloader.h>
- #import <MJRefresh/MJRefresh.h>
- #import <IQKeyboardManager/IQKeyboardManager.h>
- #import "RKLBSManager.h"
- #import "YBBaseViewController.h"
- #import "YBAlertView.h"
- #import "YBPageControl.h"
- #import "YBLanguageTools.h"
- #import "StorageConfig.h"
- #import "YBInviteCode.h"
- #import "PubH5.h"
- #import "RKActionSheet.h"
- #import "RKKeepAlive.h"
- #import "RKSysAccess.h"
- #import "YBDayTaskManager.h"
- #import "YBLiveRoomAlertView.h"
- #import "YBButton.h"
- #import "TZImagePickerController.h"
- #import <JKCategories.h>
- #import <UIScrollView+EmptyDataSet.h>
- #import "YBYoungManager.h"
- #import "YBNavigationController.h"
- #import "THeader.h"
- #import "YBImManager.h"
- #import "YBMessageManager.h"
- #import "GDYTranslateTool.h"
- #import <ImSDK_Plus/ImSDK_Plus.h>
- #import "YBCreatorHeader.h"
- #import "YBActiveManager.h"
- #import "NSObject+RKLog.h"
- #endif
- #define purl @"http://xxxxx.com/appapi/"
- #define h5url @"http://xxxxxx.com"
- //腾讯IM
- #define TXIMSdkAppid 14xxxxxx7
- /*
- 腾讯tpns推送
- 腾讯tpns推送服务接入点
- 上海 @"tpns.sh.tencent.com"
- 新加坡 @"tpns.sgp.tencent.com"
- 香港 @"tpns.hk.tencent.com"
- 广州 @"tpns.tencent.com"
- */
- #define TXPushAccessID 16xxxxxx60
- #define TXPushAccessKey @"I6xxxxxxJ"
- #define TXPushClusterDomain @"tpns.sh.tencent.com"
- //腾讯地图key
- #define TencentKey @"TDFxxxxxxxxxxxxxxxxF-4KB2T"
- //百度语音识别 在此填写应用的 appid(即appcode)、 api key、 secret key"
- #define ASR_APP_ID @"26xxxxxx6"
- #define ASR_API_KEY @"5nxxxxxxxxx09z"
- #define ASR_SECRET_KEY @"mkzxxxxxxxxxxxxi9K"
- //Bugly
- #define BuglyId @"91xxxxxxxxxx0"
- //友盟
- #define UMAppKey @"5cxxxxxxxxxxxxxx8b4"
- #define UMChannel @""
- // 测试 com.yunbao.one
- #define LicenceDspURL @"https://license.vod2.myqcloud.com/license/v2/1302642885_1/v_cube.license"
- #define LicenceDspKey @"efbxxxxxxxxxxxxxxf45f"
- #define LicenceLiveUrl @"https://license.vod2.myqcloud.com/license/v2/1300846245_1/v_cube.license"
- #define LicenceLiveKey @"512xxxxxxxxxxxxxxxxd2c8"
- #pragma mark - 三方接入信息 注意 在info 中也要配置 QQ要配置两个(tencent+QQAppId || QQ+QQAppId的16进制 )
- //QQ
- #define QQAppId @"10xxxxxxxx8"
- #define QQAppKey @"e49xxxxxxxxxxxxxxxxxba"
- #define QQUniversalLink @"https://xxxxxxx.com/qq_conn/101xxxx98"
- //wechat
- #define WechatAppId @"wx7bxxxxxxxxxb58"
- #define WechatAppSecret @"f840cxxxxxxxxxxxxxxxx35cd5"
- #define WechatUniversalLink @"https://xxxxxxxx.com/"
- #define WechatUsername @"gh_e0130aea3153"
- #pragma mark -
- //极光【废弃】
- #define JpushAppKey @"4e4fd111f011e9e6b031af68"
- #define JmessageName @""
- #define Jchannel @"Publish channel"
- #define isProduction YES
- #define YBWeakSelf __weak typeof(self) weakSelf = self;
- #define minstr(a) [NSString stringWithFormat:@"%@",a]
- #define strFormat(str) ([PublicObj checkNull:[NSString stringWithFormat:@"%@",str]] \
- ? @"" : [NSString stringWithFormat:@"%@",str])
- //rk_1-31 是否加版权展示 0-不展示 1-展示
- #define showCopyright 0
- #define copyrightDes @"Copyright©2013-2020,XXX All rights reserved"
- //腾讯SDK 最大、最小录制时间 去 VideoRecordProcessView.h 配置
- //#define MAX_RECORD_TIME 15
- //#define MIN_RECORD_TIME 5
- //短视频录制时长控制
- #define live_MAX_RECORD_TIME 15
- #define live_MIN_RECORD_TIME 5
- #define ios8 [[UIDevice currentDevice].systemVersion floatValue] <9
- #define iOS11Later ([UIDevice currentDevice].systemVersion.floatValue >= 11.0f)
- ///通知
- //青少年模式时间到了
- #define ybYoungModelTimeEndEvent @"young_model_time_end"
- // 青少年模式开关状态改变
- #define ybYoungModelSwitchChage @"young_model_switch_change"
- //@规则
- #define kATRegular @"@[\\u4e00-\\u9fa5\\w\\-\\_]+ "
- //emoji规则
- #define emojiPattern @"\\[\\w+\\]"
- //rk_1-30
- #define DoubleClickRefreshNot @"DoubleClickRefreshNot"
- //颜色
- #define Pink_Cor RGB_COLOR(@"#EA377F", 1)
- #define Pink_Cor_Dis RGB_COLOR(@"#EA377F", 0.5)
- #define Orange_Cor RGB_COLOR(@"#FF6131", 1)
- #define Normal_Color RGB_COLOR(@"#110D24", 1)
- #define Normal_TextColor RGB(150, 150, 150)
- #define Normal_BackColor RGB(17, 13, 35)
- #define Normal_SubColor RGB(24, 21, 43)
- #define RGB(r,g,b) [UIColor colorWithRed:(r)/255.f \
- green:(g)/255.f \
- blue:(b)/255.f \
- alpha:1.f]
- #define RGBA(r, g, b, a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
- #define CellRow_Cor RGB_COLOR(@"#15102C", 1)
- #define SelCell_Col RGB_COLOR(@"#1c1733", 1)
- #define GrayText RGB_COLOR(@"#969696", 1)
- #define Line_Cor RGB_COLOR(@"#ffffff", 0.06)
- #define AtCol RGB_COLOR(@"#f2e50b", 1)
- //Tab
- #define Tab_bgc RGB_COLOR(@"#000000", 0)
- #define Tab_nor RGB_COLOR(@"#dcdcdc", 1)
- #define Tab_sel RGB_COLOR(@"#ffffff", 1)
- #define ybNodataCol RGB_COLOR(@"#969696", 1)
- #define ybPopBgCol RGB_COLOR(@"#000000", 0.4)
- //图片
- #define FOREGROUND_STAR_IMAGE_NAME @"start_select_评价"
- #define BACKGROUND_STAR_IMAGE_NAME @"start_normal_评价"
- #define Comm_FOREGROUND_STAR_IMAGE_NAME @"comm_star_实心"
- #define Comm_BACKGROUND_STAR_IMAGE_NAME @"comm_star_空心"
- #define video_FOREGROUND_STAR_IMAGE_NAME @"videocontent_评价sel"
- #define video_BACKGROUND_STAR_IMAGE_NAME @"videocontent_评价normal"
- //字体
- #define SYS_Font(a) [UIFont systemFontOfSize:(a)]
- #define ybNodataFont [UIFont systemFontOfSize:13]
- //导航
- #define NaviBg_Color RGB_COLOR(@"#15102c", 1)
- #define NaviTitle_Color [UIColor whiteColor]
- #define NaviTitle_Font [UIFont boldSystemFontOfSize:17]
- //语言
- #define YZMsg(key) [[YBLanguageTools shareInstance] getStringForKey:key withTable:@"InfoPlist"]
- #define CurrentLanguage @"will_show_language"
- #define getImagename(a) [NSString stringWithFormat:@"%@%@",a,[common getLanguage]]
- #define lagType [[NSUserDefaults standardUserDefaults] objectForKey:@"will_show_language"]
- #define ZH_CN @"zh-Hans"
- #define EN @"en"
- //
- #define _pageBarWidth _window_width *0.65
- #define _window_width [UIScreen mainScreen].bounds.size.width
- #define _window_height [UIScreen mainScreen].bounds.size.height
- #define RGB_COLOR(_STR_,a) ([UIColor colorWithRed:[[NSString stringWithFormat:@"%lu", strtoul([[_STR_ substringWithRange:NSMakeRange(1, 2)] UTF8String], 0, 16)] intValue] / 255.0 green:[[NSString stringWithFormat:@"%lu", strtoul([[_STR_ substringWithRange:NSMakeRange(3, 2)] UTF8String], 0, 16)] intValue] / 255.0 blue:[[NSString stringWithFormat:@"%lu", strtoul([[_STR_ substringWithRange:NSMakeRange(5, 2)] UTF8String], 0, 16)] intValue] / 255.0 alpha:a])
- #define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
- green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
- blue:((float)(rgbValue & 0xFF))/255.0 \
- alpha:1.0]
- //iPhone X
- #define IS_BIG_SCREEN (IS_IPHONE && SCREEN_MAX_LENGTH > 667.0)
- #define iPhoneX (_window_height >= 812.f)
- #define ShowDiff (iPhoneX ? 34: 0)
- #define ElBotSpace (ShowDiff ? ShowDiff : 18)
- //#define statusbarHeight ([[UIApplication sharedApplication] statusBarFrame].size.height-20)
- #define statusbarHeight ([UIApplication sharedApplication].delegate.window.windowScene.statusBarManager.statusBarFrame.size.height-20)
- #define topStatusBarHeight (iPhoneX ? 44.0 : 20.0)
- #define naviContentHeight 44.0
- #define naviHight (topStatusBarHeight + naviContentHeight)
- #define tabBarSafeSpace (iPhoneX ? 34.0 : 0.0)
- #define tabBarContentHeight 49.0
- #define tabBarHeight (tabBarSafeSpace + tabBarContentHeight)
- //音视频通话缓存key
- #define ybUnexpectedDealTime 5
- #define ybAudioVideoCallWaitting 10
- #define ybAudioVideoCallCtrKey @"audio_video_call_user_enter"
- #define ybIsStartCallKey @"isStartCall"
- // 呼叫方呼叫超时 显示是否预约弹窗状态
- #define ybIsSubscribeWaitting @"issSubscribeWaitting"
- //进入房间缓存key
- #define ybMatchRoomCtrKey @"match_room_user_enter"
- //IM呼叫者id
- #define ybImCallingUid @"CallingUid"
- //正在聊天的id
- #define ybImChatingUid @"messageingUserID"
- // IM主动刷新
- #define ybImNeedRefresh @"imNeedRefresh"
- // IM私信未读数量改变
- #define ybImUnreadChange @"ybImUnreadChange"
- // 邀请、退出、撤回
- #define ybImConveEvent @"ybImConveEvent"
- // IM小窗高度改变
- #define ybImSamllChange @"ybImSamllChangeEvent"
- // IM C2C 顶部关注
- #define ybImC2CFollow @"ybImC2CFollow"
- #define TransAppId @"25886636"
- #define TransApiKey @"RerdgAnvdBNPZW6alfd64AXa"
- #define TransSecret @"jfF3LnQYTba4W2KdmwzjedtPQh1KYYpS"
- #define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
- #define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
- #define IS_RETINA ([[UIScreen mainScreen] scale] >= 2.0)
- #define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
- #define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
- #define SCREEN_MAX_LENGTH (MAX(SCREEN_WIDTH, SCREEN_HEIGHT))
- #define SCREEN_MIN_LENGTH (MIN(SCREEN_WIDTH, SCREEN_HEIGHT))
- #define IS_IPHONE_4_OR_LESS (IS_IPHONE && SCREEN_MAX_LENGTH < 568.0)
- #define IS_IPHONE_5 (IS_IPHONE && SCREEN_MAX_LENGTH == 568.0)
- #define IS_IPHONE_6 (IS_IPHONE && SCREEN_MAX_LENGTH == 667.0)
- #define IS_IPHONE_6P (IS_IPHONE && SCREEN_MAX_LENGTH == 736.0)
- #define IS_IPHONE_X (IS_IPHONE && SCREEN_MAX_LENGTH >= 812.f)
- #if DEBUG
- //#import <UIKit/UIKit.h>
- #define NSLog(FORMAT, ...) fprintf(stderr,"\n【DEBUG】[%s %s:%d行] %s\n",\
- [((id(*)(void))method_getImplementation(class_getClassMethod(NSObject.class, @selector(rk_getConsoleLogOfTime))))() UTF8String], \
- [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], \
- __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
- #else
- //#import <UIKit/UIKit.h>
- #define NSLog(FORMAT, ...) nil
- #endif
- #endif /* PrefixHeader_pch */
- //#if 1
- //#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
- //#else
- //
- //#define NSLog(FORMAT, ...) nil
- //
- //#endif
- //#ifndef __OPTIMIZE__
- //# define NSLog(...) NSLog(__VA_ARGS__)
- //#else
- //# define NSLog(...)
- //#endif
- //rk_Referer、"Referer
- /*
- * 1.SVGAParser.m
- * parseWithURL:
- * //rk_Referer
- request.allHTTPHeaderFields = @{@"referer":@""};
- *
- * 2.YYWebImageManager.m
- * initWithCache:
- * //rk_Referer *前的反斜线
- if (YYImageWebPAvailable()) {
- _headers = @{ @"Accept" : @"image/webp,image/\*;q=0.8",@"referer":@""};
- } else {
- _headers = @{ @"Accept" : @"image/\*;q=0.8",@"referer":@""};
- }
- *
- * KSMediaPlaerManager.m
- * initializePlayer
- * //rk_Referer
- NSMutableDictionary *headerDic = [NSMutableDictionary dictionary];
- [headerDic setObject:@"" forKey:@"Referer"];
- [self.player setHttpHeaders:headerDic];
- */
- //#define HLFBKey @"e6ed81d408d08db5280937e8d007394c"
- //测试 //com.inlive.phonelive
- //#define LicenceDspURL @"http://license.vod2.myqcloud.com/license/v1/6bac8634bf98183083c195bc54ede3e2/TXUgcSDK.licence"
- //#define LicenceDspKey @"d0e2c76de7a418016a4053e4dc7a0604"
- //#define LicenceLiveUrl @"http://license.vod2.myqcloud.com/license/v1/6bac8634bf98183083c195bc54ede3e2/TXLiveSDK.licence"
- //#define LicenceLiveKey @"d0e2c76de7a418016a4053e4dc7a0604"
|