Skip to content

Commit

Permalink
Update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Jan 15, 2024
1 parent 74c4d1a commit ac07bdf
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 31 deletions.
9 changes: 4 additions & 5 deletions Pareto Security.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Pareto/Preview Content\"";
DEVELOPMENT_TEAM = JND55328G8;
DEVELOPMENT_TEAM = PM784W7B8X;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
Expand Down Expand Up @@ -1327,7 +1327,7 @@
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Pareto/Preview Content\"";
DEVELOPMENT_TEAM = JND55328G8;
DEVELOPMENT_TEAM = PM784W7B8X;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GCC_PREPROCESSOR_DEFINITIONS = "SETAPP_ENABLED=1";
Expand Down Expand Up @@ -1598,12 +1598,11 @@
CLANG_USE_OPTIMIZATION_PROFILE = NO;
CODE_SIGN_ENTITLEMENTS = Pareto/Pareto.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Pareto/Preview Content\"";
DEVELOPMENT_TEAM = JND55328G8;
DEVELOPMENT_TEAM = PM784W7B8X;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GCC_PREPROCESSOR_DEFINITIONS = "SETAPP_ENABLED=0";
Expand Down Expand Up @@ -1636,7 +1635,7 @@
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Pareto/Preview Content\"";
DEVELOPMENT_TEAM = JND55328G8;
DEVELOPMENT_TEAM = PM784W7B8X;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GCC_PREPROCESSOR_DEFINITIONS = "SETAPP_ENABLED=0";
Expand Down
36 changes: 13 additions & 23 deletions Pareto/AppHandlers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -330,30 +330,20 @@ class AppHandlers: NSObject, NetworkHandlerObserver {
}

@objc func showSettingsFallback() {
DispatchQueue.main.async { [self] in
if welcomeWindow == nil {
let settings = SettingsView(selected: SettingsView.Tabs.general)
// Create the preferences window and set content
welcomeWindow = NSWindow(
contentRect: NSRect(x: 0, y: 0, width: 420, height: 280),
styleMask: [.closable, .titled],
backing: .buffered,
defer: false
)

welcomeWindow!.titlebarAppearsTransparent = false
welcomeWindow!.center()
welcomeWindow!.setFrameAutosaveName("settingsView")
welcomeWindow!.isReleasedWhenClosed = false
welcomeWindow?.level = .floating

let hosting = NSHostingView(rootView: settings)
hosting.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
welcomeWindow!.contentView = hosting
welcomeWindow!.contentView?.translatesAutoresizingMaskIntoConstraints = true
DispatchQueue.main.async {
let hostingController = NSHostingController(rootView: SettingsView(selected: SettingsView.Tabs.general))
hostingController.preferredContentSize = NSSize(width: 640, height: 280)
if #available(macOS 13.0, *) {
hostingController.sizingOptions = .preferredContentSize
}

welcomeWindow!.makeKeyAndOrderFront(nil)
let window = NSWindow(contentViewController: hostingController)
window.title = "Preferences"
window.center()
window.titlebarAppearsTransparent = true
window.setContentSize(NSSize(width: 640, height: 280))

let controller = NSWindowController(window: window)
controller.showWindow(nil)
}
}

Expand Down
2 changes: 1 addition & 1 deletion Pareto/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>5384</string>
<string>5403</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion Pareto/Views/Settings/GeneralSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct GeneralSettingsView: View {
#endif
}
}
}.frame(maxWidth: 380, minHeight: 210).padding(25)
}.frame(minWidth: 420, minHeight: 210).padding(25)
}

func selectFolder() {
Expand Down
2 changes: 1 addition & 1 deletion exportOptions.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>onDemandResourcesAssetPacksBaseURL</key>
<string>0</string>
<key>teamID</key>
<string>JND55328G8</string>
<string>PM784W7B8X</string>
<key>uploadBitcode</key>
<true />
<key>uploadSymbols</key>
Expand Down

0 comments on commit ac07bdf

Please sign in to comment.