TP-66612- Lib changes (#815)

This commit is contained in:
Shri Prakash Bajpai
2024-06-03 19:45:38 +05:30
committed by GitHub
parent e092e85b26
commit 5d65208d9d
2 changed files with 72 additions and 13 deletions

View File

@@ -1,44 +1,103 @@
diff --git a/node_modules/react-native-pdf-renderer/android/.project b/node_modules/react-native-pdf-renderer/android/.project
new file mode 100644
index 0000000..f39b34f
--- /dev/null
+++ b/node_modules/react-native-pdf-renderer/android/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>react-native-pdf-renderer</name>
+ <comment>Project react-native-pdf-renderer created by Buildship.</comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
+ </natures>
+ <filteredResources>
+ <filter>
+ <id>1711009519146</id>
+ <name></name>
+ <type>30</type>
+ <matcher>
+ <id>org.eclipse.core.resources.regexFilterMatcher</id>
+ <arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
+ </matcher>
+ </filter>
+ </filteredResources>
+</projectDescription>
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/PdfRendererPackage.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/PdfRendererPackage.class
new file mode 100644
index 0000000..f88561e
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/PdfRendererPackage.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$GestureListener.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$GestureListener.class
new file mode 100644
index 0000000..7785af4
index 0000000..1ce7a72
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$GestureListener.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$LayoutManager.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$LayoutManager.class
new file mode 100644
index 0000000..09de6ee
index 0000000..3888718
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$LayoutManager.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$PdfRendererAdapter$ViewHolder.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$PdfRendererAdapter$ViewHolder.class
new file mode 100644
index 0000000..4f4f188
index 0000000..bc9ad7b
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$PdfRendererAdapter$ViewHolder.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$PdfRendererAdapter.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$PdfRendererAdapter.class
new file mode 100644
index 0000000..8007871
index 0000000..2172f3d
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$PdfRendererAdapter.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$ScaleListener.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$ScaleListener.class
new file mode 100644
index 0000000..3caeb64
index 0000000..b6020a0
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$ScaleListener.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$ScrollListener.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$ScrollListener.class
new file mode 100644
index 0000000..f5a5824
index 0000000..a3235da
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView$ScrollListener.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView.class
new file mode 100644
index 0000000..526b794
index 0000000..b669307
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererViewManager.class b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererViewManager.class
new file mode 100644
index 0000000..e4adac6
Binary files /dev/null and b/node_modules/react-native-pdf-renderer/android/bin/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererViewManager.class differ
diff --git a/node_modules/react-native-pdf-renderer/android/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView.java b/node_modules/react-native-pdf-renderer/android/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView.java
index f0124e1..824763f 100644
index f0124e1..8f9a272 100644
--- a/node_modules/react-native-pdf-renderer/android/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView.java
+++ b/node_modules/react-native-pdf-renderer/android/src/main/java/com/github/douglasjunior/reactNativePdfRenderer/modules/PdfRendererRecyclerView.java
@@ -296,8 +296,8 @@ public class PdfRendererRecyclerView extends RecyclerView {
@@ -140,10 +140,14 @@ public class PdfRendererRecyclerView extends RecyclerView {
@Override
protected void dispatchDraw(@NonNull Canvas canvas) {
- canvas.save();
- canvas.concat(mMatrix);
- super.dispatchDraw(canvas);
- canvas.restore();
+ try {
+ canvas.save();
+ canvas.concat(mMatrix);
+ super.dispatchDraw(canvas);
+ canvas.restore();
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ }
}
@Override
@@ -296,8 +300,8 @@ public class PdfRendererRecyclerView extends RecyclerView {
float currentZoom = values[Matrix.MSCALE_X];
float newZoom = currentZoom > mMinZoom ? mMinZoom : mMaxZoom;
@@ -49,12 +108,12 @@ index f0124e1..824763f 100644
mMatrix.setScale(newZoom, newZoom, centerX, centerY);
mMatrix.postTranslate(centerX - e.getX(), centerY - e.getY());
@@ -345,7 +345,7 @@ public class PdfRendererRecyclerView extends RecyclerView {
@@ -345,7 +349,7 @@ public class PdfRendererRecyclerView extends RecyclerView {
if (mPdfRenderer == null) return;
PdfRenderer.Page page = mPdfRenderer.openPage(position);
- Bitmap bitmap = Bitmap.createBitmap(page.getWidth(), page.getHeight(), Bitmap.Config.ARGB_4444);
+ Bitmap bitmap = Bitmap.createBitmap(page.getWidth()*4, page.getHeight()*4, Bitmap.Config.ARGB_8888);
+ Bitmap bitmap = Bitmap.createBitmap(page.getWidth()*2, page.getHeight()*2, Bitmap.Config.ARGB_8888);
page.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
ImageView imageView = holder.getImageView();

View File

@@ -7622,7 +7622,7 @@ pascalcase@^0.1.1:
resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==
patch-package@^8.0.0:
patch-package@8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/patch-package/-/patch-package-8.0.0.tgz#d191e2f1b6e06a4624a0116bcb88edd6714ede61"
integrity sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==
@@ -7747,7 +7747,7 @@ posix-character-classes@^0.1.0:
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==
postinstall-postinstall@^2.1.0:
postinstall-postinstall@2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/postinstall-postinstall/-/postinstall-postinstall-2.1.0.tgz#4f7f77441ef539d1512c40bd04c71b06a4704ca3"
integrity sha512-7hQX6ZlZXIoRiWNrbMQaLzUUfH+sSx39u8EJ9HYuDc1kLo9IXKWjM5RSquZN1ad5GnH8CGFM78fsAAQi3OKEEQ==