Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): get correct build value #858

Merged
merged 2 commits into from
Mar 10, 2022
Merged

Conversation

jcesarmobile
Copy link
Member

build value was incorrect for Android >= P devices if versionCodeMajor was specified in the AndroidManifest.xml, this PR resolves that problem by getting only the int part of getLongVersionCode, which corresponds to the deprecated versionCode.
Also uses PackageInfoCompat class to avoid the deprecation warning on versionCode usage.

closes #838

@jcesarmobile jcesarmobile merged commit 4d3b125 into capacitor-4 Mar 10, 2022
@jcesarmobile jcesarmobile deleted the app-deprecation branch March 10, 2022 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants