Commit Graph

349 Commits

Author SHA1 Message Date
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
Patryk Mis
4d1807718e Update Gradle to 8.1 2023-04-12 12:57:17 -04:00
Daniel Micay
a6b4144a08 drop legacy GitHub Actions submodule checkout 2023-04-10 01:33:57 -04:00
Daniel Micay
5c8c4d7d83 update GitHub Actions JDK to 20 2023-04-10 01:33:27 -04:00
dependabot[bot]
e161b71d22 Bump pdfjs-dist from 3.4.120 to 3.5.141
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 3.4.120 to 3.5.141.
- [Release notes](https://github.com/mozilla/pdfjs-dist/releases)
- [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-04-09 10:40:16 -04:00
Daniel Micay
759417f4da update Kotlin to 1.8.20 2023-04-09 09:34:51 -04:00
octocorvus
bb14ba1a25 bugfix: make text layer position absolute and use CSS transform to al...
...ign it to canvas

Fixes a bug where there was empty space above pdf page, when page
rotation is 90 or 270 degrees.

Testing: open pdf and try all rotations (0, 90, 180 and 270 degrees)
with various zoom levels (especially, max and min zoom levels), and make
sure that text layer is aligned properly to the canvas and there aren't
any unwanted blank spaces. Finally, repeat the same testing procedure
for landscape mode.

To check if text layer is aligned properly on debug builds, toggle text
layer visibility from menu or use chrome dev tools.
2023-04-09 09:32:58 -04:00
Daniel Micay
a59e72d9e0 add setup script 2023-03-24 19:46:52 -04:00
Daniel Micay
f2b0162630 remove empty .gitmodules 2023-03-24 19:46:11 -04:00
octocorvus
ae1c0874ce add option to toggle text layer visibility on debug builds
This is to ease debugging text layer on debug builds.
2023-03-24 19:45:49 -04:00
octocorvus
d445c48f3c code style changes
- js: use double quotes consistently
- js: use strict equality operator everywhere
- js: end all statements with semi colon
- css: remove redundant unit of measures
2023-03-24 19:45:49 -04:00
octocorvus
69696ae2a9 use CSS transform to rotate text layer
Newer pdf.js versions don't automatically rotate text layer based on
viewport's rotation, instead they now set the value of the attribute
"data-main-rotation" to value of rotation in degrees. So, we now apply
CSS transformation to the text layer depending on the value of that
attribute.
2023-03-24 19:45:49 -04:00
octocorvus
2dea11799c use --scale-factor variable to set text layer font size
Newer pdf.js versions requires this variable to be set equal to the
actual scale (zoom ratio), to properly set font size in text layer div.
2023-03-24 19:45:49 -04:00
octocorvus
f5a1452a2d migrate away from deprecated APIs
- renderTextLayer: use textContentSource parameter instead of textContentStream
- renderTextLayer: pass a div for the container argument
2023-03-24 19:45:49 -04:00
octocorvus
f87941ea22 update pdf.js to v3.4.120 2023-03-24 19:45:49 -04:00
octocorvus
371c9509f6 update GitHub workflow to install npm dependencies 2023-03-24 19:45:49 -04:00
octocorvus
d01131d4c6 use dependabot for npm dependencies 2023-03-24 19:45:49 -04:00
octocorvus
2935bd4b27 migrate to pdfjs-dist npm package 2023-03-24 19:45:49 -04:00
Daniel Micay
30b8769ed2 update Gradle to 8.0.2 2023-03-10 13:40:06 -05:00
Daniel Micay
f6127ca0e0 update Android Gradle plugin to 7.4.2 2023-03-10 13:40:02 -05:00