diff options
author | Cole Faust <colefaust@google.com> | 2023-11-20 15:42:31 -0800 |
---|---|---|
committer | Cole Faust <colefaust@google.com> | 2023-11-20 15:42:31 -0800 |
commit | 33e676fe0f78e6b5da4e7e3997c01c8841156242 (patch) | |
tree | 9cbe581ae1806697600b9766c6a0b5b82577df02 | |
parent | 3014a156b84a468e606d45479c584e622b4f1009 (diff) | |
download | multidex-33e676fe0f78e6b5da4e7e3997c01c8841156242.tar.gz |
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
-rw-r--r-- | instrumentation/Android.bp | 17 | ||||
-rw-r--r-- | library/Android.bp | 20 |
2 files changed, 0 insertions, 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. |