Giter VIP home page Giter VIP logo

android-onsen-stamp-rally-app's Introduction

アプリ概要

銭湯協会で定期的に行われるスタンプラリーの管理アプリです。
スタンプ管理以外にも、各銭湯の詳細画面から外部アプリ「Google Map, GMail, Phone, Twitter, Facebook, Browser」などを起動し、銭湯の詳細情報をすぐに確認できるところがポイントです。
また、ビルドタイプを切り替えるだけで同じようなアプリを作る仕組みにしているのも特徴です。

MAD Score

summary jetpack kotlin studio

Play Store リンク

東京ゆらん 2021
浅草湯めぐり 2021

キャプチャ (東京ゆらん 2021)

Pixcel 5 OS 12

Part1 Part2

キャプチャ (浅草湯めぐり 2021)

Pixcel 5 OS 12

Part1

開発環境

スクリーンショット 2021-12-26 4 41 19

アーキテクチャ

  • Single Module, Single Activity, MVVMを採用
  • Product Flavorを使用しバージョン管理
  • Jetpack Compose未使用 (従来のViewの実装を採用)

UI デザイン

Material Design 3を採用

実装方針

  • UI Layer

    • Activity
      • Toolbar, FloatingActionButton, NavigationViewを持つ
      • NavHostFragmentを1つ持つ
    • Fragment
      • 画面遷移は、Navigation Graphを使用する
      • Toolbarを持たない
      • viewModelで定義されている1つのLiveDataを監視し、UI更新を行う(UiState)
      • エラーハンドリングはTrowableの型によって適切なエラー表示(ダイアログ、トースト、テキスト)を行う
    • viewModel
      • Fragmentに処理結果を返す手段はLivedata
      • 1つのLiveDataを定義し、値はseald interfaceで定義されたオブジェクトを指定する (Error用はThrowableをデータとして持つ)(UiState)
      • FlowのcollectはviewModelで行う
  • domain Layer

    • 作成していない
  • data Layer

    • roomを使用してローカルデータベースを管理
    • Exceptionが発生した場合、sealedで定義したobjectに変換し、処理結果を返す

ソースコード

共通コード
東京ゆらん 2021専用コード
浅草湯めぐり 2021専用コード

使用ライブラリ

https://github.com/LeoAndo/android-onsen-stamp-rally-app/blob/main/app/build.gradle#L58:L86

android-onsen-stamp-rally-app's People

Contributors

leoando avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.