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.
To use this library in your project, follow these steps:
publishing.properties
file. You can use the provided publishing.example.properties
file as a template.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]")
}
import org.nextstack.epubify.ui.EpubViewer
@Composable
fun EpubViewScreen() {
val epubFile = // Load your ePub file here
EpubViewer(epubFile)
}
This project is licensed under the MIT License - see the LICENSE file for details.