diff options
Diffstat (limited to 'android/config.go')
| -rw-r--r-- | android/config.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/android/config.go b/android/config.go index d7d48c33f..f0fc15b45 100644 --- a/android/config.go +++ b/android/config.go @@ -2023,10 +2023,9 @@ func (c *config) LogMixedBuild(ctx BaseModuleContext, useBazel bool) { } } -func (c *config) HasBazelBuildTargetInSource(ctx BaseModuleContext) bool { - moduleName := ctx.Module().Name() - for _, buildTarget := range c.bazelTargetsByDir[ctx.ModuleDir()] { - if moduleName == buildTarget { +func (c *config) HasBazelBuildTargetInSource(dir string, target string) bool { + for _, existingTarget := range c.bazelTargetsByDir[dir] { + if target == existingTarget { return true } } @@ -2082,3 +2081,7 @@ func (c *config) Bp2buildMode() bool { func (c *deviceConfig) CheckVendorSeappViolations() bool { return Bool(c.config.productVariables.CheckVendorSeappViolations) } + +func (c *deviceConfig) NextReleaseHideFlaggedApi() bool { + return Bool(c.config.productVariables.NextReleaseHideFlaggedApi) +} |