Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Readium-SDKLauncher-iOS
=======================



## Running the launcher

This project depends on the [Readium SDK](https://github.com/readium/readium-sdk). You can get it as a git submodule:

```
git clone [email protected]:readium/SDKLauncher-iOS.git
cd SDKLauncher-iOS
git submodule init
git submodule update
```


## Importing the reader in your own project

* Define a dependency to ReadiumSDK by adding a submodule in a Framework directory :

```
git submodule add https://github.com/readium/readium-sdk.git Framework/readium-sdk
git submodule init
git submodule update
```


* Add the ReadiumSDK as a static library to your project

Drag and drop the readium project inside your xcode project, the xcode project is located in :

```
/readium-sdk/Platform/Apple/ePub3.xcodeproj
```



* Add the readium static library to the link Binary with libraries :

```
libePub3-iOS.a
```



* Update your Header Search Path :

```
${SDKROOT}/usr/include/libxml2
readium-sdk/ePub3 (choose recursive)
```



* Add the following frameworks in your project :

```
CFNetwork
libxml2
libz
```


* You can now build the Readium iOS classes, don't forget to set the NSURLProtocols in your project (in your app delegate for example)

```
[NSURLProtocol registerClass:[BundleURLProtocol class]];
[NSURLProtocol registerClass:[EPubURLProtocol class]];
```