...
In `DRM/DRM.swift` the new brand and scheme for Adobe DRM (added code is bold):
Code Block | ||
---|---|---|
| ||
public struct DRM |
...
{ public let brand: |
...
Brand public let scheme: |
...
...
Scheme /// The license will be filled when passed back to the DRM module. |
...
public var license: DRMLicense? |
...
public enum Brand: String |
...
case lcp
case adobe
}
public enum Scheme: String {
...
{ case lcp case adobe } public enum Scheme: String { case lcp = "http://readium.org/2014/01/lcp" |
...
case adobe = "http://ns.adobe.com/adept" |
...
}
...
} public init(brand: Brand) |
...
{ self.brand = |
...
switch brand {
case .lcp:
scheme = .lcp
case .adobe:
scheme = .adobe
}
}
brand switch brand { case .lcp: scheme = .lcp case .adobe: scheme = .adobe } } } |
Commit:
https://github.com/NYPL-Simplified/r2-shared-swift/commit/229e057d87f81d3f57b0090832d0fee5f9fb7aee
...