Refactor search

This commit is contained in:
MM20
2022-10-15 00:29:01 +02:00
parent 048c1e8cf9
commit 2157147caa
42 changed files with 540 additions and 517 deletions
+3 -3
View File
@@ -16,13 +16,13 @@ The source code consists of a number of Gradle submodules which all depend on ea
- `:calculator`: Implements the calculator
- `:calendar`: query calendar events for the calendar widget and calendar search
- `:compat`: Compatibility helpers for old Android versions
- `:contacts`: Contact search
- `:contacts`: Query contacts on the device
- `:crashreporter`: Crash reporter; based on https://github.com/MindorksOpenSource/CrashReporter
- `:currencies`: APIs to fetch currency conversion rates, used by `:unitconverter`
- `:customattrs`: common (low-level) APIs to store per-app customizations (custom labels, custom icons, tags)
- `:database`: the launcher database, uses AndroidX Room
- `:favorites`: Handles pinned, frequently used and hidden items and serialization / deserialization of items. Depends on most of the search modules (`:apps`, `:calendar`, `:contacts`, etc.)
- `:files`: File search (local and cloud)
- `:files`: Manage and find files (local and cloud)
- `:g-services`: Google APIs and Google sign-in; used by `:accounts` and `:files`
- `:i18n`: All resources that require localization. Mainly strings but can also be used for icon resources if they need localization.
- `:icons`: Used to retrieve icons for items. Handles icon packs, themed icons and also custom icons (on a higher level)
@@ -35,7 +35,7 @@ The source code consists of a number of Gradle submodules which all depend on ea
- `:owncloud`: Owncloud APIs and Owncloud sign-in; used by `:accounts` and `:files`
- `:permissions`: Request and observe permission status for this app
- `:preferences`: Store user preferences; uses AndroidX Datastore
- `:search`: Base classes for search items and search item serialization. Also websearches. Does not contain the actual search which is split across several modules (`:applications`, `:calendar`, `:contacts`, `:files` and so on)
- `:search`: The search. Also websearches.
- `:ui`: Contains almost the entire user interface (except for account sign-in UIs). Uses Jetpack Compose.
- `:unitconverter`: Unit and currency converter
- `:weather`: APIs to fetch weather data
+10 -7
View File
@@ -88,14 +88,12 @@ digraph {
":app" -> ":database" [style=dotted]
":applications" -> ":applications"
":applications" -> ":base" [style=dotted]
":applications" -> ":preferences" [style=dotted]
":applications" -> ":ktx" [style=dotted]
":applications" -> ":compat" [style=dotted]
":appshortcuts" -> ":appshortcuts"
":appshortcuts" -> ":applications" [style=dotted]
":appshortcuts" -> ":permissions" [style=dotted]
":appshortcuts" -> ":base" [style=dotted]
":appshortcuts" -> ":preferences" [style=dotted]
":appshortcuts" -> ":ktx" [style=dotted]
":backup" -> ":backup"
":backup" -> ":favorites" [style=dotted]
@@ -116,17 +114,14 @@ digraph {
":base" -> ":ktx" [style=dotted]
":base" -> ":i18n" [style=dotted]
":calculator" -> ":calculator"
":calculator" -> ":preferences" [style=dotted]
":calculator" -> ":base" [style=dotted]
":calendar" -> ":calendar"
":calendar" -> ":preferences" [style=dotted]
":calendar" -> ":ktx" [style=dotted]
":calendar" -> ":base" [style=dotted]
":calendar" -> ":permissions" [style=dotted]
":calendar" -> ":material-color-utilities" [style=dotted]
":compat" -> ":compat"
":contacts" -> ":contacts"
":contacts" -> ":preferences" [style=dotted]
":contacts" -> ":ktx" [style=dotted]
":contacts" -> ":base" [style=dotted]
":contacts" -> ":permissions" [style=dotted]
@@ -161,7 +156,6 @@ digraph {
":favorites" -> ":badges" [style=dotted]
":favorites" -> ":crashreporter" [style=dotted]
":files" -> ":files"
":files" -> ":preferences" [style=dotted]
":files" -> ":base" [style=dotted]
":files" -> ":ktx" [style=dotted]
":files" -> ":ms-services" [style=dotted]
@@ -216,6 +210,16 @@ digraph {
":preferences" -> ":crashreporter" [style=dotted]
":preferences" -> ":material-color-utilities" [style=dotted]
":search" -> ":search"
":search" -> ":applications" [style=dotted]
":search" -> ":appshortcuts" [style=dotted]
":search" -> ":calculator" [style=dotted]
":search" -> ":calendar" [style=dotted]
":search" -> ":contacts" [style=dotted]
":search" -> ":files" [style=dotted]
":search" -> ":unitconverter" [style=dotted]
":search" -> ":websites" [style=dotted]
":search" -> ":wikipedia" [style=dotted]
":search" -> ":customattrs" [style=dotted]
":search" -> ":base" [style=dotted]
":search" -> ":database" [style=dotted]
":search" -> ":preferences" [style=dotted]
@@ -269,7 +273,6 @@ digraph {
":webdav" -> ":crashreporter" [style=dotted]
":webdav" -> ":ktx" [style=dotted]
":websites" -> ":websites"
":websites" -> ":preferences" [style=dotted]
":websites" -> ":base" [style=dotted]
":websites" -> ":ktx" [style=dotted]
":widgets" -> ":widgets"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB