Giter Site home page Giter Site logo

odeon's Introduction

ODEON - Remade

This project is one of my "quick as possible" projects where I attempt to build a new application within a holiday away from work.

In this case I had just 7 days to try and build an ODEON (Cinema) application inspired by this tweet.

Part of this project was breaking down the ODEON app and beginning to understand their internal APIs, business logic and apps behaviour in order to mimic.

In the end I made use of many ODEON APIs as well as TheMovieDB APIs in order to create a valuable experience for users. The full guide on my project can be read in a Medium article.

Running the Project

In order to run this project, once you have cloned the repository, you will need to define a new environment variable in the shared scheme available.

MOVIEDB_API_KEY should be set to the API key you can get from TheMovieDB.

Dependencies

All Pods dependencies have been checked in for your convenience. As part of this project I also wanted to experiment with something new which is why I began using PromiseKit.

Why Open Source this?

This project was built within a week. Mistakes were made, things were rushed and ultimately the end product is not the highest quality thing I can create. However, I had fun creating it and wanted to share it with others - if nothing else but to discuss and justify!

odeon's People

Contributors

lisadziuba avatar sherlouk 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  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

odeon's Issues

[ERROR] Swift.DecodingError.typeMismatch

iPhone X, iOS 12, Xcode 10.1
I got a TheMovieDB API key and put it as environment variable on Odeon scheme.

I get this error on startup:

[ERROR] objectMapping(Swift.DecodingError.typeMismatch(Swift.Array<Any>, Swift.DecodingError.Context(codingPath: [CodingKeys<Array<OdeonFilmInCinema>>(stringValue: "data", intValue: nil)], debugDescription: "Expected to decode Array<Any> but found a dictionary instead.", underlyingError: nil)), Status Code: 200, Data Length: 160)

I tried to fiddle a little with the code but I'm not sure what's going on here.

[ERROR] Swift.DecodingError.valueNotFound

Environment - Latest code from develop, Xcode 10.1(10B61), iPhone XR running iOS 12.1

[ERROR] objectMapping(Swift.DecodingError.valueNotFound(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys<Array<OdeonFilmInCinema>>(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "film", intValue: nil), CodingKeys(stringValue: "genre", intValue: nil)], debugDescription: "Expected String value but found null instead.", underlyingError: nil)), Status Code: 200, Data Length: 10048)
[PRELOAD] Found 112 cinemas
[PRELOAD] Found the names of 25 film attributes
[PRELOAD] Found the names of 16 performance attributes

image

I have added MOVIEDB_API_KEY as in Info.plist. The issue is in one of the API responses not returning the genre, possibly the Odeon API.

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.