Skip to content

Commit 0b636a6

Browse files
author
PSPDFKit
committed
Update
1 parent dd48aa7 commit 0b636a6

26 files changed

+3533
-160
lines changed

ACKNOWLEDGEMENTS.md

Lines changed: 3226 additions & 0 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,119 @@
1-
## [2.4.0] - 22 Jul 2021
1+
## Newest Release
2+
3+
### 3.0.0 - 28 Sep 2021
4+
5+
- Adds the ability to open TIFF images as Image Documents. (#28630)
6+
- Adds a `setLicenseKeys` method which accepts both Android and iOS license keys. (#30943)
7+
- Adds support for iOS 15. (#31008)
8+
- PSPDFKit now requires Flutter 2.5.1 or later. (#30960)
9+
- PSPDFKit now requires Xcode 13 or later. (#31008)
10+
- Migrates Flutter APIs to Android embedding v2. (#30680)
11+
- Removes `path_provider` as a dependency. (#30680)
12+
13+
## Previous Releases
14+
15+
### 2.4.0 - 22 Jul 2021
216

317
- Updates to PSPDFKit for Android 7.0. (#30286)
418
- Bump minimum SDK version `androidMinSdkVersion` to API 21. (#30286)
519

6-
## [2.3.3] - 19 Jul 2021
20+
### 2.3.3 - 19 Jul 2021
721

822
- Improves readme file removing `compileOptions` section as not required anymore. (#30258)
923

10-
## [2.3.2] - 07 Jul 2021
24+
### 2.3.2 - 07 Jul 2021
1125

1226
- Updates the deployment target of iOS to 13 for PSPDFKit 10.5 for iOS. (#30057)
1327

14-
## [2.3.1] - 03 Jun 2021
28+
### 2.3.1 - 03 Jun 2021
1529

1630
- Updates readme example to enable running with sound null safety. (#29631)
1731
- Adds the implementation for the `save` method on iOS. (#29644)
1832

19-
## [2.3.0] - 01 Jun 2021
33+
### 2.3.0 - 01 Jun 2021
2034

2135
- Removes the need of a trial key for running PSPDFKit Flutter in demo mode. (#28297)
2236
- Updates to PSPDFKit for Android 6.6.2 (#29523)
2337

24-
## [2.2.2] - 06 May 2021
38+
### 2.2.2 - 06 May 2021
2539

2640
- Adds a title image for the plugin frontpage. (#29330)
2741

28-
## [2.2.1] - 03 May 2021
42+
### 2.2.1 - 03 May 2021
2943

3044
- Reverts some unneeded file changes. (#29286)
3145

32-
## [2.2.0] - 03 May 2021
46+
### 2.2.0 - 03 May 2021
3347

3448
- Updates the minimum required Dart version to 2.12.0. (#29277)
3549
- Migrates the plugin and the examples to support Sound Null Safety. (#29277)
3650

37-
## [2.1.0] - 20 Apr 2021
51+
### 2.1.0 - 20 Apr 2021
3852

3953
- Adds a string for the reader view button in iOS so that it can be used in PSPDFViewController's toolbar. (#28465)
4054
- Fixes dart code formatting. (#28303)
4155
- Updates the `README` for easier getting started instructions and simpler example code. (#28303)
4256
- Updates to PSPDFKit for Android 6.6.0. (#28926)
4357
- Updates example app dependencies to latest: `path_provider` and `cupertino_icons`. (#28926)
4458

45-
## [2.0.1] - 24 Feb 2021
59+
### 2.0.1 - 24 Feb 2021
4660

4761
- Updates package description for pub.dev. (#28225)
4862
- Adds pedantic static analysis check and addresses the analysis warnings. (#28225)
4963

50-
## [2.0.0] - 17 Feb 2021
64+
### 2.0.0 - 17 Feb 2021
5165

5266
- First pub.dev published version. (#28157)
5367
- Updates the minimum required Flutter SDK version to 1.12.0. (#28157)
5468

55-
## [1.10.6] - 9 Feb 2021
69+
### 1.10.6 - 9 Feb 2021
5670

5771
- Adds “Migrating from Version 1.10.3” section in the main README. (pspdfkit-flutter:#83)
5872
- Fixes import in getting started code snippets for iOS and Android. (pspdfkit-flutter:#83)
5973
- Updates the requirements in the iOS README. (pspdfkit-flutter:#83)
6074

61-
## [1.10.5] - 2 Feb 2021
75+
### 1.10.5 - 2 Feb 2021
6276

6377
- Fixes the license key in the example project. (pspdfkit-flutter:#82)
6478

65-
## [1.10.4] - 2 Feb 2021
79+
### 1.10.4 - 2 Feb 2021
6680

6781
- Updates Gradle version and enable AndroidX for Android plugin and example. (pspdfkit-flutter:#80)
6882
- Updates for PSPDFKit 10.2 for iOS and Xcode 12.4. (pspdfkit-flutter:#81)
6983
- Changes open source license to modified BSD instead of Apache. (pspdfkit-flutter:#79)
7084
- Fixes versioning system to not require a manual update in two places. (pspdfkit-flutter:#80)
7185

72-
## [1.10.3] - 11 Jan 2021
86+
### 1.10.3 - 11 Jan 2021
7387

7488
- Updates copyright year to 2021. (pspdfkit-flutter:#75)
7589

76-
## [1.10.2] - 20 Nov 2020
90+
### 1.10.2 - 20 Nov 2020
7791

7892
- Updates for PSPDFKit for iOS 10.1 and Xcode 12.2. (pspdfkit-flutter:#74)
7993

80-
## [1.10.1] - 28 Oct 2020
94+
### 1.10.1 - 28 Oct 2020
8195

8296
- Updates to PSPDFKit for Android 6.5.3. (pspdfkit-flutter:#71)
8397

84-
## [1.10.0] - 9 Oct 2020
98+
### 1.10.0 - 9 Oct 2020
8599

86100
- Updates to PSPDFKit for Android 6.5. (pspdfkit-flutter:#66)
87101

88-
## [1.9.0] - 3 Mar 2020
102+
### 1.9.0 - 3 Mar 2020
89103

90104
- Updates to PSPDFKit for Android 6.2. (pspdfkit-flutter:#62)
91105

92-
## [1.8.0] - 21 Jan 2020
106+
### 1.8.0 - 21 Jan 2020
93107

94108
- Updates to PSPDFKit for Android 6.1.1. (pspdfkit-flutter:#54)
95109
- Adds Instant JSON document support. (pspdfkit-flutter:#48)
96110
- Fixes example project. (pspdfkit-flutter:#50, #53)
97111

98-
## [1.7.1] - 26 Nov 2019
112+
### 1.7.1 - 26 Nov 2019
99113

100114
- Exposes the `pageLayoutMode` and `isFirstPageAlwaysSingle` configuration options. (pspdfkit-flutter:#46)
101115

102-
## [1.7.0] - 8 Oct 2019
116+
### 1.7.0 - 8 Oct 2019
103117

104118
- Updates to PSPDFKit for Android 6.0. (pspdfkit-flutter:#36)
105119
- Updates to PSPDFKit for iOS 9. (pspdfkit-flutter:#42)

LICENSE

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,5 @@
1-
This wrapper is licensed with a modified BSD license.
1+
All items and source code Copyright © 2010-2021 PSPDFKit GmbH.
22

3-
In plain language: you're allowed to do whatever you wish with
4-
the code, modify, redistribute, embed in your products (free or
5-
commercial), but you must include copyright, terms of usage and
6-
disclaimer as stated in the license.
3+
PSPDFKit is a commercial product and requires a license to be used.
74

8-
You will require a commercial PSPDFKit License to run these examples
9-
in non-demo mode. Please refer to [email protected] for details.
10-
11-
Copyright (c) 2010-2021, PSPDFKit GmbH.
12-
All rights reserved.
13-
14-
Redistribution and use in source or binary forms,
15-
with or without modification, are permitted provided
16-
that the following conditions are met:
17-
18-
- Redistributions of source code must retain the above copyright
19-
notice, this list of conditions and the following disclaimer.
20-
21-
- Redistributions in binary form must reproduce the above copyright
22-
notice, this list of conditions and the following disclaimer in the
23-
documentation and/or other materials provided with the
24-
distribution.
25-
26-
- Redistributions of PSPDFKit Samples must include attribution to
27-
PSPDFKit, either in documentation or other appropriate media.
28-
29-
- Neither the name of the PSPDFKit, PSPDFKit GmbH, nor its developers
30-
may be used to endorse or promote products derived from
31-
this software without specific prior written permission.
32-
33-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
34-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
35-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
36-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
37-
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
38-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
39-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
40-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
41-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5+
See License-Evaluation.pdf if you are evaluating the demo.

License-Evaluation.pdf

120 KB
Binary file not shown.

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Flutter Intro](screenshots/flutter-intro.png)
44

5-
PSPDFKit wrapper for Flutter. Available at [pub.dev](https://pub.dev/packages/pspdfkit_flutter) and [GitHub](https://github.com/PSPDFKit/pspdfkit-flutter).
5+
PSPDFKit for Flutter is available at [pub.dev](https://pub.dev/packages/pspdfkit_flutter) and [GitHub](https://github.com/PSPDFKit/pspdfkit-flutter).
66

77
If you are new to Flutter, make sure to check our Flutter blog posts:
88

@@ -11,7 +11,7 @@ If you are new to Flutter, make sure to check our Flutter blog posts:
1111
- [Opening a PDF in Flutter](https://pspdfkit.com/blog/2019/opening-a-pdf-in-flutter/).
1212
- [How to Bridge Native iOS Code to Flutter](https://pspdfkit.com/blog/2021/how-to-bridge-native-ios-code-to-flutter/).
1313
- [How to Customize Our Flutter PDF SDK for Android](https://pspdfkit.com/blog/2021/how-to-customize-our-flutter-pdf-sdk/).
14-
- [Advances in Hybrid Wrappers](https://pspdfkit.com/blog/2019/advances-in-hybrid-wrappers/).
14+
- [Advances in Hybrid Technologies](https://pspdfkit.com/blog/2019/advances-in-hybrid-technologies/).
1515
- [How We Maintain Our Public Flutter Project Using a Private Monorepo](https://pspdfkit.com/blog/2021/maintaining-open-source-repo-from-monorepo/).
1616

1717
For our quick-start guides, [check out our website](https://pspdfkit.com/getting-started/mobile/?frontend=flutter).
@@ -70,14 +70,13 @@ Platform specific README exists for [Android](android/) and [iOS](ios/).
7070
open pubspec.yaml
7171
```
7272

73-
6. Add the PSPDFKit and `path_provider` dependencies in `pubspec.yaml`:
73+
6. Add the PSPDFKit dependency in `pubspec.yaml`:
7474

7575
```diff
7676
dependencies:
7777
flutter:
7878
sdk: flutter
79-
+ pspdfkit_flutter:
80-
+ path_provider: ^2.0.2
79+
+ pspdfkit_flutter: any
8180
```
8281

8382
7. From the terminal app, run the following command to get all the packages:
@@ -161,14 +160,13 @@ Platform specific README exists for [Android](android/) and [iOS](ios/).
161160

162161
![iOS View controller-based status bar appearance](screenshots/ios-info-plist-statusbarappearance.png)
163162

164-
6. Add the PSPDFKit and `path_provider` dependencies in `pubspec.yaml`:
163+
6. Add the PSPDFKit dependency in `pubspec.yaml`:
165164

166165
```diff
167166
dependencies:
168167
flutter:
169168
sdk: flutter
170169
+ pspdfkit_flutter:
171-
+ path_provider: ^2.0.2
172170
```
173171

174172
7. From the terminal app, run the following command to get all the packages:
@@ -254,15 +252,21 @@ initialize in demo mode, placing a watermark on each PDF and limiting usage to 6
254252

255253
To purchase a license for production use, please reach out to us via https://pspdfkit.com/sales/form/.
256254

257-
To initialize PSPDFKit using a license key, call `Pspdfkit.setLicenseKey("...")` before using any other PSPDFKit APIs or features.
255+
To initialize PSPDFKit using a license key, call either of the following before using any other PSPDFKit APIs or features:
258256

259-
# Contributing
257+
To set the license key for both Android and iOS, use:
258+
```
259+
await Pspdfkit.setLicenseKeys("YOUR_FLUTTER_ANDROID_LICENSE_KEY_GOES_HERE", "YOUR_FLUTTER_IOS_LICENSE_KEY_GOES_HERE");
260+
```
260261
261-
Please ensure [you signed our CLA](https://pspdfkit.com/guides/web/current/miscellaneous/contributing/) so we can accept your contributions.
262+
To set the license key for the currently running platform, use:
263+
```
264+
await Pspdfkit.setLicenseKey("YOUR_FLUTTER_LICENSE_KEY_GOES_HERE");
265+
```
262266
263267
# Migrating from Version 1.10.3
264268
265-
Q: I updated the Flutter plugin and I am getting the following error:
269+
Q: I updated the Flutter library and I am getting the following error:
266270
267271
```bash
268272
lib/main.dart:8:8: Error: Error when reading '../../.pub-cache/git/pspdfkit-flutter-b6241555b1ee3e816a0dce65145991c1a4477d94/lib/pspdfkit.dart': No such file or directory

analysis_options.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
66
# This notice may not be removed from this file.
77

8-
include: package:pedantic/analysis_options.yaml
8+
include: package:flutter_lints/flutter.yaml
99

1010
analyzer:
1111
errors:
@@ -16,3 +16,14 @@ analyzer:
1616
strong-mode:
1717
implicit-casts: false
1818
implicit-dynamic: false
19+
20+
linter:
21+
rules:
22+
- always_declare_return_types
23+
- prefer_single_quotes
24+
- sort_child_properties_last
25+
- unawaited_futures
26+
- unsafe_html
27+
- use_full_hex_values_for_flutter_colors
28+
29+

android/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66

77
In order to build the PSPDFKit Flutter wrapper and example project, you need to prepare a couple of dependencies:
88

9-
* Flutter SDK
10-
* Android Studio
11-
* `local.properties` file
9+
- The [latest stable version of Android Studio][https://developer.android.com/studio].
10+
- The [Android NDK][https://developer.android.com/studio/projects/install-ndk].
11+
- An [Android Virtual Device][https://developer.android.com/studio/run/managing-avds.html] or a hardware device.
12+
- The [latest stable version of PSPDFKit for Android][https://pspdfkit.com/guides/android/downloads/].
13+
- The [latest stable version of Flutter][https://flutter.dev/docs/get-started/install].
14+
- `local.properties` file
1215

1316
#### `local.properties`
1417

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111

1212
repositories {
1313
google()
14-
jcenter()
14+
mavenCentral()
1515
}
1616

1717
dependencies {
@@ -28,7 +28,7 @@ rootProject.allprojects {
2828
url pspdfkitMavenUrl
2929
}
3030
google()
31-
jcenter()
31+
mavenCentral()
3232
}
3333
}
3434

android/config.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
buildscript {
1111
repositories {
12-
jcenter()
12+
mavenCentral()
1313
}
1414
dependencies {
1515
classpath "org.yaml:snakeyaml:1.27"
@@ -53,7 +53,7 @@ def pubspecYaml = new Yaml().load(pubspecFile.newInputStream())
5353
ext.pspdfkitFlutterVersion = pubspecYaml.version
5454

5555
ext.androidCompileSdkVersion = 29
56-
ext.androidBuildToolsVersion = '29.0.1'
56+
ext.androidBuildToolsVersion = '29.0.3'
5757
ext.androidMinSdkVersion = 21
5858
ext.androidTargetSdkVersion = 29
5959
ext.androidGradlePluginVersion = '4.1.1'

0 commit comments

Comments
 (0)