Skip to content

Commit

Permalink
Release 2.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PSPDFKit committed Dec 13, 2024
1 parent 6592f8f commit 85ddc55
Show file tree
Hide file tree
Showing 50 changed files with 6,353 additions and 6,949 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

296 changes: 235 additions & 61 deletions ACKNOWLEDGEMENTS.md

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
## Newest release

### 2.15.0 - 13 Dec 2024

- Adds a new `NotificationCenter` class that can be used to subscribe to Nutrient document, annotation, and analytics events. (J#HYB-448)
- Adds the ability to show or hide the back and forward action buttons using the new `showActionButtons` property. (J#HYB-98)
- Updates to Nutrient Android SDK 2024.8.1.
- Fixes an issue where the `exportXFDF` API on Android did not export all annotations. (J#HYB-546)
- Fixes an issue where the `exportXFDF` API on Android required the `Forms` license capability. (J#HYB-577)
- Fixes an issue where the back button was missing on Android when using the `PSPDFKit.present` API. (J#HYB-549)

## Previous releases

### 2.14.0 - 30 Oct 2024

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

## Previous releases

### 2.13.0 - 10 Sep 2024

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

### 2.2.0 - 14 Feb 2022

- 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.
- 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.
- 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)
- Improves the file structure of the Catalog sample project for better readability. (#32685)
- Improves the file structure of the NativeCatalog sample project for better readability. (#32887)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Nutrient offers support for customers with an active SDK license via https://sup

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.

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

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:

Expand Down Expand Up @@ -102,7 +102,7 @@ See our [Getting Started on React Native guide](https://www.nutrient.io/getting-
repositories {
mavenLocal()
+ maven {
+ url 'https://my.pspdfkit.com/maven/'
+ url 'https://my.nutrient.io/maven/'
+ }
}
}
Expand Down
2 changes: 1 addition & 1 deletion android/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ arguments=--init-script /var/folders/3v/qy3ssjxs2m7d97yc60nrl2l00000gn/T/db3b08f
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
connection.project.dir=../../../android
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=/Users/erhardbrand/Library/Java/JavaVirtualMachines/jdk-17.0.8.jdk/Contents/Home
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Contains gradle configuration constants
*/
ext {
PSPDFKIT_VERSION = '2024.6.1'
PSPDFKIT_VERSION = '2024.8.1'
}

buildscript {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import com.pspdfkit.configuration.page.PageLayoutMode;
import com.pspdfkit.configuration.page.PageScrollDirection;
import com.pspdfkit.configuration.page.PageScrollMode;
import com.pspdfkit.configuration.search.SearchType;
import com.pspdfkit.configuration.sharing.ShareFeatures;
import com.pspdfkit.configuration.signatures.SignatureSavingStrategy;
import com.pspdfkit.preferences.PSPDFKitPreferences;
Expand Down Expand Up @@ -93,6 +94,7 @@ public class ConfigurationAdapter {
private static final String SHOW_DOCUMENT_INFO_VIEW = "showDocumentInfoView";
private static final String SHOW_SETTINGS_MENU = "showSettingsMenu";
private static final String SHOW_DEFAULT_TOOLBAR = "showDefaultToolbar";
private static final String SHOW_ACTION_BUTTONS = "showActionButtons";

// Thumbnail Options
private static final String SHOW_THUMBNAIL_BAR = "showThumbnailBar";
Expand Down Expand Up @@ -328,6 +330,10 @@ public ConfigurationAdapter(@NonNull final Context context, ReadableMap configur
if (key != null) {
configureShowDefaultToolbar(configuration.getBoolean(key));
}
key = getKeyOrNull(configuration, SHOW_ACTION_BUTTONS);
if (key != null) {
configureShowActionButtons(configuration.getBoolean(key));
}
}
}

Expand Down Expand Up @@ -443,7 +449,7 @@ private void configureFitPageToWidth(final boolean fitPageToWidth) {
}

private void configureInlineSearch(final boolean inlineSearch) {
final int searchType = inlineSearch ? PdfActivityConfiguration.SEARCH_INLINE : PdfActivityConfiguration.SEARCH_MODULAR;
final SearchType searchType = inlineSearch ? SearchType.INLINE : SearchType.MODULAR;
configuration.setSearchType(searchType);
}

Expand Down Expand Up @@ -721,6 +727,15 @@ private void configureShowDefaultToolbar(final boolean showDefaultToolbar) {
}
}

private void configureShowActionButtons(final boolean showActionButtons) {
if (showActionButtons) {
// Set it back to the default, which is AUTOMATIC_HIDE_SINGLE
configuration.showNavigationButtons();
} else {
configuration.hideNavigationButtons();
}
}

public PdfActivityConfiguration build() {
return configuration.build();
}
Expand Down
Loading

0 comments on commit 85ddc55

Please sign in to comment.