From 33e676fe0f78e6b5da4e7e3997c01c8841156242 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Mon, 20 Nov 2023 15:42:31 -0800 Subject: Remove multidex version genrules These version files appear to be unused, and we don't really want to support having the build access the git history. Bug: 307824623 Test: Presubmits Change-Id: I4f713d0d30fc5157914efd83930428f810aad117 --- instrumentation/Android.bp | 17 ----------------- library/Android.bp | 20 -------------------- 2 files changed, 37 deletions(-) diff --git a/instrumentation/Android.bp b/instrumentation/Android.bp index 7dda1cd..5a0cfb5 100644 --- a/instrumentation/Android.bp +++ b/instrumentation/Android.bp @@ -21,29 +21,12 @@ package { default_applicable_licenses: ["frameworks_multidex_license"], } -genrule { - name: "android-support-multidex-instrumentation-version", - // use srcs as dependencies, otherwise, this module won't be re-run - // during incremental build. - srcs: [ - "src/**/*.java", - ], - cmd: "echo \"git.version=`cd frameworks/multidex/instrumentation; git log --format=\"%H\" -n 1 || " + - "(echo git hash not available; exit 0)`\" > $(genDir)/android-support-multidex-instrumentation.version.txt", - out: [ - "android-support-multidex-instrumentation.version.txt", - ], -} - java_library_static { name: "android-support-multidex-instrumentation", sdk_version: "4", srcs: [ "src/**/*.java", ], - java_resources: [ - ":android-support-multidex-instrumentation-version", - ], static_libs: [ "android-support-multidex", ], diff --git a/library/Android.bp b/library/Android.bp index 44813a5..467761a 100644 --- a/library/Android.bp +++ b/library/Android.bp @@ -21,23 +21,6 @@ package { default_applicable_licenses: ["frameworks_multidex_license"], } -genrule { - name: "android-support-multidex-version", - tools: [ - "soong_zip", - ], - // use srcs as dependencies, otherwise, this module won't be re-run - // during incremental build. - srcs: [ - "src/**/*.java", - ], - cmd: "echo \"git.version=`cd frameworks/multidex/library; git log --format=\"%H\" -n 1 || " + - "(echo git hash not available; exit 0)`\" > $(genDir)/android-support-multidex.version.txt", - out: [ - "android-support-multidex.version.txt", - ], -} - java_library_static { name: "android-support-multidex", sdk_version: "15", @@ -45,9 +28,6 @@ java_library_static { srcs: [ "src/**/*.java", ], - java_resources: [ - ":android-support-multidex-version", - ], product_variables: { unbundled_build: { // Don't build the library in unbundled branches. -- cgit v1.2.3