Quick script to collect all androidx library consumer rules
Change-Id: I5fe93877fdfa64ed4f0f148343f1e4c99e7ac020
diff --git a/scripts/collect-androidx-consumer-rules.sh b/scripts/collect-androidx-consumer-rules.sh
new file mode 100755
index 0000000..05a07a8
--- /dev/null
+++ b/scripts/collect-androidx-consumer-rules.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+#
+# Copyright (c) 2025, the R8 project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+echo "This must run in frameworks/support of an androidx repo"
+find . -name 'build.gradle' | xargs grep consumerProguardFiles | awk '{ print substr($1,1,length($1)-13) "proguard-rules.pro" }' | xargs cat
+find . -name 'build.gradle.kts' | xargs grep consumerProguardFiles | awk '{ print substr($1,1,length($1)-17) "proguard-rules.pro" }' | xargs cat