Skip to content

Commit 782da02

Browse files
NutrientNutrient
Nutrient
authored and
Nutrient
committed
Update example to Nutrient for Android 2024.8.1
1 parent 5e8dec8 commit 782da02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ android {
3939

4040
dependencies {
4141

42-
// PSPDFKit is integrated from the PSPDFKit Maven repository. See the `repositories` block at the beginning
42+
// Nutrient is integrated from the Nutrient Maven repository. See the `repositories` block at the beginning
4343
// of this file, which shows how to set up the repository in your app.
44-
implementation("com.pspdfkit:pspdfkit:2024.7.0")
44+
implementation("com.pspdfkit:pspdfkit:2024.8.1")
4545

4646
}

app/src/main/java/com/pspdfkit/example/MainActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ private void launchPdfActivity(@NonNull final Uri uri) {
122122
final PdfActivityConfiguration pspdfkitConfiguration = new PdfActivityConfiguration.Builder(
123123
getApplicationContext())
124124
.scrollDirection(PageScrollDirection.HORIZONTAL)
125-
.showPageNumberOverlay()
126-
.showThumbnailGrid()
125+
.pageNumberOverlayEnabled(true)
126+
.thumbnailGridEnabled(true)
127127
.theme(R.style.PSPDFSimple_Theme)
128128
.themeDark(R.style.PSPDFSimple_Theme_Dark)
129129
.fitMode(PageFitMode.FIT_TO_WIDTH)

settings.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ dependencyResolutionManagement {
1010
repositories {
1111
google()
1212
mavenCentral()
13-
// The PSPDFKit library is loaded from the PSPDFKit Maven repository, added by this configuration.
14-
maven(url = "https://customers.pspdfkit.com/maven/")
13+
// The Nutrient library is loaded from the Nutrient Maven repository, added by this configuration.
14+
maven(url = "https://my.nutrient.io/maven/")
1515
}
1616

1717
versionCatalogs {

0 commit comments

Comments
 (0)