Skip to content

Use more accurate integer types for Android package fields - #31

Merged
lberrymage merged 1 commit into
mainfrom
correct-android-int-types
Oct 16, 2026
Merged

lberrymage merged 1 commit into
mainfrom
correct-android-int-types

Conversation

@lberrymage

Copy link
Copy Markdown
Member

Android long version codes are 64-bit signed integers, so it makes sense to treat them as such in the schema for better interoperability. Furthermore, target SDK values are 32-bit signed integers, to it likewise makes sense to define them as such in the schema for better interoperability.

Although the Android platform technically allows negative values for at least the version code, in practice, apps with negative long version codes don't really exist, and we enforce that version codes are positive on the backend anyway.

Android long version codes are 64-bit signed integers, so it makes sense
to treat them as such in the schema for better interoperability.
Furthermore, target SDK values are 32-bit signed integers, to it
likewise makes sense to define them as such in the schema for better
interoperability.

Although the Android platform technically allows negative values for at
least the version code, in practice, apps with negative long version
codes don't really exist, and we enforce that version codes are positive
on the backend anyway.
@lberrymage lberrymage added the buf skip breaking Skip Buf breaking change detection for this PR label Oct 16, 2026
@github-actions

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed⏩ skippedOct 16, 2026, 2:38 AM

@github-actions

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed⏩ skippedOct 16, 2026, 2:38 AM

@lberrymage
lberrymage merged commit 2fe4a5a into main Oct 16, 2026
6 checks passed
@lberrymage
lberrymage deleted the correct-android-int-types branch October 16, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buf skip breaking Skip Buf breaking change detection for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant