9
9
10
10
package org.readium.r2.lcp.license
11
11
12
- import java.util.*
12
+ import java.util.Date
13
13
import kotlin.time.Duration.Companion.seconds
14
14
import kotlin.time.ExperimentalTime
15
15
import kotlinx.coroutines.runBlocking
@@ -29,7 +29,20 @@ internal sealed class Either<A, B> {
29
29
class Right <A , B >(val right : B ) : Either<A, B>()
30
30
}
31
31
32
- private val supportedProfiles = listOf (" http://readium.org/lcp/basic-profile" , " http://readium.org/lcp/profile-1.0" )
32
+ private val supportedProfiles = listOf (
33
+ " http://readium.org/lcp/basic-profile" ,
34
+ " http://readium.org/lcp/profile-1.0" ,
35
+ " http://readium.org/lcp/profile-2.0" ,
36
+ " http://readium.org/lcp/profile-2.1" ,
37
+ " http://readium.org/lcp/profile-2.2" ,
38
+ " http://readium.org/lcp/profile-2.3" ,
39
+ " http://readium.org/lcp/profile-2.4" ,
40
+ " http://readium.org/lcp/profile-2.5" ,
41
+ " http://readium.org/lcp/profile-2.6" ,
42
+ " http://readium.org/lcp/profile-2.7" ,
43
+ " http://readium.org/lcp/profile-2.8" ,
44
+ " http://readium.org/lcp/profile-2.9"
45
+ )
33
46
34
47
internal typealias Context = Either <LcpClient .Context , LcpException .LicenseStatus >
35
48
0 commit comments