@amafil/react-native-pdf-toolkit 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -8,5 +8,5 @@ public final class BuildConfig {
8
8
  public static final String LIBRARY_PACKAGE_NAME = "org.wonday.pdf";
9
9
  public static final String BUILD_TYPE = "debug";
10
10
  // Field from default config.
11
- public static final boolean IS_NEW_ARCHITECTURE_ENABLED = true;
11
+ public static final boolean IS_NEW_ARCHITECTURE_ENABLED = false;
12
12
  }
@@ -1 +1 @@
1
- #Thu Feb 19 13:16:17 CET 2026
1
+ #Wed Apr 15 09:19:40 CEST 2026
@@ -1,2 +1,2 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
2
+ <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf/android/src/main/res"/><source path="/Users/filippo/Documents/react-native-pdf/android/build/generated/res/rs/debug"/><source path="/Users/filippo/Documents/react-native-pdf/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf/android/src/main/res"/><source path="/Users/filippo/Documents/react-native-pdf/android/build/generated/res/rs/debug"/><source path="/Users/filippo/Documents/react-native-pdf/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"/><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"/><mergedItems/></merger>
@@ -1,16 +1,25 @@
1
1
  -- Merging decision tree log ---
2
2
  manifest
3
- ADDED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml:1:1-4:12
4
- INJECTED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml:1:1-4:12
3
+ ADDED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml:1:1-4:12
4
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml:1:1-4:12
5
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml:1:1-4:12
5
6
  package
6
- INJECTED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml
7
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
8
+ ADDED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml:1:1-4:12
9
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
7
10
  xmlns:android
8
- ADDED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml:1:11-69
11
+ ADDED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml:1:11-69
9
12
  uses-sdk
10
- INJECTED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml reason: use-sdk injection requested
11
- INJECTED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml
12
- INJECTED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml
13
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml reason: use-sdk injection requested
14
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
15
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
16
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
17
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
13
18
  android:targetSdkVersion
14
- INJECTED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml
19
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
20
+ ADDED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
21
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
15
22
  android:minSdkVersion
16
- INJECTED from /Users/filippo/Documents/react-native-pdf-1/FabricExample/node_modules/react-native-pdf/android/src/main/AndroidManifestNew.xml
23
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
24
+ ADDED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
25
+ INJECTED from /Users/filippo/Documents/react-native-pdf/android/src/main/AndroidManifestNew.xml
@@ -50,6 +50,11 @@ import com.facebook.react.uimanager.events.EventDispatcher;
50
50
  import com.facebook.react.uimanager.events.Event;
51
51
  import com.facebook.react.uimanager.events.RCTEventEmitter;
52
52
 
53
+ import io.legere.pdfiumandroid.util.AlreadyClosedBehavior;
54
+ import io.legere.pdfiumandroid.util.Config;
55
+ import io.legere.pdfiumandroid.util.ConfigKt;
56
+ import io.legere.pdfiumandroid.DefaultLogger;
57
+
53
58
 
54
59
  import static java.lang.String.format;
55
60
 
@@ -104,6 +109,11 @@ public class PdfView extends PDFView implements OnPageChangeListener,OnLoadCompl
104
109
  public PdfView(Context context, AttributeSet set){
105
110
  super(context, set);
106
111
  autoScrollResumeHandler = new Handler(Looper.getMainLooper());
112
+
113
+ // Avoid IllegalStateException("Already closed") when the PDF document is recycled
114
+ // on the main thread while the background RenderingHandler thread is still rendering.
115
+ // This race condition causes ANRs reported on Google Play Console.
116
+ ConfigKt.setPdfiumConfig(new Config(new DefaultLogger(), AlreadyClosedBehavior.IGNORE));
107
117
  }
108
118
 
109
119
  @Override
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amafil/react-native-pdf-toolkit",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "summary": "A react native PDF view component",
5
5
  "description": "A react native PDF view component, support ios and android platform",
6
6
  "main": "index.js",