Skip to content

Commit 05843b2

Browse files
authored
Remove deprecated API for pageGrabberEnabled (#49)
* Remove deprecated API for `pageGrabberEnabled` * Bump version number to 1.2.1
1 parent 1666c21 commit 05843b2

File tree

5 files changed

+8
-18
lines changed

5 files changed

+8
-18
lines changed

examples/cordova/PSPDFKit-Demo/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/ionic/PSPDFKit-Demo/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pspdfkit-cordova",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "PSPDFKit Cordova Plugin for Android and iOS",
55
"cordova": {
66
"id": "pspdfkit-cordova",

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="pspdfkit-cordova" version="1.2.0">
2+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="pspdfkit-cordova" version="1.2.1">
33
<engines>
44
<engine name="cordova" version="&gt;=6.3.1" />
55
</engines>

src/ios/PSPDFKitPlugin.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,16 +1131,6 @@ - (NSNumber *)shouldAskForAnnotationUsernameAsJSON {
11311131
return @(_pdfController.configuration.shouldAskForAnnotationUsername);
11321132
}
11331133

1134-
- (void)setPageGrabberEnabledForPSPDFViewControllerWithJSON:(NSNumber *)pageGrabberEnabled {
1135-
[_pdfController updateConfigurationWithBuilder:^(PSPDFConfigurationBuilder *builder) {
1136-
builder.pageGrabberEnabled = pageGrabberEnabled.boolValue;
1137-
}];
1138-
}
1139-
1140-
- (NSNumber *)pageGrabberEnabledAsJSON {
1141-
return @(_pdfController.configuration.pageGrabberEnabled);
1142-
}
1143-
11441134
- (void)setPageLabelEnabledForPSPDFViewControllerWithJSON:(NSNumber *)pageLabelEnabled {
11451135
[_pdfController updateConfigurationWithBuilder:^(PSPDFConfigurationBuilder *builder) {
11461136
builder.pageLabelEnabled = pageLabelEnabled.boolValue;

0 commit comments

Comments
 (0)