Android -Clean Architecture -Multi -Module -Kotlin
Androidからのフォークとリワーク- クリーンアーキテクチャ-Kotlin
このリポジトリの目的は、Androidにそれらを持ち込むことで、クリーンアーキテクチャの原則をフォローアップすることです。このアイデアは、Kotlinプログラミング言語機能を活用することであり、学習したレッスンや、機能プログラミングのような他の興味深いアプローチからのアイデアを引き込むことであると言う価値があります。
フェルナンドの例は、機能プロジェクト構造によってマルチモジュールパッケージに変換されます。
実装の詳細を備えたブログ投稿説明:
Androidのアーキテクチャ…リロード
読む価値のある他の資料:
Androidのアーキテクチャ…きれいな方法?
Androidの建築…進化
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------)
サンプルアプリ

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------)
クリーンアーキテクチャ

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------)
Android 3レイヤーアーキテクチャ

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------)
UIレイヤー:MVVM

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------)
データレイヤー:リポジトリ

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------)
ローカル開発
この例を実行するための有用なGradle/ADBコマンドを次に示します。
-
./gradlew deployDebug現在の接続されたデバイスにデバッグAPKを構築してインストールします。 -
./gradlew runUnitTestsすべてのユニットテスト(単位と統合の両方)を実行します。
議論
問題のセクションを参照してください:https://github.com/hammernetwork/android-clean-architecture-kotlin-mvvm/issues
ライセンス
Copyright 2019 Andriy Se
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.