Skip to content

Commit

Permalink
Release 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PSPDFKit committed Nov 9, 2021
1 parent d1a1ea9 commit 9957dfd
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 56 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
## Newest Release

### 3.0.2 - 02 Nov 2021

- Updates for PSPDFKit 11.1 for iOS. (#31654)
- Updates for PSPDFKit 8.0.1 for Android. (#31743)
- Improves the repository's README. (#31633)

## Previous Releases

### 3.0.1 - 21 Oct 2021

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

## Previous Releases

### 3.0.0 - 28 Sep 2021

- Adds the ability to open TIFF images as Image Documents. (#28630)
Expand Down
55 changes: 7 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,59 +283,16 @@ To set the license key for the currently running platform, use:
await Pspdfkit.setLicenseKey("YOUR_FLUTTER_LICENSE_KEY_GOES_HERE");
```
# Migrating from Version 1.10.3
Q: I updated the Flutter library and I am getting the following error:
```bash
lib/main.dart:8:8: Error: Error when reading '../../.pub-cache/git/pspdfkit-flutter-b6241555b1ee3e816a0dce65145991c1a4477d94/lib/pspdfkit.dart': No such file or directory
import 'package:pspdfkit_flutter/pspdfkit.dart';
^
lib/main.dart:37:7: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
Pspdfkit.present(tempDocumentPath);
^^^^^^^^
lib/main.dart:58:32: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
frameworkVersion = await Pspdfkit.frameworkVersion;
^^^^^^^^
lib/main.dart:73:5: Error: The getter 'Pspdfkit' isn't defined for the class '_MyAppState'.
- '_MyAppState' is from 'package:myapp/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Pspdfkit'.
Pspdfkit.setLicenseKey("YOUR_LICENSE_KEY_GOES_HERE");
^^^^^^^^
FAILURE: Build failed with an exception.
````
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:
```diff
-import 'package:pspdfkit_flutter/pspdfkit.dart';
+import 'package:pspdfkit_flutter/src/main.dart';
```
# Troubleshooting
## Flutter Updates
To update Flutter to the latest version, all you have to do is run `flutter upgrade`.
# Migrating from Previous Version
## Flutter Configuration Problems
To upgrade PSPDFKit for Flutter in your app, please refer to the [Upgrade and Migration Guides][flutter upgrade] section.
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.
![Flutter doctor example](screenshots/flutter-doctor.png)
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`.
### CocoaPods Conflicts With Asdf
# Troubleshooting
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`.
For Troubleshooting common issues you might encounter when setting up PSPDFKit for Flutter, please refer to the [Troubleshooting][] section.
<!-- References -->
[install-flutter]: https://flutter.dev/docs/get-started/install
[android studio]: https://developer.android.com/studio
Expand All @@ -344,3 +301,5 @@ If [asdf](https://github.com/asdf-vm/asdf) is installed in your machine it might
[xcode]: https://apps.apple.com/us/app/xcode/id497799835?mt=12
[cocoapods releases]: https://github.com/CocoaPods/CocoaPods/releases
[start-the-emulator]: https://developer.android.com/studio/run/emulator#runningemulator
[flutter upgrade]: https://pspdfkit.com/guides/flutter/upgrade/
[troubleshooting]: https://pspdfkit.com/guides/flutter/troubleshoot/
2 changes: 1 addition & 1 deletion android/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (pspdfkitMavenUrl == null || pspdfkitMavenUrl == '') {

ext.pspdfkitVersion = localProperties.getProperty('pspdfkit.version')
if (pspdfkitVersion == null || pspdfkitVersion == '') {
ext.pspdfkitVersion = '8.0.0'
ext.pspdfkitVersion = '8.0.1'
}

ext.pspdfkitMavenModuleName = 'pspdfkit'
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ flutter_ios_podfile_setup

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

post_install do |installer|
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: pspdfkit_example
description: Demonstrates how to use the pspdfkit plugin.
version: 3.0.1
version: 3.0.2
homepage: https://pspdfkit.com/
environment:
sdk: '>=2.12.0 <3.0.0'
flutter: '>=2.5.1'
flutter: '>=2.5.3'

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion ios/pspdfkit_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
Pod::Spec.new do |s|
s.name = 'pspdfkit_flutter'
s.version = '3.0.1'
s.version = '3.0.2'
s.homepage = 'https://PSPDFKit.com'
s.documentation_url = 'https://pspdfkit.com/guides/flutter'
s.license = { :type => 'Commercial', :file => '../LICENSE' }
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pspdfkit_flutter
description: A Flutter plugin providing a feature-rich PDF viewing and editing experience to your users with the powerful PSPDFKit PDF SDK.
version: 3.0.1
version: 3.0.2
homepage: https://pspdfkit.com/
repository: https://github.com/PSPDFKit/pspdfkit-flutter
issue_tracker: https://support.pspdfkit.com/hc/en-us/requests/new
Expand Down

0 comments on commit 9957dfd

Please sign in to comment.