-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/sora-ios-sdk-2022.1.0'
- Loading branch information
Showing
13 changed files
with
225 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'README.md' | ||
- 'CHANGES.md' | ||
- 'LICENSE' | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
build: | ||
runs-on: macOS-latest | ||
env: | ||
XCODE: /Applications/Xcode_12.4.app | ||
XCODE_SDK: iphoneos14.4 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Select Xcode Version | ||
run: sudo xcode-select -s '${{ env.XCODE }}/Contents/Developer' | ||
- name: Show Xcode Version | ||
run: xcodebuild -version | ||
- name: Show CocoaPods Version | ||
run: pod --version | ||
- name: Restore Pods | ||
uses: actions/cache@v2 | ||
with: | ||
path: Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- name: Install Dependences | ||
run: | | ||
pod repo update | ||
pod install | ||
- name: Create Environment.swift | ||
run: cp SoraQuickStart/Environment.example.swift SoraQuickStart/Environment.swift | ||
- name: Build Xcode Project | ||
run: | | ||
set -o pipefail && \ | ||
xcodebuild \ | ||
-workspace 'SoraQuickStart.xcworkspace' \ | ||
-scheme 'SoraQuickStart' \ | ||
-sdk ${{ env.XCODE_SDK }} \ | ||
-arch arm64 \ | ||
-configuration Release \ | ||
-derivedDataPath build \ | ||
clean build \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CODE_SIGNING_ALLOWED=NO \ | ||
CODE_SIGN_IDENTITY= \ | ||
PROVISIONING_PROFILE= | ||
- name: Check uncommitted unformatted code | ||
run: | | ||
./lint-format.sh | ||
release: | ||
if: contains(github.ref, 'tags/v') | ||
needs: [build] | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,3 +66,4 @@ fastlane/screenshots | |
*.swp | ||
doc | ||
*.xcworkspace | ||
Environment.swift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--exclude Pods | ||
--indent 4 | ||
--semicolons inline | ||
--trailingclosures | ||
--wrapparameters after-first | ||
--header strip | ||
|
||
--disable redundantInit,sortedSwitchCases,strongOutlets,unusedArguments,wrapSwitchCases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
included: | ||
- SoraQuickStart | ||
excluded: | ||
- Pods | ||
disabled_rules: | ||
- identifier_name | ||
- force_cast | ||
- force_try | ||
- cyclomatic_complexity | ||
- function_body_length | ||
- file_length | ||
- line_length | ||
- type_body_length | ||
- weak_delegate | ||
- opening_brace | ||
- closing_brace | ||
- anonymous_argument_in_multiline_closure | ||
- conditional_returns_on_newline | ||
- multiline_arguments | ||
- multiline_arguments_brackets | ||
- multiline_literal_brackets | ||
- multiline_parameters | ||
- multiline_parameters_brackets | ||
- vertical_parameter_alignment | ||
- vertical_parameter_alignment_on_call | ||
- vertical_whitespace | ||
- vertical_whitespace_between_cases | ||
- vertical_whitespace_closing_braces | ||
- vertical_whitespace_opening_braces | ||
- colon | ||
- comma | ||
- comment_spacing | ||
- trailing_comma | ||
- trailing_newline | ||
- trailing_whitespace | ||
- closure_parameter_position | ||
- closure_end_indentation | ||
- closure_spacing | ||
- for_where | ||
- large_tuple | ||
- todo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
source 'https://cdn.cocoapods.org/' | ||
source 'https://github.com/shiguredo/sora-ios-sdk-specs.git' | ||
source 'https://github.com/CocoaPods/Specs.git' | ||
|
||
platform :ios, '12.1' | ||
platform :ios, '13.0' | ||
|
||
target 'SoraQuickStart' do | ||
use_frameworks! | ||
pod 'Sora', '2021.3.1' | ||
pod 'Sora', '2022.1.0' | ||
|
||
pod 'SwiftLint' | ||
pod 'SwiftFormat/CLI' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Foundation | ||
|
||
enum Environment { | ||
|
||
// 接続するサーバーのシグナリング URL | ||
static let url = URL(string: "wss://sora.example.com/signaling")! | ||
|
||
// チャネル ID | ||
static let channelId = "sora" | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
# ローカルで lint と formatter を実行するスクリプト | ||
# 未フォーマットか lint でルール違反を検出したら終了ステータス 1 を返す | ||
# GitHub Actions では未フォーマット箇所の有無の確認に使う | ||
|
||
PODS_ROOT=Pods | ||
SRCROOT=. | ||
FORMAT=${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat | ||
LINT=${PODS_ROOT}/SwiftLint/swiftlint | ||
|
||
# フォーマットの必要性を確認する | ||
$FORMAT --lint $SRCROOT | ||
format=$? | ||
|
||
$FORMAT $SRCROOT | ||
$LINT --fix $SRCROOT | ||
$LINT $SRCROOT | ||
lint=$? | ||
|
||
test $format -eq 0 -a $lint -eq 0 | ||
exit $? |