-
Notifications
You must be signed in to change notification settings - Fork 624
Fix NPE when no version name is set #5198
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
Conversation
Release note changesThe following had changelogs that were modified, but did not have any unreleased entries for release notes to generate from. Changelogsfirebase-sessions |
Coverage Report 1Affected Products
Test Logs |
Unit Test Results 128 files + 88 128 suites +88 3m 39s ⏱️ + 1m 12s Results for commit f6999e6. ± Comparison against base commit fc5cde4. This pull request removes 199 and adds 1029 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Size Report 1Affected Products
Test Logs |
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Startup time comparison between the CI merge commit (883683c) and the base commit (24d1983) are not available. No macrobenchmark data found for the base commit (24d1983). Analysis for the CI merge commit (883683c) can be found at: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally fine with the changes. But one thing to confirm before landing this PR. We need to make sure that the play store prevents submitting apps without version_name
. As long as the impact is only with the tests scenario, this change looks good to me.
firebase-sessions/src/main/kotlin/com/google/firebase/sessions/SessionEvents.kt
Show resolved
Hide resolved
...base-sessions/src/main/kotlin/com/google/firebase/sessions/settings/LocalOverrideSettings.kt
Show resolved
Hide resolved
Yes you have to set both versionCode and versionName for Play Store https://developer.android.com/studio/publish/versioning#versioningsettings and the versionCode cannot be reused. |
* Fix NPE when no version code is set * Update changelog * Simplify the null check * name * Add issue to changelog
Fix NPE when no version name is set. This will make it easier for apps to have Android tests while including the Sessions SDK. Also removed references to ApplicationInfoFlags to make it easier to minify apps with older api levels.
When the version name is unset, use the version code.