Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Jun 28, 2023
1 parent 44b3d9c commit 06f8c23
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 38 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
# name: Unit and UI Tests
# runs-on: apple-silicon
# needs: lint
# timeout-minutes: 30
# timeout-minutes: 60
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}-test
# cancel-in-progress: true
Expand Down Expand Up @@ -231,8 +231,8 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build
# run: set -o pipefail && make archive-debug 2>&1 | mint run xcbeautify
run: make archive-debug
run: set -o pipefail && make archive-debug 2>&1 | mint run xcbeautify
# run: make archive-debug
- name: Compress app for storage
run: ditto -V -c -k --keepParent Export/Pareto\ Security.app ParetoSecurity.app.zip
- name: Upload App to Artifacts
Expand All @@ -249,14 +249,13 @@ jobs:
test-profile-default:
strategy:
matrix:
os: [macos-11, macos-13]
os: [macos-12, macos-13]
runs-on: ${{ matrix.os }}
name: Profile - Default
timeout-minutes: 3
timeout-minutes: 6
needs: build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-test-profile-default
cancel-in-progress: true
steps:
- name: Repository checkout
uses: actions/checkout@v3
Expand All @@ -278,14 +277,13 @@ jobs:
test-profile-bad:
strategy:
matrix:
os: [macos-11, macos-13]
os: [macos-12, macos-13]
runs-on: ${{ matrix.os }}
name: Profile - Bad
timeout-minutes: 3
timeout-minutes: 6
needs: build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-test-profile-bad
cancel-in-progress: true
steps:
- name: Repository checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -399,8 +397,8 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build
#run: set -o pipefail && make archive-debug-setapp 2>&1 | mint run xcbeautify
run: make archive-debug-setapp
run: set -o pipefail && make archive-debug-setapp 2>&1 | mint run xcbeautify
#run: make archive-debug-setapp

- name: Compress app for storage
run: ditto -V -c -k --keepParent SetAppExport/Pareto\ Security.app ParetoSecuritySetApp.app.zip
Expand Down
26 changes: 9 additions & 17 deletions Pareto Security.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@
4F84531226D638C0007C3B04 /* NSBackgroundActivityScheduler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F84531126D638C0007C3B04 /* NSBackgroundActivityScheduler.swift */; };
4F84A94426CBBA6900A1579D /* SettingsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F84A94326CBBA6900A1579D /* SettingsTests.swift */; };
4F84A94926CBE21300A1579D /* PasswordtoUnlock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F84A94826CBE21300A1579D /* PasswordtoUnlock.swift */; };
4F84A94C26CBE4AE00A1579D /* ViewInspector in Frameworks */ = {isa = PBXBuildFile; productRef = 4F84A94B26CBE4AE00A1579D /* ViewInspector */; };
4F84EC9229DC3A030047C79C /* PermissionsSettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F84EC9129DC3A030047C79C /* PermissionsSettingsView.swift */; };
4F84EC9329DC3A030047C79C /* PermissionsSettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F84EC9129DC3A030047C79C /* PermissionsSettingsView.swift */; };
4F868DCF26A591E6005B876E /* Firewall.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F868DCE26A591E6005B876E /* Firewall.swift */; };
Expand Down Expand Up @@ -427,7 +426,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
4F84A94C26CBE4AE00A1579D /* ViewInspector in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -794,7 +792,6 @@
);
name = ParetoSecurityTests;
packageProductDependencies = (
4F84A94B26CBE4AE00A1579D /* ViewInspector */,
);
productName = ParetoSecurityTests;
productReference = 4FC81A4926C41DC8006EABA8 /* ParetoSecurityTests.xctest */;
Expand Down Expand Up @@ -866,7 +863,6 @@
mainGroup = 4FEBA2E5269CD48F009B2469;
packageReferences = (
4F103010269F1C65008C1E86 /* XCRemoteSwiftPackageReference "LaunchAtLogin" */,
4F84A94A26CBE4AE00A1579D /* XCRemoteSwiftPackageReference "ViewInspector" */,
4F6A0E1126CE608C003B00A3 /* XCRemoteSwiftPackageReference "Defaults" */,
4F14487526D8EB2E00A5BA34 /* XCRemoteSwiftPackageReference "Version" */,
4F14487826D8EB7A00A5BA34 /* XCRemoteSwiftPackageReference "Path.swift" */,
Expand All @@ -878,6 +874,7 @@
4F6EF890275FEE6C00752559 /* XCRemoteSwiftPackageReference "Regex" */,
4FAF5BC02895583A004E9615 /* XCRemoteSwiftPackageReference "Setapp-framework" */,
4F3EF0A328AEA05F00D83F4E /* XCRemoteSwiftPackageReference "Yams" */,
4FC0F2EC2A4C47FD004E7359 /* XCRemoteSwiftPackageReference "ViewInspector" */,
);
productRefGroup = 4FEBA2EF269CD48F009B2469 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -1823,14 +1820,6 @@
minimumVersion = 7.0.0;
};
};
4F84A94A26CBE4AE00A1579D /* XCRemoteSwiftPackageReference "ViewInspector" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/nalexn/ViewInspector";
requirement = {
branch = master;
kind = branch;
};
};
4F923CEB2756918E00070551 /* XCRemoteSwiftPackageReference "Cache" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/hyperoslo/Cache";
Expand All @@ -1847,6 +1836,14 @@
minimumVersion = 3.0.0;
};
};
4FC0F2EC2A4C47FD004E7359 /* XCRemoteSwiftPackageReference "ViewInspector" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/nalexn/ViewInspector";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 0.9.7;
};
};
4FF515BF26F7B362008D135E /* XCRemoteSwiftPackageReference "Alamofire" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/Alamofire/Alamofire";
Expand Down Expand Up @@ -1953,11 +1950,6 @@
package = 4F7739F2271EB3AD008B1584 /* XCRemoteSwiftPackageReference "sentry-cocoa" */;
productName = Sentry;
};
4F84A94B26CBE4AE00A1579D /* ViewInspector */ = {
isa = XCSwiftPackageProductDependency;
package = 4F84A94A26CBE4AE00A1579D /* XCRemoteSwiftPackageReference "ViewInspector" */;
productName = ViewInspector;
};
4F923CEC2756918E00070551 /* Cache */ = {
isa = XCSwiftPackageProductDependency;
package = 4F923CEB2756918E00070551 /* XCRemoteSwiftPackageReference "Cache" */;
Expand Down
10 changes: 4 additions & 6 deletions Pareto/Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,18 @@ public extension Defaults {

static func OKColor() -> NSColor {
if Defaults[.alternativeColor] {
let light = NSColor.init(red: 0, green: 64, blue: 221, alpha: 1)
let dark = NSColor.init(red: 64, green: 156, blue: 255, alpha: 1)
let light = NSColor.init(red: 255, green: 179, blue: 64, alpha: 1)
let dark = NSColor.init(red: 255, green: 179, blue: 64, alpha: 1)
let isDark = UserDefaults.standard.string(forKey: "AppleInterfaceStyle") == "Dark"

return isDark ? dark : light
}
return NSColor.systemGreen
}
static func FailColor() -> NSColor {
if Defaults[.alternativeColor] {
let light = NSColor.init(red: 173, green: 58, blue: 0, alpha: 1)
let dark = NSColor.init(red: 255, green: 179, blue: 64, alpha: 1)
let light = NSColor.init(red: 64, green: 156, blue: 255, alpha: 1)
let dark = NSColor.init(red: 64, green: 156, blue: 255, alpha: 1)
let isDark = UserDefaults.standard.string(forKey: "AppleInterfaceStyle") == "Dark"

return isDark ? dark : light
}
return NSColor.systemOrange
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>5245</string>
<string>5278</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
6 changes: 3 additions & 3 deletions Pareto/Views/Settings/GeneralSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct GeneralSettingsView: View {
@Default(.myChecksURL) var myChecksURL
@Default(.sendCrashReports) var sendCrashReports
@Default(.hideWhenNoFailures) var hideWhenNoFailures

@Default(.alternativeColor) var alternativeColor
@ObservedObject fileprivate var checker = PermissionsChecker()

var body: some View {
Expand Down Expand Up @@ -62,7 +62,7 @@ struct GeneralSettingsView: View {
Section(
footer: Text("Improve default colors for accessibility.").font(.footnote) ){
VStack(alignment: .leading) {
Toggle("Use alternative color scheme", isOn: $hideWhenNoFailures)
Toggle("Use alternative color scheme", isOn: $alternativeColor)
}
}
if showBeta {
Expand Down Expand Up @@ -111,7 +111,7 @@ struct GeneralSettingsView: View {
#endif
}
}
}.frame(maxWidth: 380, minHeight: 180).padding(25)
}.frame(maxWidth: 380, minHeight: 210).padding(25)
}

func selectFolder() {
Expand Down

0 comments on commit 06f8c23

Please sign in to comment.