Skip to content

Commit 85ddc55

Browse files
author
PSPDFKit
committed
Release 2.15.0
1 parent 6592f8f commit 85ddc55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+6353
-6949
lines changed

.eslintignore

-4
This file was deleted.

.eslintrc.js

-19
This file was deleted.

ACKNOWLEDGEMENTS.md

+235-61
Large diffs are not rendered by default.

CHANGELOG.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
## Newest release
22

3+
### 2.15.0 - 13 Dec 2024
4+
5+
- Adds a new `NotificationCenter` class that can be used to subscribe to Nutrient document, annotation, and analytics events. (J#HYB-448)
6+
- Adds the ability to show or hide the back and forward action buttons using the new `showActionButtons` property. (J#HYB-98)
7+
- Updates to Nutrient Android SDK 2024.8.1.
8+
- Fixes an issue where the `exportXFDF` API on Android did not export all annotations. (J#HYB-546)
9+
- Fixes an issue where the `exportXFDF` API on Android required the `Forms` license capability. (J#HYB-577)
10+
- Fixes an issue where the back button was missing on Android when using the `PSPDFKit.present` API. (J#HYB-549)
11+
12+
## Previous releases
13+
314
### 2.14.0 - 30 Oct 2024
415

516
- Adds the ability to hide the main toolbar on Android using a combination of configuration and style properties. (J#HYB-431)
@@ -9,8 +20,6 @@
920
- Fixes an issue where a crash occurred when using the `toolbar.toolbarMenuItems` property and `enterAnnotationCreationMode` API on Android. (J#HYB-517)
1021
- Fixes an issue where some annotations would not be deleted on iOS when using the `removeAnnotations` API. (J#HYB-518)
1122

12-
## Previous releases
13-
1423
### 2.13.0 - 10 Sep 2024
1524

1625
- Adds TypeScript type support to the `annotationPresets` property on the `PSPDFKitView` component. (J#HYB-395)
@@ -182,7 +191,7 @@
182191

183192
### 2.2.0 - 14 Feb 2022
184193

185-
- This release requires you to update your Android project's `compileSdkVersion` to version 31. Please refer to [our migration guide](https://pspdfkit.com/guides/react-native/migration-guides/react-native-2-2-migration-guide) for this release.
194+
- This release requires you to update your Android project's `compileSdkVersion` to version 31. Please refer to [our migration guide](https://www.nutrient.io/guides/react-native/migration-guides/react-native-2-2-migration-guide) for this release.
186195
- Adds a `destroyView()` function to `PSPDFKitView` to be used as a workaround for crash caused by a [`react-native-screens` issue](https://github.com/software-mansion/react-native-screens/issues/1300) when navigating back. (#32960)
187196
- Improves the file structure of the Catalog sample project for better readability. (#32685)
188197
- Improves the file structure of the NativeCatalog sample project for better readability. (#32887)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Nutrient offers support for customers with an active SDK license via https://sup
2020

2121
Are you evaluating our SDK? That's great, we're happy to help out! The Nutrient React Native SDK is a commercial product and requires the purchase of a license key when used in production. By default, this library will initialize in demo mode, placing a watermark on each PDF and limiting usage to 60 minutes.
2222

23-
To purchase a license for production use, please reach out to us via https://www.nutrient.io/contact-sales.
23+
To purchase a license for production use, please reach out to us via https://www.nutrient.io/sdk/contact-sales.
2424

2525
To initialize the Nutrient React Native SDK using a license key, call either of the following before using any other Nutrient SDK APIs or features:
2626

@@ -102,7 +102,7 @@ See our [Getting Started on React Native guide](https://www.nutrient.io/getting-
102102
repositories {
103103
mavenLocal()
104104
+ maven {
105-
+ url 'https://my.pspdfkit.com/maven/'
105+
+ url 'https://my.nutrient.io/maven/'
106106
+ }
107107
}
108108
}

android/.settings/org.eclipse.buildship.core.prefs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ arguments=--init-script /var/folders/3v/qy3ssjxs2m7d97yc60nrl2l00000gn/T/db3b08f
22
auto.sync=false
33
build.scans.enabled=false
44
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
5-
connection.project.dir=../../../android
5+
connection.project.dir=
66
eclipse.preferences.version=1
77
gradle.user.home=
88
java.home=/Users/erhardbrand/Library/Java/JavaVirtualMachines/jdk-17.0.8.jdk/Contents/Home

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Contains gradle configuration constants
1616
*/
1717
ext {
18-
PSPDFKIT_VERSION = '2024.6.1'
18+
PSPDFKIT_VERSION = '2024.8.1'
1919
}
2020

2121
buildscript {

android/src/main/java/com/pspdfkit/react/ConfigurationAdapter.java

+16-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.pspdfkit.configuration.page.PageLayoutMode;
3232
import com.pspdfkit.configuration.page.PageScrollDirection;
3333
import com.pspdfkit.configuration.page.PageScrollMode;
34+
import com.pspdfkit.configuration.search.SearchType;
3435
import com.pspdfkit.configuration.sharing.ShareFeatures;
3536
import com.pspdfkit.configuration.signatures.SignatureSavingStrategy;
3637
import com.pspdfkit.preferences.PSPDFKitPreferences;
@@ -93,6 +94,7 @@ public class ConfigurationAdapter {
9394
private static final String SHOW_DOCUMENT_INFO_VIEW = "showDocumentInfoView";
9495
private static final String SHOW_SETTINGS_MENU = "showSettingsMenu";
9596
private static final String SHOW_DEFAULT_TOOLBAR = "showDefaultToolbar";
97+
private static final String SHOW_ACTION_BUTTONS = "showActionButtons";
9698

9799
// Thumbnail Options
98100
private static final String SHOW_THUMBNAIL_BAR = "showThumbnailBar";
@@ -328,6 +330,10 @@ public ConfigurationAdapter(@NonNull final Context context, ReadableMap configur
328330
if (key != null) {
329331
configureShowDefaultToolbar(configuration.getBoolean(key));
330332
}
333+
key = getKeyOrNull(configuration, SHOW_ACTION_BUTTONS);
334+
if (key != null) {
335+
configureShowActionButtons(configuration.getBoolean(key));
336+
}
331337
}
332338
}
333339

@@ -443,7 +449,7 @@ private void configureFitPageToWidth(final boolean fitPageToWidth) {
443449
}
444450

445451
private void configureInlineSearch(final boolean inlineSearch) {
446-
final int searchType = inlineSearch ? PdfActivityConfiguration.SEARCH_INLINE : PdfActivityConfiguration.SEARCH_MODULAR;
452+
final SearchType searchType = inlineSearch ? SearchType.INLINE : SearchType.MODULAR;
447453
configuration.setSearchType(searchType);
448454
}
449455

@@ -721,6 +727,15 @@ private void configureShowDefaultToolbar(final boolean showDefaultToolbar) {
721727
}
722728
}
723729

730+
private void configureShowActionButtons(final boolean showActionButtons) {
731+
if (showActionButtons) {
732+
// Set it back to the default, which is AUTOMATIC_HIDE_SINGLE
733+
configuration.showNavigationButtons();
734+
} else {
735+
configuration.hideNavigationButtons();
736+
}
737+
}
738+
724739
public PdfActivityConfiguration build() {
725740
return configuration.build();
726741
}

0 commit comments

Comments
 (0)