Commit 3046a741 by zhangyunjie

1.0.0.18

parent 761f150a
......@@ -32,13 +32,23 @@
//中公直播使用测试环境设置为YES,正式环境设置为NO或者去掉这个配置
// NSNumber *changeEnvironment = [[NSUserDefaults standardUserDefaults] valueForKey:kOffcnIMSDKiOS_changeEnvironment];
NSNumber *changeEnvironment = [[NSUserDefaults standardUserDefaults] valueForKey:kOffcnIMSDKiOS_changeEnvironment];
// NSLog(@"changeEnvironment---%@",changeEnvironment);
// [OffcnIMSDKiOS defaultService].isTest = [changeEnvironment boolValue];
//启动SDK
[[OffcnIMSDKiOS defaultService] setupWithIsTest:YES];
NSString *appkey = @"";
NSString *appsecret = @"";
BOOL isTest = [changeEnvironment boolValue];
if (isTest) {
appkey = @"offcn_live";
appsecret = @"offcn_im";
}else{
appkey = @"d5b410cddbcb4f3a972cfdc697daff43";
appsecret = @"b23f77e463ac4e9388b3c0b4ee9b8ed0";
}
[[OffcnIMSDKiOS defaultService] setupWithIsTest:isTest appkey:appkey appsecret:appsecret];
//注册系统推送
[OffcnIMPushManager registerOffcnUserNotification];
......
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'OffcnIMSDKiOS'
s.version = '1.0.0.17'
s.version = '1.0.0.18'
s.summary = 'OffcnIMSDKiOS.'
s.description = <<-DESC
......
......@@ -9,7 +9,7 @@
#import <UIKit/UIKit.h>
#import "OffcnIMModel.h"
static const NSString *OffcnIMSDKiOSVersion = @"1.0.0.17";
static const NSString *OffcnIMSDKiOSVersion = @"1.0.0.18";
typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) {
OffcnIMSDKReachabilityStatusNotReachable = 0,
......@@ -55,7 +55,9 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus
/// 启动SDK
/// @param isTest 是否选用测试环境
-(void)setupWithIsTest:(BOOL)isTest;
/// @param appkey 创建APP时获取的appkey
/// @param appsecret 创建APP时获取的appsecret
-(void)setupWithIsTest:(BOOL)isTest appkey:(NSString *)appkey appsecret:(NSString *)appsecret;
/// 获取用户未读消息总数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment