Skip to content

Migrate away from JCenter #559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A [Test App](test-app) demonstrates how to integrate the Readium Kotlin toolkit

## Setting Up Readium

Readium modules are distributed with [Maven Central](https://search.maven.org/search?q=g:org.readium.kotlin-toolkit). Make sure that you have the `$readium_version` property set in your root `build.gradle`, then add the Maven Central and JCenter repositories.
Readium modules are distributed with [Maven Central](https://search.maven.org/search?q=g:org.readium.kotlin-toolkit). Make sure that you have the `$readium_version` property set in your root `build.gradle`, then add the Maven Central repository.

```groovy
buildscript {
Expand All @@ -34,7 +34,6 @@ buildscript {

allprojects {
repositories {
jcenter()
mavenCentral()
}
}
Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinx-serialization-json" }

pdfium = { group = "com.github.barteksc", name = "pdfium-android", version.ref="pdfium" }
pdf-viewer = { group = "com.github.barteksc", name ="android-pdf-viewer", version.ref="pdf-viewer" }
picasso = { group = "com.squareup.picasso", name = "picasso", version.ref = "picasso" }
pspdfkit = { group = "com.pspdfkit", name = "pspdfkit", version.ref ="pspdfkit" }

Expand Down
Binary file not shown.
2 changes: 2 additions & 0 deletions readium/adapters/pdfium/android-pdf-viewer/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file("android-pdf-viewer-2.8.2.aar"))
3 changes: 2 additions & 1 deletion readium/adapters/pdfium/pdfium-navigator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ dependencies {
api(project(":readium:readium-shared"))
api(project(":readium:readium-navigator"))
api(project(":readium:adapters:pdfium:readium-adapter-pdfium-document"))
api(project(":readium:adapters:pdfium:android-pdf-viewer"))

api(libs.pdf.viewer)
implementation(libs.androidx.fragment.ktx)
implementation(libs.pdfium)
implementation(libs.timber)
implementation(libs.bundles.coroutines)
implementation(libs.kotlinx.serialization.json)
Expand Down
9 changes: 5 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ dependencyResolutionManagement {
google()
mavenLocal()
mavenCentral()
maven(url = "https://jcenter.bintray.com")
maven(url = "https://s3.amazonaws.com/repo.commonsware.com")
maven(url = "https://customers.pspdfkit.com/maven")
}
Expand Down Expand Up @@ -81,6 +80,8 @@ include(":readium:streamer")
project(":readium:streamer")
.name = "readium-streamer"

if (System.getenv("JITPACK") == null) {
include("test-app")
}
include(":readium:adapters:pdfium:android-pdf-viewer")
project(":readium:adapters:pdfium:android-pdf-viewer")
.name = "android-pdf-viewer"

include("test-app")
Loading