Browse Source

libpdfviewer: update to PdfViewer 13

libpdfviewer
Hardcore Sushi 3 months ago
parent
commit
8fe8b2f4b3
Signed by: hardcoresushi
GPG Key ID: AFE384344A45E13A
  1. 2
      .github/workflows/build.yml
  2. 2
      .github/workflows/validate-gradle-wrapper.yml
  3. 2
      app/build.gradle.kts
  4. 2
      app/pdfjs-dist
  5. 2
      app/src/main/AndroidManifest.xml
  6. 2
      app/src/main/java/app/grapheneos/pdfviewer/GestureHelper.java
  7. 10
      app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java
  8. 2
      app/src/main/java/app/grapheneos/pdfviewer/Utils.java
  9. 4
      app/src/main/java/app/grapheneos/pdfviewer/fragment/DocumentPropertiesFragment.java
  10. 4
      app/src/main/java/app/grapheneos/pdfviewer/fragment/JumpToPageFragment.java
  11. 7
      app/src/main/java/app/grapheneos/pdfviewer/loader/DocumentPropertiesLoader.java
  12. 4
      gradle/wrapper/gradle-wrapper.properties

2
.github/workflows/build.yml

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK 17

2
.github/workflows/validate-gradle-wrapper.yml

@ -7,5 +7,5 @@ jobs:
name: Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1

2
app/build.gradle.kts

@ -37,7 +37,7 @@ android {
defaultConfig {
minSdk = 21
targetSdk = 31
targetSdk = 32
resourceConfigurations.add("en")
}

2
app/pdfjs-dist

@ -1 +1 @@
Subproject commit a7fc0d33a11d032741f44d0b623780253747da10
Subproject commit 070a365be5a7579f4ddd5a9a2d4efcd281c2d64f

2
app/src/main/AndroidManifest.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.grapheneos.pdfviewer"
package="app.grapheneos.pdfviewer"
android:targetSandboxVersion="2">
<original-package android:name="org.grapheneos.pdfviewer" />

2
app/src/main/java/org/grapheneos/pdfviewer/GestureHelper.java → app/src/main/java/app/grapheneos/pdfviewer/GestureHelper.java

@ -1,4 +1,4 @@
package org.grapheneos.pdfviewer;
package app.grapheneos.pdfviewer;
import android.annotation.SuppressLint;
import android.content.Context;

10
app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java → app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java

@ -1,4 +1,4 @@
package org.grapheneos.pdfviewer;
package app.grapheneos.pdfviewer;
import android.content.pm.PackageInfo;
import android.content.res.ColorStateList;
@ -29,10 +29,10 @@ import androidx.appcompat.app.AppCompatActivity;
import androidx.loader.app.LoaderManager;
import androidx.loader.content.Loader;
import org.grapheneos.pdfviewer.databinding.PdfviewerBinding;
import org.grapheneos.pdfviewer.fragment.DocumentPropertiesFragment;
import org.grapheneos.pdfviewer.fragment.JumpToPageFragment;
import org.grapheneos.pdfviewer.loader.DocumentPropertiesLoader;
import app.grapheneos.pdfviewer.databinding.PdfviewerBinding;
import app.grapheneos.pdfviewer.fragment.DocumentPropertiesFragment;
import app.grapheneos.pdfviewer.fragment.JumpToPageFragment;
import app.grapheneos.pdfviewer.loader.DocumentPropertiesLoader;
import java.io.IOException;
import java.io.InputStream;

2
app/src/main/java/org/grapheneos/pdfviewer/Utils.java → app/src/main/java/app/grapheneos/pdfviewer/Utils.java

@ -1,4 +1,4 @@
package org.grapheneos.pdfviewer;
package app.grapheneos.pdfviewer;
import android.text.TextUtils;

4
app/src/main/java/org/grapheneos/pdfviewer/fragment/DocumentPropertiesFragment.java → app/src/main/java/app/grapheneos/pdfviewer/fragment/DocumentPropertiesFragment.java

@ -1,4 +1,4 @@
package org.grapheneos.pdfviewer.fragment;
package app.grapheneos.pdfviewer.fragment;
import android.app.Activity;
import android.app.Dialog;
@ -10,7 +10,7 @@ import androidx.fragment.app.DialogFragment;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import org.grapheneos.pdfviewer.R;
import app.grapheneos.pdfviewer.R;
import java.util.ArrayList;
import java.util.List;

4
app/src/main/java/org/grapheneos/pdfviewer/fragment/JumpToPageFragment.java → app/src/main/java/app/grapheneos/pdfviewer/fragment/JumpToPageFragment.java

@ -1,4 +1,4 @@
package org.grapheneos.pdfviewer.fragment;
package app.grapheneos.pdfviewer.fragment;
import android.app.Dialog;
import android.os.Bundle;
@ -11,7 +11,7 @@ import androidx.fragment.app.DialogFragment;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import org.grapheneos.pdfviewer.PdfViewer;
import app.grapheneos.pdfviewer.PdfViewer;
public class JumpToPageFragment extends DialogFragment {
public static final String TAG = "JumpToPageFragment";

7
app/src/main/java/org/grapheneos/pdfviewer/loader/DocumentPropertiesLoader.java → app/src/main/java/app/grapheneos/pdfviewer/loader/DocumentPropertiesLoader.java

@ -1,4 +1,4 @@
package org.grapheneos.pdfviewer.loader;
package app.grapheneos.pdfviewer.loader;
import android.content.Context;
import android.graphics.Typeface;
@ -9,8 +9,6 @@ import android.util.Log;
import androidx.loader.content.AsyncTaskLoader;
import org.grapheneos.pdfviewer.R;
import org.grapheneos.pdfviewer.Utils;
import org.json.JSONException;
import org.json.JSONObject;
@ -18,6 +16,9 @@ import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import app.grapheneos.pdfviewer.R;
import app.grapheneos.pdfviewer.Utils;
public class DocumentPropertiesLoader extends AsyncTaskLoader<List<CharSequence>> {
public static final String TAG = "DocumentPropertiesLoader";

4
gradle/wrapper/gradle-wrapper.properties vendored

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=8cc27038d5dbd815759851ba53e70cf62e481b87494cc97cfd97982ada5ba634
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionSha256Sum=e5444a57cda4a95f90b0c9446a9e1b47d3d7f69057765bfb54bd4f482542d548
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

Loading…
Cancel
Save