Commit Graph

1259 Commits

Author SHA1 Message Date
Aayush Gupta
709e0ec1ca compose: Migrate onboarding logic to compose
* Still needs implementation for showing microG installation screen on huawei
* No anonymous mode on huawei
* Needs handling for showing permissions screen via settings

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-11-30 18:49:14 +08:00
Aayush Gupta
9bb396eaa8 UpdateWorker: Ensure there are actually apps that can't be auto-updated
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-11-29 20:52:12 +08:00
Aayush Gupta
3da29c1728 compose: Separate permission list logic from screen
We have another screen that needs to show permissions list during onboarding.
Instead of polluting a single screen, we should separate and create dedicated screens.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-11-25 16:51:39 +08:00
Aayush Gupta
6de6498418 androidTest: Add tests for reusable composable
* Add semantics wherever required to make composable easy to test

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-11-12 13:47:46 +08:00
Aayush Gupta
da7890cffe compose: Setup and use a default template for previews
Also load default app theme for previews

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-11-10 14:01:56 +08:00
Aayush Gupta
1f69ecc9de compose: Fix previews for every screen
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-11-10 11:10:01 +08:00
Aayush Gupta
b3f2d3ed9c compose: info: Apply tint color to title text instead
Restores previous behavior to attract attention to specific components

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-11-09 19:30:07 +08:00
Aayush Gupta
5bac2cc340 compose: search: Workaround focus issue in adaptive panes
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-11-09 19:05:22 +08:00
Rahul Patel
1142ecac80 Add microG Installer 2025-11-03 11:28:51 +05:30
Aayush Gupta
29dbc18750 compose: Show green color when compatibility and privacy is good
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-27 15:41:06 +08:00
Aayush Gupta
6d025b63de compose: permission: Filter out unknown permissions
Otherwise lazy column seems to add extra space for some reason

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-26 15:10:26 +08:00
Aayush Gupta
0650df41d6 compose: Tint info icon on trackers or compatibility issues
Use amber color to attract user's attention towards the issue

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-26 14:22:21 +08:00
Aayush Gupta
91a3aa08f9 extensions: Move empty paging flow function to extensions package
This is unrelated with previews

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-26 13:46:50 +08:00
Aayush Gupta
08f32fe093 compose: Rename composables to better reflect the use case
Add ListItem suffix instead of Composable wherever applicable, strip others

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-26 13:13:53 +08:00
Aayush Gupta
906bb37505 compose: navigation: Reference onNavigateUp() directly
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-25 15:00:53 +08:00
Aayush Gupta
eae34a648c compose: Drop unused composables
We will re-import them as we migrate those from epoxy to compose

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-25 14:25:23 +08:00
Aayush Gupta
0251b00792 compose: Pass painter instead of drawables
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-25 14:05:04 +08:00
Aayush Gupta
acf7b74a2d compose: details: Request required permissions for manual download too
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-13 12:58:42 +08:00
Aayush Gupta
e4ff958263 compose: details: Don't allow navigating to manual download on progress
If app's download is already in progress, don't allow navigating to manual download
anymore.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-12 18:55:36 +08:00
Aayush Gupta
1276528cce httpclient: Configure basic caching using okhttp
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-12 13:29:29 +08:00
Aayush Gupta
835f153ac1 compose: details: Show loading indicator when a download is in progress
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-12 11:22:18 +08:00
Aayush Gupta
4b1dcdc8d3 compose: details: Disable open button if package has no launch intent
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-12 11:15:41 +08:00
Aayush Gupta
1da8659de7 compose: details: Improvements to purchase handling
Let the worker handle the purchase so it isn't cancelled even if the user
closes the screen immediately after hitting the install button

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-11 16:58:03 +08:00
Aayush Gupta
0167ddbb92 Download: Rename and simplify column status parameter
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-09 17:20:58 +08:00
Aayush Gupta
0274027f4d DownloadWorker: Always return success regardless of failure
The worker has done it's job properly, its a success. We have a separate database
to track download's status. This will also allow to chain downloads while not making
them inter-dependent.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-09 15:23:04 +08:00
Aayush Gupta
1453fa38ac Drop installation error bottom sheet for notifications
Post user-readable error message in the notification as we already log the exception
in the logcat.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-09 15:18:26 +08:00
Aayush Gupta
bde20f6677 libs: Bump to latest stable dependencies
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-10-09 14:37:03 +08:00
Aayush Gupta
5eaa09ed41 compose: commons: Better topbar title for permission requests
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-29 16:23:50 +08:00
Aayush Gupta
711e523234 libs: Bump dependencies to latest stable release
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-29 15:43:59 +08:00
Aayush Gupta
3069665dab CertUtil: Consider neo store and droid-ify as fdroid stores as well
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-23 16:01:19 +08:00
Aayush Gupta
a7a2d2f180 compose: Play short animation on removing items
Compose makes it easy to animate items. Play a short animation when
items are removed from downloads and favourites.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-22 15:49:18 +08:00
Aayush Gupta
e8a1e18750 compose: favourite: Initial migration
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-22 14:46:38 +08:00
Aayush Gupta
78d029b8e8 paging: Merge and rename methods
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-22 12:58:51 +08:00
Aayush Gupta
851211b4af compose: downloads: Show relative download date again
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-22 12:11:25 +08:00
Aayush Gupta
041fa2970f compose: Optimize imports
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-22 11:26:25 +08:00
Aayush Gupta
db82b85832 compose: details: Actually let purchase get cancelled
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-22 11:26:25 +08:00
Aayush Gupta
812d13cb44 compose: details: Better handle purchase state
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-18 18:55:10 +05:30
Aayush Gupta
8212566dbf compose: about: Initial migration
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-18 15:35:16 +05:30
Aayush Gupta
620ca9cc48 compose: downloads: Add missing weight modifier
Ensure UI looks fine on high DPI

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-18 13:55:12 +05:30
Aayush Gupta
9721b55bdf compose: downloads: Replace text button with icons
Text can be quite long in translations, better use icons

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-18 12:38:03 +05:30
Aayush Gupta
d9623f16b7 DownloadHelper: Fetch all downloads when doing operations
Depending upon flow isn't reliable as subscription change due to lifecycle

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-18 12:27:20 +05:30
Aayush Gupta
b993700f8f compose: accounts: Initial migration
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-18 12:17:21 +05:30
Aayush Gupta
ea9827c6df compose: Minor improvements for download/install
Make purchase action noncancellable to allow it to happen even if user navigates
away from the screen after requesting it.

Also, don't allow expanding at all if no files are available as both actions at the
moment requires files to be available.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-17 14:31:20 +05:30
Aayush Gupta
4de974e7c4 compose: details: Emit downloading state during purchase
Purchase can take a while making user believe there is no progress happening.
Emit Downloading status with 0s to show loading indicator.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-17 14:11:36 +05:30
Aayush Gupta
acc8e5da4e compose: downloads: Use download manager icon on no downloads message
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-17 14:03:09 +05:30
Aayush Gupta
a5cc60ca31 compose: downloads: Make all clear and cancel tasks non-cancellable
We want to keep the task running even if user navigates away from the screen

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-17 13:50:09 +05:30
Aayush Gupta
e0eaa055c2 compose: downloads: Rework expanded options a bit
No need for sharing option as we have removed the ability to copy direct
download link for file long time ago.

Make the remaining buttons as TextButton too.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-17 13:45:59 +05:30
Aayush Gupta
ff51620ab2 compose: details: Hide suggestions on single pane
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-17 13:15:29 +05:30
Aayush Gupta
1823cbcd82 compose: details: Extract extra pane logic to local function
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-17 13:08:52 +05:30
Aayush Gupta
e45999b9bc viewmodel: details: Relocate and rename viewmodels
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2025-09-17 11:14:41 +05:30