A test app for the Swift implementation of Readium-2. It showcase the use of the differents building blocks of Readium-2
- r2-shared-swift (Model, shared for both streamer and navigator)
- r2-streamer-swift (The parser/server)
- r2-navigator-swift (The bare ViewControllers for displaying parsed resources)
- Fetch the dependencies using Carthage :
$> carthage update --platform ios
- Open the xCode project :
$> open r2-testapp-swift.xcodeproj
- Build the project target named
r2-testapp-swift
.
The release target r2-testapp-swift
uses the libraries and frameworks built by Carthage, while the debug r2-testapp-swift-DEBUG
can be modified to use local version of r2-shared-swift, r2-streamer-swift and r2-navigator-swift depending of which you want to modify. Doing so will allow you to see the changes directly in the testapp, without the need for a Carthage cycle.
If you want to contribute to the development, I recommend creating a Workspace which contain the 4 projects (shared, streamer, navigator and testapp), and to use local Products as dependancies of the others to shorten development time. e.g: in your local clone of r2-navigator-swift, create a debug target which uses the Product of your local clone of r2-shared-swift. That way, when you modify and compile r2-shared-swift, the modifications are directly taken in your next r2-navigator-swift build.