Skip to content

Commit

Permalink
Merge branch 'release/sora-ios-sdk-2022.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
miosakuma committed Jun 10, 2022
2 parents 32aa464 + 43ed661 commit 9a2cc0b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

## develop

## sora-ios-sdk-2022.3.0

- [ADD] 接続失敗時とサーバーによる切断時にエラー内容をアラートで表示する
- @szktty

## sora-ios-sdk-2022.2.0

- [UPDATE] Environment.example.swift に signalingConnectMetadata を追加する
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ platform :ios, '13.0'

target 'SoraQuickStart' do
use_frameworks!
pod 'Sora', '2022.2.0'
pod 'Sora', '2022.3.0'

pod 'SwiftLint'
pod 'SwiftFormat/CLI'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Please read https://github.com/shiguredo/oss before use.
- iOS 13 以降
- アーキテクチャ arm64, x86_64 (シミュレーターの動作は未保証)
- macOS 12.2 以降
- Xcode 13.2
- Swift 5.5.2
- Xcode 13.4
- Swift 5.6.1
- CocoaPods 1.11.2 以降
- WebRTC SFU Sora 2021.2 以降

Expand Down
14 changes: 14 additions & 0 deletions SoraQuickStart/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ class ViewController: UIViewController {
}
if let error = error {
NSLog(error.localizedDescription)
DispatchQueue.main.async {
let alertController = UIAlertController(title: "接続に失敗しました",
message: error.localizedDescription,
preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "OK", style: .cancel, handler: nil))
self?.present(alertController, animated: true, completion: nil)
}
}
strongSelf.updateUI(false)
}
Expand All @@ -96,6 +103,13 @@ class ViewController: UIViewController {
// 接続に失敗するとエラーが渡されます。
if let error = error {
NSLog(error.localizedDescription)
DispatchQueue.main.async { [weak self] in
let alertController = UIAlertController(title: "接続に失敗しました",
message: error.localizedDescription,
preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "OK", style: .cancel, handler: nil))
self?.present(alertController, animated: true, completion: nil)
}
self.updateUI(false)
return
}
Expand Down

0 comments on commit 9a2cc0b

Please sign in to comment.