Merge "Update generate_compose_packages.py to include wear compose" into androidx-main
diff --git a/compose/ui/ui-inspection/generate-packages/generate_compose_packages.py b/compose/ui/ui-inspection/generate-packages/generate_compose_packages.py
index 2a8df1b..2939ca2 100755
--- a/compose/ui/ui-inspection/generate-packages/generate_compose_packages.py
+++ b/compose/ui/ui-inspection/generate-packages/generate_compose_packages.py
@@ -25,9 +25,14 @@
 # The file is formatted as one package per line.
 COMPOSE_PACKAGES_LIST_FILE = 'compose_packages_list.txt'
 
-# `frameworks/support/compose/` and `frameworks/support/navigation/`, relative to this script
-# directory, should be the root directories where we search for composables.
-TARGET_DIRECTORIES = ['../../..', '../../../../navigation']
+# `frameworks/support/compose/`, `frameworks/support/navigation/navigation-compose`, and
+# `frameworks/support/wear/compose`, relative to this script directory, should be the root
+# directories where we search for composables.
+TARGET_DIRECTORIES = [
+    '../../..',
+    '../../../../navigation/navigation-compose',
+    '../../../../wear/compose',
+]
 
 # Reads a source file with the given file_path and adds its package to the current set of packages
 # if the file contains at least one Composable.