diff --git a/README.md b/README.md index 91b26396..c4ae916c 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,7 @@ editableAnnotationTypes: ["Ink", "Highlight"]; - Android SDK - Android Build Tools 23.0.1 (React Native) - Android Build Tools 28.0.3 (PSPDFKit module) -- PSPDFKit >= 5.0.0 +- PSPDFKit >= 5.0.1 - react-native >= 0.55.4 #### Getting Started @@ -287,7 +287,7 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp } ``` -8. PSPDFKit targets modern platforms, so you'll have to update `compileSdkVersion` to at least API 28 and `targetSdkVersion` to at least API 26 and enable MultiDex. In `YourApp/android/app/build.gradle` (note **five** places to edit): +8. PSPDFKit targets modern platforms, so you'll have to update `compileSdkVersion` to at least API 28 and `targetSdkVersion` to at least API 26 and enable MultiDex. You also need to enable Java 8 support. In `YourApp/android/app/build.gradle` (note **six** places to edit): ```diff ... @@ -310,6 +310,11 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp abiFilters "armeabi-v7a", "x86" } } + + compileOptions { + + sourceCompatibility JavaVersion.VERSION_1_8 + + targetCompatibility JavaVersion.VERSION_1_8 + } ... ``` diff --git a/android/build.gradle b/android/build.gradle index 9b4759d4..e614bf76 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,7 +2,7 @@ * Contains gradle configuration constants */ ext { - PSPDFKIT_VERSION = '5.0.0' + PSPDFKIT_VERSION = '5.0.1' } buildscript {