Giter Club home page Giter Club logo

flyhi's Introduction

FlyHi app showcase

Kotlin 100%

Architecture and 'glue':

  • Multi-modular app
  • Coroutines + MVVM + 2-way DataBinding
  • M = UseCases + Repositories
  • Hilt, with the use of Assisted Inject
  • Room
  • NavComponent
  • ViewModel + Lifecycle + ktx
  • Timber for logging, Stetho for quick db queries check-up

Details and solutions

Domain

  • The user selects amongst the accessible destinations, further considering the preferred date, number of passengers of different age, assuming the number of Children has to be lower or equal as of the Adults
  • In case of the flights' availability under the provided criteria, the filtering data is complemented by one more constraint - the Price limit
  • Upon click on the flight, the dialog with some additional info is shown
  • The app consumes the publicly available API of Ryanair

Technical

  • Single-module was the initial implementation, yet the consideration of showing personal capability to do good in multi-modular environment outweighed. To be enhanced! Most of the dependencies are provided by means of gradle 'api' command in the :core module
  • Coroutines + Resource class showed the power of synergy.
  • Room used to store the static list of destinations, primordially retrieved from API.
  • Retrieval from network is done upon launch of the app, if such hasn't been done before. If failed, user is prompted to launch the network when selecting destination.
  • Additionally, for the purpose of quick text-oriented search, FTS4 was implemented on top of Room.
  • Hilt (Dagger latest upgrade) significantly reduces the amount of boilerplate DI code. Why not Koin then? DI is preferred to ServiceLocators - less itching-causing code is born and needs to be supported.
  • The use and application of DTO and business models is segregated at the UseCase layer.
  • Navigation in multi-modular app is leveraged by nested graphs, with arguments definition copied both in the parent graph and in the nested's startDestination. Yet effective, don't find it the most mind-blowing and minimally supportable(so far) solution.
  • Used the recently released Fragment Result API. SharedViewModel was surely considered, but upon the morph to multi-module structure the cyclic dependency could be unavoidable.
  • 2-way DataBinding is applied wherever its efficiency is justified.

flyhi's People

Contributors

romariomkk avatar romariomkkrunloop avatar

Stargazers

 avatar  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.