Locale() constructor has been deprecated and the new of() method is API 36.
Locale.Builder is backwards compatible.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Only silent installers such as root and shizuku can spoof installer package name.
Use appropriate installer package name when doing manual install.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
We can do special handling when ready but failure is a failure regardless.
Notify the user about it.
Also remove non-required default exception parameter as all instances of onFailure
specify an appropriate exception.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
NonCancellable dispatcher breaks the parent and child job relation which
while ensures the new job is not cancelled when parent fails, the parent job
also no longer waits for the child to finish.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
The parent worker (AuthWorker) already does the required verification
and refresh the AuthData if expired. It will never be expired in this
case.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
packageName will never be null as App() constructor enforces specifiying
packageName atleast similar to Download() class.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Move back both UpdateHelper and DownloadHelper to mainscope as they
are only for observing changes to the data and don't need to be run
on a IO dispatcher
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Action Items:
- monitor changes for ~3days, do self-test to ensure it doesn't break anything
- also verify changes on older devices & other android skins MIUI, OneUI, EMUI
- if user cancels download, purge downloaded APKS + temps
- if download is interrupted, say due to network or space constraint, retain downloads & inform failure
TODO:
- add retry/resume download option
TODO:
- Reduce notification frequency, create too many notifications resulting in notification actions being inaccesible.
- Its a bad practive to bombard system with notification redraws
* Allow to view and edit proxy URL without turning it off and on
* Add a new disable button in proxy dialog
* Trim whitespace and disallow new lines in the proxy URL field
* Disable buttons when not applicable
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Introduce a new activity to host composables as View system behaves
quite bad when composable are used inside it.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Jetpack compose allows creating custom views easily without third-party
libraries. Replicate all epoxy custom views with compose to be able to
replace it easily in future when and where ever required.
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Also set .gitlab-ci.yml to publish them at every build for convenience.
The exports should be committed (manually) to the git repository right after an
increase in database version.
Having the exports enables using autoMigrations when possible, for the future
database migrations.