// // Predefine.h // WFChat UIKit // // Created by WF Chat on 2017/10/29. // Copyright © 2017年 WildFireChat. All rights reserved. // #ifndef Predefine_h #define Predefine_h #define IOS_SYSTEM_VERSION_LESS_THAN(v) \ ([[[UIDevice currentDevice] systemVersion] \ compare:v \ options:NSNumericSearch] == NSOrderedAscending) #define RGBCOLOR(r, g, b) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:1] #define RGBACOLOR(r, g, b, a) [UIColor colorWithRed:(r) / 255.0f green:(g) / 255.0f blue:(b) / 255.0f alpha:(a)] #define HEXCOLOR(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] #define SDColor(r, g, b, a) [UIColor colorWithRed:(r / 255.0) green:(g / 255.0) blue:(b / 255.0) alpha:a] #define Global_tintColor [UIColor colorWithRed:0 green:(190 / 255.0) blue:(12 / 255.0) alpha:1] #define Global_mainBackgroundColor SDColor(248, 248, 248, 1) #define TimeLineCellHighlightedColor [UIColor colorWithRed:92/255.0 green:140/255.0 blue:193/255.0 alpha:1.0] #define DAY @"day" #define NIGHT @"night" #define kMessageListChanged @"kMessageListChanged" #define WFZOOM_PRIVATE_CONFERENCE_ID @"WFZOOM_PRIVATE_CONFERENCE_ID" #define kCONFERENCE_DESTROYED @"kCONFERENCE_DESTROYED" //如果您不需要voip功能,请在ChatUIKit工程中关掉voip功能,然后修改WFChat-Prefix-Header.h中WFCU_SUPPORT_VOIP为0 //ChatUIKit关闭voip的方式是,找到ChatUIKit工程下的Predefine.h头文件,定义WFCU_SUPPORT_VOIP为0, //再删除掉ChatUIKit工程的WebRTC和WFAVEngineKit的依赖。 //删除掉应用工程中的WebRTC.framework和WFAVEngineKit.framework这两个库。 #define WFCU_SUPPORT_VOIP 1 #define WFCString(key) [[NSBundle bundleForClass:[self class]] localizedStringForKey:key value:@"" table:@"wfc"] //对讲功能开关,在Chat工程也有同样的一个开关,需要保持同步 //#define WFC_PTT #endif /* Predefine_h */