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

View File

@@ -30,7 +30,7 @@ public class LauncherApplication extends Application {
public void onCreate() {
super.onCreate();
MainProcessInitializer.initialize(this);
mAppComponent = DaggerLauncherAppComponent.builder().build();
mAppComponent = DaggerLauncherAppComponent.builder().appContext(this).build();
}
public LauncherBaseAppComponent getAppComponent() {