diff options
author | 2021-04-30 08:10:21 +0100 | |
---|---|---|
committer | 2021-04-30 13:42:44 +0100 | |
commit | d504c3ac8361c4f1e7edc4f1483d8a1d94690720 (patch) | |
tree | de71dc5fab05d08316333c98b92226a7d9a37a87 /java/hiddenapi.go | |
parent | d01da058605d975b08cbb530b7bbdf520efb183e (diff) |
Fix build failure when building unbundled apps (second try)
The previous attempt, which simply skipped the hidden API processing
altogether when unbundled builds were enabled failed when attempting to
build module snapshots as while they enabled an unbundled build they
actually need the hidden API processing to be performed.
This change just checks whether missing dependencies are allowed and if
so it fakes up any missing files so that the build will only fail if
they are not present AND they are used.
Bug: 186695448
Bug: 185828824
Test: tapas Calendar
m -j60
Change-Id: Ie13fed05af0aba51f45f6791fce944d0e4285037
Diffstat (limited to 'java/hiddenapi.go')
-rw-r--r-- | java/hiddenapi.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/java/hiddenapi.go b/java/hiddenapi.go index bc3b4746a..a34044f32 100644 --- a/java/hiddenapi.go +++ b/java/hiddenapi.go @@ -121,13 +121,6 @@ type hiddenAPIIntf interface { var _ hiddenAPIIntf = (*hiddenAPI)(nil) -// hiddenAPISupportingModule is the interface that is implemented by any module that supports -// contributing to the hidden API processing. -type hiddenAPISupportingModule interface { - android.Module - hiddenAPIIntf -} - // Initialize the hiddenapi structure func (h *hiddenAPI) initHiddenAPI(ctx android.BaseModuleContext, configurationName string) { // If hiddenapi processing is disabled treat this as inactive. |