summaryrefslogtreecommitdiff
path: root/apex/builder.go
diff options
context:
space:
mode:
author Alyssa Ketpreechasawat <kalyssa@google.com> 2024-12-10 14:46:55 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-12-10 14:46:55 +0000
commit110e0a8ff28d44c041226715f83182e7bb6a9e23 (patch)
tree5c0e4c3c72b4a2a111119699934ed1a1c68873dd /apex/builder.go
parente72f11e84f507ed425908ac3c372a4a1565bc1fb (diff)
parent0c89ca3fef13c86043ebb77c749ef74676943650 (diff)
Merge "Include 9 as the last allowed digit of default version code." into main
Diffstat (limited to 'apex/builder.go')
-rw-r--r--apex/builder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/apex/builder.go b/apex/builder.go
index 6204caa4c..45608c933 100644
--- a/apex/builder.go
+++ b/apex/builder.go
@@ -337,8 +337,8 @@ func (a *apexBundle) buildManifest(ctx android.ModuleContext, provideNativeLibs,
if err != nil {
ctx.ModuleErrorf("expected RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION to be an int, but got %s", defaultVersion)
}
- if defaultVersionInt%10 != 0 {
- ctx.ModuleErrorf("expected RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION to end in a zero, but got %s", defaultVersion)
+ if defaultVersionInt%10 != 0 && defaultVersionInt%10 != 9 {
+ ctx.ModuleErrorf("expected RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION to end in a zero or a nine, but got %s", defaultVersion)
}
variantVersion := []rune(*a.properties.Variant_version)
if len(variantVersion) != 1 || variantVersion[0] < '0' || variantVersion[0] > '9' {