GithubHelp home page GithubHelp logo

hessam-emami / moviedb_offlinefirst_mvvm_pagination Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 242 KB

an android project for demonstrating various cutting edge technologies such as Coroutines Flow, Dagger Hilt, Pagination(Lazy Loading) and Offline-first strategies on Android.

Kotlin 100.00%
android android-architecture android-application kotlin kotlin-android kotlin-coroutines coroutines coroutines-android coroutines-flow mvvm mvvm-android mvvm-architecture dagger2 dagger2-mvvm dagger-hilt dagger pagination jetpack-pagination room room-persistence-library

moviedb_offlinefirst_mvvm_pagination's Introduction

MovieDb

An Android project for demonstrating various cutting edge technologies such as Coroutines Flow, Dagger Hilt, Pagination(Lazy Loading) and Offline-first strategies on Android.

The app uses MoviedbApi to fetch and show the newest released movies with the ability to order them by release date.

Tools & Technologies
  • Kotlin
  • Coroutines Flow
  • Dagger Hilt
  • MVVM + Repository Pattern
  • Packaging by Feature
  • Pagination 3
  • Room
  • Mockito
  • Junit4

Development

Want to contribute? Great!

In order to build and work with the app get a private key from here and add it to gradle(app) file

All pull requests and comments are welcome! You can also check Todos section if you need a hint for contribution.

Todos

  • Improve UI
  • Add micro-animations
  • Load selected movie's full detail
  • Write unit or integration test for pagination
  • End to End test with Espresso, Mockwebserver
  • Reach a good test coverage

License

MIT

moviedb_offlinefirst_mvvm_pagination's People

Contributors

hessam-emami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

spkdroid

moviedb_offlinefirst_mvvm_pagination's Issues

App crashing on startup

Hi there,

The app crashes on startup with the following error

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.emami.moviedb/com.emami.moviedb.app.ui.MainActivity}: kotlin.UninitializedPropertyAccessException: lateinit property fragmentFactory has not been initialized at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: kotlin.UninitializedPropertyAccessException: lateinit property fragmentFactory has not been initialized at com.emami.moviedb.app.ui.MainActivity.onCreate(MainActivity.kt:16) at android.app.Activity.performCreate(Activity.java:8000) at android.app.Activity.performCreate(Activity.java:7984) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)

Please let me know how to sort this out.

Thanks

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.