Open pudquick opened 5 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here (e.g. I signed it!
) and we'll verify it.
I signed it!
CLAs look good, thanks!
This is both a bug fix and a new feature.
First the bug fix - here's an example situation:
This logic: https://github.com/google/macops/blob/master/deprecation_notifier/DeprecationNotifier/DNAppDelegate.m#L60-L63
10 <= 10: true 14 <= 15: true 3 <= 1: false
The comparison will fail when it shouldn't.
This PR includes better comparison logic.
It additionally adds support for a new optional Localizable string value: expectedBuilds
The value of this string should be a comma delimited string (no spaces) of allowed builds.
If the OS is detected to be exactly the expectedVersion, then:
Use case: for environments that are supporting a major OS version which has now gone into Security Updates, Deprecation Notifier is unable to tell a "fully patched" OS version without looking at the build information.