Code Monkey home page Code Monkey logo

neugelb-movie-challenge's Introduction

Movies App Android

This sample app has been developed with Kotlin following an MVVM architecture pattern with a modular approach for Challenge given by Neugelb Studios.

Working

  • Home screen: List movies by fetching from themoviedb with pagination, scroll to load more movies.
  • Search by Name: Just enter name of the movie and press search button or wait.
  • Details screen: List down movie details by fetching from themoviedb.



Framework

Decisions

  • Koin: Koin is a simple powerful Dependency injection framework for Kotlin. Written in pure Kotlin using functional resolution only: no proxy, no code generation, no reflection!

  • Modular: The app is developed with a modular approach to support following:

    • Faster gradle builds
    • Re-usability of common functionality across applications / modules
    • Easily pluggable into Instant apps
    • Better team work, as one person can have the sole responsibility of a module
    • Smoother git flows

Project Structure

Code Details

1. Get Movies List Movies_List

2. Get Movie details Movie details

Running

You will need a device / emulator with Android Oreo (API 27) and up. Configuration

Testing

Test cases for the MovieSearchVM & MovieDetailsVM have been implemented using

  • junit : A unit testing framework
  • robolectric : A framework that brings fast and reliable unit tests to Android.
  • mockitoKotlin : A small library that provides helper functions to work with Mockito in Kotlin.
  • aacTesting : Test helpers for LiveData

Library reference resources:

  1. themoviedb: https://developers.themoviedb.org/3
  2. Koin: https://github.com/InsertKoinIO/koin
  3. Retrofit:https://square.github.io/retrofit
  4. RxJava2: https://github.com/ReactiveX/RxJava
  5. mockito-kotlin: https://github.com/nhaarman/mockito-kotlin
  6. Robolectric: https://github.com/robolectric/robolectric
  7. Joda-time: https://github.com/JodaOrg/joda-time

Credits

  1. Carbon: Used to create beautiful images of source code.
  2. Convertio: Used to convert app usage video to gif file.
  3. makeareadme: Used to create readme file.

License

Licensed under the Apache License, Version 2.0

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.