Git Product home page Git Product logo

swapnil-musale / jetjoke Goto Github PK

View Code? Open in Web Editor NEW
41.0 2.0 7.0 743 KB

JetJoke App build using Jetpack Compose by following Clean + MVVM Architecture and with other Android Modern Architecture Component.

Kotlin 98.81% Shell 1.19%
android flow hilt jetpack-compose kotlin kotlin-dsl material3 moshi retrofit version-catalog android-architecture coroutine mvvm clean-architecture ci-cd-pipeline github-actions git-workflow konsist

jetjoke's Introduction


Logo

JetJoke - Joke Generator App

Android CI Pipeline Github Repository starred CodeFactor Codebeat Badge Apache License

ℹ️ Project Info :

JetJoke App is build to demonstrate the use of Clean Architecture + MVVM in Android App Development. App is mainly divided into 3 layers i.e data, domain & app (presentation). It also showcase the implemetation of some of the Modern Jetpack Architecture Component.

⬇️ Download App :

Get it on Google Play

👨‍💻 App Demo :

Screenshot

Video

Screen_recording_20230821_011811.webm

📚 Libraries Used :

  • Kotlin : Kotlin is statically typed & first-class language for Android Development.
  • Coroutines : For Asynchronus or non-blocking operations.
  • Flows : Data Streaming API which is built on top of Coroutines.
  • Jetpack Compose : Toolkit for building native UI in a declarative way.
  • Splash Screen API : Launch app with animation of launcher icon.
  • Retrofit : Type-safe REST client for Android to consume RESTful web services.
  • Dagger Hilt : Dependency injection library for Android.

🧰 Other Tools :

  • Kotlin DSL : For writing gradle script for Kotlin is more readable and offers better compile-time.
  • Version Catalog : Declaring gradle dependencies & plugins in central place.
  • Github Actions(CI/CD) : Automate the build, test, and deployment pipeline through Github Actions.
  • Renovate : To keep the app dependencies up-tp-date automatically.

🏗️ App Architecture :

In this project we have integrated Konsist to protect Coding Standard & guard App Architecture from pushing accidental changes to git. Click Here to checkout test written for the same.

App is build using Clean Architecture design pattern. Which consist of three module as follows :

  • app - This module is responsible for handling user interaction, displaying data and managing user interface. Usually this module is decoupled from bossiness logic and communicate with domain module for accessing any data.
  • domain - In this module contains core bussiness logic and it doesn't contains any platform related api usage and should only use java/kotlin language apis.
  • data - This module is mainly responsible for accessing data from remote or local source which is being called from domain module only.

Clean-Architecture-in-Android

🧪 Testing (ToDo):

  • Unit & UI tests are under ToDo list and will be done soon - please watch out this space after some time for more info this section.

🌿 Branches :

  • master - master branch will contain the production code which is deployed by CD Pipeline.
  • development - development branch will contain the on-going app feature developement or bug fix code which is targeted for upcoming release validated by CI Pipeline.

🚧 ToDo's :

  • Display Joke by selected Category
  • Search Joke functionality
  • Unit Testing
  • UI Testing
  • Offline Capability for jokes

🙌 Contributions :

We welcome contributions to improve this project, Whether you want to fix a bug, implement a new feature, or suggest an enhancement, we're open to your ideas. Please create the issue at here & If you have implemented some changes then raise the Pull request over development branch.

🤝 acknowledgement :

JetJoke project use Joke API to fetch and display joke's in app.

Connect with me:

Github Profile LinkedIn

License :

MIT License

Copyright (c) 2023 Swapnil Musale

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.

jetjoke's People

Contributors

kayvee08 avatar renovate[bot] avatar swap-musale avatar swapnil-musale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jetjoke's Issues

Feature Request: Implement Joke Sharing Functionality

I'd like to report a new issue with the JetJoke app. Currently, there's no feature to easily share jokes. I would appreciate it if the admin or owner could ASSIGN this task to me for implementation. Sharing jokes would enhance user engagement and enjoyment of the app.

Fetch jokes by category

Current Behaviour :
App fetch the jokes using https://v2.jokeapi.dev/joke/Any this api. Where as joke api provider allow fetch category specific joke using same api.

To fetch the available joke categories we need to call https://v2.jokeapi.dev/categories this api.
Response :

{
    "error": false,
    "categories": [
        "Any",
        "Misc",
        "Programming",
        "Dark",
        "Pun",
        "Spooky",
        "Christmas"
    ],
    "categoryAliases": [
        {
            "alias": "Miscellaneous",
            "resolved": "Misc"
        },
        {
            "alias": "Coding",
            "resolved": "Programming"
        },
        {
            "alias": "Development",
            "resolved": "Programming"
        },
        {
            "alias": "Halloween",
            "resolved": "Spooky"
        }
    ],
    "timestamp": 1692770989674
}

In above response we will receive categories string array list and same will be used to display categories in home screen.
By default 1st category will be auto selected and upon other category selection we will call this https://v2.jokeapi.dev/joke/{category-name} api to fetch joke.

Currently I'm thinking to add category list above the Joke Card in home screen in horizontal fashion. (For more clearity checkout Youtube App -> Top Section horizontal rail is displayed).

But this is just my idea if you have any better design I'm open to incorporate with it.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/android_cd.yml
  • actions/checkout v4
  • actions/setup-java v4
  • r0adkll/sign-android-release v1
  • r0adkll/upload-google-play v1.1.3
  • actions/upload-artifact v4
  • softprops/action-gh-release v2
.github/workflows/android_ci.yml
  • actions/checkout v4
  • actions/setup-java v4
gradle
gradle.properties
settings.gradle.kts
build.gradle.kts
app/build.gradle.kts
data/build.gradle.kts
domain/build.gradle.kts
gradle/libs.versions.toml
  • org.jetbrains.kotlin:kotlin-bom 2.0.0
  • androidx.core:core-ktx 1.13.1
  • androidx.lifecycle:lifecycle-runtime-ktx 2.8.2
  • androidx.core:core-splashscreen 1.0.1
  • androidx.activity:activity-compose 1.9.0
  • androidx.lifecycle:lifecycle-runtime-compose 2.8.2
  • androidx.navigation:navigation-compose 2.7.7
  • androidx.compose:compose-bom 2024.06.00
  • androidx.lifecycle:lifecycle-viewmodel-compose 2.8.2
  • androidx.compose.material3:material3 1.2.1
  • com.google.dagger:hilt-android 2.51.1
  • com.google.dagger:hilt-compiler 2.51.1
  • androidx.hilt:hilt-navigation-compose 1.2.0
  • com.squareup.okhttp3:okhttp 4.12.0
  • com.squareup.okhttp3:logging-interceptor 4.12.0
  • com.squareup.retrofit2:retrofit 2.11.0
  • com.squareup.retrofit2:converter-moshi 2.11.0
  • com.squareup.moshi:moshi-kotlin-codegen 1.15.1
  • javax.inject:javax.inject 1
  • junit:junit 4.13.2
  • androidx.test.ext:junit 1.1.5
  • androidx.test.espresso:espresso-core 3.5.1
  • com.lemonappdev:konsist 0.15.1
  • com.android.application 8.5.0
  • com.android.library 8.5.0
  • org.jetbrains.kotlin.android 2.0.0
  • org.jetbrains.kotlin.jvm 2.0.0
  • com.google.dagger.hilt.android 2.51.1
  • com.google.devtools.ksp 2.0.0-1.0.22
  • io.gitlab.arturbosch.detekt 1.23.6
  • org.jetbrains.kotlin.plugin.compose 2.0.0
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.8

  • Check this box to trigger a request for Renovate to run again on this repository

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.