* refactor(apply-lints): `cargo clippy --fix`
* style: format code with Rustfmt
This commit fixes the style issues introduced in 7c04d15 according to the output
from Rustfmt.
Details: https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/pull/578
* style(save): call unqualified `Ok`
* style(sync): inline fmt args on `info!`
* style(theme): properly separate hex colors, `allow` `match_same_arms`
* refactor(list-view): `allow` some lints, dedupe text widget
* refactor(list-view): fix 1 `if_not_else`
* fix(utils): `setup_uad_dir` no longer takes `Option`
Also more logging and error handling
* refactor(list-view): `export_selection` `Button` built with common branch
* fix(list-view): fix all warns in 1 file, refactor, err handling, etc...
* style: format code with Rustfmt
This commit fixes the style issues introduced in 49cfa27 according to the output
from Rustfmt.
Details: https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/pull/578
* refactor(lints): `allow`, `expect`, and apply lints. factor `uad_lists.json` into var
Also:
- factors-out the List name into a `const`.
- Converts some regular comments into docs.
- use `reason` as a better alternative to comments.
* docs(name): concise description of `NAME`
* style(theme): apply suggestion from review
---------
Co-authored-by: Rudxain <rudxain@localhost.localdomain>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
- added setting for back up folder
- added pre-selected icons when importing icons.json to icommon
- added Backup / Restore category when device is connected
Cherry picking of lints from clippy::pedantic / clippy::nursery / clippy::unwrap_used / clippy::expect_used
Notable changes :
- consideration of all clippy::use-self lints
- replaced sort() by unstable_sort()
- use of map_or_else() when appropriate
- replaced "".to_string() by String::new()
- replaced collect() + len() by count()
The code base now passes all the clippy::nursery lints
---------
Co-authored-by: w1nst0n <w1nst0n@keemail.me>
A modal window will now appear to give you a recap of the selected packages before applying the changes.
A complete overhaul of the way UAD handles package selection was required to implement this feature.
This fixes the regression introduced in 5ea6177 (no public release affected)
This commit also prevents UAD to try interacting with a protected user (to avoid error spam in the logfiles)
Quick and easy way to save the state of all the system apps on a device and restore it.
This feature is available in the UAD settings.
Note: the `Export current selection` button and the non-intuitive auto import selection (see https://github.com/0x192/universal-android-debloater/issues/192) have been replaced by this new backup/restore system.