Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Added app version check for Android for consistency with iOS approach #224

Merged
merged 1 commit into from
Mar 3, 2017
Merged

Added app version check for Android for consistency with iOS approach #224

merged 1 commit into from
Mar 3, 2017

Conversation

max-mironov
Copy link
Contributor

This is for 'insurance' that old packages will be cleared even if the timestamps are wrong because the app version is always bumped in production.

… (this is for 'insurance' that old packages will be cleared even if the timestamps are wrong because the app version is always bumped in production).
@msftclas
Copy link

@max-mironov,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Copy link
Contributor

@richardhuaaa richardhuaaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Feel free to merge

try {
applicationVersion = Utilities.getAppVersionName(this.cordova.getActivity());
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing we expect this exception should basically never happen right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I thought about it too, I believe that if we don't have version defined than the app is not correct at all.

@max-mironov max-mironov merged commit 3fe2276 into microsoft:master Mar 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants