/Bored

Bored is a simple Android app written with Jetpack Compose that helps you find things to do when bored.

Primary LanguageKotlinMIT LicenseMIT

πŸ₯± Bored

Bored is a simple Android app written with Jetpack Compose that helps you find things to do when bored.

⚑ Technologies & Open-Source Libraries

  • Kotlin - Google officially supports Kotlin on Android as a β€œfirst-class” language and it has a a lot of benefits.
  • Coroutines - A coroutine is a concurrency design pattern that can use on Android to simplify code that executes asynchronously.
  • Flow - An asynchronous data stream that sequentially emits values and completes normally or with an exception.
  • Jetpack Compose - Android’s recommended modern toolkit for building native UI. It simplifies and accelerates UI development on Android. Quickly bring your app to life with less code, powerful tools, and intuitive Kotlin APIs.
  • MVVM Architecture - Modern, maintainable, and Google-suggested app architecture.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
    • Repository - Located in the data layer that contains application data and business logic.
    • UseCase - Located domain layer that sits between the UI layer and the data layer.
  • Dependency Injection
    • Hilt - Easy implementation and less boilerplate code than Dagger2.
  • Networking
    • Retrofit - A type-safe HTTP client for Android and Java.
    • OkHttp - An HTTP client that efficiently make network requests.
  • Composable Sweet Toast - A library that you can use in 4 different types (Success, Error, Warning, Info) written with Jetpack Compose. You can use this toast easy. Thanks for this Talha.

Package Structure

bored             # Root package
|
β”œβ”€ data           # Data layer
β”‚  β”œβ”€ dto         # Data transfer objects for remote response
β”‚  β”œβ”€ network     # BoredApi
β”‚  β”œβ”€ repository  # Bored Repository
|
β”œβ”€ di             # Dependency-injection module
β”‚  β”œβ”€ coroutine   # Coroutine Dispatcher module
|
β”œβ”€ domain         # Domain layer
β”‚  β”œβ”€ entity      # UI models
β”‚  β”œβ”€ mapper      # Map Dto to domain models
β”‚  β”œβ”€ usecase     # BoredActivity usecases
|
β”œβ”€ ui             # Presentation layer
β”‚  β”œβ”€ component   # Custom components
β”‚  β”œβ”€ home        # Main screen
β”‚  β”œβ”€ theme       # Colors, typography and theme options
|
β”œβ”€ util           # Utility classes/interfaces

License

MIT License

Copyright (c) 2022 Muhammed Esad CΓΆmert

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.