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

Commit 36d5a0ac authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

New modules for DI, utils, settings, and retail

 - Move common dagger classes to new, separate, dependency injection
   (DI) module

 - Move GlobalSettings interface to separate module

 - Move ConflatedCallbackFlow.kt to common

 - Make SystemUICommon depends on SystemUI-shared-utils

 - Split retail into three modules: one for assembling the DI graph,
   another for the data layer, and a third for the domain layer.

Bug: 307607958
Flag: EXEMPT build change is a no-op
Test: adb shell settings put global device_demo_mode 1 / 0, observe QS
Change-Id: I67f68cdd6528cae7b0c0f199e4505fbd97fab784
parent b3773d73
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -497,6 +497,9 @@ android_library {
    resource_dirs: [],
    static_libs: [
        "//frameworks/libs/systemui:compilelib",
        "//frameworks/base/packages/SystemUI/pods/com/android/systemui/dagger:api",
        "//frameworks/base/packages/SystemUI/pods/com/android/systemui/util/settings:api",
        "//frameworks/base/packages/SystemUI/pods/com/android/systemui/retail:impl",
        "SystemUI-res",
        "WifiTrackerLib",
        "WindowManager-Shell",
@@ -770,6 +773,9 @@ android_library {
    ],
    static_libs: [
        "//frameworks/libs/systemui:compilelib",
        "//frameworks/base/packages/SystemUI/pods/com/android/systemui/dagger:api",
        "//frameworks/base/packages/SystemUI/pods/com/android/systemui/util/settings:api",
        "//frameworks/base/packages/SystemUI/pods/com/android/systemui/retail:impl",
        "SystemUI-tests-base",
        "androidx.test.uiautomator_uiautomator",
        "androidx.core_core-animation-testing",
+4 −0
Original line number Diff line number Diff line
@@ -30,5 +30,9 @@ java_library {
        "src/**/*.kt",
    ],

    static_libs: ["SystemUI-shared-utils"],

    libs: ["//frameworks/libs/systemui:tracinglib-platform"],

    kotlincflags: ["-Xjvm-default=all"],
}
+0 −0

File moved.

+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ import com.android.systemui.plugins.ActivityStarter;
import com.android.systemui.plugins.FalsingManager;
import com.android.systemui.res.R;
import com.android.systemui.retail.data.repository.FakeRetailModeRepository;
import com.android.systemui.retail.domain.interactor.RetailModeInteractorImpl;
import com.android.systemui.retail.domain.interactor.impl.RetailModeInteractorImpl;
import com.android.systemui.settings.UserTracker;
import com.android.systemui.utils.leaks.LeakCheckedTest;

Loading