Commit Graph

235 Commits

Author SHA1 Message Date
Patryk Mis
aaa93a6f88 update build tools to 33.0.1 2022-12-20 04:31:08 -05:00
loryeam
1cf1c7ec28 horizontally and vertically center canvas and text layer
Also fixes an issue where text layer is not exactly on top of the canvas when
canvas width is less than screen width (which happens often in landscape mode or
when fully zoomed out)
2022-12-05 03:20:08 -05:00
octocorvus
ac4aa0bbb9 [webview] set minimum font size to 1px
This fixes an issue where some text layer divs (those with font
size < 8px) gets misaligned due to webview setting their font size
to 8px.
2022-12-04 18:32:28 -05:00
Daniel Micay
ed3cf2c08f remove no-op allowBackup
This was added to silence a now removed lint check.
2022-10-29 21:11:07 -04:00
smdyv
e1dd3db05a Bump material from 1.6.1 to 1.7.0 2022-10-25 15:14:35 -04:00
2766000ebc
libpdfviewer: update to PdfViewer 15 2022-10-06 18:22:57 +02:00
Daniel Micay
eead76ad86 increment version to 16 2022-10-04 12:31:21 -04:00
loryeam
fbd6c45c3f fix a typo in viewer.js which can cause cache miss 2022-10-04 12:23:18 -04:00
Pratyush
8d0caf65a2 avoid NullPointerException 2022-10-03 00:21:53 -04:00
Pratyush
221e45cd52 handle NumberFormatException caused by Integer.parseInt 2022-10-03 00:21:53 -04:00
Pratyush
ee87e43bcb handle OutOfMemoryError | IllegalArgumentException 2022-10-03 00:21:47 -04:00
Pratyush
5fadf7f47d replace deprecated api uses 2022-10-03 00:21:31 -04:00
Pratyush
7ff831769e add missing NonNull annotation 2022-10-03 00:21:31 -04:00
Daniel Micay
9e40a05be3 make manifest whitespace style consistent 2022-09-30 17:26:30 -04:00
Pratyush
18761b3e4a replace deprecated api uses 2022-09-30 17:25:49 -04:00
Pratyush
43f971c028 add documentLaunchMode flag 2022-09-30 17:25:49 -04:00
Pratyush
2b81d4dcc3 fix navigation bar color on three button navigation system 2022-09-30 17:25:49 -04:00
Pratyush
5a55c8045b use color transparent for status bar 2022-09-30 17:25:49 -04:00
Pratyush
718b448cc5 remove hardcoded (toolbar) background color 2022-09-30 17:25:49 -04:00
Pratyush
afaf71a4a2 use DynamicColors app bar theme 2022-09-30 17:25:49 -04:00
Pratyush
8a308b69e5 apply DynamicColors when available 2022-09-30 17:25:47 -04:00
06e54dbb03
libpdfviewer: update to PdfViewer 14 2022-09-20 16:00:48 +02:00
Daniel Micay
fee1b1516f move away from deprecated package attribute 2022-09-15 19:53:32 -04:00
Daniel Micay
955bed3614 increment version to 15 2022-09-12 22:29:25 -04:00
Daniel Micay
ee3605428e minor cleanup 2022-09-12 22:27:03 -04:00
Daniel Micay
9ea5cb1802 remove duplicate icon resource 2022-09-12 22:17:44 -04:00
Daniel Micay
a307f2892c add missing newlines 2022-09-12 22:16:21 -04:00
Pratyush
8c795d4552 add android 13 monochrome icon 2022-09-12 22:15:32 -04:00
Daniel Micay
d7ca71770f remove unused string resource 2022-09-12 22:06:02 -04:00
Daniel Micay
a29ec202a7 update appcompat to 1.5.1 2022-09-12 21:21:26 -04:00
Pratyush
ea9a57fabe Improve password UI/UX 2022-09-12 02:15:53 -04:00
Pratyush
68fc48d3a9 add on (doc) loaded callback 2022-09-12 02:08:42 -04:00
quh4gko8
3ebdfd0a11 bump targetSdk to 33 2022-09-10 22:44:02 -04:00
quh4gko8
ff11df007f Build against android 13, resolve new deprecated APIs 2022-09-10 22:44:02 -04:00
Patryk Mis
7634c00f59 Bump dependencies 2022-08-11 14:39:32 -04:00
Daniel Micay
09ccfb069d update Android build tools to 33.0.0 2022-07-16 18:29:19 -04:00
Daniel Micay
6a6a263b0b update AndroidX appcompat library to 1.4.2 2022-06-04 11:02:25 -04:00
Daniel Micay
8cd685c8c7 remove obsolete backup lint suppression 2022-05-26 20:45:37 -04:00
Daniel Micay
be3f43e7a4 ignore vector path length lint for Material icons 2022-05-26 20:44:26 -04:00
Daniel Micay
5eb98841d6 removed unused zoom icons 2022-05-26 20:42:13 -04:00
Daniel Micay
e297fdf7e4 ignore false positive lint warning 2022-05-26 20:41:47 -04:00
Daniel Micay
9355f54956 update Material library 2022-05-26 20:39:57 -04:00
Daniel Micay
6a7982ce80 move snackbar to root view 2022-05-06 10:12:30 -04:00
Daniel Micay
1a3e816cfc simplify error string for error while opening PDF 2022-05-06 10:10:18 -04:00
Daniel Micay
c6113df31d extend Permissions Policy
These aren't supported by Chromium yet but they're standardized and it
makes sense to explicitly forbid them.
2022-05-06 10:07:59 -04:00
Daniel Micay
db98371c9d increment version to 14 2022-05-06 10:07:59 -04:00
Pratyush
87c71ddac2 added support for encrypted PDF
based on https://github.com/GrapheneOS/PdfViewer/pull/17

Signed-off-by: Pratyush <codelab@pratyush.dev>
Co-authored-by: Tommy-Geenexus <tomgapplicationsdevelopment@gmail.com>
Co-authored-by: empratyush <codelab@pratyush.dev>
2022-05-06 10:07:59 -04:00
Daniel Micay
7dab1cdc91 reorder action strings 2022-05-06 10:07:59 -04:00
Daniel Micay
61d204d188 move share action lower in the menu 2022-05-06 10:07:59 -04:00
Daniel Micay
96651d02af remove obsolete zoom in / zoom out menu actions 2022-05-06 10:07:59 -04:00
Daniel Micay
21d7b9d76e fix warning about non-positional format parameters 2022-05-06 10:07:59 -04:00
Pratyush
eb6eb8046c added feature to save document 2022-05-06 10:07:50 -04:00
smdyv
d71f804b5a Replace feature graphic 2022-04-22 15:14:36 -04:00
Pratyush
ba9a6c8206 replace deprecated startActivityForResult 2022-04-22 04:24:25 -04:00
8fe8b2f4b3
libpdfviewer: update to PdfViewer 13 2022-03-21 16:43:25 +01:00
Daniel Micay
94c947305b increment version to 13 2022-03-20 05:15:49 -04:00
emschu
0c21e13459 add basic support to share documents via an additional item in options menu, add share icon
Signed-off-by: emschu <emschu@mailbox.org>
2022-03-20 05:14:05 -04:00
June
cb4a0e8684 Target SDK 12L/12.1
GrapheneOS is now on 12.1

Signed-off-by: June <june@eridan.me>
2022-03-13 06:00:59 -04:00
0f312347dd
libpdfviewer: update to PdfViewer 12 2022-03-06 21:39:38 +01:00
Daniel Micay
5c5bd0851d rename package to app.grapheneos.pdfviewer too 2022-02-25 16:26:22 -05:00
Daniel Micay
e68880b45d add separate release target for Play Store 2022-02-25 12:26:41 -05:00
Daniel Micay
74a9f9983d increment version to 12 2022-02-25 11:20:16 -05:00
smdyv
e6add76a9f Handle out-of-date WebView
Disable the open document menu item and show the user a relevant view.
2022-02-25 09:59:58 -05:00
Daniel Micay
2571335eeb increment version to 11 2022-02-23 17:15:05 -05:00
smdyv
6ed3aed8ad Display content edge-to-edge 2022-02-23 17:14:28 -05:00
Daniel Micay
d26851dfcf rename to app.grapheneos.pdfviewer 2022-02-23 08:50:50 -05:00
smdyv
660321cb38 Use vectors for menu icons
Material icons (rounded)
2022-02-20 12:23:43 -05:00
smdyv
7b0948383a Add margins to toolbar 2022-02-20 12:23:13 -05:00
smdyv
1fbfc86199 Disable animated layout changes for the top app bar
At least temporarily. Prevents unsightly layout shifts
2022-02-20 08:04:26 -05:00
smdyv
8453e2f2c6 Use M3 theme 2022-02-19 09:06:31 -05:00
smdyv
6468f5012f Use default window color in dark theme 2022-02-19 08:58:03 -05:00
MHShetty
c7a0ae858e Use a grey background while viewing a document 2022-02-19 08:48:09 -05:00
smdyv
f07b6350df Center canvas 2022-02-19 08:37:38 -05:00
smdyv
c743c0d6a7 Create layout for the PDF viewer activity
Updating insets is no longer necessary because the layout reserves the
space for the top app bar and frees it up in full-screen mode so the
WebView can fill the entire screen.
2022-02-19 08:32:15 -05:00
4e4b7c5da4
libpdfviewer: Genesis 2022-02-18 15:03:53 +01:00
smdyv
fdf2cf8c27 Use view binding instead of findViewById
Provides null safety and type safety
2022-02-18 06:09:22 -05:00
MHShetty
5f5e1682a0 Add dark app theme support 2022-02-13 04:19:20 -05:00
Daniel Micay
89e898d81c increment version to 10 2022-02-09 07:08:03 -05:00
smdyv
b5a05055e9 Replace launcher icon 2022-02-09 07:07:39 -05:00
Daniel Micay
80e3d7e4b8 increment version to 9 2022-02-07 00:32:25 -05:00
Daniel Micay
993923ff92 Revert "solve API 30 deprecation with getSystemWindowInsetTop"
This reverts commit 851dd55d43.
2022-02-07 00:31:22 -05:00
flawedworld
17db928149 Update Play Store icon 2022-02-07 00:27:23 -05:00
Daniel Micay
6a129121fb increment version to 8 2022-02-06 22:51:16 -05:00
June
5984291b44 Replace deprecated usages of getActivity with requireActivity, replace onClick with lambda, and use NonNull
Signed-off-by: June <june@eridan.me>
2022-02-05 23:51:21 -05:00
June
61247aaa6a Explicitly require NonNull in areas where it shouldn't/never will be
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
June
259a2afe7a Don't use C-style arrays, use parseBoolean, remove redundant explicit type
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
June
91dbb9adfb Don't use mWebView to set WebView debugging
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
June
851dd55d43 solve API 30 deprecation with getSystemWindowInsetTop
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
June
5494376175 Use expression lambda instead of statement lambda
Signed-off-by: June <june@eridan.me>
2022-02-05 23:50:54 -05:00
flawedworld
a8828e3878 replace icon 2022-02-05 19:23:36 -05:00
June
f81a71bf3d Remove unused label 2022-02-03 11:09:57 -05:00
June
9dca01a0ee Replace valueOf with their respective data type functions 2022-02-03 11:09:57 -05:00
Daniel Micay
8f44fdf862 update SDK and build tools to 32 (Android 12L) 2022-01-26 22:12:29 -05:00
June
9596bcf082 add pdfjs-dist submodule and symlink minified files
This should make the update process of pdf.js far easier and more maintainable as we can just use the pdfjs-dist tags

Signed-off-by: June <june@eridan.me>
2022-01-22 22:12:31 -05:00
June
df63e56bed solve deprecations in app build.gradle.kts
Signed-off-by: June <june@eridan.me>
2022-01-22 20:34:03 -05:00
June
846757d3fb update appcompat and material
Signed-off-by: June <june@eridan.me>
2022-01-22 20:33:31 -05:00
Daniel Micay
94f4cb6362 set Java bytecode version for Kotlin 2021-11-24 23:13:47 -05:00
Daniel Micay
e4b107e1e4 update text layer CSS 2021-11-24 22:22:33 -05:00
Daniel Micay
c7329644b2 disable idle-detection in Permissions-Policy 2021-11-24 02:19:18 -05:00
smdyv
90d4b22799 Add Kotlin Android plugin to module 2021-11-22 10:48:57 -05:00