Skip to content

Commit d1a1ea9

Browse files
author
PSPDFKit
committed
Release 3.0.1
1 parent 0b636a6 commit d1a1ea9

File tree

9 files changed

+52
-30
lines changed

9 files changed

+52
-30
lines changed

CHANGELOG.md

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

3+
### 3.0.1 - 21 Oct 2021
4+
5+
- Update to PSPDFKit for Android 8.
6+
- PSPDFKit now requires Flutter 2.5.3 or later. (#31360)
7+
8+
## Previous Releases
9+
310
### 3.0.0 - 28 Sep 2021
411

512
- Adds the ability to open TIFF images as Image Documents. (#28630)
@@ -10,8 +17,6 @@
1017
- Migrates Flutter APIs to Android embedding v2. (#30680)
1118
- Removes `path_provider` as a dependency. (#30680)
1219

13-
## Previous Releases
14-
1520
### 2.4.0 - 22 Jul 2021
1621

1722
- Updates to PSPDFKit for Android 7.0. (#30286)

README.md

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,32 @@ Platform specific README exists for [Android](android/) and [iOS](ios/).
4545
cd pspdfkit_demo
4646
```
4747

48-
3. Open the app’s Gradle build file, `android/app/build.gradle`:
48+
3. Open the project’s Gradle build file, `android/build.gradle`:
49+
50+
```bash
51+
open android/build.gradle
52+
```
53+
54+
4. Modify the Kotlin version inside the `buildscript` section:
55+
56+
```diff
57+
buildscript {
58+
- ext.kotlin_version = '1.3.50'
59+
+ ext.kotlin_version = '1.5.31'
60+
repositories {
61+
google()
62+
mavenCentral()
63+
}
64+
...
65+
```
66+
67+
5. Open the app’s Gradle build file, `android/app/build.gradle`:
4968
5069
```bash
5170
open android/app/build.gradle
5271
```
5372
54-
4. Modify the minimum SDK version, and enable `multidex`. All this is done inside the `android` section:
73+
6. Modify the minimum SDK version, and enable `multidex`. All this is done inside the `android` section:
5574
5675
```diff
5776
android {
@@ -64,13 +83,13 @@ Platform specific README exists for [Android](android/) and [iOS](ios/).
6483
}
6584
```
6685
67-
5. Open `pubspec.yaml`:
86+
7. Open `pubspec.yaml`:
6887
6988
```bash
7089
open pubspec.yaml
7190
```
7291
73-
6. Add the PSPDFKit dependency in `pubspec.yaml`:
92+
8. Add the PSPDFKit dependency in `pubspec.yaml`:
7493
7594
```diff
7695
dependencies:
@@ -79,21 +98,21 @@ Platform specific README exists for [Android](android/) and [iOS](ios/).
7998
+ pspdfkit_flutter: any
8099
```
81100
82-
7. From the terminal app, run the following command to get all the packages:
101+
9. From the terminal app, run the following command to get all the packages:
83102
84103
```bash
85104
flutter pub get
86105
```
87106
88-
8. Then run the command below to upgrade the dependencies:
107+
10. Then run the command below to upgrade the dependencies:
89108
90109
```bash
91110
flutter pub upgrade
92111
```
93112
94-
9. Open `lib/main.dart` and replace the entire content with the contents of [demo_project_main.dart.txt](doc/demo_project_main.dart.txt). This simple example will load a PDF document from local device filesystem.
113+
11. Open `lib/main.dart` and replace the entire content with the contents of [demo_project_main.dart.txt](doc/demo_project_main.dart.txt). This simple example will load a PDF document from local device filesystem.
95114
96-
10. Add the PDF document you want to display in your project’s `assets` directory.
115+
12. Add the PDF document you want to display in your project’s `assets` directory.
97116
- First create a `PDFs` directory:
98117
99118
```bash
@@ -106,7 +125,7 @@ Platform specific README exists for [Android](android/) and [iOS](ios/).
106125
cp ~/Downloads/PSPDFKit.pdf PDFs/Document.pdf
107126
```
108127
109-
11. Specify the `assets` directory in `pubspec.yaml`:
128+
13. Specify the `assets` directory in `pubspec.yaml`:
110129
111130
```diff
112131
# The following section is specific to Flutter.
@@ -116,9 +135,9 @@ Platform specific README exists for [Android](android/) and [iOS](ios/).
116135
...
117136
```
118137
119-
12. [Start your Android emulator][start-the-emulator], or connect a device.
138+
14. [Start your Android emulator][start-the-emulator], or connect a device.
120139
121-
13. Run the app with:
140+
15. Run the app with:
122141
123142
```bash
124143
flutter run

android/config.gradle

Lines changed: 5 additions & 5 deletions
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 = '7.0.0'
41+
ext.pspdfkitVersion = '8.0.0'
4242
}
4343

4444
ext.pspdfkitMavenModuleName = 'pspdfkit'
@@ -52,8 +52,8 @@ if (!pubspecFile.exists()) {
5252
def pubspecYaml = new Yaml().load(pubspecFile.newInputStream())
5353
ext.pspdfkitFlutterVersion = pubspecYaml.version
5454

55-
ext.androidCompileSdkVersion = 29
56-
ext.androidBuildToolsVersion = '29.0.3'
55+
ext.androidCompileSdkVersion = 30
56+
ext.androidBuildToolsVersion = '30.0.3'
5757
ext.androidMinSdkVersion = 21
58-
ext.androidTargetSdkVersion = 29
59-
ext.androidGradlePluginVersion = '4.1.1'
58+
ext.androidTargetSdkVersion = 30
59+
ext.androidGradlePluginVersion = '7.1.0-alpha03'
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Mon Feb 01 16:17:50 GMT 2021
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

example/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ flutter {
4545

4646
dependencies {
4747
implementation 'com.android.support:multidex:1.0.3'
48-
testImplementation 'junit:junit:4.12'
49-
androidTestImplementation 'androidx.test:runner:1.1.1'
50-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
48+
testImplementation 'junit:junit:4.13.2'
49+
androidTestImplementation 'androidx.test:runner:1.4.0'
50+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
5151
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Tue Feb 02 09:21:10 GMT 2021
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pspdfkit_example
22
description: Demonstrates how to use the pspdfkit plugin.
3-
version: 3.0.0
3+
version: 3.0.1
44
homepage: https://pspdfkit.com/
55
environment:
66
sdk: '>=2.12.0 <3.0.0'

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.0'
6+
s.version = '3.0.1'
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
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.0
3+
version: 3.0.1
44
homepage: https://pspdfkit.com/
55
repository: https://github.com/PSPDFKit/pspdfkit-flutter
6-
issue_tracker: support@pspdfkit.com
6+
issue_tracker: https://support.pspdfkit.com/hc/en-us/requests/new
77
documentation: https://pspdfkit.com/guides/flutter/
88
environment:
99
sdk: '>=2.12.0 <3.0.0'
1010
# Flutter versions prior to 1.12 did not support the
1111
# flutter.plugin.platforms map.
12-
flutter: '>=2.5.1'
12+
flutter: '>=2.5.3'
1313

1414
dependencies:
1515
flutter:

0 commit comments

Comments
 (0)