summaryrefslogtreecommitdiff
path: root/android/api_levels.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-11-16 23:11:41 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-11-16 23:11:41 +0000
commit1af783fae74715bcf1a94733bd75b2e6cc688e8c (patch)
tree4fbc5ddf90574db61a533fd1d3e3b227ced2dd53 /android/api_levels.go
parentf15c0558bfdd87b2b04f6f074142bd9b35ee1011 (diff)
parentcf371cc1f73f2c4ac0dc824d16160648b9b1d952 (diff)
Merge "Replace android.WriteFile rule with android.WriteFileRule"
Diffstat (limited to 'android/api_levels.go')
-rw-r--r--android/api_levels.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/android/api_levels.go b/android/api_levels.go
index bace3d455..08328e16d 100644
--- a/android/api_levels.go
+++ b/android/api_levels.go
@@ -225,14 +225,7 @@ func createApiLevelsJson(ctx SingletonContext, file WritablePath,
ctx.Errorf(err.Error())
}
- ctx.Build(pctx, BuildParams{
- Rule: WriteFile,
- Description: "generate " + file.Base(),
- Output: file,
- Args: map[string]string{
- "content": string(jsonStr[:]),
- },
- })
+ WriteFileRule(ctx, file, string(jsonStr))
}
func GetApiLevelsJson(ctx PathContext) WritablePath {