在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):readium/kotlin-toolkit开源软件地址(OpenSource Url):https://github.com/readium/kotlin-toolkit开源编程语言(OpenSource Language):Kotlin 78.8%开源软件介绍(OpenSource Introduction):Readium Kotlin ToolkitReadium Mobile is a toolkit for ebooks, audiobooks and comics written in Swift & Kotlin. This toolkit is a modular project, which follows the Readium Architecture. The different modules are found under
A Test App demonstrates how to integrate the Readium Kotlin toolkit in your own reading app Using ReadiumReadium modules are distributed through JitPack. It's also possible to clone the repository (or a fork) and depend on the modules locally. From the JitPack Maven repositoryMake sure that you have the buildscript {
ext.readium_version = '2.2.0'
}
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
} Then, add the dependencies to the Readium modules you need in your app's dependencies {
implementation "com.github.readium.kotlin-toolkit:readium-shared:$readium_version"
implementation "com.github.readium.kotlin-toolkit:readium-streamer:$readium_version"
implementation "com.github.readium.kotlin-toolkit:readium-navigator:$readium_version"
implementation "com.github.readium.kotlin-toolkit:readium-opds:$readium_version"
implementation "com.github.readium.kotlin-toolkit:readium-lcp:$readium_version"
} From a local Git cloneYou may prefer to use a local Git clone if you want to contribute to Readium, or if you are using your own fork. First, add the repository as a Git submodule of your app repository, then checkout the desired branch or tag: git submodule add https://github.com/readium/kotlin-toolkit.git Then, add the following to your project's include ':readium:shared'
project(':readium:shared').projectDir = file('kotlin-toolkit/readium/shared')
include ':readium:streamer'
project(':readium:streamer').projectDir = file('kotlin-toolkit/readium/streamer')
include ':readium:navigator'
project(':readium:navigator').projectDir = file('kotlin-toolkit/readium/navigator')
include ':readium:opds'
project(':readium:opds').projectDir = file('kotlin-toolkit/readium/opds')
include ':readium:lcp'
project(':readium:lcp').projectDir = file('kotlin-toolkit/readium/lcp') You should now see the Readium modules appear as part of your project. You can depend on them as you would on any other local module:
Building with Readium LCPUsing the toolkit with Readium LCP requires additional dependencies, including the binary |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论