Skip to content

Commit 47aea9a

Browse files
authored
Migrate away from JCenter (#557)
1 parent 6ea996f commit 47aea9a

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
## Setting Up Readium
1919

20-
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.
20+
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.
2121

2222
```groovy
2323
buildscript {
@@ -26,7 +26,6 @@ buildscript {
2626
2727
allprojects {
2828
repositories {
29-
jcenter()
3029
mavenCentral()
3130
}
3231
}

gradle/libs.versions.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime",
143143
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinx-serialization-json" }
144144

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

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/navigator/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ dependencies {
2121
api(project(":readium:readium-shared"))
2222
api(project(":readium:readium-navigator"))
2323
api(project(":readium:adapters:pdfium:readium-adapter-pdfium-document"))
24+
api(project(":readium:adapters:pdfium:android-pdf-viewer"))
2425

25-
api(libs.pdf.viewer)
2626
implementation(libs.androidx.fragment.ktx)
27+
implementation(libs.pdfium)
2728
implementation(libs.timber)
2829
implementation(libs.kotlinx.coroutines.android)
2930
implementation(libs.kotlinx.serialization.json)

settings.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dependencyResolutionManagement {
1010
google()
1111
mavenLocal()
1212
mavenCentral()
13-
maven(url = "https://jcenter.bintray.com")
1413
maven(url = "https://s3.amazonaws.com/repo.commonsware.com")
1514
maven(url = "https://customers.pspdfkit.com/maven")
1615
}
@@ -74,4 +73,8 @@ include(":readium:streamer")
7473
project(":readium:streamer")
7574
.name = "readium-streamer"
7675

76+
include(":readium:adapters:pdfium:android-pdf-viewer")
77+
project(":readium:adapters:pdfium:android-pdf-viewer")
78+
.name = "android-pdf-viewer"
79+
7780
include("test-app")

0 commit comments

Comments
 (0)