diff --git a/Example Assets/com.github.macadmins.Nudge.tester.json b/Example Assets/com.github.macadmins.Nudge.tester.json index a530d05f..400583c4 100644 --- a/Example Assets/com.github.macadmins.Nudge.tester.json +++ b/Example Assets/com.github.macadmins.Nudge.tester.json @@ -20,8 +20,7 @@ { "aboutUpdateURL": "https://apple.com", "requiredInstallationDate": "2025-01-01T00:00:00Z", - "requiredMinimumOSVersion": "14.99.99", - "targetedOSVersionsRule": "default" + "requiredMinimumOSVersion": "14.99.99" } ], "userExperience": { diff --git a/Nudge/Utilities/Preferences.swift b/Nudge/Utilities/Preferences.swift index f507d48a..9370d230 100644 --- a/Nudge/Utilities/Preferences.swift +++ b/Nudge/Utilities/Preferences.swift @@ -111,10 +111,11 @@ private func getOSVersionRequirements(from requirements: [OSVersionRequirement]? fullMatch = requirement break } else if requirement.targetedOSVersionsRule == currentMajorVersion { - partialMatch = requirement } else if requirement.targetedOSVersionsRule == "default" { defaultMatch = requirement + } else if requirement.targetedOSVersionsRule == nil { + defaultMatch = requirement } }