From 6b3bf3f6403992424984460474ba5e65f8ad5201 Mon Sep 17 00:00:00 2001 From: sgong-pdftron Date: Fri, 4 Jul 2025 15:01:53 -0700 Subject: [PATCH 1/3] fix android readme to account for newer template versions --- README.md | 121 ++++++++++++++++++------------------------------------ 1 file changed, 40 insertions(+), 81 deletions(-) diff --git a/README.md b/README.md index a49cd64e..effb430e 100644 --- a/README.md +++ b/README.md @@ -82,88 +82,47 @@ The release can be found here: https://github.com/ApryseSDK/pdftron-react-native 1. Add the following in your `android/app/build.gradle` file: - ```diff - android { - ndkVersion rootProject.ext.ndkVersion + ```diff + defaultConfig { + applicationId "com.example.myapp" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0.0" + + + resValue("string", "PDFTRON_LICENSE_KEY", "\"LICENSE_KEY_GOES_HERE\"") + } + ``` - compileSdkVersion rootProject.ext.compileSdkVersion - - defaultConfig { - applicationId "com.reactnativesample" - minSdkVersion rootProject.ext.minSdkVersion - targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 1 - versionName "1.0" - buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() - + multiDexEnabled true - + manifestPlaceholders = [pdftronLicenseKey:PDFTRON_LICENSE_KEY] - } - ... - } - ... - - dependencies { - + implementation "androidx.multidex:multidex:2.0.1" - ... - } - ``` - -2. In your `android/gradle.properties` file, add the following line: - ```diff - # Add the PDFTRON_LICENSE_KEY variable here. - # For trial purposes leave it blank. - # For production add a valid commercial license key. - PDFTRON_LICENSE_KEY= - ``` -3. Add the following to your `android/app/src/main/AndroidManifest.xml` file: - - ```diff - - - - - + - - + - - - - - + - - - - - - - - - - - ``` - -4. In your `android/app/src/main/java/com/myapp/MainApplication.java` file, change `Application` to `MultiDexApplication`: - - ```diff - - import android.app.Application; - + import androidx.multidex.MultiDexApplication; - ... - - public class MainApplication extends Application implements ReactApplication { - + public class MainApplication extends MultiDexApplication implements ReactApplication { - ``` - -5. Replace `App.js` (or `App.tsx`) with what is shown for [NPM](#Usage-NPM) or [GitHub](#Usage-Github) -6. Finally in the root project directory, run `react-native run-android`. +2. Add the following to your `android/app/src/main/AndroidManifest.xml` file: + + ```diff + + + + + + + + + + + + + + + ... + + + ``` + +3. Replace `App.js` (or `App.tsx`) with what is shown for [NPM](#Usage-NPM) or [GitHub](#Usage-Github) +4. Finally in the root project directory, run `react-native run-android`. ### iOS From 097dd406dcdaf66ee09153f62f8dda3691578adc Mon Sep 17 00:00:00 2001 From: sgong-pdftron Date: Fri, 4 Jul 2025 15:02:56 -0700 Subject: [PATCH 2/3] spacing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index effb430e..ebb28ac1 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ The release can be found here: https://github.com/ApryseSDK/pdftron-react-native defaultConfig { applicationId "com.example.myapp" minSdkVersion rootProject.ext.minSdkVersion - targetSdkVersion rootProject.ext.targetSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0.0" From e38192c057947e85ba1fc813d7fc7a66aed0b0cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 4 Jul 2025 22:05:04 +0000 Subject: [PATCH 3/3] Updating package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aa2fb16a..51d8e203 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-pdftron", "title": "React Native Pdftron", - "version": "3.0.4-17", + "version": "3.0.4-18", "description": "React Native Pdftron", "main": "./lib/index.js", "typings": "index.ts",