WFChat-Prefix-Header.pch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // WFChat-Prefix-Header.pch
  3. // WildFireChat
  4. //
  5. // Created by Heavyrain.Lee on 2019/9/22.
  6. // Copyright © 2019 WildFire Chat. All rights reserved.
  7. //
  8. #ifndef WFChat_Prefix_Header_pch
  9. #define WFChat_Prefix_Header_pch
  10. #import <UIKit/UIKit.h>
  11. // Include any system framework and library headers here that should be included in all compilation units.
  12. // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
  13. #define LocalizedString(key) NSLocalizedStringFromTable(key, @"InfoPlist", nil)
  14. //如果您不需要voip功能,请在ChatUIKit工程中关掉voip功能,然后修改WFChat-Prefix-Header.h中WFCU_SUPPORT_VOIP为0
  15. //ChatUIKit关闭voip的方式是,找到ChatUIKit工程下的Predefine.h头文件,定义WFCU_SUPPORT_VOIP为0,
  16. //再删除掉ChatUIKit工程的WebRTC和WFAVEngineKit的依赖。
  17. //删除掉应用工程中的WebRTC.framework和WFAVEngineKit.framework这两个库。
  18. #define WFCU_SUPPORT_VOIP 1
  19. //对讲功能开关,在ChatKit工程也有同样的一个开关,需要保持同步
  20. //#define WFC_PTT
  21. //朋友圈的开关
  22. //#define WFC_MOMENTS
  23. //关于启用callkit功能,请参考 https://docs.wildfirechat.cn/blogs/iOS如何启用CallKit.html
  24. #define USE_CALL_KIT 0
  25. //模拟器不支持callkit
  26. #if TARGET_IPHONE_SIMULATOR
  27. #define USE_CALL_KIT 0
  28. #endif
  29. #endif /* WFChat_Prefix_Header_pch */