Commit Graph

72 Commits

Author SHA1 Message Date
FooIbar 854474f85f Don't crash on ill-formed URLs (#1084) 2024-08-06 20:39:49 +06:00
MajorTanya 840b647b4b Address overridePendingTransition deprecation (#410)
This function is deprecated starting with API 34 "UpsideDownCake" and
should be replaced with `overrideActivityTransition`.
2024-02-17 21:26:47 +06:00
AntsyLich aa498360db Move :core to :core:common 2024-01-29 15:20:21 +06:00
arkon 87be54aa4a Revert overridePendingTransition refactorings 2023-12-02 11:24:13 -05:00
arkon e22eebfd02 Target SDK 30
Need to convert some services into WorkManager jobs before going to 31 and higher.
2023-11-28 23:02:33 -05:00
arkon 46e734fc8e Migrate to multiplatform string resources (#10147)
* Migrate to multiplatform string resources

* Move plurals translations into separate files

* Fix lint check on generated files
2023-11-18 13:54:56 -05:00
Ivan Iskandar 6263a52777 Fix navigation backstack (#9497)
Partial revert of dbbf6c5de0
2023-05-13 14:22:02 -04:00
arkon dbbf6c5de0 Switch back to upstream version of Voyager 2023-05-12 18:01:48 -04:00
arkon ad4912803b Refactor SourceManager/StubSource to domain module 2023-03-05 12:38:31 -05:00
arkon 93523ef50b Remove dependency injection from core module and data module from presentation-widget module
Includes side effects:
- No longer need to restart app for user agent string change to take effect
- parseAs extension function requires a Json instance in the calling context, which doesn't necessarily need to be the default one provided by Injekt
2023-02-20 19:02:38 -05:00
arkon 10d7349506 Move more components to presentation-core module 2023-02-20 10:12:41 -05:00
arkon ec49411bee Avoid crashes if headers can't be built for usage in WebView 2023-02-19 11:48:26 -05:00
arkon 3f7911235c Use unique keys for all screens to avoid crashes
Fixes #9008
Fixes #9110
2023-02-19 11:09:41 -05:00
arkon 1730dd6af1 Move more things around 2023-01-27 22:31:12 -05:00
arkon 6efcb8ccfa Use Voyager for WebView in non-reader places 2023-01-08 16:37:43 -05:00
arkon 425e48bec6 Avoid crashes when opening WebView from reader
Also ensure WebViewActivity has an Assistant URL when it first opens with a URL.
2023-01-08 10:17:54 -05:00
arkon 3749cee28f Add Assistant content URLs
This is surfaced in recents on Pixel devices for example.
Docs: https://developer.android.com/guide/app-actions/assistant-sharing

Co-authored-by: Jays2Kings <Jays2Kings@users.noreply.github.com>
2022-12-10 12:08:39 -05:00
Ivan Iskandar 82a3a98a5a Adjust screen transitions (#8707)
* Fade transition between main navigation tabs
* Shared axis X between screen stacks

Activity transition is using a "close enough" shared axis X xml animation
2022-12-09 17:23:00 -05:00
arkon e45f6d0c92 Use toShareIntent in WebViewActivity 2022-11-09 22:38:28 -05:00
arkon 0e3176a77c Clean up UpdatesController
- Move loading state into scaffold (closes #7704)
- Move logic into presenter
- Make some composables private
2022-09-18 22:38:44 -04:00
arkon 46ac9fe970 Consolidate Compose content/theme setting 2022-07-16 17:28:50 -04:00
arkon 558b18899c Migrate WebViewActivity to Compose 2022-04-24 10:22:22 -04:00
arkon 2a070c0b1e Add clear cookies option to WebView menu 2022-04-13 17:48:05 -04:00
arkon 52911539b8 Bump dependencies 2022-04-07 22:19:31 -04:00
arkon 996f770935 Override X-Requested-With header value in WebView requests (closes #6781) 2022-04-02 10:49:42 -04:00
Ivan Iskandar dbad60d03b Base activities cleanup (#6848)
* secure delegate

* theming delegate
2022-04-02 09:54:21 -04:00
arkon c06ad8b87e Stop using custom tabs (closes #6821) 2022-03-26 15:45:58 -04:00
Ivan Iskandar 38d131be37 Workaround cleanup (#6350)
* Remove material-components workaround that was fixed upstream

* Remove unused toolbar workaround

* Fix cover dialog navigation icon
2021-12-17 09:32:42 -05:00
Ivan Iskandar 932c92412c More themes cleanup (#5410)
* More themes cleanup

* Tweak some things

* Fix 'Clear History' icon

* Split out ripple colored to its own drawable

* Tidy up things

* Unify background dim amount

* Use primaryColor for Account login button

* More colored ripples

* use colorOnPrimary for selected comfortable library item title

Co-authored-by: Soitora <simon.mattila@protonmail.com>
2021-06-19 15:45:16 -04:00
arkon 71d225c562 Address some build warnings 2021-06-05 17:49:20 -04:00
Ivan Iskandar ef8a87a30f Bump compileSdk to 30 (#5140) 2021-05-22 14:48:27 -04:00
arkon 27cec697bf Avoid rare crash in WebViewActivity 2021-04-17 12:22:58 -04:00
arkon f667f85fa5 More consistent injectLazy style 2021-01-17 15:40:26 -05:00
arkon b18a794eca Use lifecycleScope directly 2021-01-07 19:12:30 -05:00
arkon 62ab70f889 Remove unnecessary BaseWebViewActivity class 2020-12-26 11:44:21 -05:00
arkon 6d403851cf Apply theme to OAuth login redirect activities 2020-12-14 23:00:01 -05:00
arkon 4880741b8b More crash fixes 2020-12-13 17:18:28 -05:00
arkon fd2028557e Some crash fixes 2020-12-13 11:00:46 -05:00
arkon 8ffd3a8ed2 Don't scroll to top when navigating back/forward in WebView 2020-12-10 09:15:09 -05:00
arkon 2bb7a33bc3 Use WebView auth flow for MAL (fixes #4100) 2020-12-08 22:21:23 -05:00
arkon 9920ff617b Clean up X-Requested-With change
This only really affects the initial request, subsequent requests may still use the package name.
2020-08-22 12:49:00 -04:00
armangido 3f1355c413 Update WebViewActivity.kt (#3617)
This code added is for some extension that blocks tachiyomi, by tricking it that it was sent by a android browser, nothing major changes,
2020-08-22 12:37:21 -04:00
arkon 4857073f30 Revert "Use AndroidX WebKit library"
This reverts commit 7e7eb9f39f.
2020-08-02 16:12:05 -04:00
arkon ccc0a61158 Shift WebView checks to necessary places only to allow for basic usage 2020-07-31 14:27:35 -04:00
arkon 33e5fea96c Explicitly destroy webview on activity destroy 2020-07-26 17:47:43 -04:00
arkon 9e51d82154 Replace custom visibility extension functions 2020-07-25 12:00:27 -04:00
arkon a928d9fa0b Enable more WebView settings to better mimic regular browser 2020-07-12 22:40:51 -04:00
arkon e9fbdb660b Fix webview height issue
Collapsing toolbar doesn't work currently.
2020-06-13 15:56:40 -04:00
arkon 7e7eb9f39f Use AndroidX WebKit library 2020-06-10 23:01:11 -04:00
arkon a106104027 Enable localStorage in WebView 2020-06-09 09:15:43 -04:00