Commit Graph

368 Commits

Author SHA1 Message Date
octocorvus
6754a1a666 split css into multiple files 2023-09-16 04:20:38 -04:00
octocorvus
9314d8a2d5 remove redundant setup script to install npm deps
This is handled by gradle now. Also, the script isn't cross platform.
2023-09-16 04:20:38 -04:00
octocorvus
e38052dce9 ci: remove redundant step to install npm deps
This is handled by gradle now.
2023-09-16 04:20:38 -04:00
octocorvus
e0c0a9c136 build: hook viewer build tasks to gradle 2023-09-16 04:20:38 -04:00
octocorvus
c0148fc483 viewer: replace window with globalThis 2023-09-16 04:20:38 -04:00
octocorvus
627a566c2f viewer: use esbuild to bundle pdf viewer and worker
This improves maintainability:
1. no need to hardcode each script file in Android code
2. no need to symlink pdf.js and pdf.worker.js
3. adds sourcemaps in debug builds to help debug some pdf.js related
   issues
2023-09-16 04:20:38 -04:00
octocorvus
ddce9b76b4 set "type" to "module" in package.json 2023-09-16 04:20:38 -04:00
octocorvus
1507a97e90 deps(npm): move pdfjs-dist to devDependencies 2023-09-16 04:20:38 -04:00
dependabot[bot]
056a989be3 Bump eslint from 8.48.0 to 8.49.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.48.0 to 8.49.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.48.0...v8.49.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-09 02:28:22 -04:00
dependabot[bot]
db16a935da Bump pdfjs-dist from 3.9.179 to 3.10.111
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 3.9.179 to 3.10.111.
- [Commits](https://github.com/mozilla/pdfjs-dist/commits)

---
updated-dependencies:
- dependency-name: pdfjs-dist
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 01:01:24 -04:00
dependabot[bot]
fb28446727 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 03:37:57 -04:00
Daniel Micay
06e7bfe67d update SDK to 34 (Android 14) 2023-08-25 18:31:25 -04:00
Daniel Micay
e8f1888534 update Android Gradle plugin to 8.1.1 2023-08-25 18:30:27 -04:00
dependabot[bot]
14c995c0de Bump eslint from 8.47.0 to 8.48.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.47.0 to 8.48.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.47.0...v8.48.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-25 18:01:52 -04:00
Daniel Micay
74d41cea06 update Kotlin to 1.9.10 2023-08-23 19:16:55 -04:00
Daniel Micay
18953a1456 update Gradle to 8.3 2023-08-17 13:00:29 -04:00
dependabot[bot]
0d02eab35b Bump eslint from 8.46.0 to 8.47.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.46.0 to 8.47.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.46.0...v8.47.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-11 17:48:41 -04:00
dependabot[bot]
b8b01255a7 Bump pdfjs-dist from 3.8.162 to 3.9.179
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 3.8.162 to 3.9.179.
- [Commits](https://github.com/mozilla/pdfjs-dist/commits)

---
updated-dependencies:
- dependency-name: pdfjs-dist
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 23:47:38 -04:00
Daniel Micay
2b50e74c93 update Kotlin to 1.9.0 2023-07-30 13:41:50 -04:00
Daniel Micay
3ce24e3718 update Android Gradle plugin to 8.1.0 2023-07-30 13:34:19 -04:00
Daniel Micay
30a97d7b47 update Android build tools to 34.0.0 2023-07-30 13:33:19 -04:00
dependabot[bot]
31f030bdc1 Bump eslint from 8.45.0 to 8.46.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.45.0 to 8.46.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.45.0...v8.46.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-30 13:33:19 -04:00
dependabot[bot]
b65b8e8f3f Bump eslint from 8.44.0 to 8.45.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.44.0 to 8.45.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.44.0...v8.45.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-30 13:33:19 -04:00
Daniel Micay
87572af9af update Gradle to 8.2.1 2023-07-30 13:33:19 -04:00
Daniel Micay
00a0b05bae increment version to 18 2023-07-30 13:33:19 -04:00
Daniel Micay
c7241646fe increment version to 17 2023-07-30 13:33:19 -04:00
Daniel Micay
516d99bb13 update Android Gradle plugin to 8.0.2 2023-07-30 13:33:15 -04:00
Daniel Micay
5afd670354 update Gradle to 8.2 2023-07-03 19:28:04 -04:00
Hanouta
20d6c4ea9f decrease minimum zoom ratio to 0.2 2023-07-03 19:21:54 -04:00
Hanouta
0060e2cb73 set zoomRatio to fit document to screen size 2023-07-03 19:21:29 -04:00
Daniel Micay
a820314362 update Material library to 1.9.0 2023-07-03 19:12:00 -04:00
Daniel Micay
e064995a1b update kotlin to 1.8.22 2023-07-03 19:09:20 -04:00
Daniel Micay
0f520dd517 update npm dependencies for build 2023-07-03 19:07:09 -04:00
dependabot[bot]
e9c5deb95d Bump pdfjs-dist from 3.7.107 to 3.8.162
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 3.7.107 to 3.8.162.
- [Commits](https://github.com/mozilla/pdfjs-dist/commits)

---
updated-dependencies:
- dependency-name: pdfjs-dist
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 19:01:17 -04:00
octocorvus
457cbc9e98 update MIN_WEBVIEW_RELEASE to 92
This is the minimum supported Chromium version for PDF.js v3.8.162.
2023-07-03 19:01:17 -04:00
dependabot[bot]
efc1a27203 Bump eslint from 8.43.0 to 8.44.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.43.0 to 8.44.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.43.0...v8.44.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 17:41:56 -04:00
octocorvus
123bcf30a8 make DocumentPropertiesLoader#load private 2023-06-28 00:12:28 -04:00
octocorvus
bfb5e4a538 fix file size parsing issue causing crash
Opening a PDF using Storage Access Framework (SAF) causes the app to
crash in some cases, when the file is not present on the device's
internal storage (for example, on Proton Drive).
2023-06-28 00:12:28 -04:00
dependabot[bot]
145fd9896c Bump eslint from 8.42.0 to 8.43.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.42.0 to 8.43.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.42.0...v8.43.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-16 18:23:52 -04:00
octocorvus
6f40b25b31 add eslint config and missing semicolons 2023-06-09 11:33:53 -04:00
dependabot[bot]
f6dd0b2a87 Bump pdfjs-dist from 3.5.141 to 3.7.107
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 3.5.141 to 3.7.107.
- [Commits](https://github.com/mozilla/pdfjs-dist/commits)

---
updated-dependencies:
- dependency-name: pdfjs-dist
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-08 08:50:52 +03:00
Daniel Micay
4de602be3a drop unnecessary com.android.library plugin 2023-05-03 12:59:30 -04:00
Patryk Mis
5d6c6aa4e5 Update AGP and Kotlin
Signed-off-by: Patryk Mis <foss@patrykmis.com>
2023-05-03 12:58:19 -04:00
Patryk Mis
3119c94d71 Update Gradle to v8.1.1
Signed-off-by: Patryk Mis <foss@patrykmis.com>
2023-05-03 12:58:19 -04:00
Patryk Mis
115ddcb164 Update Gradle build scripts
Signed-off-by: Patryk Mis <foss@patrykmis.com>
2023-05-03 12:58:19 -04:00
Daniel Micay
29a004091e minor whitespace fixes 2023-04-22 09:33:16 -04:00
Pratyush
195bba7891 replace custom file size parser with AOSP implementation 2023-04-20 11:18:14 -04:00
Pratyush
17c7c84296 rewrite DocumentPropertiesLoader in kotlin 2023-04-20 11:18:14 -04:00
Pratyush
61607858ef convert remaining fragments to kotlin 2023-04-20 11:18:11 -04:00
octocorvus
fb59568765 update Android Gradle Plugin to 8.0.0
fix: update JDK to 17 for AGP 8.0
fix: enable buildConfig build feature
refactor: remove unnecessary android.enableR8.fullMode
2023-04-14 08:37:42 -04:00