Skip to content

Commit 6f7923d

Browse files
authored
Migrate away from JCenter (#559)
1 parent b88e104 commit 6f7923d

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A [Test App](test-app) demonstrates how to integrate the Readium Kotlin toolkit
2525

2626
## Setting Up Readium
2727

28-
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.
28+
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.
2929

3030
```groovy
3131
buildscript {
@@ -34,7 +34,6 @@ buildscript {
3434
3535
allprojects {
3636
repositories {
37-
jcenter()
3837
mavenCentral()
3938
}
4039
}

gradle/libs.versions.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-cor
127127
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinx-serialization-json" }
128128

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

Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
configurations.maybeCreate("default")
2+
artifacts.add("default", file("android-pdf-viewer-2.8.2.aar"))

readium/adapters/pdfium/pdfium-navigator/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ dependencies {
5151
api(project(":readium:readium-shared"))
5252
api(project(":readium:readium-navigator"))
5353
api(project(":readium:adapters:pdfium:readium-adapter-pdfium-document"))
54+
api(project(":readium:adapters:pdfium:android-pdf-viewer"))
5455

55-
api(libs.pdf.viewer)
5656
implementation(libs.androidx.fragment.ktx)
57+
implementation(libs.pdfium)
5758
implementation(libs.timber)
5859
implementation(libs.bundles.coroutines)
5960
implementation(libs.kotlinx.serialization.json)

settings.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ dependencyResolutionManagement {
3333
google()
3434
mavenLocal()
3535
mavenCentral()
36-
maven(url = "https://jcenter.bintray.com")
3736
maven(url = "https://s3.amazonaws.com/repo.commonsware.com")
3837
maven(url = "https://customers.pspdfkit.com/maven")
3938
}
@@ -81,6 +80,8 @@ include(":readium:streamer")
8180
project(":readium:streamer")
8281
.name = "readium-streamer"
8382

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

0 commit comments

Comments
 (0)