Code Monkey home page Code Monkey logo

hudl's Introduction

Hudl Test

iOS test for Hudl. The test is based in Youtube API. The test is organized using Cocoapods. To install the test you will have to run 'Pod install' since the Pods file has not been commited into the repository to avoid huge data.

Once you run the app, the app asks to "HudlStudios" channel for the latests videos. Once those videos are parsed the app is presenting the results in a CollectionView.

I used a collection view so we can have also multiple cells layout in iPad. The app works in all iOS devices.

You can favourite and unfavourite videos. I used Realm Database since is cleaner and nicier than CoreData. Also it was reducing the code complexity, and for this test it was unnecessary to increase complexity.

If you click the navigationBar button, the view will be reloaded with your favourited videos. If you click back that button, you will be again presented with the channel videos. I'm not storing them in any temporal array, since NSURLSession already caches the answer.

I also used a 3rd party library to be able to get the original video URL so I can also play the videos. If you click on a video, you will be presented with a ModalView where it is using AVPlayer to stream the Video.

If you really want to test other video channels, you will only need to change the channel string in the HudlViewModel. Run the app again and all will run again.

The app has implemented several Throws and error handling. I dindt add any UI feedback in any of those but, all the possible issues are catched through swift error handling.

There are also few Unit test for the most important parts of the app.

hudl's People

Contributors

crisredfi 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.