Code Monkey home page Code Monkey logo

events-2020's Introduction

Events 2020

jCenter

Project

Believe or not, 2020 supposed to be quite an interesting year for me in terms of traveling. This is a project with 2020 Events that I have missed/will miss due to caramba virus ๐Ÿฆ . Here I show my approach to navigation in multi-module Android app.

Screenshots

Map List Detail
Screenshot Screenshot Screenshot

Git

Wondering what all these emojis are? Checkout gitmoji.

Tech stack

Structure

3 layers:

  • App - container for the whole app, contains DI graph, basic setup of global stuff (Timber, etc.)
  • Features - contain single feature, features should be independent and can depend on libraries.
  • Libraries - contain shared code, can depend on each other.

Features:

  • :events Contains event list/detail flow.
  • :map Module with map presentation of events and places.

Libraries:

  • :domain Module with application domain.
  • :navigation Module responsible for app navigation.
  • :ui Presentation related code which can be shared between features.

Briefly about navigation

Jetpack Navigation Component is used for in-app navigation. Due to limitations of Navigation Component in context of modular architecture, global :navigation module was introduced to handle navigation between features. Navigation implementation is highly inspired by FlowCoordinator pattern mostly used in iOS apps. This allows to delegate navigation logic as well as supply different presentation contexts for same screen. Internally, navigation is composed of flows. Each flow maps to framework Activity. Navigation within single flow (Activity) is done via Navigation Component. navigation between flows is done the good old way by firing Activity intents.

events-2020's People

Contributors

gorbuvla avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

icaarusdev

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.