You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## [2.0.4] - 2024-07-22
8
+
Requires macOS 12.0 and higher.
9
+
10
+
### Fixed
11
+
- Logic introduced in v2.0.1 for `requiredInstallatonDate` when using the new `gracePeriodInstallDelay` was still incorrect and has been rewritten a second time.
Copy file name to clipboardExpand all lines: Nudge.xcodeproj/xcshareddata/xcschemes/Nudge - Debug (-bundle-mode-json, -simulate-os-version, -simulate-hardware-id).xcscheme
LogManager.info("Device within gracePeriodLaunchDelay, exiting Nudge", logger: uiLog)
96
-
nudgePrimaryState.shouldExit =true
97
-
return currentDate
98
-
}else{
99
-
LogManager.info("gracePeriodPath (\(UserExperienceVariables.gracePeriodPath)) outside of gracePeriodLaunchDelay (\(UserExperienceVariables.gracePeriodLaunchDelay)) - File age is \(gracePeriodPathCreationTimeInHours) hours", logger: uiLog)
100
-
}
97
+
// Bail Nudge if within gracePeriodLaunchDelay
98
+
if gracePeriodLaunchDelay > gracePeriodPathCreationTimeInHours {
99
+
LogManager.info("gracePeriodPath (\(gracePeriodPath)) within gracePeriodLaunchDelay (\(gracePeriodLaunchDelay)) - File age is \(gracePeriodPathCreationTimeInHours) hours", logger: uiLog)
100
+
nudgePrimaryState.shouldExit =true
101
+
return currentDate
102
+
}else{
103
+
LogManager.info("gracePeriodPath (\(gracePeriodPath)) outside of gracePeriodLaunchDelay (\(gracePeriodLaunchDelay)) - File age is \(gracePeriodPathCreationTimeInHours) hours", logger: uiLog)
LogManager.info("Device permitted for gracePeriodInstallDelay - setting date from: \(originalRequiredInstallationDate) to: \(requiredInstallationDate)", logger: uiLog)
106
110
return requiredInstallationDate
107
111
}
112
+
}else{
113
+
LogManager.info("gracePeriodPath (\(gracePeriodPath)) outside of gracePeriodInstallDelay (\(gracePeriodInstallDelay)) - File age is \(gracePeriodPathCreationTimeInHours) hours", logger: uiLog)
108
114
}
109
-
110
115
returnPrefsWrapper.requiredInstallationDate
111
116
}
112
117
113
-
114
118
func exitNudge(){
115
119
LogManager.notice("Nudge is terminating due to condition met", logger: uiLog)
0 commit comments