Skip to content

Commit

Permalink
Migrate away from JCenter (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu authored Aug 21, 2024
1 parent b88e104 commit 6f7923d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
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")

0 comments on commit 6f7923d

Please sign in to comment.