All Projects → dotanuki-labs → Norris

dotanuki-labs / Norris

Licence: mit
Showcase for Unidirectional Data Flow architecture for Android, powered by Kotlin Coroutines

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Norris

Swift Composable Architecture
A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
Stars: ✭ 5,199 (+1550.48%)
Mutual labels:  unidirectional-data-flow, architecture
Remvvm
ReMVVM is an application architecture concept, marriage of Unidirectional Data Flow (Redux) with MVVM.
Stars: ✭ 168 (-46.67%)
Mutual labels:  unidirectional-data-flow, architecture
Unidirectional Architecture On Mobile
Dive into 📱 Unidirectional Architecture!
Stars: ✭ 115 (-63.49%)
Mutual labels:  unidirectional-data-flow, architecture
Kunidirectional
The goal of this sample app is to show how we can implement unidirectional data flow architecture based on Flux and Redux on Android... using Kotlin 😉
Stars: ✭ 303 (-3.81%)
Mutual labels:  unidirectional-data-flow, architecture
Notzz App
📝 A Simple Note-Taking App built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, State Flow, Hilt-Dependency Injection, Jetpack DataStore, Architecture Components, MVVM, Room, Material Design Components).
Stars: ✭ 158 (-49.84%)
Mutual labels:  kotlin-coroutines, architecture
Vueflux
♻️ Unidirectional State Management Architecture for Swift - Inspired by Vuex and Flux
Stars: ✭ 315 (+0%)
Mutual labels:  unidirectional-data-flow, architecture
Reactivefeedback
Unidirectional reactive architecture
Stars: ✭ 156 (-50.48%)
Mutual labels:  unidirectional-data-flow, architecture
Awesome Tca
Awesome list for The Composable Architecture
Stars: ✭ 124 (-60.63%)
Mutual labels:  unidirectional-data-flow, architecture
Android Showcase
💎 Android application following best practices: Kotlin, Coroutines, JetPack, Clean Architecture, Feature Modules, Tests, MVVM, DI, Static Analysis...
Stars: ✭ 5,214 (+1555.24%)
Mutual labels:  kotlin-coroutines, architecture
Uniflow Kt
Uniflow 🦄 - Simple Unidirectional Data Flow for Android & Kotlin, using Kotlin coroutines and open to functional programming
Stars: ✭ 414 (+31.43%)
Mutual labels:  kotlin-coroutines, unidirectional-data-flow
Reactor
🔄 Unidirectional data flow in Swift.
Stars: ✭ 174 (-44.76%)
Mutual labels:  unidirectional-data-flow, architecture
ReMVVM
ReMVVM is an application architecture concept, marriage of Unidirectional Data Flow (Redux) with MVVM.
Stars: ✭ 180 (-42.86%)
Mutual labels:  architecture, unidirectional-data-flow
Tracktor-ComposeUI
Track the progress of anything in one place
Stars: ✭ 25 (-92.06%)
Mutual labels:  unidirectional-data-flow, kotlin-coroutines
Cycle.swift
An experiment in unidirectional architecture inspired by Cycle.js. https://cycle.js.org
Stars: ✭ 24 (-92.38%)
Mutual labels:  architecture, unidirectional-data-flow
Tvflix
TvFlix android app using Dagger Hilt, Coroutines, Flow, KTX, Jetpack(Room, ViewModel, Paging3, Lifecycle) based on MVVM architecture purely written in Kotlin
Stars: ✭ 286 (-9.21%)
Mutual labels:  kotlin-coroutines
Korio
Korio: Kotlin cORoutines I/O : Virtual File System + Async/Sync Streams + Async TCP Client/Server + WebSockets for Multiplatform Kotlin 1.3
Stars: ✭ 282 (-10.48%)
Mutual labels:  kotlin-coroutines
Game Programming Patterns
Source repo for the book
Stars: ✭ 3,096 (+882.86%)
Mutual labels:  architecture
Android Viewmodelbinding
A lightweight library aiming to speed up Android app development by leveraging the new Android Data Binding together with the Model-View-ViewModel design pattern.
Stars: ✭ 308 (-2.22%)
Mutual labels:  architecture
Material Showcase Ios
✨ An elegant way to guide your beloved users in iOS apps - Material Showcase.
Stars: ✭ 300 (-4.76%)
Mutual labels:  showcase
Showcaseview
🔦The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with an attractive and flat overlay.
Stars: ✭ 281 (-10.79%)
Mutual labels:  showcase

Norris

ktlint Maintainability codecov Codacy Badge Main License

Norris logo

An app that existed even before Android existed!

About

Norris is a showcase for modern and well-crafted Android code.

Here you will find a codebase powered by tests in all semantic levels (unit, integration, acceptance) as well an architectural design that promotes discipline over state, using Kotlin Coroutines as foundation for a pragmatic unidirectional dataflow implementation.

Project Overview

This project leverages on api.chucknorris.io as remote data source to implement the following use cases

  • User can search for Chuck Norris facts and share them
  • Related categories are fetched in the application boostraped and cached
  • Application will offer suggestions for queries based on categories names and track query terms provided by user as well

showcase-norris

The code is structured in a multi-module fashion, with semantics guided by Clean Architecure; this means that high level modules (like facts or search) don't know anything about low-level ones (like networking or persistance).

The domain module defines the core protocols to be implemented by low level details, while aggregates them in high level policies like FetchFacts

Related blog posts

I'm writing a series of blog posts related to this project. They will explain some project decisions, as well dive into some details of implementation of this approach for unidirectional data flow, specially with learnings related to Coroutines and Channels.

Coming soon at ubiratansoares.dev

Building and Running

If you want a simple run emulating the PR pipeline, just use the companion script

./emulate-pr-build.sh

It will

  • Run static analysers (Ktlint and Detekt)
  • Run all unit tests and generate all JaCoCo reports
  • Assemble the debug APK
  • Run Espresso tests

Please note that an online emulator is required to run this script sucessfully.

Credits

  • Mathias Schilling, for the Chuck Norris facts REST api
  • Material Design Icons for the error states images
  • Jetbrains for the amazing developer experience around Kotlin and Coroutines
  • Someone in the Web for the Norris clipart ❤️ (I'll be happy to put your name here, ping me!)

Author

Coded by Ubiratan Soares (follow me on Twitter)

License

The MIT License (MIT)

Copyright (c) 2019 Dotanuki Labs

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].