Commit Graph

1273 Commits

Author SHA1 Message Date
Aayush Gupta
a9d1667405 AuthViewModel: Use auth validation logic from AuthProvider
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-19 12:49:34 +05:30
Aayush Gupta
df3056cc43 AuthProvider: Inject it via hilt where needed
- Merge validation function in it as well instead of using it as an extension
- Use dedicated preference to check if we are anonymous or not instead of authData

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-19 12:31:34 +05:30
Aayush Gupta
56cd89086a PackageUtil: Filter packages which are apps
* Last commit's message is wrong :P

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-17 19:00:37 +05:30
Aayush Gupta
05d9f279c9 BlacklistViewModel: Filter packages which are not apps
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-17 18:55:44 +05:30
Aayush Gupta
0fdef34baf DownloadFragment: Drop non-required SwipeRefreshLayout
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-17 12:06:22 +05:30
Aayush Gupta
18c0c94253 UpdateWorker: Avoid auto-updating Aurora Store
Some users have complained that Aurora Store gets stuck in a loop of
updating again and again. Let people update it manually from the Updates tab.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-17 11:55:32 +05:30
Aayush Gupta
7f32b9078e LinearProgressIndicator: Fixes for new M3 design
* Since 1.12.0, LinearProgressIndicator uses new M3 design that doesn't plays well with install and ratings for us
* Switch both back to old style using new Widget.Material3.LinearProgressIndicator.Legacy style
* Additionally drop trackCornerRadius and switch to custom background with clipToOutline for download as the class
  now has a bug that messes with style

Keep downloads to follow new M3 design

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-13 22:00:50 +05:30
Aayush Gupta
f70fe21cc0 fixup! view_toolbar_search: Add button to clear searchView's text
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-13 10:40:29 +05:30
Aayush Gupta
1bc396598e view_toolbar_search: Add button to clear searchView's text
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-12 16:33:04 +05:30
Aayush Gupta
27c5d657ef SearchResultsFragment: Avoid fetching search results again on back
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-12 14:39:58 +05:30
Aayush Gupta
1fc5f3b87b FilterPreference: Drop persistant search filter setting
Filters should persist for a single search only to ensure users can view all available
apps when starting a new search

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-12 10:25:17 +05:30
Aayush Gupta
df90a8d8ed SearchResultsFragment: Clear filters onDestroy instead
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-12 10:25:11 +05:30
Aayush Gupta
590e325753 SessionInstaller: Enqueue sessions using SessionInfo class
Cleaner as well as avoid scenarios where download object gets overwritten by next
enqueued install resulting in wrong information

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 17:56:30 +05:30
Aayush Gupta
c92c4220d7 InstallerStatusReceiver: Pass required data as extra instead of parcel
Old Android versions experience a crash otherwise for some reason

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 17:56:30 +05:30
Aayush Gupta
d8ba59ad53 InstallerStatusReceiver: Override appropriate onReceive method
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 14:24:34 +05:30
Aayush Gupta
66045bceac Context: Drop leftovers of custom tab intent
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 12:15:33 +05:30
Aayush Gupta
8173105353 Context: Drop unused extensions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 12:10:47 +05:30
Aayush Gupta
285571f387 Use PendingIntentCompat for mutable flag
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-11 12:09:33 +05:30
Aayush Gupta
6210cd51ee AppUtil: Disable self-updates for App Gallery builds
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-10 11:00:00 +05:30
Aayush Gupta
be42199d76 MigrationReceiver: Remove default dispenser from App Gallery builds
While default dispenser is not added for existing installs on App Gallery builds,
existing installs still had default dispenser preseved which is not an intended behavior.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-10 10:56:11 +05:30
Aayush Gupta
0790f7671c fixup! Initial support for third-party dispensers
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-09 20:50:40 +05:30
Aayush Gupta
925cfac7c9 Add details about Aurora Store in welcome and about fragments
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-09 20:45:33 +05:30
Aayush Gupta
60f3c7ce06 AuthViewModel: Fix issue with google play version code being -1
* Migrate existing users to default version code if they have -1 set
* Also add issue IDs infront of migrations if available

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-02 14:58:50 +05:30
Aayush Gupta
6bf75bb68a AccountFragment: Throw users on splashFragment on logout
We have multiple checks implemented at this point in splashFragment to ensure
proper validation and navigation. If a user logs out and hits back button, he still
gets to browse Aurora Store which is an unintended behaviour.

Instead of handling same logic twice everywhere, make AccountFragment minimal and only
handle logging out here.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 13:42:40 +05:30
Aayush Gupta
3fb0c45574 AboutFragment: Rearrange links to prioritise support URLs
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 11:24:39 +05:30
Aayush Gupta
dd5f443e1f AboutFragment: Add link to GitLab wiki
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 11:16:47 +05:30
Aayush Gupta
89a060e3cd SplashFragment: Load launcher icon directly
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 10:54:03 +05:30
Aayush Gupta
75a5f51967 SplashFragment: Add menu button to about fragment
Instead of showing version below login buttons (that for some reason has never been shown),
link about fragment in the menu button which provides more information.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 10:45:58 +05:30
Aayush Gupta
446b8213ee DispenserFragment: Show info if no dispensers are available
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 10:28:20 +05:30
Aayush Gupta
453f6f24c2 Initial support for third-party dispensers
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-06-01 09:46:20 +05:30
Aayush Gupta
9004aa6df8 AppInstaller: Check if aurora services is also enabled
This ensures that users aren't shown Aurora Services as a valid installer
in case it is disabled by user or system.

* Also hardcode the required version to be 9 or above as it is the case right now.

Test: adb shell pm disable com.aurora.services

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 17:56:44 +05:30
Aayush Gupta
358e81e67e UIPreference: Hide accent color preference on Android 12+ devices
Android 12 and above devices have system based accent color system known as monet
that is highly customizable compared to our offerings.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 15:59:18 +05:30
Aayush Gupta
ac2345254d CleanCacheWorker: Rename to CacheWorker for simplicity
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 15:59:18 +05:30
Aayush Gupta
45e92d3efe UpdateWorker: Drop non-required foregroundInfo method
We are not an expedited nor in foreground, no need to have foregroundInfo method
with an ongoing notification.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 15:59:18 +05:30
Aayush Gupta
fc6c5b0307 CleanCacheWorker: Don't allow configuring cache duration
6 hours is ample time to do anything a user would like to do

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 15:59:18 +05:30
Aayush Gupta
687a7c1540 MigrationReceiver: Add logic to do migrations on version bumps
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-31 15:59:18 +05:30
Aayush Gupta
58ffbd6017 OnboardingFragment: Set default theme and accent color again
Summary provider behaves weird otherwise and doesn't loads default preference

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-21 18:38:28 +05:30
Aayush Gupta
59b7c17c5b AppLinksFragment: Drop amazon appstore links support
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-21 18:36:21 +05:30
Aayush Gupta
a655358e47 NotificationUtil: Use download object available from parcel
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-21 18:06:25 +05:30
Aayush Gupta
e338146e9e fixup! SessionInstaller: Rework installation queue logic
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-21 17:46:25 +05:30
Aayush Gupta
d901948475 AppDetailsFragment: Flip download button on permission denial
If storage permissions are required and aren't granted, fallback to install button.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-20 21:24:25 +05:30
Aayush Gupta
07e09eeb18 FilterProvider: Inject and manage instances using hilt
This also switchers to default gson instance without any modifier
changes fixing issues happening with missing params.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-20 21:12:04 +05:30
Aayush Gupta
c23f054d3e SessionInstaller: Rework installation queue logic
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-20 20:35:59 +05:30
Aayush Gupta
3d15818b07 Don't run post-install steps for shared libs
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-20 19:18:54 +05:30
Aayush Gupta
e2aa5e6b1d DownloadConverter: Inject gson instance using hilt
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-20 14:40:49 +05:30
Aayush Gupta
38c6c704d7 SessionInstaller: Clear enqueued installs properly
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-15 16:05:05 +05:30
Aayush Gupta
d0542c1a8b SplashFragment: Remove toolbar instead of hiding it
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-10 13:02:35 +05:30
Aayush Gupta
128ae7f3d5 OnboardingFragment: Skip onboarding for TV
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-08 20:21:10 +05:30
Aayush Gupta
b5bde9d3a3 PermissionsFragment: Handle missing activity to grant storage manager perm on ATV
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-08 18:09:12 +05:30
Aayush Gupta
692cda2226 PackageUtil: Check for Android TV using recommended way
Ref: https://developer.android.com/training/tv/start/hardware.html#runtime-check

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2024-05-08 18:01:56 +05:30