Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

refactor: initiating install process

Hasib Prince requested to merge 1218-refactor_init_install into main

Description

The source code of initiating of app install process was spread out in different layers. Now those source codes are centralized in a single class.

Technical details

Initiating app install process related codes (creating FusedDownload and inserting into DB, checking corner cases) were implemented in MainActivity, MainActivityViewModel, UpdatedWorker. There were some duplicate codes as well. Now All these things are moved to AppInstallProcessor.

Updated the method calculateAvailableDiskSpace(), Updated one calculate the space is available in data directory to calculate the available space to install an app more accurately. before this method was used.

Tests

Issues

backlog/-/issues/1218

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Edited by Hasib Prince

Merge request reports

Loading