Skip to content

Commit 982a9d6

Browse files
authored
Fix duplicate class with the PDFium adapter (#663)
1 parent 02c5e1c commit 982a9d6

32 files changed

+33
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file. Take a look
44

55
**Warning:** Features marked as *experimental* may change or be removed in a future release without notice. Use with caution.
66

7-
<!-- ## [Unreleased] -->
7+
## [Unreleased]
8+
9+
### Fixed
10+
11+
* [#662](https://github.com/readium/kotlin-toolkit/issues/662) Fixed duplicate class when using `readium-adapter-pdfium`.
12+
813

914
## [3.1.0]
1015

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright 2022 Readium Foundation. All rights reserved.
3+
* Use of this source code is governed by the BSD-style license
4+
* available in the top-level LICENSE file of the project.
5+
*/
6+
7+
plugins {
8+
id("readium.library-conventions")
9+
}
10+
11+
android {
12+
namespace = "org.readium.adapter.pdfium.common"
13+
}
14+
15+
dependencies {
16+
api(files("libs/pdfium-android-1.8.2.jar"))
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pom.artifactId=readium-adapter-pdfium-common
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest />
3+

readium/adapters/pdfium/document/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android {
1414

1515
dependencies {
1616
api(project(":readium:readium-shared"))
17-
implementation(files("../libs/pdfium-android-1.8.2.jar"))
17+
implementation(project(":readium:adapters:pdfium:readium-adapter-pdfium-common"))
1818

1919
implementation(libs.timber)
2020
implementation(libs.kotlinx.coroutines.android)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
api(project(":readium:readium-shared"))
2222
api(project(":readium:readium-navigator"))
2323
api(project(":readium:adapters:pdfium:readium-adapter-pdfium-document"))
24-
implementation(files("../libs/pdfium-android-1.8.2.jar"))
24+
implementation(project(":readium:adapters:pdfium:readium-adapter-pdfium-common"))
2525
implementation(files("libs/android-pdf-viewer-2.8.2.jar"))
2626

2727
implementation(libs.androidx.fragment.ktx)

settings.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ dependencyResolutionManagement {
1717

1818
rootProject.name = "Readium"
1919

20+
include(":readium:adapters:pdfium:common")
21+
project(":readium:adapters:pdfium:common")
22+
.name = "readium-adapter-pdfium-common"
23+
2024
include(":readium:adapters:pdfium:document")
2125
project(":readium:adapters:pdfium:document")
2226
.name = "readium-adapter-pdfium-document"

0 commit comments

Comments
 (0)