File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -202,15 +202,27 @@ Simply open the License Document directly using the `PublicationOpener`. Make su
202
202
```kotlin
203
203
// Instantiate the required components.
204
204
val httpClient = DefaultHttpClient ()
205
+
205
206
val assetRetriever = AssetRetriever (
206
207
contentResolver = context.contentResolver,
207
208
httpClient = httpClient
208
209
)
210
+
211
+ val lcpService = LcpService (
212
+ context = context,
213
+ assetRetriever = assetRetriever
214
+ ) ? : error(" liblcp is missing on the classpath" )))
215
+
216
+ val authentication = LcpDialogAuthentication ()
217
+
209
218
val publicationOpener = PublicationOpener (
210
219
publicationParser = DefaultPublicationParser (
211
220
context,
212
221
httpClient = httpClient,
213
222
assetRetriever = assetRetriever
223
+ ),
224
+ contentProtections = listOf (
225
+ lcpService.contentProtection(authentication)
214
226
)
215
227
)
216
228
You can’t perform that action at this time.
0 commit comments