Skip to content

Commit e370675

Browse files
simoarpeRad Azzouz
andauthored
Upgrade to PSPDFKit 7 for Android (#412)
* Change PSPDFKIT_VERSION to Android 7 * Update build.gradle * Update build.gradle * Update build.gradle * Update the run command for the iOS Catalog * Bump version number to 1.32.0 Co-authored-by: Rad Azzouz <rad@pspdfkit.com>
1 parent 571bb01 commit e370675

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Contains gradle configuration constants
1616
*/
1717
ext {
18-
PSPDFKIT_VERSION = '6.6.2'
18+
PSPDFKIT_VERSION = '7.0.0'
1919
}
2020

2121
buildscript {
@@ -41,7 +41,7 @@ android {
4141
buildToolsVersion "28.0.3"
4242

4343
defaultConfig {
44-
minSdkVersion 19
44+
minSdkVersion 21
4545
targetSdkVersion 26
4646
versionCode 1
4747
versionName "1.0"

package-lock.json

Lines changed: 1 addition & 1 deletion
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": "react-native-pspdfkit",
3-
"version": "1.31.6",
3+
"version": "1.32.0",
44
"description": "A React Native module for the PSPDFKit library.",
55
"keywords": [
66
"react native",

samples/Catalog/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The project contains a large set of sample code, which illustrates how to set up
3838
6. Step into the Catalog project's directory: `cd /samples/Catalog`
3939
7. Install dependencies: `yarn install` in `samples/Catalog` directory. (Because of a [bug](https://github.com/yarnpkg/yarn/issues/2165) you may need to clean `yarn`'s cache with `yarn cache clean` before.)
4040
8. Start the Metro bundler by running `react-native start`
41-
9. Run the app with `react-native-cli`: `react-native run-ios`
41+
9. Run the app with `react-native-cli`: `react-native run-ios --simulator="iPad Pro (12.9-inch) (5th generation)"`
4242

4343
### Troubleshooting
4444

samples/Catalog/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ android {
117117
defaultConfig {
118118
applicationId "com.pspdfkit.react.catalog"
119119
multiDexEnabled true
120-
minSdkVersion 19
120+
minSdkVersion 21
121121
targetSdkVersion 26
122122
versionCode 1
123123
versionName "1.0"
@@ -233,4 +233,4 @@ tasks.whenTaskAdded { task ->
233233
}
234234
}
235235

236-
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
236+
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

samples/Catalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Catalog",
3-
"version": "1.31.6",
3+
"version": "1.32.0",
44
"private": true,
55
"scripts": {
66
"start": "react-native start",

samples/Catalog/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5415,7 +5415,7 @@ react-native-permissions@^1.1.1:
54155415
integrity sha512-t0Ujm177bagjUOSzhpmkSz+LqFW04HnY9TeZFavDCmV521fQvFz82aD+POXqWsAdsJVOK3umJYBNNqCjC3g0hQ==
54165416

54175417
"react-native-pspdfkit@file:../..":
5418-
version "1.31.6"
5418+
version "1.32.0"
54195419

54205420
react-native-qrcode-scanner@^1.2.1:
54215421
version "1.2.1"

samples/NativeCatalog/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
buildscript {
44
ext {
55
buildToolsVersion = "28.0.3"
6-
minSdkVersion = 19
6+
minSdkVersion = 21
77
compileSdkVersion = 28
88
targetSdkVersion = 28
99
}

samples/NativeCatalog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NativeCatalog",
3-
"version": "1.31.6",
3+
"version": "1.32.0",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",

samples/NativeCatalog/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5506,7 +5506,7 @@ react-native-gesture-handler@^1.3.0:
55065506
prop-types "^15.7.2"
55075507

55085508
"react-native-pspdfkit@file:../..":
5509-
version "1.31.6"
5509+
version "1.32.0"
55105510

55115511
react-native-safe-area-view@^0.14.1:
55125512
version "0.14.8"

0 commit comments

Comments
 (0)