summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
author Jingwen Chen <jingwen@google.com> 2023-09-21 15:12:19 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-09-21 15:12:19 +0000
commit2395286cda2e6e9c17661de69d5397bd6cf754db (patch)
tree31370b246b110ea8dfd3683a009e3bde0c35738e /java
parent2848be42360cc669ba1a7330df9293ca06611d84 (diff)
Revert "bp2build converter for android_test_helper_app."
Revert submission 2757525-android_test_helper_app Reason for revert: broke builds Reverted changes: /q/submissionid:2757525-android_test_helper_app Change-Id: I0e5f55078221d7f2151f1bbaa55bebdf5051c03c
Diffstat (limited to 'java')
-rwxr-xr-xjava/app.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/java/app.go b/java/app.go
index c6ca22906..1b4d279f7 100755
--- a/java/app.go
+++ b/java/app.go
@@ -1257,8 +1257,6 @@ type AndroidTestHelperApp struct {
AndroidApp
appTestHelperAppProperties appTestHelperAppProperties
-
- android.BazelModuleBase
}
func (a *AndroidTestHelperApp) InstallInTestcases() bool {
@@ -1290,7 +1288,6 @@ func AndroidTestHelperAppFactory() android.Module {
android.InitAndroidMultiTargetsArchModule(module, android.DeviceSupported, android.MultilibCommon)
android.InitDefaultableModule(module)
android.InitApexModule(module)
- android.InitBazelModule(module)
return module
}
@@ -1772,27 +1769,3 @@ func (at *AndroidTest) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
}
}
-
-func (atha *AndroidTestHelperApp) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
- if ok, commonAttrs, appAttrs := convertWithBp2build(ctx, &atha.AndroidApp); ok {
- // an android_test_helper_app is an android_binary with testonly = True
- commonAttrs.Testonly = proptools.BoolPtr(true)
-
- // additionally, it sets default values differently to android_app,
- // https://cs.android.com/android/platform/superproject/main/+/main:build/soong/java/app.go;l=1273-1279;drc=e12c083198403ec694af6c625aed11327eb2bf7f
- //
- // installable: true (settable prop)
- // use_embedded_native_libs: true (settable prop)
- // lint.test: true (settable prop)
- // optimize EnabledByDefault: true (blueprint mutated prop)
- // AlwaysPackageNativeLibs: true (blueprint mutated prop)
- // dexpreopt isTest: true (not prop)
-
- props := bazel.BazelTargetModuleProperties{
- Rule_class: "android_binary",
- Bzl_load_location: "//build/bazel/rules/android:android_binary.bzl",
- }
-
- ctx.CreateBazelTargetModule(props, commonAttrs, appAttrs)
- }
-}