Add LauncherAppSingleton & LauncherActivityScope to dagger graph (3/n)

* Add ApplicationContext qualifier and binding the application context instance so
that this context is available across dagger graph.

* Add QuickStepModule and LoggingModule
* Provide SettingsChangeLogger in dagger way. We are depending on
  MainThreadInitializedObject for cleanup. We need to define a way
  explicitly see how we can destroy singleton objects.

Bug: 361850561
Test: Manual
Flag: NONE Dagger Integration
Change-Id: Ia10cc500edb1d88adcca540119651f59b9bc8dc8
This commit is contained in:
Anushree Ganjam
2024-09-10 17:29:37 -07:00
parent 05084e2ef3
commit fbc0f97410
10 changed files with 169 additions and 8 deletions
@@ -35,6 +35,9 @@ import java.util.function.Consumer;
/**
* Utility class for defining singletons which are initiated on main thread.
*
* TODO(b/361850561): Do not delete MainThreadInitializedObject until we find a way to
* unregister and understand how singleton objects are destroyed in dagger graph.
*/
public class MainThreadInitializedObject<T extends SafeCloseable> {