-
-
Notifications
You must be signed in to change notification settings - Fork 42
Add analysis to show list of growing apps #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…combine `AppStorageStats` and `InstalledApps`
Add the `AppStorageStats` entity to the database, fix the index in the annotation of `AppStorageStats` and fix `AppStorageStatsDao` to get `InstalledAppsDao` from database
… might be no matching entry
4ce6982 to
da9232d
Compare
The InstalledApps were inserted with OnConflictStrategy.REPLACE which would delete the entry and replace it. However, this would also delete the associated AppStorageStats entries so now insert ignores conflicts and there is a new `updateOrInsert` function which updates the entry or inserts it if it is not yet in the table
|
This is ready for review! |
app/src/main/java/com/amaze/fileutilities/home_page/database/AppDatabase.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/amaze/fileutilities/home_page/database/AppStorageStats.kt
Outdated
Show resolved
Hide resolved
|
After I deleted the database and reinstalled the debug app to test the new commit, I saw that the analysis showed that all apps grew a lot. |
|
I was wondering the same why it's showing such huge difference. Yes, you should the change to add a check. Only add entries when we have permissions |
Fixed in the latest two commits. To see the change, you need to delete all old values of in the database. |
|
Amazing work! Looks good :) |
Description
This adds an analysis to show by how much each installed app has grown within a configurable amount of time.
A background service is used to query the size of each app every day and store it in the database.
Issue tracker
Fixes #139