0% found this document useful (0 votes)
240 views2 pages

Readium LCP Client Module v11

The document provides instructions for integrating test versions of the LCP client libraries into mobile applications built with Readium Mobile. It outlines how to integrate the Swift LCP module into iOS applications using Carthage or Cocoapods, and how to integrate the Kotlin LCP module into Android applications using Gradle. The test libraries are hosted online and can be easily added to projects by following the specified steps.

Uploaded by

milan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
240 views2 pages

Readium LCP Client Module v11

The document provides instructions for integrating test versions of the LCP client libraries into mobile applications built with Readium Mobile. It outlines how to integrate the Swift LCP module into iOS applications using Carthage or Cocoapods, and how to integrate the Kotlin LCP module into Android applications using Gradle. The test libraries are hosted online and can be easily added to projects by following the specified steps.

Uploaded by

milan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

European Digital Reading Lab

Dear partner,

You’ve contacted us to get the LCP client library, to be integrated into your mobile application (usually
based on Readium Mobile Swift or Kotlin).

Test libs

In order to include content protection features in an app based on Readium Mobile, you should read
https://readium.org/architecture/proposals/006-content-protection.html and take advantage of the
codebase of the test application provided with the project.

The test-version of the LCP libs are kept online and can be easily integrated into a Carthage, Cocoapods
or Gradle project by following the instructions below.

iOS
For use with the Readium Mobile Swift toolkit, EDRLab has developed the “Swift LCP” module, which is
easily integrated into the Readium Swift Testapp.

If you’re using Carthage (this is the preferred solution), please add the following to the Cartfile of the
Swift LCP module as well as to your projects Cartfile:

binary "https://liblcp.dita.digital/readium/liblcp/ios/carthage/test/liblcp.json" ~>
3.0.0

If you’re using Cocoapods, please ask us the creation of a pod, then add the following to your podfile:
pod 'R2LCPClient',
podspec:'https://liblcp.dita.digital/readium/liblcp/ios/cocoapod/test/latest.podspec '

Android
For use with the Readium Mobile Android toolkit, EDRLab has developed the “Kotlin LCP” module, which
is easily integrated in the Readium Kotlin Testapp.

Please use the latest version of Gradle and add the following to your project build.gradle file:

repositories {

ivy {

url = uri("https://liblcp.dita.digital")

patternLayout {

artifact ("/[organisation]/[module]/android/aar/test/[revision].[ext]")

European Digital Reading Lab


}

metadataSources { artifact() }

Plus (in the same build.gradle):

dependencies {

implementation "readium:liblcp:1.0.0@aar"

Note 1: the value of the “artifact” property must not be edited (“[organisation]” and other values are
not templates), this is a generic value used by every test application.

Note 2: the use of a 1.0.0 version on Android and 3.0.0 on iOS are perfectly normal.

Best regards,

Laurent Le Meur

CTO, EDRLab

European Digital Reading Lab

You might also like