Skip to content

Commit

Permalink
iOS: SDK: Update version to 4.6.51
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxzhang committed Dec 26, 2019
1 parent bf6e2ea commit 2045117
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iOS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ pod setup
cd iOS/TUIKitDemo
pod install
```
3. 进入 iOS/TUIKitDemo 文件夹,打开 `TUIKitDemo.xcworkspace` 编译运行。
3. 如果安装失败,运行以下命令更新本地的 CocoaPods 仓库列表
```
pod repo update
```
4. 进入 iOS/TUIKitDemo 文件夹,打开 `TUIKitDemo.xcworkspace` 编译运行。



8 changes: 8 additions & 0 deletions iOS/TUIKitDemo/TUIKitDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
CE1A434C22DE07EB008A767E /* TCUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = CE1A434822DE07EB008A767E /* TCUtil.m */; };
CE37D1C422F9942B0012500D /* GenerateTestUserSig.m in Sources */ = {isa = PBXBuildFile; fileRef = CE37D1C222F9942B0012500D /* GenerateTestUserSig.m */; };
CE37D24A22F9CBC80012500D /* ProfileController.m in Sources */ = {isa = PBXBuildFile; fileRef = CE37D24822F9CBC80012500D /* ProfileController.m */; };
CE685F1523B48F8700A3953C /* 00.caf in Resources */ = {isa = PBXBuildFile; fileRef = CE685F1323B48F8700A3953C /* 00.caf */; };
CE685F1623B48F8700A3953C /* 01.caf in Resources */ = {isa = PBXBuildFile; fileRef = CE685F1423B48F8700A3953C /* 01.caf */; };
CECC13CE22B282C7008378A2 /* TCLoginParam.m in Sources */ = {isa = PBXBuildFile; fileRef = CECC13CD22B282C7008378A2 /* TCLoginParam.m */; };
CED3DD60237BECD00096D2E2 /* VideoCallManager+videoMeeting.m in Sources */ = {isa = PBXBuildFile; fileRef = CED3DD57237BECD00096D2E2 /* VideoCallManager+videoMeeting.m */; };
CED3DD61237BECD00096D2E2 /* VideoCallCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CED3DD5A237BECD00096D2E2 /* VideoCallCell.m */; };
Expand Down Expand Up @@ -96,6 +98,8 @@
CE37D1C322F9942B0012500D /* GenerateTestUserSig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GenerateTestUserSig.h; sourceTree = "<group>"; };
CE37D24822F9CBC80012500D /* ProfileController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ProfileController.m; sourceTree = "<group>"; };
CE37D24922F9CBC80012500D /* ProfileController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ProfileController.h; sourceTree = "<group>"; };
CE685F1323B48F8700A3953C /* 00.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = 00.caf; sourceTree = "<group>"; };
CE685F1423B48F8700A3953C /* 01.caf */ = {isa = PBXFileReference; lastKnownFileType = file; path = 01.caf; sourceTree = "<group>"; };
CECC13CC22B282C7008378A2 /* TCLoginParam.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCLoginParam.h; sourceTree = "<group>"; };
CECC13CD22B282C7008378A2 /* TCLoginParam.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCLoginParam.m; sourceTree = "<group>"; };
CED3DD57237BECD00096D2E2 /* VideoCallManager+videoMeeting.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "VideoCallManager+videoMeeting.m"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -329,6 +333,8 @@
CF014493216E1A4B00C12E35 /* Info.plist */,
CF014494216E1A4B00C12E35 /* main.m */,
9176C5C3227A9D3500DF5784 /* PrefixHeader.pch */,
CE685F1323B48F8700A3953C /* 00.caf */,
CE685F1423B48F8700A3953C /* 01.caf */,
);
path = TUIKitDemo;
sourceTree = "<group>";
Expand Down Expand Up @@ -412,8 +418,10 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CE685F1623B48F8700A3953C /* 01.caf in Resources */,
CF014492216E1A4B00C12E35 /* LaunchScreen.storyboard in Resources */,
CF01448F216E1A4B00C12E35 /* Assets.xcassets in Resources */,
CE685F1523B48F8700A3953C /* 00.caf in Resources */,
CF01448D216E1A4900C12E35 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Binary file added iOS/TUIKitDemo/TUIKitDemo/00.caf
Binary file not shown.
Binary file added iOS/TUIKitDemo/TUIKitDemo/01.caf
Binary file not shown.
10 changes: 10 additions & 0 deletions iOS/TUIKitDemo/TUIKitDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[param setToken:ws.deviceToken];
[[TIMManager sharedInstance] setToken:param succ:^{
NSLog(@"-----> 上传 token 成功 ");
//推送声音的自定义化设置
TIMAPNSConfig *config = [[TIMAPNSConfig alloc] init];
config.openPush = 0;
config.c2cSound = @"00.caf";
config.groupSound = @"01.caf";
[[TIMManager sharedInstance] setAPNS:config succ:^{
NSLog(@"-----> 设置 APNS 成功");
} fail:^(int code, NSString *msg) {
NSLog(@"-----> 设置 APNS 失败");
}];
} fail:^(int code, NSString *msg) {
NSLog(@"-----> 上传 token 失败 ");
}];
Expand Down
10 changes: 10 additions & 0 deletions iOS/TUIKitDemo/TUIKitDemo/Login/LoginController.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ - (IBAction)login:(id)sender {
[param setToken:deviceToken];
[[TIMManager sharedInstance] setToken:param succ:^{
NSLog(@"-----> 上传 token 成功 ");
//推送声音的自定义化设置
TIMAPNSConfig *config = [[TIMAPNSConfig alloc] init];
config.openPush = 0;
config.c2cSound = @"00.caf";
config.groupSound = @"01.caf";
[[TIMManager sharedInstance] setAPNS:config succ:^{
NSLog(@"-----> 设置 APNS 成功");
} fail:^(int code, NSString *msg) {
NSLog(@"-----> 设置 APNS 失败");
}];
} fail:^(int code, NSString *msg) {
NSLog(@"-----> 上传 token 失败 ");
}];
Expand Down

0 comments on commit 2045117

Please sign in to comment.