GithubHelp home page GithubHelp logo

leslie-dd / android-readium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from readium/kotlin-toolkit

0.0 0.0 0.0 12.42 MB

fork from readium/kotlin-toolkit and expend my own ideas

Home Page: https://readium.org/kotlin-toolkit

License: BSD 3-Clause "New" or "Revised" License

JavaScript 4.19% Java 1.09% Kotlin 81.80% CSS 0.16% Makefile 0.02% HTML 12.75%

android-readium's Introduction

Readium Kotlin Toolkit

Readium 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 readium/.

A Test App demonstrates how to integrate the Readium Kotlin toolkit in your own reading app.

Find documentation and API reference at readium.org/kotlin-toolkit.

Minimum Requirements

Readium Android min SDK Android compile SDK Kotlin compiler Gradle
latest 21 33 1.7.10 6.9.3

Setting Up Readium

Readium modules are distributed with Maven Central. Make sure that you have the $readium_version property set in your root build.gradle, then add the Maven Central and JCenter repositories.

buildscript {
    ext.readium_version = '2.3.0'
}

allprojects {
    repositories {
        jcenter()
        mavenCentral()
    }
}

Then, add the dependencies to the Readium modules you need in your app's build.gradle.

dependencies {
    implementation "org.readium.kotlin-toolkit:readium-shared:$readium_version"
    implementation "org.readium.kotlin-toolkit:readium-streamer:$readium_version"
    implementation "org.readium.kotlin-toolkit:readium-navigator:$readium_version"
    implementation "org.readium.kotlin-toolkit:readium-opds:$readium_version"
    implementation "org.readium.kotlin-toolkit:readium-lcp:$readium_version"
}

Using a local Git clone

You 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

Make sure you have Jetifier enabled in your gradle.properties file:

android.enableJetifier=true

Then, include the Readium build to your project's settings.gradle file. The Readium dependencies will automatically build against the local sources.

// Provide the path to the Git submodule.
includeBuild 'kotlin-toolkit'

⚠️ When importing Readium locally, you will need to use the same version of the Android Gradle Plugin in your project.

Building with Readium LCP

Using the toolkit with Readium LCP requires additional dependencies, including the binary liblcp provided by EDRLab. Contact EDRLab to request your private liblcp and the setup instructions.

android-readium's People

Contributors

aferditamuriqi avatar mickael-menu avatar qnga avatar pavelric avatar idmostapha avatar stevenzeck avatar johanpoirier avatar clementbmn avatar hrishikesh-kadam avatar harryhlj avatar twaddington avatar trycatch98 avatar anymus avatar axel-menu avatar gelojavonitalla avatar flyktsodan avatar chrfalch avatar drminside avatar erikhellman avatar hmoukaideche-vivlio avatar maverlck avatar mihai-wolfpack avatar mrifni avatar szymn avatar dependabot[bot] avatar leshchenkonix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.