summaryrefslogtreecommitdiff
path: root/java/app_import.go
diff options
context:
space:
mode:
author mrziwang <mrziwang@google.com> 2024-07-09 10:41:55 -0700
committer mrziwang <mrziwang@google.com> 2024-07-09 10:41:55 -0700
commit68786d81deae3419359cbebdfea23d9fc724637c (patch)
treeefde6ad4e8595947abd2860f798f360f7de8ae38 /java/app_import.go
parentad111586a760e1033cef000da27de1be88c96df3 (diff)
Use OutputFilesProvider on Import, AARImport and AndroidAppImport
In the context of incremental soong, the output files inter-module-communication will be through OutputFilesProvider. The OutputFileProducer interface will be deprecated. Test: CI Bug: 339477385 Change-Id: I51ccf59f97cb8a790642cb4463c479feaf18058a
Diffstat (limited to 'java/app_import.go')
-rw-r--r--java/app_import.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/java/app_import.go b/java/app_import.go
index dc8470da7..fa87997cf 100644
--- a/java/app_import.go
+++ b/java/app_import.go
@@ -17,7 +17,6 @@ package java
// This file contains the module implementations for android_app_import and android_test_import.
import (
- "fmt"
"reflect"
"strings"
@@ -422,6 +421,8 @@ func (a *AndroidAppImport) generateAndroidBuildActions(ctx android.ModuleContext
},
)
+ ctx.SetOutputFiles([]android.Path{a.outputFile}, "")
+
// TODO: androidmk converter jni libs
}
@@ -461,15 +462,6 @@ func (a *AndroidAppImport) OutputFile() android.Path {
return a.outputFile
}
-func (a *AndroidAppImport) OutputFiles(tag string) (android.Paths, error) {
- switch tag {
- case "":
- return []android.Path{a.outputFile}, nil
- default:
- return nil, fmt.Errorf("unsupported module reference tag %q", tag)
- }
-}
-
func (a *AndroidAppImport) JacocoReportClassesFile() android.Path {
return nil
}