• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

<lambda>null1 pluginManagement {
2   repositories {
3     mavenCentral()
4     google()
5     gradlePluginPortal()
6   }
7 }
8 
9 val ANDROID_RELATIVE_TOP = extra["ANDROID_RELATIVE_TOP"].toString()
10 val ACETONE_LIB_CITC_CLIENT = extra["ACETONE_LIB_CITC_CLIENT"].toString()
11 
<lambda>null12 dependencyResolutionManagement {
13   repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
14   rulesMode = RulesMode.FAIL_ON_PROJECT_RULES
15 
16   repositories {
17     maven {
18       name = "prebuilts/sdk/current/androidx/m2repository"
19       url = uri("${ANDROID_RELATIVE_TOP}/prebuilts/sdk/current/androidx/m2repository")
20     }
21     maven {
22       name = "prebuilts/sdk/current/androidx-legacy/m2repository"
23       url = uri("${ANDROID_RELATIVE_TOP}/prebuilts/sdk/current/androidx-legacy/m2repository")
24     }
25     maven {
26       name = "prebuilts/misc/common/androidx-test"
27       url = uri("${ANDROID_RELATIVE_TOP}/prebuilts/misc/common/androidx-test")
28     }
29     maven {
30       name = "prebuilts/sdk/current/extras/material-design-x"
31       url = uri("${ANDROID_RELATIVE_TOP}/prebuilts/sdk/current/extras/material-design-x")
32     }
33     maven {
34       name = "vendor/unbundled_google/packages/PrebuiltGmsCore/v17/m2repo-1p"
35       url =
36         uri("${ANDROID_RELATIVE_TOP}/vendor/unbundled_google/packages/PrebuiltGmsCore/v17/m2repo-1p")
37     }
38     maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
39 
40     mavenCentral {
41       content {
42         excludeGroupByRegex("androidx(\\..*)?")
43         excludeGroupByRegex("android(\\..*)?")
44         excludeGroupByRegex("com\\.android(\\..*)?")
45       }
46     }
47 
48     google {
49       content {
50         // Needed by :WallpaperPickerGoogle:assembleGoogleDebug
51         includeVersion("androidx.legacy", "legacy-support-v4", "1.0.0")
52         includeVersion("android.arch.lifecycle", "runtime", "1.0.0")
53         includeVersion("android.arch.lifecycle", "common", "1.0.0")
54         includeVersion("android.arch.core", "common", "1.0.0")
55         // Needed by WallpaperPickerGoogle tests
56         includeModule("androidx.multidex", "multidex")
57         // Needed by ComposeGalleryLib:assemble
58         includeGroup("androidx.compose.compiler")
59         // Needed for compiling in Android Studio
60         includeGroupByRegex("com\\.android(\\..*)?")
61         includeGroupByRegex("com\\.google(\\..*)?")
62       }
63     }
64   }
65 }
66 
67 val ANDROID_ROOT_DIR = file(rootDir).resolve("../../../../../")
68 val androidTop = file(rootDir.getParent()).resolve("../../../../").getCanonicalPath()
69 
70 /**
71  * Includes a module with a custom dir. Ignores the module if the directory does not exist.
72  *
73  * **Heads-up:** the project will **NOT** load if the project is not in the repo manifest of the
74  * small branch.
75  *
76  * @param name: the project name to be included.
77  * @params dir: the project directory child path, where parent is ANDROID_ROOT_DIR.
78  */
includeAndroidProjectnull79 fun includeAndroidProject(name: String, dir: String) {
80   val projectRoot = file(ANDROID_ROOT_DIR).resolve(dir)
81   if (projectRoot.exists()) {
82     include(name)
83     project(name).projectDir = projectRoot
84   } else {
85     logger.lifecycle("Android project \"$name\" not found. Did you checkout it with repo? Expected location is \"${projectRoot.path}\".")
86   }
87 }
88 
89 /**
90  * Includes a module with a modified root where the build.gradle.kts file is still stored near the
91  * root of this project. This is useful so that you don"t need to specify relative paths in the
92  * project"s build.gradle.kts file.
93 
94  * @param projectName = The name of a module that has a build.gradle.kts in an empty dir, for example
95  *                 "AiAi" would represent AiAi/build.gradle.kts
96  * @param projectRoot = The path to the project relative to ANDROID_BUILD_TOP. This will be set as
97  *                 the project"s projectDir
98  */
includeProjectnull99 fun includeProject(projectName: String, projectRoot: String) {
100   val projectId = ":$projectName"
101   include(projectId)
102   val projectDescriptor = project(projectId)
103   val pathToBuildFile = projectDescriptor.buildFile.canonicalFile
104   projectDescriptor.projectDir = file(androidTop).resolve(projectRoot)
105   projectDescriptor.buildFileName = pathToBuildFile.toRelativeString(projectDescriptor.projectDir)
106 }
107 
108 // Enable the project below if trying to debug platform code
109 // include ":PlatformCode"
110 
111 // includeAndroidProject(":IconLoader", "frameworks/libs/systemui/iconloaderlib")
112 //
113 // include(":SettingsLibDeviceState")
114 // include(":SettingsLibWidget")
115 // include(":SettingsLibColor")
116 // include(":SettingsLibUtils")
117 // include(":SettingsLib")
118 // include(":WifiTrackerLib")
119 include(":ModuleUtils")
120 //
121 // include(":PlatformAnimationLibrary")
122 // include(":ComposeCoreLib")
123 // include(":ComposeFeaturesLib")
124 // include(":ComposeGalleryLib")
125 // include(":ComposeGallery")
126 // include(":ComposeTestingLib")
127 // include(":ComposeSceneTransitionLayoutLib")
128 // include(":ComposeSceneTransitionLayoutDemoLib")
129 // include(":ComposeSceneTransitionLayoutDemo")
130 // include(":CustomizationLib")
131 // include(":SharedLib")
132 // include(":SharedTestLib")
133 // include(":tracinglib")
134 include(":platform-compat")
135 //
136 // include(":SettingsLibActionBarShadow")
137 // include(":SettingsLibActionButtonsPreference")
138 // include(":SettingsLibActivityEmbedding")
139 // include(":SettingsLibAdaptiveIcon")
140 // include(":SettingsLibAppPreference")
141 // include(":SettingsLibBannerMessagePreference")
142 // include(":SettingsLibBarChartPreference")
143 // include(":SettingsLibButtonPreference")
144 // include(":SettingsLibCollapsingToolbarBaseActivity")
145 // include(":SettingsLibEntityHeaderWidgets")
146 // include(":SettingsLibFooterPreference")
147 // include(":SettingsLibHelpUtils")
148 // include(":SettingsLibIllustrationPreference")
149 // include(":SettingsLibLayoutPreference")
150 // include(":SettingsLibMainSwitchPreference")
151 // include(":SettingsLibProfileSelector")
152 // include(":SettingsLibProgressBar")
153 // include(":SettingsLibRestrictedLockUtils")
154 // include(":SettingsLibSearchWidget")
155 // include(":SettingsLibSelectorWithWidgetPreference")
156 // include(":SettingsLibSettingsSpinner")
157 // include(":SettingsLibSettingsTheme")
158 // include(":SettingsLibSettingsTransition")
159 // include(":SettingsLibTile")
160 // include(":SettingsLibTopIntroPreference")
161 // include(":SettingsLibTwoTargetPreference")
162 // include(":SettingsLibUsageProgressBarPreference")
163 //
164 // include(":SystemUI-res")
165 // include(":sysuig-resources")
166 //
167 // includeProject("SystemUISharedLib-Keyguard", "frameworks/base/packages/SystemUI/shared/keyguard")
168 // include(":UiAutomatorHelpersLib")
169 // include(":UnfoldLib")
170 // include(":PixelAtoms")
171 // include(":WMShell")
172 // include(":WMShellFlags")
173 // include(":WMShellFlicker")
174 // include(":PlatformProtosNano")
175 // include(":FlickerLibParsers")
176 // include(":PerfettoProtos")
177 // include(":LayersProtosLight")
178 // include(":AiAiUi")
179 // include(":LowLightDreamLib")
180 // include(":BcSmartspace")
181 // include(":SystemUIChecks")
182 // include(":SystemUIClocks")
183 // include(":SystemUICommon")
184 // include(":SystemUIPlugins")
185 include(":FrameworkFlags")
186 include(":ManagedProvisioning")
187 // include(":SystemUILogLib")
188 // include(":PlatformParameterizedLib")
189 // include(":SystemUIScreenshotLib")
190 // include(":SystemUIScreenshotViewUtilsLib")
191 // include(":SystemUIScreenshotBiometricsTestsLib")
192 // include(":SystemUITestUtils")
193 // include(":SystemUI")
194 // include(":SystemUIFlags")
195 // include(":NotificationFlags")
196 // include(":SystemUISharedFlags")
197 // include(":SystemUI-statsd")
198 // include(":BiometricsSharedLib")
199 //
200 // //Robolectric Locations:
201 include(":RobolectricLib")       // Contains a Robolectric android-all SdkProvider that downloads from the Google CI systems
202 //
203 include(":setupcompat")
204 include(":setupdesign")
205 include(":setupdesign-strings")
206 include(":setupdesign-lottie-loading-layout")
207 //
208 // includeAndroidProject(":LauncherQsTiles", "vendor/unbundled_google/libraries/launcherqstiles")
209 // includeAndroidProject(":SearchUi", "vendor/unbundled_google/libraries/searchuilib")
210 // includeAndroidProject(":ViewCaptureLib", "frameworks/libs/systemui/viewcapturelib")
211 // includeAndroidProject(":MotionToolLib", "frameworks/libs/systemui/motiontoollib")
212 // includeAndroidProject(":AnimationLibrary", "frameworks/libs/systemui/animationlib")
213 // includeAndroidProject(":NexusLauncher", "vendor/unbundled_google/packages/NexusLauncher")
214 // includeAndroidProject(":WallpaperPickerGoogle", "vendor/unbundled_google/packages/WallpaperPickerGoogle")
215 //
216 // include(":Monet")
217 // include(":MonetLib")
218 // include(":ScreenshotLib")
219 //
220 // if (ACETONE_LIB_CITC_CLIENT.isNotBlank()) {
221 //     includeAndroidProject(":OverlayLib", "vendor/unbundled_google/packages/Launcher3/overlaylib")
222 // }
223 //
224 // includeAndroidProject(":TitanSysuiConfigOverlay", "vendor/google/nexus_overlay/TitanSysuiConfigOverlay")
225 //
226 // // Sysui and launcher e2e tests projects:
227 // include(":PlatformScenarioTestsLib")
228 // include(":PlatformScenarioTests")
229 // include(":PlatformTestingAnnotations")
230 // include(":UiTestsLibLauncher")
231 //
232 // include(":SystemUIRoboScreenshotLib")
233 //
234 // // For trunk stable flags testing.
235 // include(":PlatformTestingFlagHelper")
236 //
237 // // Uncomment this for DockSetup app
238 // // include(":DockSetup")
239 //
240 // // Uncomment this for OneSearch Plugin app
241 // // include(":OneSearch")
242 // // project(":OneSearch").projectDir = file(rootDir).resolve("../../../NexusLauncher/plugins/OneSearchPlugin")
243 //
244 // // Uncomment this for Launcher Support app.
245 // // When enabling this also set enableJetifier to false in gradle.properties
246 // // include(":SupportApp")
247 // // project(":SupportApp").projectDir = file(rootDir).resolve("../../../Launcher3/supportApp")
248 //
249 // // Slim Launcher used for developing an alternate Launcher+Overview experience
250 // include(":SlimLauncher")
251 // project(":SlimLauncher").projectDir = file(rootDir).resolve("../../../Launcher3/SlimLauncher")
252 
253 include(":android_onboarding.bedsteadonboarding.data")
254 include(":android_onboarding.bedsteadonboarding.permissions")
255 include(":android_onboarding.bedsteadonboarding.providers")
256 include(":android_onboarding.bedsteadonboarding.contract_eligibility_checker")
257 include(":android_onboarding.bedsteadonboarding.contractutils")
258 include(":android_onboarding.common")
259 include(":android_onboarding.common.annotations")
260 include(":android_onboarding.contracts")
261 include(":android_onboarding.contracts.annotations")
262 include(":android_onboarding.contracts.provisioning")
263 include(":android_onboarding.contracts.setupwizard")
264 include(":android_onboarding.contracts.testing")
265 include(":android_onboarding.flags")
266 include(":android_onboarding.flags_hilt")
267 include(":android_onboarding.nodes")