This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from readium/fixes/lcpdf
Read a license from a LCPDF container
- Loading branch information
Showing
7 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
github "readium/r2-shared-swift" == 1.2.13 | ||
github "readium/r2-shared-swift" == 1.3.0 | ||
github "stephencelis/SQLite.swift" == 0.11.5 | ||
github "krzyzanowskim/CryptoSwift" == 0.15.0 | ||
github "weichsel/ZIPFoundation" == 0.9.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
github "krzyzanowskim/CryptoSwift" "0.15.0" | ||
github "readium/r2-shared-swift" "1.2.13" | ||
github "readium/r2-shared-swift" "1.3.0" | ||
github "stephencelis/SQLite.swift" "0.11.5" | ||
github "weichsel/ZIPFoundation" "0.9.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
readium-lcp-swift/License/Container/LCPDFLicenseContainer.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// LCPDFLicenseContainer.swift | ||
// r2-lcp-swift | ||
// | ||
// Created by Mickaël Menu on 18.06.19. | ||
// | ||
// Copyright 2019 Readium Foundation. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license which is detailed | ||
// in the LICENSE file present in the project repository where this source code is maintained. | ||
// | ||
|
||
import Foundation | ||
|
||
/// Access a License Document stored in an LCPDF archive. | ||
final class LCPDFLicenseContainer: ZIPLicenseContainer { | ||
|
||
init(lcpdf: URL) { | ||
super.init(zip: lcpdf, pathInZIP: "license.lcpl") | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters