Best android open-source packages and libraries.

Zoro

It's about, sending a message.
Updated 10 months ago

Zoro

Google
License API Build Status

Zoro is an secure chat application based on AMQP for pub-sub service ,Luffy for secure backend and utilizes MVVM architecture.
This project uses Hilt of implementing dependency injection.
Also fetching data from the network and integrating persisted data in the database via repository pattern.


Download

Go to the Releases to download the latest package.

Tech stack & Open-source libraries

  • Minimum SDK level 29
  • Kotlin based, Coroutines + Flow for asynchronous.
  • Hilt for dependency injection.
  • JetPack
    • Lifecycle - dispose of observing data when lifecycle state changes.
    • ViewModel - UI related data holder, lifecycle aware.
    • Room Persistence - construct a database using the abstract layer.
  • Architecture
    • MVVM Architecture (View - DataBinding - ViewModel - Model)
    • Datastore - Uses Kotlin coroutines and Flow to store data asynchronously, consistently, and transactionally..
    • Repository pattern
  • Retrofit2 & OkHttp3 - construct the REST APIs and paging network data.
  • Glide, GlidePalette - loading images.
  • Timber - logging.
  • Material-Components - Material design components like ripple animation, cardView.

UI is utilising a dual-theme approach, allowing users to choose from light or dark theme. Components from Material Design library (MaterialCardview, MaterialToolbar, BottomNavigationView etc.) have been used due to their ability to switch between colour Primary and colour Surface. Detail Fragments are designed in a way that allows the user to drag and move contents - this behaviour is implemented by using MotionLayout. MaterialContainerTransform (shared element transitions), MaterialFadeThrough and MaterialElevationScale from Material Design library have been used to animate transitions between list and detail fragments.

How to setup :

  • Backend
    • Clone Luffy for backend (not necessary if using compose).
    • If not cloned , copy the compose file from docker/anshulsaraf/luffy into a folder
    • Make sure Docker is running .
    • cd inside the folder where compose file is saved and run docker compose up
    • Now your backend should be up
  • Frontend
    • Inside NetworkingConstants.kt configure your backend constants
    • Replace the keystore from app/keystore/ZoroKeyStore.jkswith your signed one.
    • Setup Detekt (not forced but recommended)
    • Setup Configs in local.properties
  • Android Studio specific
    • Invalidate Cache (just to be safe)
    • Build and add magic

MAD Score

summary kotlin

Architecture

Zoro is based on MVVM architecture and a repository pattern.

architecture

Authors

Anshul

Find this repository useful? ❤️

follow me for my next creations! 🤩

License

Designed and developed by 2020 sarafanshul (Anshul Saraf)

		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.