diff options
author | Colin Cross <ccross@android.com> | 2021-02-01 13:59:03 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2021-02-09 15:36:25 -0800 |
commit | dcf71b299ca9c85a31f9b895d8e8529d03cd7e04 (patch) | |
tree | 9010ad5f799f7df0589c824310d1e33720ca56ed /java/hiddenapi_singleton.go | |
parent | a6cfcac7279755c76ab742f21e29f0ab3de2c7ea (diff) |
Convert java.Dependency to JavaInfo provider
Export information about java dependencies through a Provider
instead of accessing the module directly.
Test: java_test.go
Test: no changes to build.ninja
Change-Id: Ifc5d566bf6f6ebc0ad399e948effaa1ef6a22876
Diffstat (limited to 'java/hiddenapi_singleton.go')
-rw-r--r-- | java/hiddenapi_singleton.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go index 568d15fce..6341a3406 100644 --- a/java/hiddenapi_singleton.go +++ b/java/hiddenapi_singleton.go @@ -223,7 +223,7 @@ func stubFlagsRule(ctx android.SingletonContext) { ctx.VisitAllModules(func(module android.Module) { // Collect dex jar paths for the modules listed above. - if j, ok := module.(Dependency); ok { + if j, ok := module.(UsesLibraryDependency); ok { name := ctx.ModuleName(module) for moduleList, pathList := range moduleListToPathList { if i := android.IndexList(name, *moduleList); i != -1 { |