Code Monkey home page Code Monkey logo

iamatulkumar / iamatulkumar-qrcodescannerwithforegroundservice Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 1.09 MB

QR code scanner, Android timer foreground service, MVVM architecture pattern, Retrofit, kotlin Flow, Dagger hilt

Kotlin 100.00%
kotlin android-service android-system dagger-hilt datastore-android foreground-service jetpack-datastore kotlin-android kotlin-coroutines kotlin-flow mvvm-android mvvm-architecture mvvm-pattern qrcode-scanner retrofit2 system-design timer-service

iamatulkumar-qrcodescannerwithforegroundservice's Introduction

iamatulkumar-QR Code Scanner With Timer Fore Ground Service

Description:

Scan Sample QR code will start a foreground timer service, Scan again to stop timer service

Component:

  1. MVVM architecture pattern
  2. Retrofit,
  3. kotlin Flow,
  4. Dagger hilt
  5. Mockk Kotlin
  6. Jetpack DataStore
  7. Notification manager
  8. Camera permission

HLD

Package Structure

→ BookingApplication → MainActivity

Scan QR code and start forground service

  1. Open Application → show booking fragment
  2. Fetch booking details from viewmodel
  3. ViewModel fetches booking details from the booking repository
  4. Return booking details if already booking available, return empty if no booking found
  5. Update booking fragment state and show no booking found state
  6. On clicking the scan button → open ScannerFragment
  7. After successfully scanning → update response in a view model
  8. ViewModel update state in booking fragment
  9. Booking fragment → ViewModel to save booking details
  10. start foreground service

iamatulkumar-qrcodescannerwithforegroundservice's People

Contributors

iamatulkumar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.