@@ -21,14 +21,6 @@ public final class LCPService: Loggable {
21
21
private let licenses : LicensesService
22
22
private let assetRetriever : AssetRetriever
23
23
24
- @available ( * , unavailable, message: " Provide a `licenseRepository` and `passphraseRepository`, following the migration guide " )
25
- public init (
26
- client: LCPClient ,
27
- httpClient: HTTPClient = DefaultHTTPClient ( )
28
- ) {
29
- fatalError ( )
30
- }
31
-
32
24
/// - Parameter deviceName: Device name used when registering a license to an LSD server.
33
25
/// If not provided, the device name will be the default `UIDevice.current.name`.
34
26
public init (
@@ -72,11 +64,6 @@ public final class LCPService: Loggable {
72
64
self . assetRetriever = assetRetriever
73
65
}
74
66
75
- @available ( * , unavailable, message: " Check the conformance of the file `Format` to the `lcp` specification instead. " )
76
- public func isLCPProtected( _ file: FileURL ) async -> Bool {
77
- fatalError ( )
78
- }
79
-
80
67
/// Acquires a protected publication from an LCPL.
81
68
public func acquirePublication(
82
69
from lcpl: LicenseDocumentSource ,
@@ -139,28 +126,6 @@ public final class LCPService: Loggable {
139
126
return . failure( . wrap( error) )
140
127
}
141
128
}
142
-
143
- @available ( * , unavailable, message: " Use the async variant. " )
144
- @discardableResult
145
- public func acquirePublication( from lcpl: FileURL , onProgress: @escaping ( LCPAcquisition . Progress ) -> Void = { _ in } , completion: @escaping ( CancellableResult < LCPAcquisition . Publication , LCPError > ) -> Void ) -> LCPAcquisition {
146
- fatalError ( )
147
- }
148
-
149
- @available ( * , unavailable, message: " Use the async variant using an `Asset`. " )
150
- public func retrieveLicense(
151
- from publication: FileURL ,
152
- authentication: LCPAuthenticating = LCPDialogAuthentication ( ) ,
153
- allowUserInteraction: Bool = true ,
154
- sender: Any ? = nil ,
155
- completion: @escaping ( CancellableResult < LCPLicense ? , LCPError > ) -> Void
156
- ) {
157
- fatalError ( )
158
- }
159
-
160
- @available ( * , unavailable, message: " Pass explicitly an `LCPDialogAuthentication()` for the same behavior as before " )
161
- public func contentProtection( ) -> ContentProtection {
162
- contentProtection ( with: LCPDialogAuthentication ( ) )
163
- }
164
129
}
165
130
166
131
/// Source of an LCP License Document (LCPL) file.
0 commit comments