Skip to content

A workspace for on-boarding developers

License

Notifications You must be signed in to change notification settings

d-i-t-a/r2-workspace-swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

r2-workspace-swift

A workspace for on-boarding developers

This workspace is one of the ways you can get started with the R2 Swift Projects. It is not the only way and you can pick to setup your development environment in the way that best fits your needs.

Prerequisite

In this workspace you will find 4 Github branches:

int/testapp

You pick this branch if are an integrator and all you need is to quickly get started with the R2 Testapp.

  1. git clone --recurse-submodules -b int/testapp https://github.com/readium/r2-workspace-swift.git r2-workspace-swift
  2. run carthage update --platform ios on r2-testapp-swift
  3. run carting update on r2-testapp-swift
  4. open r2-workspace-swift.xcworkspace
  5. run target r2-testapp-swift (carthage)

Cartfile should look like this:

github "readium/r2-shared-swift" == ?.?.?
github "readium/r2-streamer-swift" == ?.?.?
github "readium/r2-navigator-swift" == ?.?.?
github "readium/readium-opds-swift" == ?.?.?
github "weichsel/ZIPFoundation" == 0.9.8
github "onevcat/Kingfisher" == 4.10.1
github "jdg/MBProgressHUD"
github "stephencelis/SQLite.swift" == 0.11.5
github "tadija/AEXML" == 4.3.3
github "swisspol/GCDWebServer" == 3.5.2
github "krzyzanowskim/CryptoSwift" == 0.15.0
github "cezheng/Fuzi" == 2.2.1
github "dexman/Minizip"

dev/testapp

You pick this branch if are an developer and a R2 contributor. You can get started quickly on the R2 Testapp and it's modules with this branch. We do appreciate any contribution, no matter how small it is, it makes a difference :)

  1. git clone --recurse-submodules -b dev/testapp https://github.com/readium/r2-workspace-swift.git r2-workspace-swift
  2. run carthage update --platform ios on r2-testapp-swift
  3. run carting update on r2-testapp-swift
  4. open r2-workspace-swift.xcworkspace
  5. run target r2-testapp-swift (submodules)

Cartfile should look like this:

github "weichsel/ZIPFoundation" == 0.9.8
github "onevcat/Kingfisher" == 4.10.1
github "jdg/MBProgressHUD"
github "stephencelis/SQLite.swift" == 0.11.5
github "tadija/AEXML" == 4.3.3
github "swisspol/GCDWebServer" == 3.5.2
github "krzyzanowskim/CryptoSwift" == 0.15.0
github "cezheng/Fuzi" == 2.2.1
github "dexman/Minizip"

int/testapp-with-lcp

You pick this branch if are an integrator and you would like to get started with the R2 Testapp supporting LCP.

  1. git clone --recurse-submodules -b int/testapp-with-lcp https://github.com/readium/r2-workspace-swift.git r2-workspace-swift
  2. add your lcp dependency to the cartfile
  3. run carthage update --platform ios on r2-testapp-swift
  4. run carting update on r2-testapp-swift
  5. open r2-workspace-swift.xcworkspace
  6. run target r2-testapp-swift (carthage-with-lcp)

Cartfile should look like this:

github "readium/r2-shared-swift" == ?.?.?
github "readium/r2-streamer-swift" == ?.?.?
github "readium/r2-navigator-swift" == ?.?.?
github "readium/readium-opds-swift" == ?.?.?
github "weichsel/ZIPFoundation" == 0.9.8
github "onevcat/Kingfisher" == 4.10.1
github "jdg/MBProgressHUD"
github "stephencelis/SQLite.swift" == 0.11.5
github "tadija/AEXML" == 4.3.3
github "swisspol/GCDWebServer" == 3.5.2
github "krzyzanowskim/CryptoSwift" == 0.15.0
github "cezheng/Fuzi" == 2.2.1
github "dexman/Minizip"

dev/testapp-with-lcp

You pick this branch if are an developer and a R2 contributor. You can get started quickly on the R2 Testapp and it's modules including LCP with this branch. We do appreciate any contribution, no matter how small it is, it makes a difference :)

  1. git clone --recurse-submodules -b dev/testapp-with-lcp https://github.com/readium/r2-workspace-swift.git r2-workspace-swift
  2. add your lcp dependency to the cartfile
  3. update Cartfile (see below)
  4. run carthage update --platform ios on r2-testapp-swift
  5. run carting update on r2-testapp-swift
  6. open r2-workspace-swift.xcworkspace
  7. run target r2-testapp-swift (submodules-with-lcp)

Cartfile should look like this:

github "weichsel/ZIPFoundation" == 0.9.8
github "onevcat/Kingfisher" == 4.10.1
github "jdg/MBProgressHUD"
github "stephencelis/SQLite.swift" == 0.11.5
github "tadija/AEXML" == 4.3.3
github "swisspol/GCDWebServer" == 3.5.2
github "krzyzanowskim/CryptoSwift" == 0.15.0
github "cezheng/Fuzi" == 2.2.1
github "dexman/Minizip"

Dependencies and the modules they are used in

Getting the pre-compiled Readium LCP module.

Readium LCP is a DRM. As any protection technology, care must be taken to avoid disclosing too much technical information to the open world without good reasons. This is why EDRLab has chosen to provide a small pre-compiled Readium LCP module to R2 implementers, in two flavors:

  1. a "test" grade LCP library, provided after a direct contact between the developer and EDRLab. To get this library, a developer must only provide to EDRLab its company name, web site and basic information about the context of the project involving Readium LCP.
  2. a "production" grade LCP library, which simply replaces the "test" library in the project after the development has been fully tested. Go get access to this production module, the client company must be trusted and the Readium LCP Terms of Used must have been signed.

To contact EDRLab, please send an email to contact(at)edrlab.org or use the Readium Slack on the "lcp" channel.

About

A workspace for on-boarding developers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published