R2-streamer-swift aims at simplifying the usage of numeric publication by parsing and serving them. It takes the publication as input, and generates an accessible WebPubManifest/object as output.
It also provides helper functions in order to use features like mediaOverlays more conveniently.
Supported formats:
EPUB 2/3/3.1- OEBPS - CBZ
The project dependencies are managed with Carthage.
You need to run carthage update (--platform ios) to install them.
Using:
- swisspol/GCDWebServer A modern and lightweight GCD based HTTP 1.1 server designed to be embedded in OS X & iOS apps.
- Hearst-DD/ObjectMapper A framework written in Swift that makes it easy to convert your model objects (classes and structs) to and from JSON.
- tadija/AEXML Simple and lightweight XML parser written in Swift.
- krzyzanowskim/CryptoSwift Crypto related functions and helpers for Swift implemented in Swift.
Jazzy is used to generate the project documentation. There are two script for building either the Public API documentation of the full documentation.
./generate_doc_public.sh
./generate_doc_full.sh
- Clone this project (r2-streamer-swift) and the launcher (r2-launcher-swift)
- In each project directories run :
$> carthage update --platform ios - Create a new XCode workspace and drag the two aforementioned project's
.xcodeprojin the navigator panel on the left. - Select the
R2-Launcher-Developmenttarget andRunit on navigator or device.
NB: Choose the same branches on both r2-streamer/launcher repositories. E.g: r2-streamer-swift/feature/X with r2-launcher-swift/feature/X