diff options
| author | 2024-06-07 11:06:57 +0000 | |
|---|---|---|
| committer | 2024-06-10 18:12:35 +0000 | |
| commit | 98aa8fa8400131af264405f81045b08201d64e33 (patch) | |
| tree | ebc599e2c01d360cf51a77ad1ed2f6871acd46f3 /java/java.go | |
| parent | d5e16ac52be02e2c41c47964a3b5dbc776bd6799 (diff) | |
Remove exportable modules when generating snapshots targeting older platform
This change modifies the contents of the generated Android.bp files so
that when generating a snapshot on a older platform, the "exportable"
modules are removed from the bp files, as the "exportable" modules are
first introduced in V and do not exist in older platforms.
Bug: 345162614
Test: ABTD
Change-Id: I2dba51b98deec7805bd796647a66981f237c55a9
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go index 9fa6175ef..b851e747b 100644 --- a/java/java.go +++ b/java/java.go @@ -2178,7 +2178,7 @@ func (al *ApiLibrary) DepsMutator(ctx android.BottomUpMutatorContext) { // Map where key is the api scope name and value is the int value // representing the order of the api scope, narrowest to the widest -var scopeOrderMap = allApiScopes.MapToIndex( +var scopeOrderMap = AllApiScopes.MapToIndex( func(s *apiScope) string { return s.name }) func (al *ApiLibrary) sortApiFilesByApiScope(ctx android.ModuleContext, srcFilesInfo []JavaApiImportInfo) []JavaApiImportInfo { |