Skip to content

Commit 9957dfd

Browse files
author
PSPDFKit
committed
Release 3.0.2
1 parent d1a1ea9 commit 9957dfd

File tree

7 files changed

+21
-56
lines changed

7 files changed

+21
-56
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
## Newest Release
22

3+
### 3.0.2 - 02 Nov 2021
4+
5+
- Updates for PSPDFKit 11.1 for iOS. (#31654)
6+
- Updates for PSPDFKit 8.0.1 for Android. (#31743)
7+
- Improves the repository's README. (#31633)
8+
9+
## Previous Releases
10+
311
### 3.0.1 - 21 Oct 2021
412

513
- Update to PSPDFKit for Android 8.
614
- PSPDFKit now requires Flutter 2.5.3 or later. (#31360)
715

8-
## Previous Releases
9-
1016
### 3.0.0 - 28 Sep 2021
1117

1218
- Adds the ability to open TIFF images as Image Documents. (#28630)

README.md

Lines changed: 7 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -283,59 +283,16 @@ To set the license key for the currently running platform, use:
283283
await Pspdfkit.setLicenseKey("YOUR_FLUTTER_LICENSE_KEY_GOES_HERE");
284284
```
285285
286-
# Migrating from Version 1.10.3
287-
288-
Q: I updated the Flutter library and I am getting the following error:
289-
290-
```bash
291-
lib/main.dart:8:8: Error: Error when reading '../../.pub-cache/git/pspdfkit-flutter-b6241555b1ee3e816a0dce65145991c1a4477d94/lib/pspdfkit.dart': No such file or directory
292-
import 'package:pspdfkit_flutter/pspdfkit.dart';
293-
^
294-
lib/main.dart:37:7: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
295-
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
296-
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
297-
Pspdfkit.present(tempDocumentPath);
298-
^^^^^^^^
299-
lib/main.dart:58:32: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
300-
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
301-
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
302-
frameworkVersion = await Pspdfkit.frameworkVersion;
303-
^^^^^^^^
304-
lib/main.dart:73:5: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
305-
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
306-
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
307-
Pspdfkit.setLicenseKey("YOUR_LICENSE_KEY_GOES_HERE");
308-
^^^^^^^^
309-
310-
311-
FAILURE: Build failed with an exception.
312-
````
313-
A: If you were using version [1.10.3](https://github.com/PSPDFKit/pspdfkit-flutter/releases/tag/1.10.3) or earlier, you will need to update the imports in your Dart files like so:
314-
315-
```diff
316-
-import 'package:pspdfkit_flutter/pspdfkit.dart';
317-
+import 'package:pspdfkit_flutter/src/main.dart';
318-
```
319-
320-
# Troubleshooting
321-
322-
## Flutter Updates
323-
324-
To update Flutter to the latest version, all you have to do is run `flutter upgrade`.
286+
# Migrating from Previous Version
325287
326-
## Flutter Configuration Problems
288+
To upgrade PSPDFKit for Flutter in your app, please refer to the [Upgrade and Migration Guides][flutter upgrade] section.
327289
328-
Among the tools provided by Flutter, there is `flutter doctor`, a very handy program that checks your system configuration for you and provides step-by-step actions to take in case of problems.
329-
330-
![Flutter doctor example](screenshots/flutter-doctor.png)
331-
332-
The verbose mode of flutter doctor is even more helpful; it prints out extensive information about the nature of an issue and how to fix it. To run the verbose mode, all you have to do is type `flutter doctor -d`.
333-
334-
### CocoaPods Conflicts With Asdf
290+
# Troubleshooting
335291
336-
If [asdf](https://github.com/asdf-vm/asdf) is installed in your machine it might create problems when running Cocoapods, and Flutter will erroneously suggest to install CocoaPods via brew with `brew install cocoapods`. This won't work because for this specific configuration CocoaPods needs to be installed via [RubyGems](https://rubygems.org/). To fix this configuration issue just type `gem install cocoapods && pod setup`.
292+
For Troubleshooting common issues you might encounter when setting up PSPDFKit for Flutter, please refer to the [Troubleshooting][] section.
337293
338294
295+
<!-- References -->
339296
340297
[install-flutter]: https://flutter.dev/docs/get-started/install
341298
[android studio]: https://developer.android.com/studio
@@ -344,3 +301,5 @@ If [asdf](https://github.com/asdf-vm/asdf) is installed in your machine it might
344301
[xcode]: https://apps.apple.com/us/app/xcode/id497799835?mt=12
345302
[cocoapods releases]: https://github.com/CocoaPods/CocoaPods/releases
346303
[start-the-emulator]: https://developer.android.com/studio/run/emulator#runningemulator
304+
[flutter upgrade]: https://pspdfkit.com/guides/flutter/upgrade/
305+
[troubleshooting]: https://pspdfkit.com/guides/flutter/troubleshoot/

android/config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (pspdfkitMavenUrl == null || pspdfkitMavenUrl == '') {
3838

3939
ext.pspdfkitVersion = localProperties.getProperty('pspdfkit.version')
4040
if (pspdfkitVersion == null || pspdfkitVersion == '') {
41-
ext.pspdfkitVersion = '8.0.0'
41+
ext.pspdfkitVersion = '8.0.1'
4242
}
4343

4444
ext.pspdfkitMavenModuleName = 'pspdfkit'

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ flutter_ios_podfile_setup
2929

3030
target 'Runner' do
3131
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
32-
pod 'PSPDFKit', podspec:'https://customers.pspdfkit.com/pspdfkit-ios/latest.podspec'
32+
pod 'PSPDFKit', '~> 11.1.0'
3333
end
3434

3535
post_install do |installer|

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: pspdfkit_example
22
description: Demonstrates how to use the pspdfkit plugin.
3-
version: 3.0.1
3+
version: 3.0.2
44
homepage: https://pspdfkit.com/
55
environment:
66
sdk: '>=2.12.0 <3.0.0'
7-
flutter: '>=2.5.1'
7+
flutter: '>=2.5.3'
88

99
dependencies:
1010
flutter:

ios/pspdfkit_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'pspdfkit_flutter'
6-
s.version = '3.0.1'
6+
s.version = '3.0.2'
77
s.homepage = 'https://PSPDFKit.com'
88
s.documentation_url = 'https://pspdfkit.com/guides/flutter'
99
s.license = { :type => 'Commercial', :file => '../LICENSE' }

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pspdfkit_flutter
22
description: A Flutter plugin providing a feature-rich PDF viewing and editing experience to your users with the powerful PSPDFKit PDF SDK.
3-
version: 3.0.1
3+
version: 3.0.2
44
homepage: https://pspdfkit.com/
55
repository: https://github.com/PSPDFKit/pspdfkit-flutter
66
issue_tracker: https://support.pspdfkit.com/hc/en-us/requests/new

0 commit comments

Comments
 (0)