feat: compatibility by versionCode #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/compatible-version-codes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Patches can now pin app versions by
android:versionCode, not only by version name. While adding this, I found and fixed a bug in how the engine handled versionCode.Fix: versionCode is a signed 32-bit integer
a truncating
as i32cast:setVersionCode(3_000_000_000u)silently wrote-1294967296.0xFFFFFFFFwas read as4294967295(Android sees-1).versionCode is now
i32from the manifest reader through to the JNI bridge andApkMetadata.version_code.Breaking (patch API):
ManifestScope.versionCodeis nowInt?andsetVersionCodetakesInt.Feature: pin versions by code
CompatiblePackage gets versionCodes: List. An APK matches when its version name or its version code is listed. With both lists empty, every version still matches.