From 0ea8ba82fcffad414ea95d49f7d09107606f3f69 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 6 Jun 2019 14:33:29 -0700 Subject: Consolidate baseContext, BaseContext, and BaseModuleContext blueprint.BaseModuleContext is the set of methods available to all module-specific calls (GenerateBuildActions or mutators). The android package split the same functionality across baseContext (nee androidBaseContext), BaseModuleContext, and BaseContext. Consolidate all of them into android.BaseModuleContext. Test: m checkbuild Change-Id: I2d7f5c56fd4424032cb93edff6dc730ff33e4f1e --- android/api_levels.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android/api_levels.go') diff --git a/android/api_levels.go b/android/api_levels.go index 51d470381..961685aa8 100644 --- a/android/api_levels.go +++ b/android/api_levels.go @@ -85,7 +85,7 @@ func getApiLevelsMap(config Config) map[string]int { // * Numeric API levels are simply converted. // * "minimum" and "current" are not currently handled since the former is // NDK specific and the latter has inconsistent meaning. -func ApiStrToNum(ctx BaseContext, apiLevel string) (int, error) { +func ApiStrToNum(ctx BaseModuleContext, apiLevel string) (int, error) { num, ok := getApiLevelsMap(ctx.Config())[apiLevel] if ok { return num, nil -- cgit v1.2.3-59-g8ed1b