Common.h 2.1 KB
 //
//  Common.h
//  CNLive
//
//  Created by 雷浩杰 on 15/9/1.
//  Copyright (c) 2015年 雷浩杰. All rights reserved.
//


#ifndef CNLive_Common_h
#define CNLive_Common_h

#ifdef DEBUG
    #define D_NSLog(format, ...) NSLog(format, ## __VA_ARGS__);
    #define AppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]            ///debug用 "CFBundleVersion"
#define IAP_URL             @"https://sandbox.itunes.apple.com/verifyReceipt"
#else
    #define D_NSLog(format, ...);
    #define AppVersion ([[[NSBundle mainBundle] infoDictionary] objectForKey: @"CFBundleShortVersionString"])

    #define IAP_URL               @"https://buy.itunes.apple.com/verifyReceipt"
#endif

#define KScreenWidth ([UIScreen mainScreen].bounds.size.width > [UIScreen mainScreen].bounds.size.height ? [UIScreen mainScreen].bounds.size.height : [UIScreen mainScreen].bounds.size.width)
#define KScreenHeight ([UIScreen mainScreen].bounds.size.width > [UIScreen mainScreen].bounds.size.height ? [UIScreen mainScreen].bounds.size.width : [UIScreen mainScreen].bounds.size.height)
#define KVideoHeight (KScreenWidth*9/16)

//视讯云
#define SxyAppKey @"13c6f0ad6f459cd479834b0b39cff99c6cf20c970815bb"

#define kUserDefaultsUIDKey     (@"uid_stat")          //用时间戳和uuid在首次启动app是创建的uid


////wechat
//#define WeChatAppKey    @"wxeeb61dff43ecc2fe"
#define WeChatAppSecret @"29460b53af8ebc4798e85a06c936c80e"
////qq
//#define QQAppKey        @"100757437"
//#define QQAppSecret     @"4d8f9a54a50269ba97d5ba92b95a54d4"
////Sina
//#define SinaAppKey      @"1523705845"
//#define SinaAppSecret   @"101788682a6ce4d19e4add30d15211f5"


#ifdef __OBJC__
//static NSString *const Newslist                  = @"http://app.jczb.cnlive.com/api/newslist";
static NSString *const Newslist                  = @"http://intertv.cnlive.com/zgw_sp/api/newslist";

//视频上传服务协议
static NSString *const uploadServiceProtocol     = @"http://data.cnlive.com/term/hdtv/upload.html";

//申请主播
static NSString *const applyAnchor               = @"https://mobile.cnlive.com/CnliveMobile/host/apply.action";

#endif


#endif