Giter VIP home page Giter VIP logo

r2-shared-swift's Introduction

⚠️ ᴛʜɪs ʀᴇᴘᴏsɪᴛᴏʀʏ ɪs ᴅᴇᴘʀᴇᴄᴀᴛᴇᴅ ⚠️

We moved all the r2-*-swift modules to a single repository: swift-toolkit.

r2-shared-swift's People

Contributors

acamill avatar aferditamuriqi avatar alexc4m avatar ettore avatar iaomw avatar ilukes avatar iosdevedrlab avatar jccr avatar johanpoirier avatar llemeurfr avatar lukeslu avatar mickael-menu avatar mickael-menu-mantano avatar nikitaevidentpoint avatar openm1nd avatar stevenzeck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

r2-shared-swift's Issues

Multiple authors parsing is broken

OPDS 2 parser throws an error with this author key:

"metadata": {
  "@type": "http://schema.org/Book",
  "title": "Le Rouge et le Noir",
  "subtitle": "Chronique du XIXe siècle",
  "sort_as": "Rouge et le Noir, Le",
  "author": ["Stendhal", "Second Name For Testing"],
  [...]
}

Fix JSON parsing for OPDS 2.0

With the upcoming PR (#13), we'll now be able to parse the RWPM manifest to transform it into our in-memory structure.

For now this is mostly used for OPDS 2.0, where it seems to be broken.

This can be tested in the Test App using the OPDS 2.0 Test Catalog: https://feedbooks.github.io/opds-test-catalog/opds-2/home.json

More specifically, the publications feed is meant to test as many edge cases as possible: https://feedbooks.github.io/opds-test-catalog/opds-2/publications.json

This Epic will probably have to remain open for some time, as we gradually add more test cases and related issues to it.

Get only "profile" property.

I have been trying to run my project after updating the Carthage and it gives me the error saying that Drm.profile is a get only property. My code was working fine before this new commit. I am waiting to release my app on AppStore and not able to do so because of this. Can you let me know which previous version is compatible where Drm.profile is not only a get property. I tried with previous 3-4 commits but it gives me the following error-
Could not pick a version for github "Readium/r2-shared-swift", due to mutually incompatible requirements:
"41603fa5b7e6b960e490b2a5c7f8d9b6a77bc731"
"develop" (github "readium/readium-opds-swift")

Price parsing is broken

OPDS 2 parser throws an error with this price key:

"links": [
  {
    "rel": "http://opds-spec.org/acquisition/buy", 
    "href": "https://feedbooks.github.io/opds-test-catalog/assets/chambrejaune/file.epub", 
    "type": "application/epub+zip",
    "properties": {
      "price": {
        "currency": "USD",
        "value": 4.99
      }
    }
  }
]

Add model for User Settings

In order to implement support for the new user settings abstract model, we need to add a new model in this repo based on: https://github.com/readium/readium-2/blob/master/other/user-settings.md#abstract-model

ref, name and value should all be strings.

Publication should contain an array of this new structure using userSettings.

To facilitate things, we might need to create the usual helpers as well:

  • getter (based on both ref and name)
  • setter (based on both ref and name)

Deprecate Publication.formatVersion

Used as an internal in Swift and Kotlin for parsing
Shouldn't be part of the core model
Might be better using a cascade instead for parsing

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.