//
//  GMConstant.h
//  GMKit
//
//  Created by wangyang on 2017/11/8.
//

#import <Foundation/Foundation.h>

#define MAINSCREEN_FRAME    [[UIScreen mainScreen] bounds]
#define MAINSCREEN_WIDTH    MAINSCREEN_FRAME.size.width
#define MAINSCREEN_HEIGHT   MAINSCREEN_FRAME.size.height
#define ONE_PIXEL           (1/[UIScreen mainScreen].scale)
#define APP_VERSION         [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
#define APP_BUILD_VERSION   [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]

@interface Constant: NSObject
@property (nonatomic, readonly, class) CGRect  screenBounds;
@property (nonatomic, readonly, class) CGFloat screenWidth;
@property (nonatomic, readonly, class) CGFloat statusBarHeight;
@property (nonatomic, readonly, class) CGFloat screenHeight;
@property (nonatomic, readonly, class) CGFloat onePixel;
@property (nonatomic, readonly, class) CGFloat deviceScale;

@property (nonatomic, readonly, class) NSString* appName;
@property (nonatomic, readonly, class) NSString* appVersion;
@property (nonatomic, readonly, class) NSString* appBuildVersion;

/*
appHome下面有Document、Libray、tmp等目录。注意与appBundle区分
 */
@property (nonatomic, readonly, class) NSString* appHome;

@property (nonatomic, readonly, class) NSString* appTemp;
@property (nonatomic, readonly, class) NSString* appDocument;

// 主应用所在目录
@property (nonatomic, readonly, class) NSString* appBundle;

@end
