-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,596 additions
and
1,019 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,41 @@ | ||
# コードのフォーマット | ||
|
||
Sora Android SDK ではソースコードの lint チェックとフォーマットが可能です。 | ||
|
||
|
||
## ツール | ||
|
||
ktlint を利用します。 ktlint の Gradle プラグインを導入しているので、 Gradle プロジェクトを同期すればインストールされます。 | ||
|
||
|
||
## 実行方法 | ||
|
||
Android Studio ではビルド時に lint チェックとフォーマットが実行されます。コマンドラインでは Gradle のタスクとして実行できます。 | ||
|
||
チェックのみ: | ||
|
||
``` | ||
./gradlew ktlintCheck | ||
``` | ||
|
||
フォーマット: | ||
|
||
``` | ||
./gradlew ktlintFormat | ||
``` | ||
|
||
ルール違反があった場合、詳細はコンソールの他に `sora-android-sdk/build/reports/ktlint` 以下のディレクトリにファイルとして出力されます。 `sora-android-sdk/main/src/main` 以下のソースコードの lint チェック結果は `ktlintMainSourceSetCheck/ktlintMainSourceSetCheck.txt` を参照してください。 | ||
|
||
|
||
## ルール | ||
|
||
[Kotlin スタイルガイド](https://developer.android.com/kotlin/style-guide) に従います。 ktlint はデフォルトの設定で同スタイルに従うので、特に ktlint の設定はしていません。 | ||
|
||
|
||
## 注意 | ||
|
||
本リポジトリには Android Studio の設定が含まれています。設定を変更しないでください。 | ||
|
||
設定内容は次の通りです。 | ||
|
||
- Editor > Code Style > Kotlin > Imports にて、 `import` 文でのワイルドカードの使用を無効にします。 |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Module Sora Android SDK | ||
|
||
Sora Android SDK は [WebRTC SFU Sora](https://sora.shiguredo.jp) の Android クライアントアプリケーションを開発するためのライブラリです。 | ||
Sora Android SDK は [WebRTC SFU Sora](https://sora.shiguredo.jp) の Android クライアントアプリケーションを開発するためのライブラリです. | ||
|
||
使い方は [Sora Android SDK ドキュメント](https://sora-android-sdk.shiguredo.jp/) を参照してください。 | ||
使い方は [Sora Android SDK ドキュメント](https://sora-android-sdk.shiguredo.jp/) を参照してください. |
15 changes: 0 additions & 15 deletions
15
sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/Sora.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.