summaryrefslogtreecommitdiff
path: root/java/builder.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2023-09-06 21:00:15 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-09-06 21:00:15 +0000
commit2f681324c2aef739291a259dbc654bc86b6a74ff (patch)
treefcfdde01bceb6782bc717654d48c8a6dd9c53352 /java/builder.go
parent999881376baed938a6f9bc59552adb54f69fab80 (diff)
parent6158528e152304f1259e31ff343358ff0f50c0e4 (diff)
Merge "Only allow setting presigned without preprocessed on targetSdk < 30" into main
Diffstat (limited to 'java/builder.go')
-rw-r--r--java/builder.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/java/builder.go b/java/builder.go
index debf49a00..bf919175d 100644
--- a/java/builder.go
+++ b/java/builder.go
@@ -277,6 +277,14 @@ var (
Command: `${config.Zip2ZipCmd} -i ${in} -o ${out} -x 'META-INF/services/**/*'`,
CommandDeps: []string{"${config.Zip2ZipCmd}"},
})
+
+ checkBelowTargetSdk30ForNonPreprocessedApks = pctx.AndroidStaticRule("checkBelowTargetSdk30ForNonPreprocessedApks",
+ blueprint.RuleParams{
+ Command: "build/soong/scripts/check_target_sdk_less_than_30.py ${config.Aapt2Cmd} $in $out",
+ CommandDeps: []string{"build/soong/scripts/check_target_sdk_less_than_30.py", "${config.Aapt2Cmd}"},
+ Description: "Check prebuilt target sdk version",
+ },
+ )
)
func init() {
@@ -689,12 +697,13 @@ func GenerateMainClassManifest(ctx android.ModuleContext, outputFile android.Wri
android.WriteFileRule(ctx, outputFile, "Main-Class: "+mainClass+"\n")
}
-func TransformZipAlign(ctx android.ModuleContext, outputFile android.WritablePath, inputFile android.Path) {
+func TransformZipAlign(ctx android.ModuleContext, outputFile android.WritablePath, inputFile android.Path, validations android.Paths) {
ctx.Build(pctx, android.BuildParams{
Rule: zipalign,
Description: "align",
Input: inputFile,
Output: outputFile,
+ Validations: validations,
})
}