Skip to content

Commit

Permalink
fix: Upgrade from LaunchAtLogin-Legacy to LaunchAtLogin-Modern now we…
Browse files Browse the repository at this point in the history
…'re targeting macOS >=13
  • Loading branch information
othyn committed Oct 6, 2024
1 parent b438ad2 commit b2437bf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
18 changes: 9 additions & 9 deletions auto-clicker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
B510763727FF81A000BB1CDA /* PressKeyListener.swift in Sources */ = {isa = PBXBuildFile; fileRef = B510763627FF81A000BB1CDA /* PressKeyListener.swift */; };
B510763B2800DDFF00BB1CDA /* NSEvent+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = B510763A2800DDFF00BB1CDA /* NSEvent+Extensions.swift */; };
B5107640280113DB00BB1CDA /* Input.swift in Sources */ = {isa = PBXBuildFile; fileRef = B510763F280113DB00BB1CDA /* Input.swift */; };
B52C0507290D689600ECB0EE /* LaunchAtLogin in Frameworks */ = {isa = PBXBuildFile; productRef = B52C0506290D689600ECB0EE /* LaunchAtLogin */; };
B53027F5264C0D73002B8610 /* AutoClickSimulator.swift in Sources */ = {isa = PBXBuildFile; fileRef = B53027F4264C0D73002B8610 /* AutoClickSimulator.swift */; };
B53027FA264C2748002B8610 /* DelayTimer.swift in Sources */ = {isa = PBXBuildFile; fileRef = B53027F9264C2748002B8610 /* DelayTimer.swift */; };
B53BDC50264BED93001F8E57 /* AutoClickerApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = B53BDC4F264BED93001F8E57 /* AutoClickerApp.swift */; };
Expand All @@ -38,6 +37,7 @@
B53BDC60264BF3A8001F8E57 /* NumberField.swift in Sources */ = {isa = PBXBuildFile; fileRef = B53BDC5F264BF3A8001F8E57 /* NumberField.swift */; };
B5462E742A6173D400C5F280 /* AboutView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5462E732A6173D400C5F280 /* AboutView.swift */; };
B5462E762A61761000C5F280 /* Bundle+AppInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5462E752A61761000C5F280 /* Bundle+AppInfo.swift */; };
B5A042552CB298CC000A1E39 /* LaunchAtLogin in Frameworks */ = {isa = PBXBuildFile; productRef = B5A042542CB298CC000A1E39 /* LaunchAtLogin */; };
B5B0B2AF2882EE6E00462F11 /* ACWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5B0B2AE2882EE6E00462F11 /* ACWindow.swift */; };
B5B6B46328032D3200C779FD /* PermissionsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5B6B46228032D3200C779FD /* PermissionsView.swift */; };
B5B6B46528033A0F00C779FD /* PermissionsService.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5B6B46428033A0F00C779FD /* PermissionsService.swift */; };
Expand Down Expand Up @@ -152,7 +152,7 @@
files = (
B510762827F4BD5500BB1CDA /* Defaults in Frameworks */,
B510760927F4A21500BB1CDA /* DateStrings in Frameworks */,
B52C0507290D689600ECB0EE /* LaunchAtLogin in Frameworks */,
B5A042552CB298CC000A1E39 /* LaunchAtLogin in Frameworks */,
B510760C27F4A23300BB1CDA /* KeyboardShortcuts in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -431,7 +431,7 @@
B510760827F4A21500BB1CDA /* DateStrings */,
B510760B27F4A23300BB1CDA /* KeyboardShortcuts */,
B510762727F4BD5500BB1CDA /* Defaults */,
B52C0506290D689600ECB0EE /* LaunchAtLogin */,
B5A042542CB298CC000A1E39 /* LaunchAtLogin */,
);
productName = "auto-clicker";
productReference = B53BDC4C264BED93001F8E57 /* AutoClicker.app */;
Expand Down Expand Up @@ -465,7 +465,7 @@
B510760727F4A21500BB1CDA /* XCRemoteSwiftPackageReference "DateStrings" */,
B510760A27F4A23300BB1CDA /* XCRemoteSwiftPackageReference "KeyboardShortcuts" */,
B510762627F4BD5500BB1CDA /* XCRemoteSwiftPackageReference "Defaults" */,
B52C0505290D689600ECB0EE /* XCRemoteSwiftPackageReference "LaunchAtLogin" */,
B5A042532CB298CC000A1E39 /* XCRemoteSwiftPackageReference "LaunchAtLogin-Modern" */,
);
productRefGroup = B53BDC4D264BED93001F8E57 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -872,12 +872,12 @@
version = 6.2.1;
};
};
B52C0505290D689600ECB0EE /* XCRemoteSwiftPackageReference "LaunchAtLogin" */ = {
B5A042532CB298CC000A1E39 /* XCRemoteSwiftPackageReference "LaunchAtLogin-Modern" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/sindresorhus/LaunchAtLogin";
repositoryURL = "https://github.com/sindresorhus/LaunchAtLogin-Modern";
requirement = {
kind = exactVersion;
version = 4.2.0;
version = 1.1.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand All @@ -898,9 +898,9 @@
package = B510762627F4BD5500BB1CDA /* XCRemoteSwiftPackageReference "Defaults" */;
productName = Defaults;
};
B52C0506290D689600ECB0EE /* LaunchAtLogin */ = {
B5A042542CB298CC000A1E39 /* LaunchAtLogin */ = {
isa = XCSwiftPackageProductDependency;
package = B52C0505290D689600ECB0EE /* XCRemoteSwiftPackageReference "LaunchAtLogin" */;
package = B5A042532CB298CC000A1E39 /* XCRemoteSwiftPackageReference "LaunchAtLogin-Modern" */;
productName = LaunchAtLogin;
};
/* End XCSwiftPackageProductDependency section */
Expand Down
11 changes: 6 additions & 5 deletions auto-clicker.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"originHash" : "7690a33e035d828486bc43f9e3fae83e3d0f677c2b4915c6e00ad39ef5dfb4a8",
"pins" : [
{
"identity" : "datestrings",
Expand Down Expand Up @@ -28,14 +29,14 @@
}
},
{
"identity" : "launchatlogin",
"identity" : "launchatlogin-modern",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sindresorhus/LaunchAtLogin",
"location" : "https://github.com/sindresorhus/LaunchAtLogin-Modern",
"state" : {
"revision" : "e8171b3e38a2816f579f58f3dac1522aa39efe41",
"version" : "4.2.0"
"revision" : "a04ec1c363be3627734f6dad757d82f5d4fa8fcc",
"version" : "1.1.0"
}
}
],
"version" : 2
"version" : 3
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import Defaults
import LaunchAtLogin

struct GeneralSettingsTabView: View {
@ObservedObject private var launchAtLogin = LaunchAtLogin.observable

@Default(.menuBarShowIcon) private var menuBarShowIcon
@Default(.appShouldQuitOnClose) private var appShouldQuitOnClose

Expand All @@ -32,7 +30,7 @@ struct GeneralSettingsTabView: View {
help: "settings_general_launch_on_login_help",
divider: true
) {
Toggle(isOn: $launchAtLogin.isEnabled) {
LaunchAtLogin.Toggle {
Text(" " + String(format: NSLocalizedString("settings_general_launch_on_login", comment: "App should launch at login toggle")))
}
}
Expand Down

0 comments on commit b2437bf

Please sign in to comment.