epubify

Jetpack Compose ePub Viewer Library

A Jetpack Compose library for displaying and parsing ePub files. This library provides components and utilities to integrate ePub viewing capabilities into your Android applications using Jetpack Compose.

Features

Getting Started

To use this library in your project, follow these steps:

Prerequisites

Installation

Add the following dependencies to your project:

val mavenPropertiesFile = rootProject.file("publishing.properties")
val mavenProperties = Properties()
mavenProperties.load(FileInputStream(mavenPropertiesFile))

repositories {
    maven {
        url = uri("https://maven.pkg.github.com/Nextstack-LLC/epubify")
        credentials {
            username = mavenProperties["gpr.user"] ?: System.getenv("USERNAME")
            password = mavenProperties["gpr.token"] ?: System.getenv("TOKEN")
        }
    }
}

dependencies {
    implementation("org.nextstack:epubify:[latest release]")
}

Usage

  1. Initialize the ePub viewer in your Composable function:
import org.nextstack.epubify.ui.EpubViewer

@Composable
fun EpubViewScreen() {
    val epubFile = // Load your ePub file here
    EpubViewer(epubFile)
}
  1. Load and display ePub content within your Composable UI.

License

This project is licensed under the MIT License - see the LICENSE file for details.