DO NOT MERGE Add scripts for generating transitive dependency resolution

Bug: 73250914
Test: make && make cts
Change-Id: I643cb40627fef9aed2fee6ba9e640d62ac3ea7d0
diff --git a/current/Android.mk b/current/Android.mk
index 9b14fb0..cd14152 100644
--- a/current/Android.mk
+++ b/current/Android.mk
@@ -59,20 +59,5 @@
 # Car API stubs
 $(call define-prebuilt, prebuilt-android.car-stubs:optional/android.car.jar)
 
-# Artifact for car that includes API stubs. Workaround for lack of "provided"
-# dependencies.
-include $(CLEAR_VARS)
-LOCAL_MODULE := android-support-car
-LOCAL_SDK_VERSION := current
-LOCAL_MANIFEST_FILE := support/manifests/android-support-car/AndroidManifest.xml
-LOCAL_STATIC_JAVA_LIBRARIES := \
-  prebuilt-android.car-stubs
-LOCAL_STATIC_ANDROID_LIBRARIES := \
-  android-support-car-nostubs
-LOCAL_JAR_EXCLUDE_FILES := none
-LOCAL_JAVA_LANGUAGE_VERSION := 1.7
-LOCAL_USE_AAPT2 := true
-include $(BUILD_STATIC_JAVA_LIBRARY)
-
 # Include all Support Library modules as prebuilts.
 include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/current/support/definitions.mk b/current/definitions.mk
similarity index 97%
rename from current/support/definitions.mk
rename to current/definitions.mk
index ae90b89..84eb53a 100644
--- a/current/support/definitions.mk
+++ b/current/definitions.mk
@@ -120,4 +120,4 @@
     $(ANDROID_SUPPORT_DESIGN_TARGETS) \
     $(ANDROID_SUPPORT_MEDIA_COMPAT_TARGETS)
 
-RESOLVE_SUPPORT_LIBRARIES := prebuilts/sdk/current/support/fix_dependencies.mk
+RESOLVE_SUPPORT_LIBRARIES := prebuilts/sdk/current/fix_dependencies.mk
diff --git a/current/fix_dependencies.mk b/current/fix_dependencies.mk
new file mode 100644
index 0000000..9c7d1b5
--- /dev/null
+++ b/current/fix_dependencies.mk
@@ -0,0 +1,2555 @@
+#
+# Copyright (C) 2018 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+###########################################################################
+# Inspects Support Library dependencies and adds transitive dependencies.
+#
+# Exports the following variables:
+# support_android_deps
+# support_java_deps
+#
+# This file was automatically generated with:
+# ./update_current/extract_deps.py current/support/Android.mk,current/extras/material-design/Android.mk,current/extras/app-toolkit/Android.mk,current/extras/app-toolkit/Android.mk -o current/fix_dependencies.mk
+###########################################################################
+
+# Only AAPT2 clients get transitive dependency resolution. This may be removed
+# once we've migrated all Support Library targets to LOCAL_AAPT2_ONLY := true.
+ifeq ($(LOCAL_USE_AAPT2),true)
+
+known_support_libs := \
+    android-arch-core-common \
+    android-arch-core-runtime \
+    android-arch-lifecycle-common \
+    android-arch-lifecycle-common-java8 \
+    android-arch-lifecycle-extensions \
+    android-arch-lifecycle-livedata \
+    android-arch-lifecycle-livedata-core \
+    android-arch-lifecycle-runtime \
+    android-arch-lifecycle-viewmodel \
+    android-arch-paging-common \
+    android-arch-paging-runtime \
+    android-arch-persistence-db \
+    android-arch-persistence-db-framework \
+    android-arch-room-common \
+    android-arch-room-migration \
+    android-arch-room-runtime \
+    android-arch-room-testing \
+    android-slices-builders \
+    android-slices-core \
+    android-slices-view \
+    android-support-animatedvectordrawable \
+    android-support-annotations \
+    android-support-asynclayoutinflater \
+    android-support-car \
+    android-support-collections \
+    android-support-compat \
+    android-support-contentpaging \
+    android-support-coordinatorlayout \
+    android-support-core-ui \
+    android-support-core-utils \
+    android-support-cursoradapter \
+    android-support-customtabs \
+    android-support-customview \
+    android-support-design \
+    android-support-design-animation \
+    android-support-design-bottomappbar \
+    android-support-design-bottomnavigation \
+    android-support-design-bottomsheet \
+    android-support-design-button \
+    android-support-design-canvas \
+    android-support-design-card \
+    android-support-design-chip \
+    android-support-design-circularreveal \
+    android-support-design-circularreveal-cardview \
+    android-support-design-circularreveal-coordinatorlayout \
+    android-support-design-color \
+    android-support-design-dialog \
+    android-support-design-drawable \
+    android-support-design-expandable \
+    android-support-design-floatingactionbutton \
+    android-support-design-internal \
+    android-support-design-math \
+    android-support-design-navigation \
+    android-support-design-resources \
+    android-support-design-ripple \
+    android-support-design-shape \
+    android-support-design-snackbar \
+    android-support-design-stateful \
+    android-support-design-tabs \
+    android-support-design-textfield \
+    android-support-design-theme \
+    android-support-design-transformation \
+    android-support-design-typography \
+    android-support-design-widget \
+    android-support-documentfile \
+    android-support-drawerlayout \
+    android-support-dynamic-animation \
+    android-support-emoji \
+    android-support-emoji-appcompat \
+    android-support-emoji-bundled \
+    android-support-exifinterface \
+    android-support-fragment \
+    android-support-heifwriter \
+    android-support-interpolator \
+    android-support-loader \
+    android-support-localbroadcastmanager \
+    android-support-media-compat \
+    android-support-percent \
+    android-support-print \
+    android-support-recommendation \
+    android-support-recyclerview-selection \
+    android-support-slidingpanelayout \
+    android-support-swiperefreshlayout \
+    android-support-textclassifier \
+    android-support-transition \
+    android-support-tv-provider \
+    android-support-v13 \
+    android-support-v14-preference \
+    android-support-v17-leanback \
+    android-support-v17-preference-leanback \
+    android-support-v4 \
+    android-support-v7-appcompat \
+    android-support-v7-cardview \
+    android-support-v7-gridlayout \
+    android-support-v7-mediarouter \
+    android-support-v7-palette \
+    android-support-v7-preference \
+    android-support-v7-recyclerview \
+    android-support-vectordrawable \
+    android-support-viewpager \
+    android-support-wear \
+    android-support-webkit \
+    flexbox
+
+# Don't run on the Support Library targets themselves.
+ifeq (,$(filter $(known_support_libs), $(LOCAL_MODULE)))
+
+# Aggregate all requested Support Library modules.
+requested_support_libs := $(filter $(known_support_libs), \
+    $(LOCAL_JAVA_LIBRARIES) $(LOCAL_STATIC_JAVA_LIBRARIES) \
+    $(LOCAL_SHARED_ANDROID_LIBRARIES) $(LOCAL_STATIC_ANDROID_LIBRARIES))
+
+# Filter the Support Library modules out of the library variables. We don't
+# trust developers to get these right, so they will be added back by the
+# build system based on the output of this file and the type of build.
+LOCAL_JAVA_LIBRARIES := $(filter-out $(requested_support_libs), \
+    $(LOCAL_JAVA_LIBRARIES))
+LOCAL_STATIC_JAVA_LIBRARIES := $(filter-out $(requested_support_libs), \
+    $(LOCAL_STATIC_JAVA_LIBRARIES))
+LOCAL_SHARED_ANDROID_LIBRARIES := $(filter-out $(requested_support_libs), \
+    $(LOCAL_SHARED_ANDROID_LIBRARIES))
+LOCAL_STATIC_ANDROID_LIBRARIES := $(filter-out $(requested_support_libs), \
+    $(LOCAL_STATIC_ANDROID_LIBRARIES))
+
+support_android_deps :=
+support_java_deps :=
+
+ifneq (,$(filter android-arch-core-common,$(requested_support_libs)))
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-core-runtime,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-lifecycle-common,$(requested_support_libs)))
+    support_java_deps += \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-lifecycle-common-java8,$(requested_support_libs)))
+    support_java_deps += \
+        android-arch-lifecycle-common-java8-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-lifecycle-extensions,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-extensions-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-livedata-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps \
+        android-support-fragment
+endif
+
+ifneq (,$(filter android-arch-lifecycle-livedata,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-livedata-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-lifecycle-livedata-core,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-lifecycle-runtime,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-lifecycle-viewmodel,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-viewmodel-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-paging-common,$(requested_support_libs)))
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-paging-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-paging-runtime,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-livedata-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-arch-paging-runtime-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-arch-paging-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps \
+        android-support-v7-recyclerview
+endif
+
+ifneq (,$(filter android-arch-persistence-db,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-persistence-db-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-persistence-db-framework,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-persistence-db-framework-nodeps \
+        android-arch-persistence-db-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-room-common,$(requested_support_libs)))
+    support_java_deps += \
+        android-arch-room-common-nodeps \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-arch-room-migration,$(requested_support_libs)))
+    support_java_deps += \
+        android-arch-room-common-nodeps \
+        android-arch-room-migration-nodeps \
+        android-support-annotations-nodeps \
+        kotlin-stdlib
+endif
+
+ifneq (,$(filter android-arch-room-runtime,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-arch-persistence-db-framework-nodeps \
+        android-arch-persistence-db-nodeps \
+        android-arch-room-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-arch-room-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps \
+        android-support-core-utils
+endif
+
+ifneq (,$(filter android-arch-room-testing,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-arch-persistence-db-framework-nodeps \
+        android-arch-persistence-db-nodeps \
+        android-arch-room-runtime-nodeps \
+        android-arch-room-testing-nodeps \
+        android-support-compat-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-arch-room-common-nodeps \
+        android-arch-room-migration-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps \
+        android-support-core-utils \
+        junit \
+        kotlin-stdlib
+endif
+
+ifneq (,$(filter android-slices-builders,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-slices-builders-nodeps \
+        android-slices-core-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-slices-core,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-slices-core-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-slices-view,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-slices-builders-nodeps \
+        android-slices-core-nodeps \
+        android-slices-view-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-animatedvectordrawable,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-annotations,$(requested_support_libs)))
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-asynclayoutinflater,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-car,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-car-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomappbar \
+        android-support-design-bottomnavigation \
+        android-support-design-bottomsheet \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-cardview \
+        android-support-design-circularreveal-coordinatorlayout \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-expandable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-math \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-shape \
+        android-support-design-snackbar \
+        android-support-design-stateful \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-theme \
+        android-support-design-transformation \
+        android-support-design-typography \
+        android-support-design-widget \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v4-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps \
+        flexbox
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps \
+        prebuilt-android.car-stubs
+endif
+
+ifneq (,$(filter android-support-collections,$(requested_support_libs)))
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-compat,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-contentpaging,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-contentpaging-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-coordinatorlayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-customview-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-core-ui,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-core-utils,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-compat-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-cursoradapter,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-cursoradapter-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-customtabs,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customtabs-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-customview,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-customview-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design \
+        android-support-design-animation \
+        android-support-design-bottomappbar \
+        android-support-design-bottomnavigation \
+        android-support-design-bottomsheet \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-cardview \
+        android-support-design-circularreveal-coordinatorlayout \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-expandable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-math \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-shape \
+        android-support-design-snackbar \
+        android-support-design-stateful \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-theme \
+        android-support-design-transformation \
+        android-support-design-typography \
+        android-support-design-widget \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-animation,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-bottomappbar,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomappbar \
+        android-support-design-bottomnavigation \
+        android-support-design-bottomsheet \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-cardview \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-expandable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-math \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-shape \
+        android-support-design-snackbar \
+        android-support-design-stateful \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-typography \
+        android-support-design-widget \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-bottomnavigation,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-bottomnavigation \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-bottomsheet,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomnavigation \
+        android-support-design-bottomsheet \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-snackbar \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-typography \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-button,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-bottomnavigation \
+        android-support-design-button \
+        android-support-design-color \
+        android-support-design-internal \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-snackbar \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-canvas,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-design-canvas
+endif
+
+ifneq (,$(filter android-support-design-card,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-bottomnavigation \
+        android-support-design-card \
+        android-support-design-color \
+        android-support-design-internal \
+        android-support-design-resources \
+        android-support-design-snackbar \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-chip,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomnavigation \
+        android-support-design-canvas \
+        android-support-design-chip \
+        android-support-design-color \
+        android-support-design-drawable \
+        android-support-design-internal \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-snackbar \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-circularreveal,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-design-circularreveal \
+        android-support-design-math
+endif
+
+ifneq (,$(filter android-support-design-circularreveal-cardview,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-cardview \
+        android-support-design-math \
+        android-support-v7-cardview-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-design-circularreveal-coordinatorlayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-coordinatorlayout \
+        android-support-design-math
+endif
+
+ifneq (,$(filter android-support-design-color,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-design-color
+endif
+
+ifneq (,$(filter android-support-design-dialog,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomnavigation \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-snackbar \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-typography \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-drawable,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-design-drawable
+endif
+
+ifneq (,$(filter android-support-design-expandable,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-expandable \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-floatingactionbutton,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-color \
+        android-support-design-floatingactionbutton \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-internal,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-bottomnavigation \
+        android-support-design-color \
+        android-support-design-internal \
+        android-support-design-snackbar \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-math,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-design-math
+endif
+
+ifneq (,$(filter android-support-design-navigation,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-navigation \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-resources,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-resources \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-ripple,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-compat-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-design-ripple \
+        android-support-documentfile-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-shape,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-shape \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-snackbar,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-design-snackbar
+endif
+
+ifneq (,$(filter android-support-design-stateful,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-stateful \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-tabs,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-tabs \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-textfield,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-textfield \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-theme,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomnavigation \
+        android-support-design-bottomsheet \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-cardview \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-expandable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-math \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-snackbar \
+        android-support-design-stateful \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-theme \
+        android-support-design-typography \
+        android-support-design-widget \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-transformation,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomnavigation \
+        android-support-design-bottomsheet \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-cardview \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-expandable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-math \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-snackbar \
+        android-support-design-stateful \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-transformation \
+        android-support-design-typography \
+        android-support-design-widget \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-typography,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-typography \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-design-widget,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomnavigation \
+        android-support-design-bottomsheet \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-cardview \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-expandable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-math \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-snackbar \
+        android-support-design-stateful \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-typography \
+        android-support-design-widget \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-transition-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-documentfile,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-documentfile-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-drawerlayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-customview-nodeps \
+        android-support-drawerlayout-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-dynamic-animation,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-compat-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-dynamic-animation-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-emoji,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-emoji-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-emoji-appcompat,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-emoji-appcompat-nodeps \
+        android-support-emoji-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-emoji-bundled,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-emoji-bundled-nodeps \
+        android-support-emoji-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-exifinterface,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-exifinterface-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-fragment,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-heifwriter,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-heifwriter-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-interpolator,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-interpolator-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-loader,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-compat-nodeps \
+        android-support-loader-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-localbroadcastmanager,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-localbroadcastmanager-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-media-compat,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-media-compat-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-percent,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-percent-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-print,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-print-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-recommendation,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-recommendation-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-recyclerview-selection,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-recyclerview-selection-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-slidingpanelayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-customview-nodeps \
+        android-support-slidingpanelayout-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-swiperefreshlayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-swiperefreshlayout-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-textclassifier,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-textclassifier-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-transition,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-transition-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-tv-provider,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-tv-provider-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v13,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v13-nodeps \
+        android-support-v4-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v14-preference,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v14-preference-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-preference-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v17-leanback,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v17-leanback-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v17-preference-leanback,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v14-preference-nodeps \
+        android-support-v17-leanback-nodeps \
+        android-support-v17-preference-leanback-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-preference-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v4,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v4-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-appcompat,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-cardview,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-v7-cardview-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-gridlayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-gridlayout-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-mediarouter,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-mediarouter-nodeps \
+        android-support-v7-palette-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-palette,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-compat-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-v7-palette-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-preference,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-preference-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-recyclerview,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-vectordrawable,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-vectordrawable-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-viewpager,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-customview-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-wear,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-core-runtime-nodeps \
+        android-arch-lifecycle-livedata-core-nodeps \
+        android-arch-lifecycle-runtime-nodeps \
+        android-arch-lifecycle-viewmodel-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-constraint-layout \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-viewpager-nodeps \
+        android-support-wear-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-webkit,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime-nodeps \
+        android-support-compat-nodeps \
+        android-support-webkit-nodeps
+    support_java_deps += \
+        android-arch-core-common-nodeps \
+        android-arch-lifecycle-common-nodeps \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter flexbox,$(requested_support_libs)))
+    support_android_deps += \
+        flexbox
+endif
+
+
+# Remove duplicates so that soong doesn't choke on "Argument list too long"
+define uniq
+  $(eval seen :=)
+  $(foreach _,$1,$(if $(filter $_,${seen}),,$(eval seen += $_)))
+  ${seen}
+endef
+
+ifdef support_android_deps
+    support_android_deps := $(call uniq,$(support_android_deps))
+endif #support_android_deps
+ifdef support_java_deps
+    support_java_deps := $(call uniq,$(support_java_deps))
+endif #support_java_deps
+
+requested_support_libs :=
+endif #IS_SUPPORT_LIBRARY
+
+known_support_libs :=
+endif #LOCAL_USE_AAPT2
diff --git a/current/support/Android.mk b/current/support/Android.mk
index 7efe4b7..a1ec331 100644
--- a/current/support/Android.mk
+++ b/current/support/Android.mk
@@ -121,7 +121,7 @@
 include $(BUILD_STATIC_JAVA_LIBRARY)
 
 include $(CLEAR_VARS)
-LOCAL_MODULE := android-support-car-nostubs-nodeps
+LOCAL_MODULE := android-support-car-nodeps
 LOCAL_MODULE_CLASS := JAVA_LIBRARIES
 LOCAL_UNINSTALLABLE_MODULE := true
 LOCAL_SRC_FILES := m2repository/androidx/car/car/1.0.0-SNAPSHOT/car-1.0.0-20180312.215303-1.aar
@@ -169,13 +169,14 @@
   android-support-v7-recyclerview
 include $(BUILD_PREBUILT)
 include $(CLEAR_VARS)
-LOCAL_MODULE := android-support-car-nostubs
+LOCAL_MODULE := android-support-car
 LOCAL_SDK_VERSION := current
 LOCAL_MANIFEST_FILE := manifests/android-support-car/AndroidManifest.xml
 LOCAL_STATIC_JAVA_LIBRARIES := \
-  android-support-annotations
+  android-support-annotations \
+  prebuilt-android.car-stubs
 LOCAL_STATIC_ANDROID_LIBRARIES := \
-  android-support-car-nostubs-nodeps \
+  android-support-car-nodeps \
   android-support-v7-appcompat \
   android-support-v7-cardview \
   android-support-design-animation \
diff --git a/current/support/fix_dependencies.mk b/current/support/fix_dependencies.mk
index 69756d7..5d37ebd 100644
--- a/current/support/fix_dependencies.mk
+++ b/current/support/fix_dependencies.mk
@@ -17,8 +17,12 @@
 ###########################################################################
 # Inspects Support Library dependencies and adds transitive dependencies.
 #
+# Exports the following variables:
+# support_android_deps
+# support_java_deps
+#
 # This file was automatically generated with:
-# ./mk2dep.py current/support/Android.mk -o current/support/fix_dependencies.mk
+# ./update_current/extract_deps.py current/support/Android.mk -o current/support/fix_dependencies.mk
 ###########################################################################
 
 # Only AAPT2 clients get transitive dependency resolution. This may be removed
@@ -35,19 +39,19 @@
     android-support-car \
     android-support-collections \
     android-support-compat \
+    android-support-contentpaging \
     android-support-coordinatorlayout \
     android-support-core-ui \
     android-support-core-utils \
     android-support-cursoradapter \
     android-support-customtabs \
     android-support-customview \
-    android-support-design \
     android-support-documentfile \
     android-support-drawerlayout \
     android-support-dynamic-animation \
+    android-support-emoji \
     android-support-emoji-appcompat \
     android-support-emoji-bundled \
-    android-support-emoji \
     android-support-exifinterface \
     android-support-fragment \
     android-support-heifwriter \
@@ -58,8 +62,8 @@
     android-support-percent \
     android-support-print \
     android-support-recommendation \
+    android-support-recyclerview-selection \
     android-support-slidingpanelayout \
-    android-support-support-content \
     android-support-swiperefreshlayout \
     android-support-textclassifier \
     android-support-transition \
@@ -104,79 +108,13 @@
 support_android_deps :=
 support_java_deps :=
 
-# Manually added.
-ifneq (,$(filter android-support-car,$(requested_support_libs)))
+ifneq (,$(filter android-slices-builders,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
         android-arch-lifecycle-viewmodel \
-        android-support-animatedvectordrawable-nodeps \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-car \
-        android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-transition-nodeps \
-        android-support-v7-appcompat-nodeps \
-        android-support-v7-cardview-nodeps \
-        android-support-v7-recyclerview-nodeps \
-        android-support-vectordrawable-nodeps \
-        android-support-viewpager-nodeps \
-        android-support-design \
-        android-support-design-animation \
-        android-support-design-bottomappbar \
-        android-support-design-bottomnavigation \
-        android-support-design-bottomsheet \
-        android-support-design-button \
-        android-support-design-canvas \
-        android-support-design-card \
-        android-support-design-chip \
-        android-support-design-circularreveal \
-        android-support-design-circularreveal-cardview \
-        android-support-design-circularreveal-coordinatorlayout \
-        android-support-design-color \
-        android-support-design-dialog \
-        android-support-design-drawable \
-        android-support-design-expandable \
-        android-support-design-floatingactionbutton \
-        android-support-design-math \
-        android-support-design-navigation \
-        android-support-design-resources \
-        android-support-design-ripple \
-        android-support-design-shape \
-        android-support-design-snackbar \
-        android-support-design-stateful \
-        android-support-design-tabs \
-        android-support-design-textfield \
-        android-support-design-theme \
-        android-support-design-transformation \
-        android-support-design-typography \
-        android-support-design-widget \
-        android-support-design-internal \
-        flexbox
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-# Manually added.
-ifneq (,$(filter android-support-design,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
+        android-slices-builders-nodeps \
+        android-slices-core-nodeps \
         android-support-animatedvectordrawable-nodeps \
         android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
@@ -194,79 +132,7 @@
         android-support-print-nodeps \
         android-support-slidingpanelayout-nodeps \
         android-support-swiperefreshlayout-nodeps \
-        android-support-transition-nodeps \
         android-support-v7-appcompat-nodeps \
-        android-support-v7-cardview-nodeps \
-        android-support-v7-recyclerview-nodeps \
-        android-support-vectordrawable-nodeps \
-        android-support-viewpager-nodeps \
-        android-support-design \
-        android-support-design-animation \
-        android-support-design-bottomappbar \
-        android-support-design-bottomnavigation \
-        android-support-design-bottomsheet \
-        android-support-design-button \
-        android-support-design-canvas \
-        android-support-design-card \
-        android-support-design-chip \
-        android-support-design-circularreveal \
-        android-support-design-circularreveal-cardview \
-        android-support-design-circularreveal-coordinatorlayout \
-        android-support-design-color \
-        android-support-design-dialog \
-        android-support-design-drawable \
-        android-support-design-expandable \
-        android-support-design-floatingactionbutton \
-        android-support-design-math \
-        android-support-design-navigation \
-        android-support-design-resources \
-        android-support-design-ripple \
-        android-support-design-shape \
-        android-support-design-snackbar \
-        android-support-design-stateful \
-        android-support-design-tabs \
-        android-support-design-textfield \
-        android-support-design-theme \
-        android-support-design-transformation \
-        android-support-design-typography \
-        android-support-design-widget \
-        android-support-design-internal \
-        flexbox
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-v17-preference-leanback,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-animatedvectordrawable-nodeps \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-media-compat-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-v14-preference-nodeps \
-        android-support-v17-leanback-nodeps \
-        android-support-v17-preference-leanback-nodeps \
-        android-support-v4-nodeps \
-        android-support-v7-appcompat-nodeps \
-        android-support-v7-preference-nodeps \
-        android-support-v7-recyclerview-nodeps \
         android-support-vectordrawable-nodeps \
         android-support-viewpager-nodeps
     support_java_deps += \
@@ -274,29 +140,66 @@
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-viewpager,$(requested_support_libs)))
+ifneq (,$(filter android-slices-core,$(requested_support_libs)))
     support_android_deps += \
+        android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-slices-core-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
         android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-vectordrawable-nodeps \
         android-support-viewpager-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-recommendation,$(requested_support_libs)))
+ifneq (,$(filter android-slices-view,$(requested_support_libs)))
     support_android_deps += \
-        android-support-recommendation-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps
-endif
-
-ifneq (,$(filter android-support-emoji,$(requested_support_libs)))
-    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-slices-builders-nodeps \
+        android-slices-core-nodeps \
+        android-slices-view-nodeps \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
-        android-support-emoji-nodeps
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
@@ -330,6 +233,126 @@
         android-support-collections-nodeps
 endif
 
+ifneq (,$(filter android-support-annotations,$(requested_support_libs)))
+    support_android_deps +=
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-asynclayoutinflater,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-car,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
+        android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-car-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-design-animation \
+        android-support-design-bottomappbar \
+        android-support-design-bottomnavigation \
+        android-support-design-bottomsheet \
+        android-support-design-button \
+        android-support-design-canvas \
+        android-support-design-card \
+        android-support-design-chip \
+        android-support-design-circularreveal \
+        android-support-design-circularreveal-cardview \
+        android-support-design-circularreveal-coordinatorlayout \
+        android-support-design-color \
+        android-support-design-dialog \
+        android-support-design-drawable \
+        android-support-design-expandable \
+        android-support-design-floatingactionbutton \
+        android-support-design-internal \
+        android-support-design-math \
+        android-support-design-navigation \
+        android-support-design-resources \
+        android-support-design-ripple \
+        android-support-design-shape \
+        android-support-design-snackbar \
+        android-support-design-stateful \
+        android-support-design-tabs \
+        android-support-design-textfield \
+        android-support-design-theme \
+        android-support-design-transformation \
+        android-support-design-typography \
+        android-support-design-widget \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v4-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-cardview-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps \
+        flexbox
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps \
+        prebuilt-android.car-stubs
+endif
+
+ifneq (,$(filter android-support-collections,$(requested_support_libs)))
+    support_android_deps +=
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-compat,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-contentpaging,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-contentpaging-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-coordinatorlayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-customview-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
 ifneq (,$(filter android-support-core-ui,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
@@ -356,88 +379,27 @@
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-swiperefreshlayout,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-runtime \
-        android-support-compat-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-swiperefreshlayout-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-v7-appcompat,$(requested_support_libs)))
+ifneq (,$(filter android-support-core-utils,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
         android-arch-lifecycle-viewmodel \
-        android-support-animatedvectordrawable-nodeps \
-        android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
         android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
         android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
-        android-support-interpolator-nodeps \
         android-support-loader-nodeps \
         android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-v7-appcompat-nodeps \
-        android-support-vectordrawable-nodeps \
-        android-support-viewpager-nodeps
+        android-support-print-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-textclassifier,$(requested_support_libs)))
+ifneq (,$(filter android-support-cursoradapter,$(requested_support_libs)))
     support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-animatedvectordrawable-nodeps \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-media-compat-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-textclassifier-nodeps \
-        android-support-v4-nodeps \
-        android-support-v7-appcompat-nodeps \
-        android-support-vectordrawable-nodeps \
-        android-support-viewpager-nodeps
+        android-support-cursoradapter-nodeps
     support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-support-content,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-runtime \
-        android-support-compat-nodeps \
-        android-support-support-content-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
+        android-support-annotations-nodeps
 endif
 
 ifneq (,$(filter android-support-customtabs,$(requested_support_libs)))
@@ -481,33 +443,6 @@
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-media-compat,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-runtime \
-        android-support-compat-nodeps \
-        android-support-media-compat-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-v7-palette,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-compat-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps \
-        android-support-v7-palette-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
 ifneq (,$(filter android-support-documentfile,$(requested_support_libs)))
     support_android_deps += \
         android-support-documentfile-nodeps
@@ -515,214 +450,44 @@
         android-support-annotations-nodeps
 endif
 
-ifneq (,$(filter android-support-collections,$(requested_support_libs)))
-    support_android_deps +=
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-v7-cardview,$(requested_support_libs)))
-    support_android_deps += \
-        android-support-v7-cardview-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps
-endif
-
-ifneq (,$(filter android-support-slidingpanelayout,$(requested_support_libs)))
+ifneq (,$(filter android-support-drawerlayout,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-runtime \
         android-support-compat-nodeps \
         android-support-customview-nodeps \
-        android-support-slidingpanelayout-nodeps
+        android-support-drawerlayout-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-fragment,$(requested_support_libs)))
+ifneq (,$(filter android-support-dynamic-animation,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
         android-arch-lifecycle-viewmodel \
-        android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
         android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
         android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
-        android-support-interpolator-nodeps \
+        android-support-dynamic-animation-nodeps \
         android-support-loader-nodeps \
         android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-viewpager-nodeps
+        android-support-print-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-v7-recyclerview,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-v7-recyclerview-nodeps \
-        android-support-viewpager-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-v7-gridlayout,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-v7-gridlayout-nodeps \
-        android-support-viewpager-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-wear,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-compat-nodeps \
-        android-support-constraint-layout \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-v7-recyclerview-nodeps \
-        android-support-viewpager-nodeps \
-        android-support-wear-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-v7-preference,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-animatedvectordrawable-nodeps \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-media-compat-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-v4-nodeps \
-        android-support-v7-appcompat-nodeps \
-        android-support-v7-preference-nodeps \
-        android-support-v7-recyclerview-nodeps \
-        android-support-vectordrawable-nodeps \
-        android-support-viewpager-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-asynclayoutinflater,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-runtime \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-compat-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-webkit,$(requested_support_libs)))
+ifneq (,$(filter android-support-emoji,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-runtime \
         android-support-compat-nodeps \
-        android-support-webkit-nodeps
+        android-support-emoji-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-loader,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-compat-nodeps \
-        android-support-loader-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-annotations,$(requested_support_libs)))
-    support_android_deps +=
-    support_java_deps += \
-        android-support-annotations-nodeps
-endif
-
 ifneq (,$(filter android-support-emoji-appcompat,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
@@ -755,6 +520,77 @@
         android-support-collections-nodeps
 endif
 
+ifneq (,$(filter android-support-emoji-bundled,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-emoji-bundled-nodeps \
+        android-support-emoji-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-exifinterface,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-exifinterface-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-fragment,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
+        android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-heifwriter,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-heifwriter-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-interpolator,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-interpolator-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-loader,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
+        android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-support-compat-nodeps \
+        android-support-loader-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
 ifneq (,$(filter android-support-localbroadcastmanager,$(requested_support_libs)))
     support_android_deps += \
         android-support-localbroadcastmanager-nodeps
@@ -762,40 +598,95 @@
         android-support-annotations-nodeps
 endif
 
-ifneq (,$(filter android-support-vectordrawable,$(requested_support_libs)))
+ifneq (,$(filter android-support-media-compat,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-runtime \
         android-support-compat-nodeps \
-        android-support-vectordrawable-nodeps
+        android-support-media-compat-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-cursoradapter,$(requested_support_libs)))
+ifneq (,$(filter android-support-percent,$(requested_support_libs)))
     support_android_deps += \
-        android-support-cursoradapter-nodeps
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-percent-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-print,$(requested_support_libs)))
+    support_android_deps += \
+        android-support-print-nodeps
     support_java_deps += \
         android-support-annotations-nodeps
 endif
 
-ifneq (,$(filter android-support-transition,$(requested_support_libs)))
+ifneq (,$(filter android-support-recommendation,$(requested_support_libs)))
     support_android_deps += \
+        android-support-recommendation-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-recyclerview-selection,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
-        android-support-transition-nodeps
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-recyclerview-selection-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-viewpager-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-slices-builders,$(requested_support_libs)))
+ifneq (,$(filter android-support-slidingpanelayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-customview-nodeps \
+        android-support-slidingpanelayout-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-swiperefreshlayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-swiperefreshlayout-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-textclassifier,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
         android-arch-lifecycle-viewmodel \
-        android-slices-builders-nodeps \
-        android-slices-core-nodeps \
         android-support-animatedvectordrawable-nodeps \
         android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
@@ -813,6 +704,7 @@
         android-support-print-nodeps \
         android-support-slidingpanelayout-nodeps \
         android-support-swiperefreshlayout-nodeps \
+        android-support-textclassifier-nodeps \
         android-support-v7-appcompat-nodeps \
         android-support-vectordrawable-nodeps \
         android-support-viewpager-nodeps
@@ -821,20 +713,84 @@
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-compat,$(requested_support_libs)))
+ifneq (,$(filter android-support-transition,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-runtime \
-        android-support-compat-nodeps
+        android-support-compat-nodeps \
+        android-support-transition-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-percent,$(requested_support_libs)))
+ifneq (,$(filter android-support-tv-provider,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-runtime \
         android-support-compat-nodeps \
-        android-support-percent-nodeps
+        android-support-tv-provider-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v13,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
+        android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v13-nodeps \
+        android-support-v4-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v14-preference,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
+        android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-support-animatedvectordrawable-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v14-preference-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-preference-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
+        android-support-viewpager-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
@@ -870,69 +826,7 @@
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-slices-view,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-extensions \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-slices-builders-nodeps \
-        android-slices-core-nodeps \
-        android-slices-view-nodeps \
-        android-support-animatedvectordrawable-nodeps \
-        android-support-asynclayoutinflater-nodeps \
-        android-support-compat-nodeps \
-        android-support-coordinatorlayout-nodeps \
-        android-support-core-ui-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-cursoradapter-nodeps \
-        android-support-customview-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
-        android-support-interpolator-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps \
-        android-support-slidingpanelayout-nodeps \
-        android-support-swiperefreshlayout-nodeps \
-        android-support-v7-appcompat-nodeps \
-        android-support-v7-recyclerview-nodeps \
-        android-support-vectordrawable-nodeps \
-        android-support-viewpager-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-dynamic-animation,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-livedata-core \
-        android-arch-lifecycle-runtime \
-        android-arch-lifecycle-viewmodel \
-        android-support-compat-nodeps \
-        android-support-core-utils-nodeps \
-        android-support-documentfile-nodeps \
-        android-support-dynamic-animation-nodeps \
-        android-support-loader-nodeps \
-        android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-tv-provider,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-runtime \
-        android-support-compat-nodeps \
-        android-support-tv-provider-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-v14-preference,$(requested_support_libs)))
+ifneq (,$(filter android-support-v17-preference-leanback,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
@@ -955,8 +849,9 @@
         android-support-print-nodeps \
         android-support-slidingpanelayout-nodeps \
         android-support-swiperefreshlayout-nodeps \
-        android-support-v14-preference \
-        android-support-v4-nodeps \
+        android-support-v14-preference-nodeps \
+        android-support-v17-leanback-nodeps \
+        android-support-v17-preference-leanback-nodeps \
         android-support-v7-appcompat-nodeps \
         android-support-v7-preference-nodeps \
         android-support-v7-recyclerview-nodeps \
@@ -967,19 +862,40 @@
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-print,$(requested_support_libs)))
-    support_android_deps += \
-        android-support-print-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps
-endif
-
-ifneq (,$(filter android-slices-core,$(requested_support_libs)))
+ifneq (,$(filter android-support-v4,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
         android-arch-lifecycle-viewmodel \
-        android-slices-core-nodeps \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-media-compat-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v4-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-appcompat,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
+        android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
         android-support-animatedvectordrawable-nodeps \
         android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
@@ -1005,12 +921,35 @@
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-coordinatorlayout,$(requested_support_libs)))
+ifneq (,$(filter android-support-v7-cardview,$(requested_support_libs)))
     support_android_deps += \
+        android-support-v7-cardview-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps
+endif
+
+ifneq (,$(filter android-support-v7-gridlayout,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
         android-support-coordinatorlayout-nodeps \
-        android-support-customview-nodeps
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-gridlayout-nodeps \
+        android-support-viewpager-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
@@ -1049,50 +988,7 @@
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-emoji-bundled,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-runtime \
-        android-support-compat-nodeps \
-        android-support-emoji-bundled-nodeps \
-        android-support-emoji-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-drawerlayout,$(requested_support_libs)))
-    support_android_deps += \
-        android-arch-lifecycle-runtime \
-        android-support-compat-nodeps \
-        android-support-customview-nodeps \
-        android-support-drawerlayout-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps \
-        android-support-collections-nodeps
-endif
-
-ifneq (,$(filter android-support-heifwriter,$(requested_support_libs)))
-    support_android_deps += \
-        android-support-heifwriter-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps
-endif
-
-ifneq (,$(filter android-support-exifinterface,$(requested_support_libs)))
-    support_android_deps += \
-        android-support-exifinterface-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps
-endif
-
-ifneq (,$(filter android-support-interpolator,$(requested_support_libs)))
-    support_android_deps += \
-        android-support-interpolator-nodeps
-    support_java_deps += \
-        android-support-annotations-nodeps
-endif
-
-ifneq (,$(filter android-support-core-utils,$(requested_support_libs)))
+ifneq (,$(filter android-support-v7-palette,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
@@ -1102,17 +998,19 @@
         android-support-documentfile-nodeps \
         android-support-loader-nodeps \
         android-support-localbroadcastmanager-nodeps \
-        android-support-print-nodeps
+        android-support-print-nodeps \
+        android-support-v7-palette-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-v13,$(requested_support_libs)))
+ifneq (,$(filter android-support-v7-preference,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
         android-arch-lifecycle-viewmodel \
+        android-support-animatedvectordrawable-nodeps \
         android-support-asynclayoutinflater-nodeps \
         android-support-compat-nodeps \
         android-support-coordinatorlayout-nodeps \
@@ -1126,19 +1024,20 @@
         android-support-interpolator-nodeps \
         android-support-loader-nodeps \
         android-support-localbroadcastmanager-nodeps \
-        android-support-media-compat-nodeps \
         android-support-print-nodeps \
         android-support-slidingpanelayout-nodeps \
         android-support-swiperefreshlayout-nodeps \
-        android-support-v13-nodeps \
-        android-support-v4-nodeps \
+        android-support-v7-appcompat-nodeps \
+        android-support-v7-preference-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-vectordrawable-nodeps \
         android-support-viewpager-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
-ifneq (,$(filter android-support-v4,$(requested_support_libs)))
+ifneq (,$(filter android-support-v7-recyclerview,$(requested_support_libs)))
     support_android_deps += \
         android-arch-lifecycle-livedata-core \
         android-arch-lifecycle-runtime \
@@ -1152,21 +1051,81 @@
         android-support-customview-nodeps \
         android-support-documentfile-nodeps \
         android-support-drawerlayout-nodeps \
-        android-support-fragment-nodeps \
         android-support-interpolator-nodeps \
         android-support-loader-nodeps \
         android-support-localbroadcastmanager-nodeps \
-        android-support-media-compat-nodeps \
         android-support-print-nodeps \
         android-support-slidingpanelayout-nodeps \
         android-support-swiperefreshlayout-nodeps \
-        android-support-v4-nodeps \
+        android-support-v7-recyclerview-nodeps \
         android-support-viewpager-nodeps
     support_java_deps += \
         android-support-annotations-nodeps \
         android-support-collections-nodeps
 endif
 
+ifneq (,$(filter android-support-vectordrawable,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-vectordrawable-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-viewpager,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-customview-nodeps \
+        android-support-viewpager-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-wear,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-livedata-core \
+        android-arch-lifecycle-runtime \
+        android-arch-lifecycle-viewmodel \
+        android-support-asynclayoutinflater-nodeps \
+        android-support-compat-nodeps \
+        android-support-constraint-layout \
+        android-support-coordinatorlayout-nodeps \
+        android-support-core-ui-nodeps \
+        android-support-core-utils-nodeps \
+        android-support-cursoradapter-nodeps \
+        android-support-customview-nodeps \
+        android-support-documentfile-nodeps \
+        android-support-drawerlayout-nodeps \
+        android-support-fragment-nodeps \
+        android-support-interpolator-nodeps \
+        android-support-loader-nodeps \
+        android-support-localbroadcastmanager-nodeps \
+        android-support-print-nodeps \
+        android-support-slidingpanelayout-nodeps \
+        android-support-swiperefreshlayout-nodeps \
+        android-support-v7-recyclerview-nodeps \
+        android-support-viewpager-nodeps \
+        android-support-wear-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+ifneq (,$(filter android-support-webkit,$(requested_support_libs)))
+    support_android_deps += \
+        android-arch-lifecycle-runtime \
+        android-support-compat-nodeps \
+        android-support-webkit-nodeps
+    support_java_deps += \
+        android-support-annotations-nodeps \
+        android-support-collections-nodeps
+endif
+
+
 requested_support_libs :=
 endif #IS_SUPPORT_LIBRARY
 
diff --git a/update_current.py b/update_current.py
new file mode 120000
index 0000000..2b89450
--- /dev/null
+++ b/update_current.py
@@ -0,0 +1 @@
+update_current/update_current.py
\ No newline at end of file
diff --git a/update_current/README b/update_current/README
new file mode 100644
index 0000000..85eed01
--- /dev/null
+++ b/update_current/README
@@ -0,0 +1,4 @@
+This script is used to update prebuilts from Google's internal build server. It is
+intended to be used when authenticated to Google's network.
+
+For information on running this script, please see go/update-prebuilts.
diff --git a/update_current/extract_deps.py b/update_current/extract_deps.py
new file mode 100755
index 0000000..c392558
--- /dev/null
+++ b/update_current/extract_deps.py
@@ -0,0 +1,185 @@
+#!/usr/bin/python3
+
+# This script is used to generate flattened lists of transitive dependencies
+# for consumption by build/make/core/support_libraries.mk based on the output
+# of the pom2mk tool. Typically, this script should only be called by
+# update_current.py; however, it may also be run manually against the
+# Android.mk generated by that script.
+import sys, argparse, os
+from string import Template
+from functools import reduce
+
+
+def flatten(list):
+    return reduce((lambda x, y: "%s %s" % (x, y)), list)
+
+
+# Read remaining tokens, treating a trailing \ as a line continuation.
+def parse_tokens(remaining, source):
+    tokens = []
+    i = 0
+    while i < len(remaining):
+        token = remaining[i]
+        if token == "\\":
+            remaining = source.readline().split()
+            i = 0
+        else:
+            tokens += [token]
+            i += 1
+    return tokens
+
+
+# Parse makefiles to generate dependencies
+def parse_deps(sources):
+    deps = {}
+
+    for source in sources.split(','):
+        parse_deps_from_makefile(deps, source)
+
+    return deps
+
+
+# Parse makefile into dependency map
+def parse_deps_from_makefile(deps, source):
+    s = open(source)
+
+    module = ""
+    suffix = ""
+    a_deps = []
+    j_deps = []
+
+    line = s.readline()
+    while line:
+        tokens = line.split()
+        if not tokens:
+            line = s.readline()
+            continue
+        if tokens[0] == "include":
+            if tokens[1] == "$(CLEAR_VARS)":
+                a_deps = []
+                j_deps = []
+            elif tokens[1] == "$(BUILD_STATIC_JAVA_LIBRARY)"\
+                    or (tokens[1] == "$(BUILD_PREBUILT)" and "-nodeps" not in module):
+                deps[module] = [suffix, a_deps, j_deps, False]
+        elif tokens[0] == "LOCAL_STATIC_ANDROID_LIBRARIES":
+            a_deps += parse_tokens(tokens[2:], s)
+        elif tokens[0] == "LOCAL_STATIC_JAVA_LIBRARIES":
+            j_deps += parse_tokens(tokens[2:], s)
+        elif tokens[0] == "LOCAL_MODULE":
+            module = tokens[2]
+        elif tokens[0] == "LOCAL_MODULE_SUFFIX":
+            suffix = tokens[2]
+        line = s.readline()
+
+    s.close()
+
+
+# Recursively expand all dependencies
+def expand_deps(deps):
+    for module in deps:
+        expand_deps_helper(module, deps)
+
+
+def expand_deps_helper(module, deps):
+    if module not in deps:
+        return [],[]
+    if deps[module][3]:
+        return deps[module][1], deps[module][2]
+
+    adep_transitive = []
+    jdep_transitive = []
+    for dep in deps[module][1] + deps[module][2]:
+        (adeps, jdeps) = expand_deps_helper(dep, deps)
+        adep_transitive += adeps
+        jdep_transitive += jdeps
+
+        # Strip "shallow" modules used for static inclusion. We can remove this
+        # after turning off --static-deps in update_current.py.
+        if dep + "-nodeps" in adeps and dep in deps[module][1]:
+            deps[module][1].remove(dep)
+        if dep + "-nodeps" in jdeps and dep in deps[module][2]:
+            deps[module][2].remove(dep)
+
+    # If the module isn't shallow, make sure it relies on itself.
+    if deps[module][0] == ".aar":
+        if module + "-nodeps" not in deps[module][1]:
+            deps[module][1].append(module)
+    if deps[module][0] == ".jar":
+        if module + "-nodeps" not in deps[module][2]:
+            deps[module][2].append(module)
+
+    deps[module][1] = list(set(deps[module][1] + adep_transitive))
+    deps[module][2] = list(set(deps[module][2] + jdep_transitive))
+    deps[module][3] = True
+
+    deps[module][1].sort()
+    deps[module][2].sort()
+
+    return deps[module][1], deps[module][2]
+
+
+# Write out template containing dependencies
+def write_deps(deps):
+    # Load templates.
+    dep_tmpl = Template(' \\\n'
+                        '        $dep')
+    knownlist = ""
+    ruleslist = ""
+    for module, entry in sorted(deps.items()):
+        suffix = entry[0]
+        adeps = entry[1]
+        jdeps = entry[2]
+
+        knownlist += ' \\\n    ' + module
+
+        adepslist = ""
+        for dep in adeps:
+            adepslist += dep_tmpl.substitute(dep=dep)
+
+        jdepslist = ""
+        for dep in jdeps:
+            jdepslist += dep_tmpl.substitute(dep=dep)
+
+        ruleslist += 'ifneq (,$(filter ' + module + ',$(requested_support_libs)))\n'
+        if adepslist:
+            ruleslist += '    support_android_deps +=' + adepslist + '\n'
+        if jdepslist:
+            ruleslist += '    support_java_deps +=' + jdepslist + '\n'
+        ruleslist += 'endif\n\n'
+
+    output_tmpl = Template(open(script_relative('extract_deps.tmpl')).read())
+    return output_tmpl.substitute(command=flatten(sys.argv), known=knownlist, rules=ruleslist)
+
+
+def write_file(output, destination):
+    d = open(destination, "w")
+    d.write(output)
+    d.close()
+
+
+def script_relative(rel_path):
+    return os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), rel_path)
+
+
+parser = argparse.ArgumentParser(
+    description='Generate include for adding explicit dependencies')
+parser.add_argument(
+    'source',
+    help='Path to Makefile defining top-level targets')
+parser.add_argument(
+    '-o', '--output',
+    help='Path to output Makefile for use as include')
+args = parser.parse_args()
+
+if not args.source:
+    parser.error("You must specify the path to Makefile defining top-level targets")
+    sys.exit(1)
+
+deps_map = parse_deps(args.source)
+expand_deps(deps_map)
+output = write_deps(deps_map)
+
+if args.output:
+    write_file(output, args.output)
+else:
+    print(output)
diff --git a/update_current/extract_deps.tmpl b/update_current/extract_deps.tmpl
new file mode 100644
index 0000000..695d6ba
--- /dev/null
+++ b/update_current/extract_deps.tmpl
@@ -0,0 +1,76 @@
+#
+# Copyright (C) 2018 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+###########################################################################
+# Inspects Support Library dependencies and adds transitive dependencies.
+#
+# Exports the following variables:
+# support_android_deps
+# support_java_deps
+#
+# This file was automatically generated with:
+# $command
+###########################################################################
+
+# Only AAPT2 clients get transitive dependency resolution. This may be removed
+# once we've migrated all Support Library targets to LOCAL_AAPT2_ONLY := true.
+ifeq ($$(LOCAL_USE_AAPT2),true)
+
+known_support_libs :=$known
+
+# Don't run on the Support Library targets themselves.
+ifeq (,$$(filter $$(known_support_libs), $$(LOCAL_MODULE)))
+
+# Aggregate all requested Support Library modules.
+requested_support_libs := $$(filter $$(known_support_libs), \
+    $$(LOCAL_JAVA_LIBRARIES) $$(LOCAL_STATIC_JAVA_LIBRARIES) \
+    $$(LOCAL_SHARED_ANDROID_LIBRARIES) $$(LOCAL_STATIC_ANDROID_LIBRARIES))
+
+# Filter the Support Library modules out of the library variables. We don't
+# trust developers to get these right, so they will be added back by the
+# build system based on the output of this file and the type of build.
+LOCAL_JAVA_LIBRARIES := $$(filter-out $$(requested_support_libs), \
+    $$(LOCAL_JAVA_LIBRARIES))
+LOCAL_STATIC_JAVA_LIBRARIES := $$(filter-out $$(requested_support_libs), \
+    $$(LOCAL_STATIC_JAVA_LIBRARIES))
+LOCAL_SHARED_ANDROID_LIBRARIES := $$(filter-out $$(requested_support_libs), \
+    $$(LOCAL_SHARED_ANDROID_LIBRARIES))
+LOCAL_STATIC_ANDROID_LIBRARIES := $$(filter-out $$(requested_support_libs), \
+    $$(LOCAL_STATIC_ANDROID_LIBRARIES))
+
+support_android_deps :=
+support_java_deps :=
+
+$rules
+# Remove duplicates so that soong doesn't choke on "Argument list too long"
+define uniq
+  $$(eval seen :=)
+  $$(foreach _,$$1,$$(if $$(filter $$_,$${seen}),,$$(eval seen += $$_)))
+  $${seen}
+endef
+
+ifdef support_android_deps
+    support_android_deps := $$(call uniq,$$(support_android_deps))
+endif #support_android_deps
+ifdef support_java_deps
+    support_java_deps := $$(call uniq,$$(support_java_deps))
+endif #support_java_deps
+
+requested_support_libs :=
+endif #IS_SUPPORT_LIBRARY
+
+known_support_libs :=
+endif #LOCAL_USE_AAPT2
diff --git a/update_current.py b/update_current/update_current.py
similarity index 97%
rename from update_current.py
rename to update_current/update_current.py
index 8c16306..a02469f 100755
--- a/update_current.py
+++ b/update_current/update_current.py
@@ -104,7 +104,7 @@
     'loader':                 ['android-support-loader',                 'loader'],
     'contentpaging':          ['android-support-contentpaging',          'contentpaging'],
     'recyclerview-selection': ['android-support-recyclerview-selection', 'recyclerview-selection'],
-    'car':                    ['android-support-car',                    'car-nostubs'],
+    'car':                    ['android-support-car',                    'car'],
 
     # Slices
     'slices-core':                  ['android-slices-core',                         'slices-core'],
@@ -327,12 +327,19 @@
     for info in maven_lib_info.values():
         transform_maven_lib(working_dir, info, extract_res)
 
-    with open(os.path.join(working_dir, 'Android.mk'), 'w') as f:
+    makefile = os.path.join(working_dir, 'Android.mk')
+    with open(makefile, 'w') as f:
         args = ["pom2mk", "-static-deps", "-sdk-version", "current"]
         args.extend(["-rewrite=^" + name + "$=" + maven_to_make[name][0] for name in maven_to_make])
         args.extend(["."])
+        args.extend(["-extra-deps=android-support-car=prebuilt-android.car-stubs"])
         subprocess.check_call(args, stdout=f, cwd=working_dir)
 
+    depsfile = os.path.join(working_dir, 'fix_dependencies.mk')
+    with open(depsfile, 'w') as f:
+        args = [script_relative("extract_deps.py"), makefile]
+        subprocess.check_call(args, stdout=f, cwd=cwd)
+
     # Replace the old directory.
     output_dir = os.path.join(cwd, update_dir)
     mv(working_dir, output_dir)
@@ -603,6 +610,11 @@
     return args.source
   return None
 
+
+def script_relative(rel_path):
+    return os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), rel_path)
+
+
 parser = argparse.ArgumentParser(
     description=('Update current prebuilts'))
 parser.add_argument(