diff options
author | 2020-11-19 18:06:03 -0800 | |
---|---|---|
committer | 2020-11-23 11:42:26 -0800 | |
commit | c9fe10f5b868bead40be5908840d751d840cae8a (patch) | |
tree | 5a90000ac41a9ff4f48694e5e973116ad5da8994 /java/device_host_converter.go | |
parent | 748b2d829a5329ca2d87c8ddcdaf7bfc86325fb9 (diff) |
Remove restriction on exported plugins that generate APIs
hilt_android requires seven separate annotation processors, which
is only feasible to support using exported_plugins to avoid having
to list all seven in every module that uses it. Unfortunately they
all set generates_api: true. Turbine is already disabled for modules
that directly use a plugin that sets generates_api: true, because
turbine doesn't run annotation processors. Also add support for
disabling turbine if a module transitively uses a plugin that
generates APIs via exported_plugins.
Bug: 173397767
Test: TestExportedPlugins
Change-Id: If70354a3dd67efb4ce88bc9c934d41ccb6241b28
Diffstat (limited to 'java/device_host_converter.go')
-rw-r--r-- | java/device_host_converter.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/device_host_converter.go b/java/device_host_converter.go index cd395b1b0..4914d74f6 100644 --- a/java/device_host_converter.go +++ b/java/device_host_converter.go @@ -167,8 +167,8 @@ func (d *DeviceHostConverter) ClassLoaderContexts() dexpreopt.ClassLoaderContext return nil } -func (d *DeviceHostConverter) ExportedPlugins() (android.Paths, []string) { - return nil, nil +func (d *DeviceHostConverter) ExportedPlugins() (android.Paths, []string, bool) { + return nil, nil, false } func (d *DeviceHostConverter) SrcJarArgs() ([]string, android.Paths) { |