|
|
|
//
|
|
|
|
// LekangGuard.pch
|
|
|
|
// LekangGuard
|
|
|
|
//
|
|
|
|
// Created by ecell on 2022/9/27.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef LekangGuard_pch
|
|
|
|
#define LekangGuard_pch
|
|
|
|
|
|
|
|
#ifdef __OBJC__
|
|
|
|
|
|
|
|
#import <ZXNavigationBarController.h>
|
|
|
|
#import <YYModel.h>
|
|
|
|
#import <Masonry.h>
|
|
|
|
#import <AFNetworking.h>
|
|
|
|
#import <MSNetwork.h>
|
|
|
|
#import <ReactiveObjC.h>
|
|
|
|
#import <EasyTextView.h>
|
|
|
|
#import <EasyLoadingView.h>
|
|
|
|
#import <EasyAlertView.h>
|
|
|
|
#import <YYCache/YYCache.h>
|
|
|
|
#import <SDWebImage.h>
|
|
|
|
#import <JhtMarquee/JhtVerticalMarquee.h>
|
|
|
|
#import <JhtMarquee/JhtHorizontalMarquee.h>
|
|
|
|
#import <DZNEmptyDataSet/DZNEmptyDataSet-umbrella.h>
|
|
|
|
#import "YBPopupMenu.h"
|
|
|
|
#import <JLAuthorizationManager.h>
|
|
|
|
#import <BRPickerView.h>
|
|
|
|
#import <NSDate+BRPickerView.h>
|
|
|
|
#import <BRDatePickerView.h>
|
|
|
|
#import <KafkaRefresh/KafkaRefresh.h>
|
|
|
|
#import <IQKeyboardManager/IQKeyboardManager.h>
|
|
|
|
#import <SMS_SDK/SMSSDK.h>
|
|
|
|
|
|
|
|
|
|
|
|
//高德SDK
|
|
|
|
#import <AMapSearchKit/AMapSearchKit.h>
|
|
|
|
#import <MAMapKit/MAMapKit.h>
|
|
|
|
#import <AMapFoundationKit/AMapFoundationKit.h>
|
|
|
|
#import <AMapLocationKit/AMapLocationKit.h>
|
|
|
|
|
|
|
|
|
|
|
|
#import <GoogleMaps/GoogleMaps.h>
|
|
|
|
#import <GooglePlaces/GooglePlaces.h>
|
|
|
|
|
|
|
|
#import "UICommon.h"
|
|
|
|
#import "CommonTableView.h"
|
|
|
|
#import "Const.h"
|
|
|
|
#import "BaseModel.h"
|
|
|
|
#import "APIManager.h"
|
|
|
|
#import "YYKit.h"
|
|
|
|
#import "UIViewExt.h"
|
|
|
|
#import "UIURL.h"
|
|
|
|
#import "NSString+Check.h"
|
|
|
|
#import "UIModel.h"
|
|
|
|
#import "WSLWaterFlowLayout.h"
|
|
|
|
#import "ZZBadgeButton.h"
|
|
|
|
#import "UIView+Tools.h"
|
|
|
|
#import <LGAlertView/LGAlertView.h>
|
|
|
|
|
|
|
|
#import "HomeViewController.h"
|
|
|
|
#import "MapViewController.h"
|
|
|
|
#import "MyViewController.h"
|
|
|
|
#import "CLLocation+YCLocation.h"
|
|
|
|
#import "Enum.h"
|
|
|
|
#import <MJExtension/MJExtension.h>
|
|
|
|
#import "JSToastDialogs.h"
|
|
|
|
#import "UIView+ViewController.h"
|
|
|
|
#import "JX_GCDTimerManager.h"
|
|
|
|
#import "APHandleManager.h"
|
|
|
|
#import "DeviceSwitchover.h"
|
|
|
|
#import "UIView+Effects.h"
|
|
|
|
|
|
|
|
#define WXAPPID @"wxc0ca3e7f672ac786"
|
|
|
|
#define WXAPPSecret @"009bbe40ee4b6a6f8a1b413a2989167a"
|
|
|
|
|
|
|
|
//APP 在屏幕上显示的名字
|
|
|
|
#define APPName [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"]
|
|
|
|
|
|
|
|
#define RGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0]
|
|
|
|
#define RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
|
|
|
|
#define HEXCOLOR(c) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:(c&0xFF)/255.0 alpha:1.0]
|
|
|
|
|
|
|
|
// 背景灰
|
|
|
|
#define KKBackgroundGrey RGB(245, 248, 255)
|
|
|
|
|
|
|
|
/// 透明
|
|
|
|
#define KKClearColor [UIColor clearColor]
|
|
|
|
/// 白色
|
|
|
|
#define KKWhiteColorColor [UIColor whiteColor]
|
|
|
|
|
|
|
|
/// 字体黑 14
|
|
|
|
#define KKTextBlackColor RGB(42, 42, 42)
|
|
|
|
|
|
|
|
/// 主题蓝59, 161, 245
|
|
|
|
#define KKMainColor RGB(59, 161, 245)
|
|
|
|
|
|
|
|
/// 浅灰219
|
|
|
|
#define KKGrey219 RGB(219, 219, 219)
|
|
|
|
|
|
|
|
/// 灰143
|
|
|
|
#define KKGrey143 RGB(143, 156, 179)
|
|
|
|
|
|
|
|
/// 灰121
|
|
|
|
#define KKGrey121 RGB(121, 121, 121)
|
|
|
|
|
|
|
|
/// 灰102
|
|
|
|
#define KKGrey102 RGB(102, 102, 102)
|
|
|
|
|
|
|
|
/// 灰133
|
|
|
|
#define KKGrey133 RGB(133, 133, 133)
|
|
|
|
|
|
|
|
/// 间隔线浅灰
|
|
|
|
#define KKLineColor RGB(235, 235, 235)
|
|
|
|
|
|
|
|
// 字体
|
|
|
|
#define Font_(x) [UIFont fontWithName:@"HelveticaNeue" size: x]
|
|
|
|
#define FontBold_(x) [UIFont fontWithName:@"HelveticaNeue-Bold" size: x]
|
|
|
|
#define ImageName_(string) [UIImage imageNamed:string]
|
|
|
|
|
|
|
|
#define FontADA_(x) [UIFont fontWithName:@"HelveticaNeue" size: Adapted(x)]
|
|
|
|
#define FontBoldADA_(x) [UIFont fontWithName:@"HelveticaNeue-Bold" size: Adapted(x)]
|
|
|
|
|
|
|
|
|
|
|
|
/// 判断字符串是否有值
|
|
|
|
#define STRINGHASVALUE(str) (str && [str isKindOfClass:[NSString class]] && [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]].length > 0)
|
|
|
|
/// 判断字典是否有值
|
|
|
|
#define DICTIONARYHASVALUE(dic) (dic && [dic isKindOfClass:[NSDictionary class]] && [dic count] > 0)
|
|
|
|
/// 判断数组是否有值
|
|
|
|
#define ARRAYHASVALUE(array) (array && [array isKindOfClass:[NSArray class]] && [array count] > 0)
|
|
|
|
/// 判断NSNumber是否有值
|
|
|
|
#define NUMBERHASVALUE(number) (number && [number isKindOfClass:[NSNumber class]])
|
|
|
|
/// 判断NSNumber值 > 0
|
|
|
|
#define NUMBERPLUSVALUE(number) (number && [number isKindOfClass:[NSNumber class]] && [number intValue] > 0)
|
|
|
|
/// 获取合法字符串
|
|
|
|
#define GETVALIDSTRING(str) (STRINGHASVALUE(str) ? str : @"")
|
|
|
|
/// 获取合法字典
|
|
|
|
#define GETVALIDDICTIONARY(dic) (DICTIONARYHASVALUE(dic) ? dic : @{})
|
|
|
|
/// 获取合法数组
|
|
|
|
#define GETVALIDARRAY(array) (ARRAYHASVALUE(array) ? array : @[])
|
|
|
|
/// 获取合法Number
|
|
|
|
#define GETVALIDNUMBER(number) (NUMBERHASVALUE(number) ? number : @"")
|
|
|
|
|
|
|
|
// ==================================================================
|
|
|
|
// 版本信息
|
|
|
|
// ==================================================================
|
|
|
|
|
|
|
|
#define iOSVersion ([[[UIDevice currentDevice] systemVersion] floatValue])
|
|
|
|
#define iOSVersionEqualTo(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
|
|
|
|
#define iOSVersionGreaterThan(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
|
|
|
|
#define iOSVersionGreaterThanOrEqualTo(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
|
|
|
|
#define iOSVersionLessThan(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
|
|
|
|
#define iOSVersionLessThanOrEqualTo(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)
|
|
|
|
|
|
|
|
|
|
|
|
//当前设备 系统版本
|
|
|
|
#define CurrentSystemVersion [[UIDevice currentDevice] systemVersion]
|
|
|
|
|
|
|
|
#define F(string, args...) [NSString stringWithFormat:string, args]
|
|
|
|
|
|
|
|
|
|
|
|
/// 用户账号缓存
|
|
|
|
#define UserCacheName @"UserAccountCache"
|
|
|
|
|
|
|
|
/// 用户账号缓存Key
|
|
|
|
#define UserCacheKey @"UserCacheKey"
|
|
|
|
|
|
|
|
#define UPDATA_DeviceList @"UpdataDeviceList"
|
|
|
|
|
|
|
|
|
|
|
|
#define SearchHistory @"searchHistory"
|
|
|
|
|
|
|
|
// 心率和体温测量倒计时时间Key
|
|
|
|
//心率
|
|
|
|
#define HeartMeasurementTimeKey @"HeartMeasurementTimeKey"
|
|
|
|
//体温
|
|
|
|
#define TempMeasurementTimeKey @"TempMeasurementTimeKey"
|
|
|
|
|
|
|
|
/// 设备推送Token
|
|
|
|
#define DeviceTokenKey @"DeviceTokenKey"
|
|
|
|
|
|
|
|
#define PUSH_type_chatGroupRemove @"chatGroupRemove"//用户离开聊天群
|
|
|
|
#define PUSH_type_chatGroupMessage @"chatGroupMessage"//新聊天消息到达
|
|
|
|
|
|
|
|
#define PUSH_type_chatGroupDisband @"chatGroupDisband"//聊天群解散
|
|
|
|
|
|
|
|
// 消息中心的通知
|
|
|
|
#define AccountMessageNotification @"accountMessage"
|
|
|
|
|
|
|
|
// 通话时间 和 视频ID 的记录 Key
|
|
|
|
#define VideoTimeAndIDAndWHRecordKey @"VideoTimeAndIDAndWHRecordKey"
|
|
|
|
|
|
|
|
/// 点击未读消息后更新未读消息数量
|
|
|
|
#define KK_UPDATE_ALL_NEWS_MESSAGE @"UPDATE_ALL_NEWS_MESSAGE"
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// Include any system framework and library headers here that should be included in all compilation units.
|
|
|
|
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
|
|
|
|
|
|
|
|
#endif /* LekangGuard_pch */
|