Skip to content

Commit 55cc93b

Browse files
committed
asynchronousSoftwareUpdate
1 parent 2c78b1d commit 55cc93b

6 files changed

+8
-8
lines changed

Example Assets/com.github.macadmins.Nudge.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"us.zoom.xos"
55
],
66
"aggressiveUserExperience": true,
7-
"asyncronousSoftwareUpdate": true,
7+
"asynchronousSoftwareUpdate": true,
88
"attemptToFetchMajorUpgrade": true,
99
"enforceMinorUpdates": true
1010
},

Example Assets/com.github.macadmins.Nudge.mobileconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</array>
2828
<key>aggressiveUserExperience</key>
2929
<true/>
30-
<key>asyncronousSoftwareUpdate</key>
30+
<key>asynchronousSoftwareUpdate</key>
3131
<true/>
3232
<key>attemptToFetchMajorUpgrade</key>
3333
<true/>

Nudge/Preferences/DefaultPreferencesNudge.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let optionalFeaturesProfile = getOptionalFeaturesProfile()
1616
let optionalFeaturesJSON = getOptionalFeaturesJSON()
1717
let aggressiveUserExperience = optionalFeaturesProfile?["aggressiveUserExperience"] as? Bool ?? optionalFeaturesJSON?.aggressiveUserExperience ?? true
1818
let customAcceptableApplicationBundleIDs = optionalFeaturesProfile?["acceptableApplicationBundleIDs"] as? [String] ?? optionalFeaturesJSON?.acceptableApplicationBundleIDs ?? [""]
19-
let asyncronousSoftwareUpdate = optionalFeaturesProfile?["asyncronousSoftwareUpdate"] as? Bool ?? optionalFeaturesJSON?.asyncronousSoftwareUpdate ?? true
19+
let asynchronousSoftwareUpdate = optionalFeaturesProfile?["asynchronousSoftwareUpdate"] as? Bool ?? optionalFeaturesJSON?.asynchronousSoftwareUpdate ?? true
2020
let attemptToFetchMajorUpgrade = optionalFeaturesProfile?["attemptToFetchMajorUpgrade"] as? Bool ?? optionalFeaturesJSON?.attemptToFetchMajorUpgrade ?? true
2121
let enforceMinorUpdates = optionalFeaturesProfile?["enforceMinorUpdates"] as? Bool ?? optionalFeaturesJSON?.enforceMinorUpdates ?? true
2222

Nudge/Preferences/PreferencesStructure.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extension NudgePreferences {
5959
// MARK: - OptionalFeatures
6060
struct OptionalFeatures: Codable {
6161
var acceptableApplicationBundleIDs: [String]?
62-
var aggressiveUserExperience, asyncronousSoftwareUpdate, attemptToFetchMajorUpgrade, enforceMinorUpdates: Bool?
62+
var aggressiveUserExperience, asynchronousSoftwareUpdate, attemptToFetchMajorUpgrade, enforceMinorUpdates: Bool?
6363
}
6464

6565
// MARK: OptionalFeatures convenience initializers and mutators
@@ -83,14 +83,14 @@ extension OptionalFeatures {
8383
func with(
8484
acceptableApplicationBundleIDs: [String]?? = nil,
8585
aggressiveUserExperience: Bool?? = nil,
86-
asyncronousSoftwareUpdate: Bool?? = nil,
86+
asynchronousSoftwareUpdate: Bool?? = nil,
8787
attemptToFetchMajorUpgrade: Bool?? = nil,
8888
enforceMinorUpdates: Bool?? = nil
8989
) -> OptionalFeatures {
9090
return OptionalFeatures(
9191
acceptableApplicationBundleIDs: acceptableApplicationBundleIDs ?? self.acceptableApplicationBundleIDs,
9292
aggressiveUserExperience: aggressiveUserExperience ?? self.aggressiveUserExperience,
93-
asyncronousSoftwareUpdate: asyncronousSoftwareUpdate ?? self.asyncronousSoftwareUpdate,
93+
asynchronousSoftwareUpdate: asynchronousSoftwareUpdate ?? self.asynchronousSoftwareUpdate,
9494
attemptToFetchMajorUpgrade: attemptToFetchMajorUpgrade ?? self.attemptToFetchMajorUpgrade,
9595
enforceMinorUpdates: enforceMinorUpdates ?? self.enforceMinorUpdates
9696
)

Nudge/UI/Main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
6464
return
6565
}
6666

67-
if asyncronousSoftwareUpdate && Utils().requireMajorUpgrade() == false {
67+
if asynchronousSoftwareUpdate && Utils().requireMajorUpgrade() == false {
6868
DispatchQueue(label: "nudge-su", attributes: .concurrent).asyncAfter(deadline: .now(), execute: {
6969
SoftwareUpdate().Download()
7070
})

Schema/jamf/com.github.macadmins.Nudge.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}
5151
]
5252
},
53-
"asyncronousSoftwareUpdate": {
53+
"asynchronousSoftwareUpdate": {
5454
"description": "When disabled, Nudge will wait for Software Update to finish downloading (if any) updates before showing the UI.",
5555
"anyOf": [
5656
{

0 commit comments

Comments
 (0)