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

Add ability to override reported value for versionCode #175

Merged
merged 5 commits into from
Oct 10, 2019

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Oct 7, 2019

Goal

Allows overriding the android:versionCode value reported via the manifest when uploading mapping files to upload.bugsnag.com. This can be overridden by adding com.bugsnag.android.VERSION_CODE as a meta-data element in the manifest.

For further context see bugsnag/bugsnag-android#610

Changeset

Search the manifest first for the value of com.bugsnag.android.VERSION_CODE, and then for the value of android:versionCode.

Deprecated bugsnag.apiKey.

Tests

  • Installed local artefact and verified that the versionCode is set correctly in 2 cases: setting via the manifest; and setting via the plugin extension

@fractalwrench fractalwrench changed the title feat: add ability to override android:versionCode Add ability to override reported value for versionCode Oct 7, 2019
@fractalwrench fractalwrench merged commit d0acb94 into next Oct 10, 2019
@fractalwrench fractalwrench deleted the read-version-code branch October 10, 2019 15:22
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.

None yet

2 participants