Use MinApiForArch to set minSdkVersion for apexes
Apexes for new architectures have to increase their minSdkVersion to the minimum supported version for the architecture. Bug: 250918230 Test: lunch aosp_riscv64-userdebug && m ALLOW_MISSING_DEPENDENCIES=true nothing Change-Id: I49220cbec628f1508709741dc56b62aaac7786d9
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
"android/soong/android"
|
||||
)
|
||||
|
||||
func minApiForArch(ctx android.BaseModuleContext,
|
||||
func MinApiForArch(ctx android.EarlyModuleContext,
|
||||
arch android.ArchType) android.ApiLevel {
|
||||
|
||||
switch arch {
|
||||
@@ -38,7 +38,7 @@ func minApiForArch(ctx android.BaseModuleContext,
|
||||
func nativeApiLevelFromUser(ctx android.BaseModuleContext,
|
||||
raw string) (android.ApiLevel, error) {
|
||||
|
||||
min := minApiForArch(ctx, ctx.Arch().ArchType)
|
||||
min := MinApiForArch(ctx, ctx.Arch().ArchType)
|
||||
if raw == "minimum" {
|
||||
return min, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user