123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- //
- // AppConfigHeader.h
- // DevelopUtils_Objective_C
- //
- // Created by 翟玉磊 on 2018/9/14.
- // Copyright © 2018年 翟玉磊. All rights reserved.
- //
- #ifndef AppConfigHeader_h
- #define AppConfigHeader_h
- /// 3:127.xxx、192.168.x.x 2:预发 1:测试 0:正式
- #define IS_DEBUG 1
- #define APP_ID @"" //苹果id
- /// 工程名字
- #define APP_EXECUTABLE_FILE @"Starbuds"
- /// APP名字
- //#define APP_NAME [[NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:APP_LANGUAGE ofType:@"lproj"]] localizedStringForKey:(@"CFBundleDisplayName") value:nil table:@"InfoPlist"]
- #define APP_NAME [NSString kcAppName]
- /// APP版本号
- #define APP_VERSION ([[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"])
- /// APP build
- #define APP_BUILD ([[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"])
- /// APP 包名
- #define APP_BundleIdentifier ([[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"])
- /// 客服电话
- #define SERVICE_PHONE @"0571-28321061"
- /// 分页单页个数
- #define PQ_PAGE_SIZE 20
- /// 头像url加后缀
- #define Avatar_urlString(__string) [NSString stringWithFormat:@"%@!sq96", __string]
- /// 缩略图后缀 x列表360 详情750
- #define Thumbnail_Suffix(__string) [NSString stringWithFormat:@"%@!sq", __string]
- /// 列表封面缩略图后缀
- #define List_Thumbnail_Suffix @"!sq350"
- /// 开启隐藏关注功能的勋章等级
- #define Open_Hiden_Follow_Medal_Level 5
- #pragma mark - ----------默认图----------
- /** 占位图 */
- static inline UIImage *const placeholderImage() {
- return [UIImage imageNamed:@"placeholder_image"];
- }
- /** 占位头像 */
- static inline UIImage *const placeholderUserIcon () {
- return [UIImage imageNamed:@"placeholder_user_image"];
- }
- /** 更多图片 */
- static inline UIImage *const arrowMore () {
- return [UIImage imageNamed:@"icon_more"];
- }
- /** banner占位图 */
- static inline UIImage *const placeholderBannerImage() {
- return [UIImage imageNamed:@"placeholder_banner_image"];
- }
- /** 性别 女生图标 */
- static inline UIImage *const sexGirlImage() {
- return [UIImage imageNamed:@"icon_sex_nv"];
- }
- /** 性别 男生图标 */
- static inline UIImage *const sexBoyImage() {
- return [UIImage imageNamed:@"icon_sex_nan"];
- }
- /** 视频默认背景图片 */
- static inline UIImage *const placeholderVideoBgImage() {
- return [UIImage imageNamed:@"icon_video_bg_image"];
- }
- /** 个人主页默认背景图片 */
- static inline UIImage *const placeholderUserMainBgImage(NSInteger sex) {
- if (sex == 1) {
- return [UIImage imageNamed:@"placeholder_user_nan_bg"];
- }
- return [UIImage imageNamed:@"placeholder_user_nv_bg"];
- }
- /** app icon */
- static inline UIImage *const placeholderAppIconImage() {
- return [UIImage imageNamed:@"icon_logo_114"];
- }
- #pragma mark - ----------通知名称----------
- /// 用户登陆状态改变
- static NSString * const USER_LOGIN_STATUS_NOTIFICATION = @"USER_LOGIN_STATUS_NOTIFICATION";
- /// 更新用户资料通知
- static NSString * const UPDATE_USER_INFO_NOTIFICATION = @"UPDATE_USER_INFO_NOTIFICATION";
- /// 修改名字通知
- static NSString * const USER_MODIFY_NAME_NOTIFICATION = @"USER_MODIFY_NAME_NOTIFICATION";
- /// 微信登录授权成功通知
- static NSString * const WECHAT_LOGIN_SUCCESS_NOTIFICATION = @"WECHAT_LOGIN_SUCCESS_NOTIFICATION";
- /// QQ登录授权成功通知
- static NSString * const QQ_LOGIN_SUCCESS_NOTIFICATION = @"QQ_LOGIN_SUCCESS_NOTIFICATION";
- /// 微博登录授权成功通知
- static NSString * const SINA_LOGIN_SUCCESS_NOTIFICATION = @"SINA_LOGIN_SUCCESS_NOTIFICATION";
- /// 微信APP支付回调通知
- static NSString * const WECAHT_APP_PAY_NOTIFICATION = @"WECAHT_APP_PAY_NOTIFICATION";
- /// 支付宝APP支付回调通知
- static NSString * const ALI_APP_PAY_NOTIFICATION = @"ALI_APP_PAY_NOTIFICATION";
- /// 支付宝APP绑定成功回调
- static NSString * const ALI_BIND_SUCCESS_NOTIFICATION = @"ALI_BIND_SUCCESS_NOTIFICATION";
- /// 视频列表分类update通知
- static NSString * const UPDATE_VIDEO_CATEGORY_NOTIFICATION = @"UPDATE_VIDEO_CATEGORY_NOTIFICATION";
- /// 金币余额变更通知 在使用和充值后都要更新数据库的余额 之后发起这个通知 在需要显示余额的地方可以监听这个通知 从数据控获取显示
- static NSString * const BALANCE_UPDATE_NOTIFICATION = @"BALANCE_UPDATE_NOTIFICATION";
- /// 刷新直播间活动列表
- static NSString * const REFRESH_LIVE_ACTIVITY_LIST_NOTIFICATION = @"REFRESH_LIVE_ACTIVITY_LIST_NOTIFICATION";
- /// H5用户信息改变通知 当用户的信息在H5中改变则触发此消息,刷新需要修改的本地信息
- static NSString * const REFRESH_H5_USER_INFO_CHANGE_NOTIFICATION = @"REFRESH_H5_USER_INFO_CHANGE_NOTIFICATION";
- /// 视频呼叫超时通知
- static NSString * const VIDEO_CALL_TIMEOUT_NOTIFICATION = @"VIDEO_CALL_TIMEOUT_NOTIFICATION";
- /// APP将要进入活跃状态
- static NSString * const APP_WILL_ENTER_FOREGROUND_NOTIFICATION = @"APP_WILL_ENTER_FOREGROUND_NOTIFICATION";
- /// APP将要进入非活跃状态
- static NSString * const APP_WILL_ENTER_BACKGROUND_NOTIFICATION = @"APP_WILL_ENTER_BACKGROUND_NOTIFICATION";
- ///视频内容发布成功通知
- static NSString * const RELEASE_VIDEO_SUCCESS_NOTIFICATION = @"RELEASE_VIDEO_SUCCESS_NOTIFICATION";
- ///图片内容发布成功通知
- static NSString * const RELEASE_IMAGE_SUCCESS_NOTIFICATION = @"RELEASE_IMAGE_SUCCESS_NOTIFICATION";
- /// 速配语聊通知
- static NSString * const VOICE_MATCH_NOTIFICATION = @"VOICE_MATCH_NOTIFICATION";
- /// APP私聊消息inputbar礼物按钮点击事件
- static NSString * const PRIVATE_CHAT_GIFTACTION_NOTIFICATION = @"PRIVATE_CHAT_GIFTACTION_NOTIFICATION";
- /// XYLiveRoomChatListCell点击特殊view事件
- static NSString * const LIVEROOM_CHATLIST_CELL_NOTIFICATION = @"LIVEROOM_CHATLIST_CELL_NOTIFICATION";
- /// 开通贵族通知
- static NSString * const OPEN_NOBLE_NOTIFICATION = @"OPEN_NOBLE_NOTIFICATION";
- /// 派单消息红点隐藏状态更新通知 需要更新红点显示
- static NSString * const DISPATCH_ORDER_BADGE_HIDE_STATE_UPDATE_NOTIFICATION = @"DISPATCH_ORDER_BADGE_HIDE_STATE_UPDATE_NOTIFICATION";
- /// 心愿任务开关状态变更通知
- static NSString * const WISH_TASK_SWITCH_NOTIFICATION = @"WISH_TASK_SWITCH_NOTIFICATION";
- /// 活动变更通知,如蛋糕结束
- static NSString * const ACTIVITY_UPDATE_NOTIFICATION = @"ACTIVITY_UPDATE_NOTIFICATION";
- #pragma mark - ----------NSUserDefaults name-------------
- // UserDefault 相关
- #define YLUserDefault [NSUserDefaults standardUserDefaults]
- #define YLSetUserDefaults(id,key) [[NSUserDefaults standardUserDefaults] setObject:id forKey:key]
- #define YLGetUserDefaults(key) [[NSUserDefaults standardUserDefaults] objectForKey:key]
- /// 缓存APP配置信息
- static NSString * const APP_CONFIG_INFO_USERDEFAULT = @"APP_CONFIG_INFO_USERDEFAULT";
- /// 缓存搜索的关键字
- static NSString * const SEARCH_KEYWORD_USERDEFAULTS = @"SEARCH_KEYWORD_USERDEFAULTS";
- /// 缓存上次选中的国家以及手机区号是字典类型 key: country\areaCode\countryId
- static NSString * const LOCAL_COUNTRY_USERDEFAULTS = @"LOCAL_COUNTRY_USERDEFAULTS";
- ///苹果支付成功的订单信息 防止支付了后台没有接收到支付成功的回调
- static NSString * const APPSTORE_PAY_SUCCESS_INFO_USERDEFAULTS = @"APPSTORE_PAY_SUCCESS_INFO_USERDEFAULTS";
- #endif /* AppConfigHeader_h */
|