@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.
- package/android/.gradle/8.5/checksums/checksums.lock +0 -0
- package/android/.gradle/8.5/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.5/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/build/generated/source/buildConfig/debug/org/wonday/pdf/BuildConfig.java +1 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +1 -1
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +18 -9
- package/android/src/main/java/org/wonday/pdf/PdfView.java +10 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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 =
|
|
11
|
+
public static final boolean IS_NEW_ARCHITECTURE_ENABLED = false;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#
|
|
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:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/filippo/Documents/react-native-pdf-
|
|
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:.*:<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:.*:<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:.*:<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:.*:<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:.*:<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:.*:<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
|
|
4
|
-
INJECTED from /Users/filippo/Documents/react-native-pdf
|
|
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
|
|
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
|
|
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
|
|
11
|
-
INJECTED from /Users/filippo/Documents/react-native-pdf
|
|
12
|
-
INJECTED from /Users/filippo/Documents/react-native-pdf
|
|
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
|
|
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
|
|
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