├── default
├── .gitignore
├── QrSnapr
├── Assets.xcassets
│ ├── Contents.json
│ ├── AppIcon.appiconset
│ │ ├── 1024-mac.png
│ │ ├── 128-mac.png
│ │ ├── 16-mac.png
│ │ ├── 256-mac.png
│ │ ├── 32-mac 1.png
│ │ ├── 32-mac.png
│ │ ├── 512-mac.png
│ │ ├── 64-mac.png
│ │ ├── 256-mac 1.png
│ │ ├── 512-mac 1.png
│ │ └── Contents.json
│ └── AccentColor.colorset
│ │ └── Contents.json
├── Preview Content
│ └── Preview Assets.xcassets
│ │ └── Contents.json
├── Constants.swift
├── QrSnapr.entitlements
├── ContentView.swift
├── SettingScreen.swift
└── QrSnaprApp.swift
├── QrSnapr.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── swiftpm
│ │ │ └── Package.resolved
│ └── xcuserdata
│ │ └── arnavjindal.xcuserdatad
│ │ └── WorkspaceSettings.xcsettings
├── xcuserdata
│ └── arnavjindal.xcuserdatad
│ │ └── xcschemes
│ │ └── xcschememanagement.plist
├── xcshareddata
│ └── xcschemes
│ │ └── QrSnapr.xcscheme
└── project.pbxproj
├── QrSnaprUITests
├── QrSnaprUITestsLaunchTests.swift
└── QrSnaprUITests.swift
├── QrSnaprTests
└── QrSnaprTests.swift
├── README.md
├── .github
└── workflows
│ ├── objective-c-xcode.yml
│ └── macos-build-unsigned.yml
└── LICENSE
/default:
--------------------------------------------------------------------------------
1 | QrSnapr
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | QrSnapr.app/
2 |
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/QrSnapr/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/1024-mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/1024-mac.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/128-mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/128-mac.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/16-mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/16-mac.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/256-mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/256-mac.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/32-mac 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/32-mac 1.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/32-mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/32-mac.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/512-mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/512-mac.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/64-mac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/64-mac.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/256-mac 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/256-mac 1.png
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/512-mac 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/daggy1234/QrSnapr/HEAD/QrSnapr/Assets.xcassets/AppIcon.appiconset/512-mac 1.png
--------------------------------------------------------------------------------
/QrSnapr.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AccentColor.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "idiom" : "universal"
5 | }
6 | ],
7 | "info" : {
8 | "author" : "xcode",
9 | "version" : 1
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/QrSnapr.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/QrSnapr.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/QrSnapr/Constants.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Constants.swift
3 | // QrSnapr
4 | //
5 | // Created by Arnav Jindal on 4/4/24.
6 | //
7 |
8 | import Foundation
9 | import KeyboardShortcuts
10 |
11 | extension KeyboardShortcuts.Name {
12 | static let toggleQrDetect = Self("qrCodeDetection")
13 | static let toggleQrGenerate = Self("toggleQrGenerate")
14 | }
15 |
--------------------------------------------------------------------------------
/QrSnapr/QrSnapr.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.files.user-selected.read-only
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/QrSnapr/ContentView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // QrSnapr
4 | //
5 | // Created by Arnav Jindal on 2/21/24.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct ContentView: View {
11 | var body: some View {
12 | VStack {
13 | Image(systemName: "globe")
14 | .imageScale(.large)
15 | .foregroundStyle(.tint)
16 | Text("Hello, world!")
17 | }
18 | .padding()
19 | }
20 | }
21 |
22 | #Preview {
23 | ContentView()
24 | }
25 |
--------------------------------------------------------------------------------
/QrSnapr.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved:
--------------------------------------------------------------------------------
1 | {
2 | "originHash" : "69c39523ac0471922b625cc56b8722155cfd2afd660bdd4f5ff67335b5b87714",
3 | "pins" : [
4 | {
5 | "identity" : "keyboardshortcuts",
6 | "kind" : "remoteSourceControl",
7 | "location" : "https://github.com/sindresorhus/KeyboardShortcuts",
8 | "state" : {
9 | "revision" : "09e4a10ed6b65b3a40fe07b6bf0c84809313efc4",
10 | "version" : "2.0.0"
11 | }
12 | }
13 | ],
14 | "version" : 3
15 | }
16 |
--------------------------------------------------------------------------------
/QrSnapr.xcodeproj/project.xcworkspace/xcuserdata/arnavjindal.xcuserdatad/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildLocationStyle
6 | UseAppPreferences
7 | CustomBuildLocationType
8 | RelativeToDerivedData
9 | DerivedDataLocationStyle
10 | Default
11 | ShowSharedSchemesAutomaticallyEnabled
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/QrSnapr/SettingScreen.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SettingScreen.swift
3 | // QrSnapr
4 | //
5 | // Created by Arnav Jindal on 4/4/24.
6 | //
7 |
8 | import Foundation
9 | import SwiftUI
10 | import KeyboardShortcuts
11 |
12 | struct SettingsScreen: View {
13 | var body: some View {
14 | Form {
15 | KeyboardShortcuts.Recorder("QR Code Scanning:", name: .toggleQrDetect)
16 | KeyboardShortcuts.Recorder("QR Code Generation:", name: .toggleQrGenerate)
17 | } .padding()
18 | .frame(width: 300, height: 100)
19 | .navigationTitle("Settings")
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/QrSnapr.xcodeproj/xcuserdata/arnavjindal.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | QrSnapr.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 106CF5CA2B86D08B00AACCBA
16 |
17 | primary
18 |
19 |
20 | 106CF5DB2B86D08D00AACCBA
21 |
22 | primary
23 |
24 |
25 | 106CF5E52B86D08D00AACCBA
26 |
27 | primary
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/QrSnaprUITests/QrSnaprUITestsLaunchTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // QrSnaprUITestsLaunchTests.swift
3 | // QrSnaprUITests
4 | //
5 | // Created by Arnav Jindal on 2/21/24.
6 | //
7 |
8 | import XCTest
9 |
10 | final class QrSnaprUITestsLaunchTests: XCTestCase {
11 |
12 | override class var runsForEachTargetApplicationUIConfiguration: Bool {
13 | true
14 | }
15 |
16 | override func setUpWithError() throws {
17 | continueAfterFailure = false
18 | }
19 |
20 | func testLaunch() throws {
21 | let app = XCUIApplication()
22 | app.launch()
23 |
24 | // Insert steps here to perform after app launch but before taking a screenshot,
25 | // such as logging into a test account or navigating somewhere in the app
26 |
27 | let attachment = XCTAttachment(screenshot: app.screenshot())
28 | attachment.name = "Launch Screen"
29 | attachment.lifetime = .keepAlways
30 | add(attachment)
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/QrSnaprTests/QrSnaprTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // QrSnaprTests.swift
3 | // QrSnaprTests
4 | //
5 | // Created by Arnav Jindal on 2/21/24.
6 | //
7 |
8 | import XCTest
9 | @testable import QrSnapr
10 |
11 | final class QrSnaprTests: XCTestCase {
12 |
13 | override func setUpWithError() throws {
14 | // Put setup code here. This method is called before the invocation of each test method in the class.
15 | }
16 |
17 | override func tearDownWithError() throws {
18 | // Put teardown code here. This method is called after the invocation of each test method in the class.
19 | }
20 |
21 | func testExample() throws {
22 | // This is an example of a functional test case.
23 | // Use XCTAssert and related functions to verify your tests produce the correct results.
24 | // Any test you write for XCTest can be annotated as throws and async.
25 | // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
26 | // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
27 | }
28 |
29 | func testPerformanceExample() throws {
30 | // This is an example of a performance test case.
31 | self.measure {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/QrSnaprUITests/QrSnaprUITests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // QrSnaprUITests.swift
3 | // QrSnaprUITests
4 | //
5 | // Created by Arnav Jindal on 2/21/24.
6 | //
7 |
8 | import XCTest
9 |
10 | final class QrSnaprUITests: XCTestCase {
11 |
12 | override func setUpWithError() throws {
13 | // Put setup code here. This method is called before the invocation of each test method in the class.
14 |
15 | // In UI tests it is usually best to stop immediately when a failure occurs.
16 | continueAfterFailure = false
17 |
18 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
19 | }
20 |
21 | override func tearDownWithError() throws {
22 | // Put teardown code here. This method is called after the invocation of each test method in the class.
23 | }
24 |
25 | func testExample() throws {
26 | // UI tests must launch the application that they test.
27 | let app = XCUIApplication()
28 | app.launch()
29 |
30 | // Use XCTAssert and related functions to verify your tests produce the correct results.
31 | }
32 |
33 | func testLaunchPerformance() throws {
34 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
35 | // This measures how long it takes to launch your application.
36 | measure(metrics: [XCTApplicationLaunchMetric()]) {
37 | XCUIApplication().launch()
38 | }
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/QrSnapr/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "16-mac.png",
5 | "idiom" : "mac",
6 | "scale" : "1x",
7 | "size" : "16x16"
8 | },
9 | {
10 | "filename" : "32-mac.png",
11 | "idiom" : "mac",
12 | "scale" : "2x",
13 | "size" : "16x16"
14 | },
15 | {
16 | "filename" : "32-mac 1.png",
17 | "idiom" : "mac",
18 | "scale" : "1x",
19 | "size" : "32x32"
20 | },
21 | {
22 | "filename" : "64-mac.png",
23 | "idiom" : "mac",
24 | "scale" : "2x",
25 | "size" : "32x32"
26 | },
27 | {
28 | "filename" : "128-mac.png",
29 | "idiom" : "mac",
30 | "scale" : "1x",
31 | "size" : "128x128"
32 | },
33 | {
34 | "filename" : "256-mac 1.png",
35 | "idiom" : "mac",
36 | "scale" : "2x",
37 | "size" : "128x128"
38 | },
39 | {
40 | "filename" : "256-mac.png",
41 | "idiom" : "mac",
42 | "scale" : "1x",
43 | "size" : "256x256"
44 | },
45 | {
46 | "filename" : "512-mac 1.png",
47 | "idiom" : "mac",
48 | "scale" : "2x",
49 | "size" : "256x256"
50 | },
51 | {
52 | "filename" : "512-mac.png",
53 | "idiom" : "mac",
54 | "scale" : "1x",
55 | "size" : "512x512"
56 | },
57 | {
58 | "filename" : "1024-mac.png",
59 | "idiom" : "mac",
60 | "scale" : "2x",
61 | "size" : "512x512"
62 | }
63 | ],
64 | "info" : {
65 | "author" : "xcode",
66 | "version" : 1
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # QrSnapr
2 |
3 | Turn QR code images into urls _On your computer!_
4 |
5 | ## Code
6 |
7 | Its a simple swift ui menu app that uses the following dependencies: - [Keyboard Shortcuts](https://github.com/sindresorhus/KeyboardShortcuts)
8 |
9 | ## Building with GitHub Actions
10 |
11 | This project includes GitHub Actions workflows that automatically build the app without requiring an Apple Developer account:
12 |
13 | ### Simple Unsigned Build (`macos-build-unsigned.yml`)
14 |
15 | This workflow creates a simple unsigned build of the app:
16 |
17 | 1. Creates a copy of the Xcode project with code signing disabled
18 | 2. Builds the app with code signing explicitly disabled
19 | 3. Packages the app as both a zip archive and DMG file
20 | 4. Uploads both artifacts to GitHub Actions
21 | 5. Creates a GitHub Release when tags are pushed
22 |
23 | ### Running the Workflow
24 |
25 | The workflow runs on:
26 | - Every push to the main branch
27 | - Pull requests to main
28 | - Manual triggering through the GitHub UI
29 |
30 | ### Creating a Release
31 |
32 | To create a GitHub release with the app:
33 |
34 | 1. Tag your commit: `git tag v1.0.1`
35 | 2. Push the tag: `git push origin v1.0.1`
36 | 3. The workflow will automatically create a release with both zip and DMG files attached
37 |
38 | ### Downloading the Latest Build
39 |
40 | 1. Go to your repository on GitHub
41 | 2. Click on the "Actions" tab
42 | 3. Select the latest workflow run
43 | 4. Scroll down to "Artifacts" to download the app or DMG
44 |
45 | ### Using the Unsigned App
46 |
47 | Since the app is not signed or notarized, macOS Gatekeeper will block it by default. To open it:
48 |
49 | 1. Right-click (or Control-click) on the app
50 | 2. Select "Open" from the context menu
51 | 3. Click "Open" in the security dialog that appears
52 |
53 | You only need to do this the first time you open the app.
54 |
55 | ## License
56 |
57 | Please follow the AGPLv3 license.
58 |
--------------------------------------------------------------------------------
/.github/workflows/objective-c-xcode.yml:
--------------------------------------------------------------------------------
1 | name: Build Universal macOS App (No Developer Account Required)
2 |
3 | on:
4 | push:
5 | branches: ["main"]
6 | pull_request:
7 | branches: ["main"]
8 | # Allow manual triggering
9 | workflow_dispatch:
10 |
11 | jobs:
12 | build:
13 | name: Build App for ${{ matrix.arch }}
14 | strategy:
15 | matrix:
16 | include:
17 | - arch: x86_64
18 | runs_on: macos-13 # Intel runner (adjust if needed)
19 | artifact_name: QrSnapr-x86_64
20 | - arch: arm64
21 | runs_on: macos-14 # Apple Silicon runner
22 | artifact_name: QrSnapr-arm64
23 | runs-on: ${{ matrix.runs_on }}
24 | steps:
25 | - name: Checkout code
26 | uses: actions/checkout@v4
27 |
28 | - name: Set up Xcode
29 | uses: maxim-lobanov/setup-xcode@v1
30 | with:
31 | xcode-version: "latest"
32 |
33 | - name: Set up Node.js and create-dmg
34 | uses: actions/setup-node@v3
35 | with:
36 | node-version: "18"
37 |
38 | - name: Install create-dmg
39 | run: npm install --global create-dmg
40 |
41 | - name: Build App for ${{ matrix.arch }}
42 | run: |
43 | # Create a temporary xcconfig file to override code signing settings
44 | cat > build.xcconfig << EOF
45 | CODE_SIGN_IDENTITY = -
46 | CODE_SIGN_IDENTITY[sdk=macosx*] = -
47 | CODE_SIGNING_REQUIRED = NO
48 | CODE_SIGNING_ALLOWED = NO
49 | DEVELOPMENT_TEAM =
50 | DEVELOPMENT_TEAM[sdk=macosx*] =
51 | CODE_SIGN_STYLE = Automatic
52 | PROVISIONING_PROFILE_SPECIFIER =
53 | EOF
54 |
55 | # Remove corrupted SwiftPM Package.resolved to avoid malformed file error
56 | rm -f QrSnapr.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
57 |
58 | # Use a dedicated derived data path so the build products are predictable
59 | xcodebuild clean build \
60 | -scheme QrSnapr \
61 | -project QrSnapr.xcodeproj \
62 | -configuration Release \
63 | -derivedDataPath build \
64 | -xcconfig build.xcconfig \
65 | ARCHS="${{ matrix.arch }}" \
66 | ONLY_ACTIVE_ARCH=NO
67 |
68 | - name: Create DMG for ${{ matrix.arch }}
69 | continue-on-error: true
70 | run: |
71 | APP_PATH=build/Build/Products/Release/QrSnapr.app
72 | # Skip codesign since no identity is available
73 | codesign --force --sign - "$APP_PATH"
74 | create-dmg \
75 | --overwrite \
76 | --identity="" \
77 | --dmg-title "${{ matrix.artifact_name }}" \
78 | "$APP_PATH" \
79 | "build/Build/Products/Release/"
80 |
81 | - name: Rename DMG to include arch
82 | run: |
83 | cd build/Build/Products/Release
84 | ls
85 | mv *.dmg "${{ matrix.artifact_name }}.dmg"
86 | ls
87 |
88 | - name: Upload DMG Artifact
89 | uses: actions/upload-artifact@v4
90 | with:
91 | name: ${{ matrix.artifact_name }}
92 | path: build/Build/Products/Release/${{ matrix.artifact_name }}.dmg
93 |
--------------------------------------------------------------------------------
/.github/workflows/macos-build-unsigned.yml:
--------------------------------------------------------------------------------
1 | # name: Build macOS App without code signing
2 |
3 | # on:
4 | # push:
5 | # branches: ["main"]
6 | # pull_request:
7 | # branches: ["main"]
8 | # # Allow manual triggering
9 | # workflow_dispatch:
10 |
11 | # jobs:
12 | # build:
13 | # name: Build QrSnapr App
14 | # runs-on: macos-latest
15 |
16 | # steps:
17 | # - name: Checkout
18 | # uses: actions/checkout@v4
19 |
20 | # - name: Create temporary project
21 | # run: |
22 | # # Create a copy of the project file
23 | # cp -R QrSnapr.xcodeproj QrSnapr-nosign.xcodeproj
24 |
25 | # # Create a patched project file without code signing
26 | # cat > patch-project.sh << 'EOF'
27 | # #!/bin/bash
28 | # sed -i '' 's/CODE_SIGN_IDENTITY = "Developer ID Application";/CODE_SIGN_IDENTITY = "-";/g' QrSnapr-nosign.xcodeproj/project.pbxproj
29 | # sed -i '' 's/"CODE_SIGN_IDENTITY\[sdk=macosx\*\]" = "Developer ID Application";/"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";/g' QrSnapr-nosign.xcodeproj/project.pbxproj
30 | # sed -i '' 's/DEVELOPMENT_TEAM = DMH2G7GCK5;/DEVELOPMENT_TEAM = "";/g' QrSnapr-nosign.xcodeproj/project.pbxproj
31 | # sed -i '' 's/"DEVELOPMENT_TEAM\[sdk=macosx\*\]" = DMH2G7GCK5;/"DEVELOPMENT_TEAM[sdk=macosx*]" = "";/g' QrSnapr-nosign.xcodeproj/project.pbxproj
32 | # sed -i '' 's/ENABLE_HARDENED_RUNTIME = YES;/ENABLE_HARDENED_RUNTIME = NO;/g' QrSnapr-nosign.xcodeproj/project.pbxproj
33 | # sed -i '' 's/CODE_SIGN_STYLE = Manual;/CODE_SIGN_STYLE = Automatic;/g' QrSnapr-nosign.xcodeproj/project.pbxproj
34 | # sed -i '' 's/PROVISIONING_PROFILE_SPECIFIER = "";/PROVISIONING_PROFILE_SPECIFIER = "";/g' QrSnapr-nosign.xcodeproj/project.pbxproj
35 | # EOF
36 |
37 | # chmod +x patch-project.sh
38 | # ./patch-project.sh
39 |
40 | # echo "Patched project file for no code signing"
41 |
42 | # - name: Build
43 | # run: |
44 | # xcodebuild clean build \
45 | # -project QrSnapr-nosign.xcodeproj \
46 | # -scheme QrSnapr \
47 | # -configuration Release \
48 | # -derivedDataPath build \
49 | # CODE_SIGN_IDENTITY="-" \
50 | # CODE_SIGNING_REQUIRED=NO \
51 | # CODE_SIGNING_ALLOWED=NO \
52 | # ENABLE_HARDENED_RUNTIME=NO \
53 | # DEVELOPMENT_TEAM=""
54 |
55 | # # List build results
56 | # find build -name "*.app" -type d
57 |
58 | # - name: Package App
59 | # run: |
60 | # # Find the built app
61 | # APP_PATH=$(find build -name "QrSnapr.app" -type d | head -n 1)
62 |
63 | # if [ -z "$APP_PATH" ]; then
64 | # echo "Error: Could not find built QrSnapr.app"
65 | # find build -type d | grep -i qrsnapr
66 | # exit 1
67 | # fi
68 |
69 | # echo "Found app at: $APP_PATH"
70 |
71 | # # Create DMG
72 | # mkdir -p dmg_contents
73 | # cp -R "$APP_PATH" dmg_contents/
74 | # hdiutil create -volname "QrSnapr" -srcfolder dmg_contents -ov -format UDZO "QrSnapr.dmg"
75 |
76 | # # Create zip archive
77 | # ditto -c -k --keepParent "$APP_PATH" "QrSnapr.zip"
78 |
79 | # - name: Upload App Bundle
80 | # uses: actions/upload-artifact@v4
81 | # with:
82 | # name: QrSnapr-App
83 | # path: QrSnapr.zip
84 |
85 | # - name: Upload DMG
86 | # uses: actions/upload-artifact@v4
87 | # with:
88 | # name: QrSnapr-DMG
89 | # path: QrSnapr.dmg
90 |
91 | # - name: Create Release
92 | # if: startsWith(github.ref, 'refs/tags/')
93 | # id: create_release
94 | # uses: softprops/action-gh-release@v1
95 | # with:
96 | # files: |
97 | # QrSnapr.zip
98 | # QrSnapr.dmg
99 | # name: Release ${{ github.ref_name }}
100 | # draft: false
101 | # prerelease: false
102 | # env:
103 | # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104 |
--------------------------------------------------------------------------------
/QrSnapr.xcodeproj/xcshareddata/xcschemes/QrSnapr.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
9 |
10 |
16 |
22 |
23 |
24 |
25 |
26 |
32 |
33 |
36 |
42 |
43 |
44 |
47 |
53 |
54 |
55 |
56 |
57 |
67 |
69 |
75 |
76 |
77 |
78 |
84 |
86 |
92 |
93 |
94 |
95 |
97 |
98 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/QrSnapr/QrSnaprApp.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import SwiftUI
3 | import Vision
4 | import KeyboardShortcuts
5 |
6 |
7 | class QRCodeReader {
8 | static func readQRCode(completion: @escaping (Result) -> Void) {
9 | let pasteboard = NSPasteboard.general
10 | guard let image = pasteboard.readObjects(forClasses: [NSImage.self], options: nil)?.first as? NSImage else {
11 | completion(.failure(NSError(domain: "No image found in clipboard", code: 0, userInfo: nil)))
12 | return
13 | }
14 |
15 | guard let cgImage = image.cgImage(forProposedRect: nil, context: nil, hints: nil) else {
16 | completion(.failure(NSError(domain: "Failed to convert NSImage to CGImage", code: 1, userInfo: nil)))
17 | return
18 | }
19 |
20 | let request = VNDetectBarcodesRequest { request, error in
21 | if let error = error {
22 | completion(.failure(error))
23 | return
24 | }
25 |
26 | guard let results = request.results as? [VNBarcodeObservation], let payload = results.first?.payloadStringValue else {
27 | completion(.failure(NSError(domain: "No QR code detected in the image", code: 2, userInfo: nil)))
28 | return
29 | }
30 |
31 | completion(.success(payload))
32 | }
33 |
34 | let handler = VNImageRequestHandler(cgImage: cgImage, options: [:])
35 | try? handler.perform([request])
36 | }
37 | }
38 |
39 | func generateQRCode(from string: String) -> NSImage? {
40 | let data = string.data(using: .ascii)
41 | guard let filter = CIFilter(name: "CIQRCodeGenerator") else { return nil }
42 | filter.setValue(data, forKey: "inputMessage")
43 | filter.setValue("Q", forKey: "inputCorrectionLevel")
44 | guard let outputImage = filter.outputImage else { return nil }
45 |
46 | let scaleX = 10.0, scaleY = 10.0
47 | let transformedImage = outputImage.transformed(by: CGAffineTransform(scaleX: CGFloat(scaleX), y: CGFloat(scaleY)))
48 |
49 | let rep = NSCIImageRep(ciImage: transformedImage)
50 | let nsImage = NSImage(size: rep.size)
51 | nsImage.addRepresentation(rep)
52 | return nsImage
53 | }
54 |
55 |
56 | struct QRCodeGeneratorView: View {
57 | @State private var inputText: String = ""
58 | @State private var qrImage: NSImage? = nil
59 |
60 | var body: some View {
61 | VStack {
62 | Text("Enter text to generate QR Code")
63 | .font(.headline)
64 | TextField("Enter text", text: $inputText)
65 | .textFieldStyle(RoundedBorderTextFieldStyle())
66 | .padding()
67 | HStack {
68 | Button("Generate") {
69 | qrImage = generateQRCode(from: inputText)
70 | }
71 | if qrImage != nil {
72 | Button("Copy to Clipboard") {
73 | let pasteboard = NSPasteboard.general
74 | pasteboard.clearContents()
75 | if let tiffData = qrImage?.tiffRepresentation,
76 | let bitmap = NSBitmapImageRep(data: tiffData),
77 | let pngData = bitmap.representation(using: .png, properties: [:]) {
78 | pasteboard.setData(pngData, forType: .png)
79 | }
80 | }
81 | }
82 | }
83 | if let qrImage = qrImage {
84 | Image(nsImage: qrImage)
85 | .resizable()
86 | .interpolation(.none)
87 | .frame(width: 200, height: 200)
88 | .padding()
89 | }
90 | }
91 | .padding()
92 | .frame(width: 300, height: 300)
93 | }
94 | }
95 |
96 | extension AppState {
97 | func openSettings() {
98 | // bring settings window to front
99 | NSApp.activate(ignoringOtherApps: true)
100 | let settingsView = SettingsScreen()
101 | let hostingController = NSHostingController(rootView: settingsView)
102 |
103 | let window = NSWindow(contentViewController: hostingController)
104 | window.setContentSize(NSSize(width: 400, height: 200))
105 | window.center()
106 | window.makeKeyAndOrderFront(nil)
107 | window.title = "Shortcuts"
108 | }
109 | }
110 |
111 | @MainActor
112 | final class AppState: ObservableObject {
113 | init() {
114 | KeyboardShortcuts.onKeyDown(for: .toggleQrDetect) {
115 | self.readQRCode()
116 | }
117 | KeyboardShortcuts.onKeyDown(for: .toggleQrGenerate) {
118 | self.openQRCodeGenerator()
119 | }
120 | }
121 |
122 | func readQRCode() {
123 | print("QR Code Reader Triggered")
124 | QRCodeReader.readQRCode { result in
125 | DispatchQueue.main.async {
126 | self.handleQRCodeDetection(result: result)
127 | }
128 | }
129 | }
130 |
131 | private func handleQRCodeDetection(result: Result) {
132 | switch result {
133 | case .success(let payload):
134 | let pasteboard = NSPasteboard.general
135 | pasteboard.clearContents()
136 | pasteboard.setString(payload, forType: .string)
137 | showAlert(message: "QR Code Copied to clipboard")
138 | case .failure(_):
139 | showAlert(message: "Error detecting QR code")
140 | }
141 | }
142 |
143 | func showAlert(message: String) {
144 | // activate app to bring alert to front
145 | NSApp.activate(ignoringOtherApps: true)
146 | let alert = NSAlert()
147 | alert.messageText = message
148 | alert.alertStyle = .warning
149 | alert.addButton(withTitle: "OK")
150 | alert.runModal()
151 | }
152 |
153 | func donate() {
154 | // Insert donation logic here
155 | let pasteboard = NSPasteboard.general
156 | pasteboard.clearContents()
157 | pasteboard.setString("https://dagpi.xyz/donate", forType: .string)
158 | showAlert(message: "Donation link on your clipboard :)")
159 |
160 | }
161 |
162 | func openQRCodeGenerator() {
163 | // bring generator window to front
164 | NSApp.activate(ignoringOtherApps: true)
165 | let generatorView = QRCodeGeneratorView()
166 | let hostingController = NSHostingController(rootView: generatorView)
167 | let window = NSWindow(contentViewController: hostingController)
168 | window.setContentSize(NSSize(width: 350, height: 400))
169 | window.center()
170 | window.makeKeyAndOrderFront(nil)
171 | window.title = "QR Code Generator"
172 | }
173 |
174 | // new helper to open GitHub issues page
175 | func openBugReport() {
176 | NSApp.activate(ignoringOtherApps: true)
177 | if let url = URL(string: "https://github.com/daggy1234/QrSnapr/issues") {
178 | NSWorkspace.shared.open(url)
179 | }
180 | }
181 | }
182 |
183 | @main
184 | struct SwiftUIMenuBarApp: App {
185 |
186 | @StateObject private var appState = AppState()
187 |
188 |
189 | var body: some Scene {
190 | MenuBarExtra("Qr Code Reader", systemImage: "qrcode") {
191 | Button("Read QR Code", action: appState.readQRCode)
192 | Button("Generate QR Code", action: appState.openQRCodeGenerator)
193 | Divider()
194 | Button("Shortcuts", action: appState.openSettings)
195 | Button("Quit", action: quitApp)
196 | Button("Donate", action: appState.donate)
197 | // report bugs
198 | Button("Report a Bug", action: appState.openBugReport)
199 | }
200 | }
201 |
202 | private func quitApp() {
203 | NSApplication.shared.terminate(nil)
204 | }
205 |
206 |
207 | }
208 |
209 |
210 |
--------------------------------------------------------------------------------
/QrSnapr.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 77;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 106CF5CF2B86D08B00AACCBA /* QrSnaprApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 106CF5CE2B86D08B00AACCBA /* QrSnaprApp.swift */; };
11 | 106CF5D32B86D08D00AACCBA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 106CF5D22B86D08D00AACCBA /* Assets.xcassets */; };
12 | 106CF5D62B86D08D00AACCBA /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 106CF5D52B86D08D00AACCBA /* Preview Assets.xcassets */; };
13 | 106CF5E12B86D08D00AACCBA /* QrSnaprTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 106CF5E02B86D08D00AACCBA /* QrSnaprTests.swift */; };
14 | 106CF5EB2B86D08D00AACCBA /* QrSnaprUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 106CF5EA2B86D08D00AACCBA /* QrSnaprUITests.swift */; };
15 | 106CF5ED2B86D08D00AACCBA /* QrSnaprUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 106CF5EC2B86D08D00AACCBA /* QrSnaprUITestsLaunchTests.swift */; };
16 | 10BC273A2BBFA229003E9EA6 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10BC27392BBFA229003E9EA6 /* Constants.swift */; };
17 | 10BC273C2BBFA241003E9EA6 /* SettingScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10BC273B2BBFA241003E9EA6 /* SettingScreen.swift */; };
18 | 10BC273E2BBFA25A003E9EA6 /* KeyboardShortcuts in Frameworks */ = {isa = PBXBuildFile; productRef = 10BC273D2BBFA25A003E9EA6 /* KeyboardShortcuts */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 106CF5DD2B86D08D00AACCBA /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 106CF5C32B86D08B00AACCBA /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 106CF5CA2B86D08B00AACCBA;
27 | remoteInfo = QrSnapr;
28 | };
29 | 106CF5E72B86D08D00AACCBA /* PBXContainerItemProxy */ = {
30 | isa = PBXContainerItemProxy;
31 | containerPortal = 106CF5C32B86D08B00AACCBA /* Project object */;
32 | proxyType = 1;
33 | remoteGlobalIDString = 106CF5CA2B86D08B00AACCBA;
34 | remoteInfo = QrSnapr;
35 | };
36 | /* End PBXContainerItemProxy section */
37 |
38 | /* Begin PBXFileReference section */
39 | 106CF5CB2B86D08B00AACCBA /* QrSnapr.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = QrSnapr.app; sourceTree = BUILT_PRODUCTS_DIR; };
40 | 106CF5CE2B86D08B00AACCBA /* QrSnaprApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QrSnaprApp.swift; sourceTree = ""; };
41 | 106CF5D22B86D08D00AACCBA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
42 | 106CF5D52B86D08D00AACCBA /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
43 | 106CF5D72B86D08D00AACCBA /* QrSnapr.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = QrSnapr.entitlements; sourceTree = ""; };
44 | 106CF5DC2B86D08D00AACCBA /* QrSnaprTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = QrSnaprTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 106CF5E02B86D08D00AACCBA /* QrSnaprTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QrSnaprTests.swift; sourceTree = ""; };
46 | 106CF5E62B86D08D00AACCBA /* QrSnaprUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = QrSnaprUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
47 | 106CF5EA2B86D08D00AACCBA /* QrSnaprUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QrSnaprUITests.swift; sourceTree = ""; };
48 | 106CF5EC2B86D08D00AACCBA /* QrSnaprUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QrSnaprUITestsLaunchTests.swift; sourceTree = ""; };
49 | 10BC27392BBFA229003E9EA6 /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = ""; };
50 | 10BC273B2BBFA241003E9EA6 /* SettingScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingScreen.swift; sourceTree = ""; };
51 | /* End PBXFileReference section */
52 |
53 | /* Begin PBXFrameworksBuildPhase section */
54 | 106CF5C82B86D08B00AACCBA /* Frameworks */ = {
55 | isa = PBXFrameworksBuildPhase;
56 | buildActionMask = 2147483647;
57 | files = (
58 | 10BC273E2BBFA25A003E9EA6 /* KeyboardShortcuts in Frameworks */,
59 | );
60 | runOnlyForDeploymentPostprocessing = 0;
61 | };
62 | 106CF5D92B86D08D00AACCBA /* Frameworks */ = {
63 | isa = PBXFrameworksBuildPhase;
64 | buildActionMask = 2147483647;
65 | files = (
66 | );
67 | runOnlyForDeploymentPostprocessing = 0;
68 | };
69 | 106CF5E32B86D08D00AACCBA /* Frameworks */ = {
70 | isa = PBXFrameworksBuildPhase;
71 | buildActionMask = 2147483647;
72 | files = (
73 | );
74 | runOnlyForDeploymentPostprocessing = 0;
75 | };
76 | /* End PBXFrameworksBuildPhase section */
77 |
78 | /* Begin PBXGroup section */
79 | 106CF5C22B86D08B00AACCBA = {
80 | isa = PBXGroup;
81 | children = (
82 | 106CF5CD2B86D08B00AACCBA /* QrSnapr */,
83 | 106CF5DF2B86D08D00AACCBA /* QrSnaprTests */,
84 | 106CF5E92B86D08D00AACCBA /* QrSnaprUITests */,
85 | 106CF5CC2B86D08B00AACCBA /* Products */,
86 | );
87 | sourceTree = "";
88 | };
89 | 106CF5CC2B86D08B00AACCBA /* Products */ = {
90 | isa = PBXGroup;
91 | children = (
92 | 106CF5CB2B86D08B00AACCBA /* QrSnapr.app */,
93 | 106CF5DC2B86D08D00AACCBA /* QrSnaprTests.xctest */,
94 | 106CF5E62B86D08D00AACCBA /* QrSnaprUITests.xctest */,
95 | );
96 | name = Products;
97 | sourceTree = "";
98 | };
99 | 106CF5CD2B86D08B00AACCBA /* QrSnapr */ = {
100 | isa = PBXGroup;
101 | children = (
102 | 106CF5CE2B86D08B00AACCBA /* QrSnaprApp.swift */,
103 | 106CF5D22B86D08D00AACCBA /* Assets.xcassets */,
104 | 106CF5D72B86D08D00AACCBA /* QrSnapr.entitlements */,
105 | 106CF5D42B86D08D00AACCBA /* Preview Content */,
106 | 10BC27392BBFA229003E9EA6 /* Constants.swift */,
107 | 10BC273B2BBFA241003E9EA6 /* SettingScreen.swift */,
108 | );
109 | path = QrSnapr;
110 | sourceTree = "";
111 | };
112 | 106CF5D42B86D08D00AACCBA /* Preview Content */ = {
113 | isa = PBXGroup;
114 | children = (
115 | 106CF5D52B86D08D00AACCBA /* Preview Assets.xcassets */,
116 | );
117 | path = "Preview Content";
118 | sourceTree = "";
119 | };
120 | 106CF5DF2B86D08D00AACCBA /* QrSnaprTests */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 106CF5E02B86D08D00AACCBA /* QrSnaprTests.swift */,
124 | );
125 | path = QrSnaprTests;
126 | sourceTree = "";
127 | };
128 | 106CF5E92B86D08D00AACCBA /* QrSnaprUITests */ = {
129 | isa = PBXGroup;
130 | children = (
131 | 106CF5EA2B86D08D00AACCBA /* QrSnaprUITests.swift */,
132 | 106CF5EC2B86D08D00AACCBA /* QrSnaprUITestsLaunchTests.swift */,
133 | );
134 | path = QrSnaprUITests;
135 | sourceTree = "";
136 | };
137 | /* End PBXGroup section */
138 |
139 | /* Begin PBXNativeTarget section */
140 | 106CF5CA2B86D08B00AACCBA /* QrSnapr */ = {
141 | isa = PBXNativeTarget;
142 | buildConfigurationList = 106CF5F02B86D08D00AACCBA /* Build configuration list for PBXNativeTarget "QrSnapr" */;
143 | buildPhases = (
144 | 106CF5C72B86D08B00AACCBA /* Sources */,
145 | 106CF5C82B86D08B00AACCBA /* Frameworks */,
146 | 106CF5C92B86D08B00AACCBA /* Resources */,
147 | );
148 | buildRules = (
149 | );
150 | dependencies = (
151 | );
152 | name = QrSnapr;
153 | packageProductDependencies = (
154 | 10BC273D2BBFA25A003E9EA6 /* KeyboardShortcuts */,
155 | );
156 | productName = QrSnapr;
157 | productReference = 106CF5CB2B86D08B00AACCBA /* QrSnapr.app */;
158 | productType = "com.apple.product-type.application";
159 | };
160 | 106CF5DB2B86D08D00AACCBA /* QrSnaprTests */ = {
161 | isa = PBXNativeTarget;
162 | buildConfigurationList = 106CF5F32B86D08D00AACCBA /* Build configuration list for PBXNativeTarget "QrSnaprTests" */;
163 | buildPhases = (
164 | 106CF5D82B86D08D00AACCBA /* Sources */,
165 | 106CF5D92B86D08D00AACCBA /* Frameworks */,
166 | 106CF5DA2B86D08D00AACCBA /* Resources */,
167 | );
168 | buildRules = (
169 | );
170 | dependencies = (
171 | 106CF5DE2B86D08D00AACCBA /* PBXTargetDependency */,
172 | );
173 | name = QrSnaprTests;
174 | productName = QrSnaprTests;
175 | productReference = 106CF5DC2B86D08D00AACCBA /* QrSnaprTests.xctest */;
176 | productType = "com.apple.product-type.bundle.unit-test";
177 | };
178 | 106CF5E52B86D08D00AACCBA /* QrSnaprUITests */ = {
179 | isa = PBXNativeTarget;
180 | buildConfigurationList = 106CF5F62B86D08D00AACCBA /* Build configuration list for PBXNativeTarget "QrSnaprUITests" */;
181 | buildPhases = (
182 | 106CF5E22B86D08D00AACCBA /* Sources */,
183 | 106CF5E32B86D08D00AACCBA /* Frameworks */,
184 | 106CF5E42B86D08D00AACCBA /* Resources */,
185 | );
186 | buildRules = (
187 | );
188 | dependencies = (
189 | 106CF5E82B86D08D00AACCBA /* PBXTargetDependency */,
190 | );
191 | name = QrSnaprUITests;
192 | productName = QrSnaprUITests;
193 | productReference = 106CF5E62B86D08D00AACCBA /* QrSnaprUITests.xctest */;
194 | productType = "com.apple.product-type.bundle.ui-testing";
195 | };
196 | /* End PBXNativeTarget section */
197 |
198 | /* Begin PBXProject section */
199 | 106CF5C32B86D08B00AACCBA /* Project object */ = {
200 | isa = PBXProject;
201 | attributes = {
202 | BuildIndependentTargetsInParallel = 1;
203 | LastSwiftUpdateCheck = 1520;
204 | LastUpgradeCheck = 1620;
205 | TargetAttributes = {
206 | 106CF5CA2B86D08B00AACCBA = {
207 | CreatedOnToolsVersion = 15.2;
208 | ProvisioningStyle = Manual;
209 | };
210 | 106CF5DB2B86D08D00AACCBA = {
211 | CreatedOnToolsVersion = 15.2;
212 | ProvisioningStyle = Manual;
213 | TestTargetID = 106CF5CA2B86D08B00AACCBA;
214 | };
215 | 106CF5E52B86D08D00AACCBA = {
216 | CreatedOnToolsVersion = 15.2;
217 | ProvisioningStyle = Manual;
218 | TestTargetID = 106CF5CA2B86D08B00AACCBA;
219 | };
220 | };
221 | };
222 | buildConfigurationList = 106CF5C62B86D08B00AACCBA /* Build configuration list for PBXProject "QrSnapr" */;
223 | developmentRegion = en;
224 | hasScannedForEncodings = 0;
225 | knownRegions = (
226 | en,
227 | Base,
228 | );
229 | mainGroup = 106CF5C22B86D08B00AACCBA;
230 | packageReferences = (
231 | 10BC27382BBFA20D003E9EA6 /* XCRemoteSwiftPackageReference "KeyboardShortcuts" */,
232 | );
233 | preferredProjectObjectVersion = 77;
234 | productRefGroup = 106CF5CC2B86D08B00AACCBA /* Products */;
235 | projectDirPath = "";
236 | projectRoot = "";
237 | targets = (
238 | 106CF5CA2B86D08B00AACCBA /* QrSnapr */,
239 | 106CF5DB2B86D08D00AACCBA /* QrSnaprTests */,
240 | 106CF5E52B86D08D00AACCBA /* QrSnaprUITests */,
241 | );
242 | };
243 | /* End PBXProject section */
244 |
245 | /* Begin PBXResourcesBuildPhase section */
246 | 106CF5C92B86D08B00AACCBA /* Resources */ = {
247 | isa = PBXResourcesBuildPhase;
248 | buildActionMask = 2147483647;
249 | files = (
250 | 106CF5D62B86D08D00AACCBA /* Preview Assets.xcassets in Resources */,
251 | 106CF5D32B86D08D00AACCBA /* Assets.xcassets in Resources */,
252 | );
253 | runOnlyForDeploymentPostprocessing = 0;
254 | };
255 | 106CF5DA2B86D08D00AACCBA /* Resources */ = {
256 | isa = PBXResourcesBuildPhase;
257 | buildActionMask = 2147483647;
258 | files = (
259 | );
260 | runOnlyForDeploymentPostprocessing = 0;
261 | };
262 | 106CF5E42B86D08D00AACCBA /* Resources */ = {
263 | isa = PBXResourcesBuildPhase;
264 | buildActionMask = 2147483647;
265 | files = (
266 | );
267 | runOnlyForDeploymentPostprocessing = 0;
268 | };
269 | /* End PBXResourcesBuildPhase section */
270 |
271 | /* Begin PBXSourcesBuildPhase section */
272 | 106CF5C72B86D08B00AACCBA /* Sources */ = {
273 | isa = PBXSourcesBuildPhase;
274 | buildActionMask = 2147483647;
275 | files = (
276 | 10BC273C2BBFA241003E9EA6 /* SettingScreen.swift in Sources */,
277 | 106CF5CF2B86D08B00AACCBA /* QrSnaprApp.swift in Sources */,
278 | 10BC273A2BBFA229003E9EA6 /* Constants.swift in Sources */,
279 | );
280 | runOnlyForDeploymentPostprocessing = 0;
281 | };
282 | 106CF5D82B86D08D00AACCBA /* Sources */ = {
283 | isa = PBXSourcesBuildPhase;
284 | buildActionMask = 2147483647;
285 | files = (
286 | 106CF5E12B86D08D00AACCBA /* QrSnaprTests.swift in Sources */,
287 | );
288 | runOnlyForDeploymentPostprocessing = 0;
289 | };
290 | 106CF5E22B86D08D00AACCBA /* Sources */ = {
291 | isa = PBXSourcesBuildPhase;
292 | buildActionMask = 2147483647;
293 | files = (
294 | 106CF5ED2B86D08D00AACCBA /* QrSnaprUITestsLaunchTests.swift in Sources */,
295 | 106CF5EB2B86D08D00AACCBA /* QrSnaprUITests.swift in Sources */,
296 | );
297 | runOnlyForDeploymentPostprocessing = 0;
298 | };
299 | /* End PBXSourcesBuildPhase section */
300 |
301 | /* Begin PBXTargetDependency section */
302 | 106CF5DE2B86D08D00AACCBA /* PBXTargetDependency */ = {
303 | isa = PBXTargetDependency;
304 | target = 106CF5CA2B86D08B00AACCBA /* QrSnapr */;
305 | targetProxy = 106CF5DD2B86D08D00AACCBA /* PBXContainerItemProxy */;
306 | };
307 | 106CF5E82B86D08D00AACCBA /* PBXTargetDependency */ = {
308 | isa = PBXTargetDependency;
309 | target = 106CF5CA2B86D08B00AACCBA /* QrSnapr */;
310 | targetProxy = 106CF5E72B86D08D00AACCBA /* PBXContainerItemProxy */;
311 | };
312 | /* End PBXTargetDependency section */
313 |
314 | /* Begin XCBuildConfiguration section */
315 | 106CF5EE2B86D08D00AACCBA /* Debug */ = {
316 | isa = XCBuildConfiguration;
317 | buildSettings = {
318 | ALWAYS_SEARCH_USER_PATHS = NO;
319 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
320 | CLANG_ANALYZER_NONNULL = YES;
321 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
322 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
323 | CLANG_ENABLE_MODULES = YES;
324 | CLANG_ENABLE_OBJC_ARC = YES;
325 | CLANG_ENABLE_OBJC_WEAK = YES;
326 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
327 | CLANG_WARN_BOOL_CONVERSION = YES;
328 | CLANG_WARN_COMMA = YES;
329 | CLANG_WARN_CONSTANT_CONVERSION = YES;
330 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
331 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
332 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
333 | CLANG_WARN_EMPTY_BODY = YES;
334 | CLANG_WARN_ENUM_CONVERSION = YES;
335 | CLANG_WARN_INFINITE_RECURSION = YES;
336 | CLANG_WARN_INT_CONVERSION = YES;
337 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
338 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
339 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
340 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
341 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
342 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
343 | CLANG_WARN_STRICT_PROTOTYPES = YES;
344 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
345 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
346 | CLANG_WARN_UNREACHABLE_CODE = YES;
347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
348 | COPY_PHASE_STRIP = NO;
349 | DEAD_CODE_STRIPPING = YES;
350 | DEBUG_INFORMATION_FORMAT = dwarf;
351 | ENABLE_STRICT_OBJC_MSGSEND = YES;
352 | ENABLE_TESTABILITY = YES;
353 | ENABLE_USER_SCRIPT_SANDBOXING = YES;
354 | GCC_C_LANGUAGE_STANDARD = gnu17;
355 | GCC_DYNAMIC_NO_PIC = NO;
356 | GCC_NO_COMMON_BLOCKS = YES;
357 | GCC_OPTIMIZATION_LEVEL = 0;
358 | GCC_PREPROCESSOR_DEFINITIONS = (
359 | "DEBUG=1",
360 | "$(inherited)",
361 | );
362 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
363 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
364 | GCC_WARN_UNDECLARED_SELECTOR = YES;
365 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
366 | GCC_WARN_UNUSED_FUNCTION = YES;
367 | GCC_WARN_UNUSED_VARIABLE = YES;
368 | INFOPLIST_KEY_LSUIElement = YES;
369 | LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
370 | MACOSX_DEPLOYMENT_TARGET = 14.0;
371 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
372 | MTL_FAST_MATH = YES;
373 | ONLY_ACTIVE_ARCH = YES;
374 | SDKROOT = macosx;
375 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
376 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
377 | };
378 | name = Debug;
379 | };
380 | 106CF5EF2B86D08D00AACCBA /* Release */ = {
381 | isa = XCBuildConfiguration;
382 | buildSettings = {
383 | ALWAYS_SEARCH_USER_PATHS = NO;
384 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
385 | CLANG_ANALYZER_NONNULL = YES;
386 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
387 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
388 | CLANG_ENABLE_MODULES = YES;
389 | CLANG_ENABLE_OBJC_ARC = YES;
390 | CLANG_ENABLE_OBJC_WEAK = YES;
391 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
392 | CLANG_WARN_BOOL_CONVERSION = YES;
393 | CLANG_WARN_COMMA = YES;
394 | CLANG_WARN_CONSTANT_CONVERSION = YES;
395 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
396 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
397 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
398 | CLANG_WARN_EMPTY_BODY = YES;
399 | CLANG_WARN_ENUM_CONVERSION = YES;
400 | CLANG_WARN_INFINITE_RECURSION = YES;
401 | CLANG_WARN_INT_CONVERSION = YES;
402 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
403 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
404 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
405 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
406 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
407 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
408 | CLANG_WARN_STRICT_PROTOTYPES = YES;
409 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
410 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
411 | CLANG_WARN_UNREACHABLE_CODE = YES;
412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
413 | COPY_PHASE_STRIP = NO;
414 | DEAD_CODE_STRIPPING = YES;
415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
416 | ENABLE_NS_ASSERTIONS = NO;
417 | ENABLE_STRICT_OBJC_MSGSEND = YES;
418 | ENABLE_USER_SCRIPT_SANDBOXING = YES;
419 | GCC_C_LANGUAGE_STANDARD = gnu17;
420 | GCC_NO_COMMON_BLOCKS = YES;
421 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
422 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
423 | GCC_WARN_UNDECLARED_SELECTOR = YES;
424 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
425 | GCC_WARN_UNUSED_FUNCTION = YES;
426 | GCC_WARN_UNUSED_VARIABLE = YES;
427 | INFOPLIST_KEY_LSUIElement = YES;
428 | LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
429 | MACOSX_DEPLOYMENT_TARGET = 14.0;
430 | MTL_ENABLE_DEBUG_INFO = NO;
431 | MTL_FAST_MATH = YES;
432 | ONLY_ACTIVE_ARCH = YES;
433 | SDKROOT = macosx;
434 | SWIFT_COMPILATION_MODE = wholemodule;
435 | };
436 | name = Release;
437 | };
438 | 106CF5F12B86D08D00AACCBA /* Debug */ = {
439 | isa = XCBuildConfiguration;
440 | buildSettings = {
441 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
442 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
443 | ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
444 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
445 | CODE_SIGN_ENTITLEMENTS = QrSnapr/QrSnapr.entitlements;
446 | CODE_SIGN_IDENTITY = "Developer ID Application";
447 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application";
448 | CODE_SIGN_STYLE = Manual;
449 | COMBINE_HIDPI_IMAGES = YES;
450 | CURRENT_PROJECT_VERSION = 1.0.1;
451 | DEAD_CODE_STRIPPING = YES;
452 | DEVELOPMENT_ASSET_PATHS = "\"QrSnapr/Preview Content\"";
453 | DEVELOPMENT_TEAM = DMH2G7GCK5;
454 | "DEVELOPMENT_TEAM[sdk=macosx*]" = DMH2G7GCK5;
455 | ENABLE_HARDENED_RUNTIME = YES;
456 | ENABLE_PREVIEWS = YES;
457 | GENERATE_INFOPLIST_FILE = YES;
458 | INFOPLIST_KEY_CFBundleDisplayName = QrSnapr;
459 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
460 | INFOPLIST_KEY_NSHumanReadableCopyright = "";
461 | LD_RUNPATH_SEARCH_PATHS = (
462 | "$(inherited)",
463 | "@executable_path/../Frameworks",
464 | );
465 | MACOSX_DEPLOYMENT_TARGET = 13.5;
466 | MARKETING_VERSION = 1.0.0;
467 | PRODUCT_BUNDLE_IDENTIFIER = daggytech.QrSnapr;
468 | PRODUCT_NAME = "$(TARGET_NAME)";
469 | PROVISIONING_PROFILE_SPECIFIER = "";
470 | SWIFT_EMIT_LOC_STRINGS = YES;
471 | SWIFT_VERSION = 5.0;
472 | };
473 | name = Debug;
474 | };
475 | 106CF5F22B86D08D00AACCBA /* Release */ = {
476 | isa = XCBuildConfiguration;
477 | buildSettings = {
478 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
479 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
480 | ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
481 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
482 | CODE_SIGN_ENTITLEMENTS = QrSnapr/QrSnapr.entitlements;
483 | CODE_SIGN_IDENTITY = "Developer ID Application";
484 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application";
485 | CODE_SIGN_STYLE = Manual;
486 | COMBINE_HIDPI_IMAGES = YES;
487 | CURRENT_PROJECT_VERSION = 1.0.1;
488 | DEAD_CODE_STRIPPING = YES;
489 | DEVELOPMENT_ASSET_PATHS = "\"QrSnapr/Preview Content\"";
490 | DEVELOPMENT_TEAM = DMH2G7GCK5;
491 | "DEVELOPMENT_TEAM[sdk=macosx*]" = DMH2G7GCK5;
492 | ENABLE_HARDENED_RUNTIME = YES;
493 | ENABLE_PREVIEWS = YES;
494 | GENERATE_INFOPLIST_FILE = YES;
495 | INFOPLIST_KEY_CFBundleDisplayName = QrSnapr;
496 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
497 | INFOPLIST_KEY_NSHumanReadableCopyright = "";
498 | LD_RUNPATH_SEARCH_PATHS = (
499 | "$(inherited)",
500 | "@executable_path/../Frameworks",
501 | );
502 | MACOSX_DEPLOYMENT_TARGET = 13.5;
503 | MARKETING_VERSION = 1.0.0;
504 | PRODUCT_BUNDLE_IDENTIFIER = daggytech.QrSnapr;
505 | PRODUCT_NAME = "$(TARGET_NAME)";
506 | PROVISIONING_PROFILE_SPECIFIER = "";
507 | SWIFT_EMIT_LOC_STRINGS = YES;
508 | SWIFT_VERSION = 5.0;
509 | };
510 | name = Release;
511 | };
512 | 106CF5F42B86D08D00AACCBA /* Debug */ = {
513 | isa = XCBuildConfiguration;
514 | buildSettings = {
515 | BUNDLE_LOADER = "$(TEST_HOST)";
516 | CODE_SIGN_IDENTITY = "Developer ID Application";
517 | CODE_SIGN_STYLE = Manual;
518 | CURRENT_PROJECT_VERSION = 1;
519 | DEAD_CODE_STRIPPING = YES;
520 | DEVELOPMENT_TEAM = DMH2G7GCK5;
521 | GENERATE_INFOPLIST_FILE = YES;
522 | MACOSX_DEPLOYMENT_TARGET = 14.0;
523 | MARKETING_VERSION = 1.0;
524 | PRODUCT_BUNDLE_IDENTIFIER = daggytech.QrSnaprTests;
525 | PRODUCT_NAME = "$(TARGET_NAME)";
526 | SWIFT_EMIT_LOC_STRINGS = NO;
527 | SWIFT_VERSION = 5.0;
528 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/QrSnapr.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/QrSnapr";
529 | };
530 | name = Debug;
531 | };
532 | 106CF5F52B86D08D00AACCBA /* Release */ = {
533 | isa = XCBuildConfiguration;
534 | buildSettings = {
535 | BUNDLE_LOADER = "$(TEST_HOST)";
536 | CODE_SIGN_IDENTITY = "Developer ID Application";
537 | CODE_SIGN_STYLE = Manual;
538 | CURRENT_PROJECT_VERSION = 1;
539 | DEAD_CODE_STRIPPING = YES;
540 | DEVELOPMENT_TEAM = DMH2G7GCK5;
541 | GENERATE_INFOPLIST_FILE = YES;
542 | MACOSX_DEPLOYMENT_TARGET = 14.0;
543 | MARKETING_VERSION = 1.0;
544 | PRODUCT_BUNDLE_IDENTIFIER = daggytech.QrSnaprTests;
545 | PRODUCT_NAME = "$(TARGET_NAME)";
546 | SWIFT_EMIT_LOC_STRINGS = NO;
547 | SWIFT_VERSION = 5.0;
548 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/QrSnapr.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/QrSnapr";
549 | };
550 | name = Release;
551 | };
552 | 106CF5F72B86D08D00AACCBA /* Debug */ = {
553 | isa = XCBuildConfiguration;
554 | buildSettings = {
555 | CODE_SIGN_IDENTITY = "Developer ID Application";
556 | CODE_SIGN_STYLE = Manual;
557 | CURRENT_PROJECT_VERSION = 1;
558 | DEAD_CODE_STRIPPING = YES;
559 | DEVELOPMENT_TEAM = DMH2G7GCK5;
560 | GENERATE_INFOPLIST_FILE = YES;
561 | MARKETING_VERSION = 1.0;
562 | PRODUCT_BUNDLE_IDENTIFIER = daggytech.QrSnaprUITests;
563 | PRODUCT_NAME = "$(TARGET_NAME)";
564 | SWIFT_EMIT_LOC_STRINGS = NO;
565 | SWIFT_VERSION = 5.0;
566 | TEST_TARGET_NAME = QrSnapr;
567 | };
568 | name = Debug;
569 | };
570 | 106CF5F82B86D08D00AACCBA /* Release */ = {
571 | isa = XCBuildConfiguration;
572 | buildSettings = {
573 | CODE_SIGN_IDENTITY = "Developer ID Application";
574 | CODE_SIGN_STYLE = Manual;
575 | CURRENT_PROJECT_VERSION = 1;
576 | DEAD_CODE_STRIPPING = YES;
577 | DEVELOPMENT_TEAM = DMH2G7GCK5;
578 | GENERATE_INFOPLIST_FILE = YES;
579 | MARKETING_VERSION = 1.0;
580 | PRODUCT_BUNDLE_IDENTIFIER = daggytech.QrSnaprUITests;
581 | PRODUCT_NAME = "$(TARGET_NAME)";
582 | SWIFT_EMIT_LOC_STRINGS = NO;
583 | SWIFT_VERSION = 5.0;
584 | TEST_TARGET_NAME = QrSnapr;
585 | };
586 | name = Release;
587 | };
588 | /* End XCBuildConfiguration section */
589 |
590 | /* Begin XCConfigurationList section */
591 | 106CF5C62B86D08B00AACCBA /* Build configuration list for PBXProject "QrSnapr" */ = {
592 | isa = XCConfigurationList;
593 | buildConfigurations = (
594 | 106CF5EE2B86D08D00AACCBA /* Debug */,
595 | 106CF5EF2B86D08D00AACCBA /* Release */,
596 | );
597 | defaultConfigurationIsVisible = 0;
598 | defaultConfigurationName = Release;
599 | };
600 | 106CF5F02B86D08D00AACCBA /* Build configuration list for PBXNativeTarget "QrSnapr" */ = {
601 | isa = XCConfigurationList;
602 | buildConfigurations = (
603 | 106CF5F12B86D08D00AACCBA /* Debug */,
604 | 106CF5F22B86D08D00AACCBA /* Release */,
605 | );
606 | defaultConfigurationIsVisible = 0;
607 | defaultConfigurationName = Release;
608 | };
609 | 106CF5F32B86D08D00AACCBA /* Build configuration list for PBXNativeTarget "QrSnaprTests" */ = {
610 | isa = XCConfigurationList;
611 | buildConfigurations = (
612 | 106CF5F42B86D08D00AACCBA /* Debug */,
613 | 106CF5F52B86D08D00AACCBA /* Release */,
614 | );
615 | defaultConfigurationIsVisible = 0;
616 | defaultConfigurationName = Release;
617 | };
618 | 106CF5F62B86D08D00AACCBA /* Build configuration list for PBXNativeTarget "QrSnaprUITests" */ = {
619 | isa = XCConfigurationList;
620 | buildConfigurations = (
621 | 106CF5F72B86D08D00AACCBA /* Debug */,
622 | 106CF5F82B86D08D00AACCBA /* Release */,
623 | );
624 | defaultConfigurationIsVisible = 0;
625 | defaultConfigurationName = Release;
626 | };
627 | /* End XCConfigurationList section */
628 |
629 | /* Begin XCRemoteSwiftPackageReference section */
630 | 10BC27382BBFA20D003E9EA6 /* XCRemoteSwiftPackageReference "KeyboardShortcuts" */ = {
631 | isa = XCRemoteSwiftPackageReference;
632 | repositoryURL = "https://github.com/sindresorhus/KeyboardShortcuts";
633 | requirement = {
634 | kind = upToNextMajorVersion;
635 | minimumVersion = 2.0.0;
636 | };
637 | };
638 | /* End XCRemoteSwiftPackageReference section */
639 |
640 | /* Begin XCSwiftPackageProductDependency section */
641 | 10BC273D2BBFA25A003E9EA6 /* KeyboardShortcuts */ = {
642 | isa = XCSwiftPackageProductDependency;
643 | package = 10BC27382BBFA20D003E9EA6 /* XCRemoteSwiftPackageReference "KeyboardShortcuts" */;
644 | productName = KeyboardShortcuts;
645 | };
646 | /* End XCSwiftPackageProductDependency section */
647 | };
648 | rootObject = 106CF5C32B86D08B00AACCBA /* Project object */;
649 | }
650 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 2007
3 |
4 | Copyright (C) 2024 Arnav Jindal.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU Affero General Public License is a free, copyleft license for
11 | software and other kinds of works, specifically designed to ensure
12 | cooperation with the community in the case of network server software.
13 |
14 | The licenses for most software and other practical works are designed
15 | to take away your freedom to share and change the works. By contrast,
16 | our General Public Licenses are intended to guarantee your freedom to
17 | share and change all versions of a program--to make sure it remains free
18 | software for all its users.
19 |
20 | When we speak of free software, we are referring to freedom, not
21 | price. Our General Public Licenses are designed to make sure that you
22 | have the freedom to distribute copies of free software (and charge for
23 | them if you wish), that you receive source code or can get it if you
24 | want it, that you can change the software or use pieces of it in new
25 | free programs, and that you know you can do these things.
26 |
27 | Developers that use our General Public Licenses protect your rights
28 | with two steps: (1) assert copyright on the software, and (2) offer
29 | you this License which gives you legal permission to copy, distribute
30 | and/or modify the software.
31 |
32 | A secondary benefit of defending all users' freedom is that
33 | improvements made in alternate versions of the program, if they
34 | receive widespread use, become available for other developers to
35 | incorporate. Many developers of free software are heartened and
36 | encouraged by the resulting cooperation. However, in the case of
37 | software used on network servers, this result may fail to come about.
38 | The GNU General Public License permits making a modified version and
39 | letting the public access it on a server without ever releasing its
40 | source code to the public.
41 |
42 | The GNU Affero General Public License is designed specifically to
43 | ensure that, in such cases, the modified source code becomes available
44 | to the community. It requires the operator of a network server to
45 | provide the source code of the modified version running there to the
46 | users of that server. Therefore, public use of a modified version, on
47 | a publicly accessible server, gives the public access to the source
48 | code of the modified version.
49 |
50 | An older license, called the Affero General Public License and
51 | published by Affero, was designed to accomplish similar goals. This is
52 | a different license, not a version of the Affero GPL, but Affero has
53 | released a new version of the Affero GPL which permits relicensing under
54 | this license.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | TERMS AND CONDITIONS
60 |
61 | 1. Definitions.
62 |
63 | "This License" refers to version 3 of the GNU Affero General Public License.
64 |
65 | "Copyright" also means copyright-like laws that apply to other kinds of
66 | works, such as semiconductor masks.
67 |
68 | "The Program" refers to any copyrightable work licensed under this
69 | License. Each licensee is addressed as "you". "Licensees" and
70 | "recipients" may be individuals or organizations.
71 |
72 | To "modify" a work means to copy from or adapt all or part of the work
73 | in a fashion requiring copyright permission, other than the making of an
74 | exact copy. The resulting work is called a "modified version" of the
75 | earlier work or a work "based on" the earlier work.
76 |
77 | A "covered work" means either the unmodified Program or a work based
78 | on the Program.
79 |
80 | To "propagate" a work means to do anything with it that, without
81 | permission, would make you directly or secondarily liable for
82 | infringement under applicable copyright law, except executing it on a
83 | computer or modifying a private copy. Propagation includes copying,
84 | distribution (with or without modification), making available to the
85 | public, and in some countries other activities as well.
86 |
87 | To "convey" a work means any kind of propagation that enables other
88 | parties to make or receive copies. Mere interaction with a user through
89 | a computer network, with no transfer of a copy, is not conveying.
90 |
91 | An interactive user interface displays "Appropriate Legal Notices"
92 | to the extent that it includes a convenient and prominently visible
93 | feature that (1) displays an appropriate copyright notice, and (2)
94 | tells the user that there is no warranty for the work (except to the
95 | extent that warranties are provided), that licensees may convey the
96 | work under this License, and how to view a copy of this License. If
97 | the interface presents a list of user commands or options, such as a
98 | menu, a prominent item in the list meets this criterion.
99 |
100 | 1. Source Code.
101 |
102 | The "source code" for a work means the preferred form of the work
103 | for making modifications to it. "Object code" means any non-source
104 | form of a work.
105 |
106 | A "Standard Interface" means an interface that either is an official
107 | standard defined by a recognized standards body, or, in the case of
108 | interfaces specified for a particular programming language, one that
109 | is widely used among developers working in that language.
110 |
111 | The "System Libraries" of an executable work include anything, other
112 | than the work as a whole, that (a) is included in the normal form of
113 | packaging a Major Component, but which is not part of that Major
114 | Component, and (b) serves only to enable use of the work with that
115 | Major Component, or to implement a Standard Interface for which an
116 | implementation is available to the public in source code form. A
117 | "Major Component", in this context, means a major essential component
118 | (kernel, window system, and so on) of the specific operating system
119 | (if any) on which the executable work runs, or a compiler used to
120 | produce the work, or an object code interpreter used to run it.
121 |
122 | The "Corresponding Source" for a work in object code form means all
123 | the source code needed to generate, install, and (for an executable
124 | work) run the object code and to modify the work, including scripts to
125 | control those activities. However, it does not include the work's
126 | System Libraries, or general-purpose tools or generally available free
127 | programs which are used unmodified in performing those activities but
128 | which are not part of the work. For example, Corresponding Source
129 | includes interface definition files associated with source files for
130 | the work, and the source code for shared libraries and dynamically
131 | linked subprograms that the work is specifically designed to require,
132 | such as by intimate data communication or control flow between those
133 | subprograms and other parts of the work.
134 |
135 | The Corresponding Source need not include anything that users
136 | can regenerate automatically from other parts of the Corresponding
137 | Source.
138 |
139 | The Corresponding Source for a work in source code form is that
140 | same work.
141 |
142 | 2. Basic Permissions.
143 |
144 | All rights granted under this License are granted for the term of
145 | copyright on the Program, and are irrevocable provided the stated
146 | conditions are met. This License explicitly affirms your unlimited
147 | permission to run the unmodified Program. The output from running a
148 | covered work is covered by this License only if the output, given its
149 | content, constitutes a covered work. This License acknowledges your
150 | rights of fair use or other equivalent, as provided by copyright law.
151 |
152 | You may make, run and propagate covered works that you do not
153 | convey, without conditions so long as your license otherwise remains
154 | in force. You may convey covered works to others for the sole purpose
155 | of having them make modifications exclusively for you, or provide you
156 | with facilities for running those works, provided that you comply with
157 | the terms of this License in conveying all material for which you do
158 | not control copyright. Those thus making or running the covered works
159 | for you must do so exclusively on your behalf, under your direction
160 | and control, on terms that prohibit them from making any copies of
161 | your copyrighted material outside their relationship with you.
162 |
163 | Conveying under any other circumstances is permitted solely under
164 | the conditions stated below. Sublicensing is not allowed; section 10
165 | makes it unnecessary.
166 |
167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168 |
169 | No covered work shall be deemed part of an effective technological
170 | measure under any applicable law fulfilling obligations under article
171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172 | similar laws prohibiting or restricting circumvention of such
173 | measures.
174 |
175 | When you convey a covered work, you waive any legal power to forbid
176 | circumvention of technological measures to the extent such circumvention
177 | is effected by exercising rights under this License with respect to
178 | the covered work, and you disclaim any intention to limit operation or
179 | modification of the work as a means of enforcing, against the work's
180 | users, your or third parties' legal rights to forbid circumvention of
181 | technological measures.
182 |
183 | 4. Conveying Verbatim Copies.
184 |
185 | You may convey verbatim copies of the Program's source code as you
186 | receive it, in any medium, provided that you conspicuously and
187 | appropriately publish on each copy an appropriate copyright notice;
188 | keep intact all notices stating that this License and any
189 | non-permissive terms added in accord with section 7 apply to the code;
190 | keep intact all notices of the absence of any warranty; and give all
191 | recipients a copy of this License along with the Program.
192 |
193 | You may charge any price or no price for each copy that you convey,
194 | and you may offer support or warranty protection for a fee.
195 |
196 | 5. Conveying Modified Source Versions.
197 |
198 | You may convey a work based on the Program, or the modifications to
199 | produce it from the Program, in the form of source code under the
200 | terms of section 4, provided that you also meet all of these conditions:
201 |
202 | a) The work must carry prominent notices stating that you modified
203 | it, and giving a relevant date.
204 |
205 | b) The work must carry prominent notices stating that it is
206 | released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to
207 | "keep intact all notices".
208 |
209 | c) You must license the entire work, as a whole, under this
210 | License to anyone who comes into possession of a copy. This
211 | License will therefore apply, along with any applicable section 7
212 | additional terms, to the whole of the work, and all its parts,
213 | regardless of how they are packaged. This License gives no
214 | permission to license the work in any other way, but it does not
215 | invalidate such permission if you have separately received it.
216 |
217 | d) If the work has interactive user interfaces, each must display
218 | Appropriate Legal Notices; however, if the Program has interactive
219 | interfaces that do not display Appropriate Legal Notices, your
220 | work need not make them do so.
221 |
222 | A compilation of a covered work with other separate and independent
223 | works, which are not by their nature extensions of the covered work,
224 | and which are not combined with it such as to form a larger program,
225 | in or on a volume of a storage or distribution medium, is called an
226 | "aggregate" if the compilation and its resulting copyright are not
227 | used to limit the access or legal rights of the compilation's users
228 | beyond what the individual works permit. Inclusion of a covered work
229 | in an aggregate does not cause this License to apply to the other
230 | parts of the aggregate.
231 |
232 | 6. Conveying Non-Source Forms.
233 |
234 | You may convey a covered work in object code form under the terms
235 | of sections 4 and 5, provided that you also convey the
236 | machine-readable Corresponding Source under the terms of this License,
237 | in one of these ways:
238 |
239 | a) Convey the object code in, or embodied in, a physical product
240 | (including a physical distribution medium), accompanied by the
241 | Corresponding Source fixed on a durable physical medium
242 | customarily used for software interchange.
243 |
244 | b) Convey the object code in, or embodied in, a physical product
245 | (including a physical distribution medium), accompanied by a
246 | written offer, valid for at least three years and valid for as
247 | long as you offer spare parts or customer support for that product
248 | model, to give anyone who possesses the object code either (1) a
249 | copy of the Corresponding Source for all the software in the
250 | product that is covered by this License, on a durable physical
251 | medium customarily used for software interchange, for a price no
252 | more than your reasonable cost of physically performing this
253 | conveying of source, or (2) access to copy the
254 | Corresponding Source from a network server at no charge.
255 |
256 | c) Convey individual copies of the object code with a copy of the
257 | written offer to provide the Corresponding Source. This
258 | alternative is allowed only occasionally and noncommercially, and
259 | only if you received the object code with such an offer, in accord
260 | with subsection 6b.
261 |
262 | d) Convey the object code by offering access from a designated
263 | place (gratis or for a charge), and offer equivalent access to the
264 | Corresponding Source in the same way through the same place at no
265 | further charge. You need not require recipients to copy the
266 | Corresponding Source along with the object code. If the place to
267 | copy the object code is a network server, the Corresponding Source
268 | may be on a different server (operated by you or a third party)
269 | that supports equivalent copying facilities, provided you maintain
270 | clear directions next to the object code saying where to find the
271 | Corresponding Source. Regardless of what server hosts the
272 | Corresponding Source, you remain obligated to ensure that it is
273 | available for as long as needed to satisfy these requirements.
274 |
275 | e) Convey the object code using peer-to-peer transmission, provided
276 | you inform other peers where the object code and Corresponding
277 | Source of the work are being offered to the general public at no
278 | charge under subsection 6d.
279 |
280 | A separable portion of the object code, whose source code is excluded
281 | from the Corresponding Source as a System Library, need not be
282 | included in conveying the object code work.
283 |
284 | A "User Product" is either (1) a "consumer product", which means any
285 | tangible personal property which is normally used for personal, family,
286 | or household purposes, or (2) anything designed or sold for incorporation
287 | into a dwelling. In determining whether a product is a consumer product,
288 | doubtful cases shall be resolved in favor of coverage. For a particular
289 | product received by a particular user, "normally used" refers to a
290 | typical or common use of that class of product, regardless of the status
291 | of the particular user or of the way in which the particular user
292 | actually uses, or expects or is expected to use, the product. A product
293 | is a consumer product regardless of whether the product has substantial
294 | commercial, industrial or non-consumer uses, unless such uses represent
295 | the only significant mode of use of the product.
296 |
297 | "Installation Information" for a User Product means any methods,
298 | procedures, authorization keys, or other information required to install
299 | and execute modified versions of a covered work in that User Product from
300 | a modified version of its Corresponding Source. The information must
301 | suffice to ensure that the continued functioning of the modified object
302 | code is in no case prevented or interfered with solely because
303 | modification has been made.
304 |
305 | If you convey an object code work under this section in, or with, or
306 | specifically for use in, a User Product, and the conveying occurs as
307 | part of a transaction in which the right of possession and use of the
308 | User Product is transferred to the recipient in perpetuity or for a
309 | fixed term (regardless of how the transaction is characterized), the
310 | Corresponding Source conveyed under this section must be accompanied
311 | by the Installation Information. But this requirement does not apply
312 | if neither you nor any third party retains the ability to install
313 | modified object code on the User Product (for example, the work has
314 | been installed in ROM).
315 |
316 | The requirement to provide Installation Information does not include a
317 | requirement to continue to provide support service, warranty, or updates
318 | for a work that has been modified or installed by the recipient, or for
319 | the User Product in which it has been modified or installed. Access to a
320 | network may be denied when the modification itself materially and
321 | adversely affects the operation of the network or violates the rules and
322 | protocols for communication across the network.
323 |
324 | Corresponding Source conveyed, and Installation Information provided,
325 | in accord with this section must be in a format that is publicly
326 | documented (and with an implementation available to the public in
327 | source code form), and must require no special password or key for
328 | unpacking, reading or copying.
329 |
330 | 7. Additional Terms.
331 |
332 | "Additional permissions" are terms that supplement the terms of this
333 | License by making exceptions from one or more of its conditions.
334 | Additional permissions that are applicable to the entire Program shall
335 | be treated as though they were included in this License, to the extent
336 | that they are valid under applicable law. If additional permissions
337 | apply only to part of the Program, that part may be used separately
338 | under those permissions, but the entire Program remains governed by
339 | this License without regard to the additional permissions.
340 |
341 | When you convey a copy of a covered work, you may at your option
342 | remove any additional permissions from that copy, or from any part of
343 | it. (Additional permissions may be written to require their own
344 | removal in certain cases when you modify the work.) You may place
345 | additional permissions on material, added by you to a covered work,
346 | for which you have or can give appropriate copyright permission.
347 |
348 | Notwithstanding any other provision of this License, for material you
349 | add to a covered work, you may (if authorized by the copyright holders of
350 | that material) supplement the terms of this License with terms:
351 |
352 | a) Disclaiming warranty or limiting liability differently from the
353 | terms of sections 15 and 16 of this License; or
354 |
355 | b) Requiring preservation of specified reasonable legal notices or
356 | author attributions in that material or in the Appropriate Legal
357 | Notices displayed by works containing it; or
358 |
359 | c) Prohibiting misrepresentation of the origin of that material, or
360 | requiring that modified versions of such material be marked in
361 | reasonable ways as different from the original version; or
362 |
363 | d) Limiting the use for publicity purposes of names of licensors or
364 | authors of the material; or
365 |
366 | e) Declining to grant rights under trademark law for use of some
367 | trade names, trademarks, or service marks; or
368 |
369 | f) Requiring indemnification of licensors and authors of that
370 | material by anyone who conveys the material (or modified versions of
371 | it) with contractual assumptions of liability to the recipient, for
372 | any liability that these contractual assumptions directly impose on
373 | those licensors and authors.
374 |
375 | All other non-permissive additional terms are considered "further
376 | restrictions" within the meaning of section 10. If the Program as you
377 | received it, or any part of it, contains a notice stating that it is
378 | governed by this License along with a term that is a further
379 | restriction, you may remove that term. If a license document contains
380 | a further restriction but permits relicensing or conveying under this
381 | License, you may add to a covered work material governed by the terms
382 | of that license document, provided that the further restriction does
383 | not survive such relicensing or conveying.
384 |
385 | If you add terms to a covered work in accord with this section, you
386 | must place, in the relevant source files, a statement of the
387 | additional terms that apply to those files, or a notice indicating
388 | where to find the applicable terms.
389 |
390 | Additional terms, permissive or non-permissive, may be stated in the
391 | form of a separately written license, or stated as exceptions;
392 | the above requirements apply either way.
393 |
394 | 8. Termination.
395 |
396 | You may not propagate or modify a covered work except as expressly
397 | provided under this License. Any attempt otherwise to propagate or
398 | modify it is void, and will automatically terminate your rights under
399 | this License (including any patent licenses granted under the third
400 | paragraph of section 11).
401 |
402 | However, if you cease all violation of this License, then your
403 | license from a particular copyright holder is reinstated (a)
404 | provisionally, unless and until the copyright holder explicitly and
405 | finally terminates your license, and (b) permanently, if the copyright
406 | holder fails to notify you of the violation by some reasonable means
407 | prior to 60 days after the cessation.
408 |
409 | Moreover, your license from a particular copyright holder is
410 | reinstated permanently if the copyright holder notifies you of the
411 | violation by some reasonable means, this is the first time you have
412 | received notice of violation of this License (for any work) from that
413 | copyright holder, and you cure the violation prior to 30 days after
414 | your receipt of the notice.
415 |
416 | Termination of your rights under this section does not terminate the
417 | licenses of parties who have received copies or rights from you under
418 | this License. If your rights have been terminated and not permanently
419 | reinstated, you do not qualify to receive new licenses for the same
420 | material under section 10.
421 |
422 | 9. Acceptance Not Required for Having Copies.
423 |
424 | You are not required to accept this License in order to receive or
425 | run a copy of the Program. Ancillary propagation of a covered work
426 | occurring solely as a consequence of using peer-to-peer transmission
427 | to receive a copy likewise does not require acceptance. However,
428 | nothing other than this License grants you permission to propagate or
429 | modify any covered work. These actions infringe copyright if you do
430 | not accept this License. Therefore, by modifying or propagating a
431 | covered work, you indicate your acceptance of this License to do so.
432 |
433 | 10. Automatic Licensing of Downstream Recipients.
434 |
435 | Each time you convey a covered work, the recipient automatically
436 | receives a license from the original licensors, to run, modify and
437 | propagate that work, subject to this License. You are not responsible
438 | for enforcing compliance by third parties with this License.
439 |
440 | An "entity transaction" is a transaction transferring control of an
441 | organization, or substantially all assets of one, or subdividing an
442 | organization, or merging organizations. If propagation of a covered
443 | work results from an entity transaction, each party to that
444 | transaction who receives a copy of the work also receives whatever
445 | licenses to the work the party's predecessor in interest had or could
446 | give under the previous paragraph, plus a right to possession of the
447 | Corresponding Source of the work from the predecessor in interest, if
448 | the predecessor has it or can get it with reasonable efforts.
449 |
450 | You may not impose any further restrictions on the exercise of the
451 | rights granted or affirmed under this License. For example, you may
452 | not impose a license fee, royalty, or other charge for exercise of
453 | rights granted under this License, and you may not initiate litigation
454 | (including a cross-claim or counterclaim in a lawsuit) alleging that
455 | any patent claim is infringed by making, using, selling, offering for
456 | sale, or importing the Program or any portion of it.
457 |
458 | 11. Patents.
459 |
460 | A "contributor" is a copyright holder who authorizes use under this
461 | License of the Program or a work on which the Program is based. The
462 | work thus licensed is called the contributor's "contributor version".
463 |
464 | A contributor's "essential patent claims" are all patent claims
465 | owned or controlled by the contributor, whether already acquired or
466 | hereafter acquired, that would be infringed by some manner, permitted
467 | by this License, of making, using, or selling its contributor version,
468 | but do not include claims that would be infringed only as a
469 | consequence of further modification of the contributor version. For
470 | purposes of this definition, "control" includes the right to grant
471 | patent sublicenses in a manner consistent with the requirements of
472 | this License.
473 |
474 | Each contributor grants you a non-exclusive, worldwide, royalty-free
475 | patent license under the contributor's essential patent claims, to
476 | make, use, sell, offer for sale, import and otherwise run, modify and
477 | propagate the contents of its contributor version.
478 |
479 | In the following three paragraphs, a "patent license" is any express
480 | agreement or commitment, however denominated, not to enforce a patent
481 | (such as an express permission to practice a patent or covenant not to
482 | sue for patent infringement). To "grant" such a patent license to a
483 | party means to make such an agreement or commitment not to enforce a
484 | patent against the party.
485 |
486 | If you convey a covered work, knowingly relying on a patent license,
487 | and the Corresponding Source of the work is not available for anyone
488 | to copy, free of charge and under the terms of this License, through a
489 | publicly available network server or other readily accessible means,
490 | then you must either (1) cause the Corresponding Source to be so
491 | available, or (2) arrange to deprive yourself of the benefit of the
492 | patent license for this particular work, or (3) arrange, in a manner
493 | consistent with the requirements of this License, to extend the patent
494 | license to downstream recipients. "Knowingly relying" means you have
495 | actual knowledge that, but for the patent license, your conveying the
496 | covered work in a country, or your recipient's use of the covered work
497 | in a country, would infringe one or more identifiable patents in that
498 | country that you have reason to believe are valid.
499 |
500 | If, pursuant to or in connection with a single transaction or
501 | arrangement, you convey, or propagate by procuring conveyance of, a
502 | covered work, and grant a patent license to some of the parties
503 | receiving the covered work authorizing them to use, propagate, modify
504 | or convey a specific copy of the covered work, then the patent license
505 | you grant is automatically extended to all recipients of the covered
506 | work and works based on it.
507 |
508 | A patent license is "discriminatory" if it does not include within
509 | the scope of its coverage, prohibits the exercise of, or is
510 | conditioned on the non-exercise of one or more of the rights that are
511 | specifically granted under this License. You may not convey a covered
512 | work if you are a party to an arrangement with a third party that is
513 | in the business of distributing software, under which you make payment
514 | to the third party based on the extent of your activity of conveying
515 | the work, and under which the third party grants, to any of the
516 | parties who would receive the covered work from you, a discriminatory
517 | patent license (a) in connection with copies of the covered work
518 | conveyed by you (or copies made from those copies), or (b) primarily
519 | for and in connection with specific products or compilations that
520 | contain the covered work, unless you entered into that arrangement,
521 | or that patent license was granted, prior to 28 March 2007.
522 |
523 | Nothing in this License shall be construed as excluding or limiting
524 | any implied license or other defenses to infringement that may
525 | otherwise be available to you under applicable patent law.
526 |
527 | 12. No Surrender of Others' Freedom.
528 |
529 | If conditions are imposed on you (whether by court order, agreement or
530 | otherwise) that contradict the conditions of this License, they do not
531 | excuse you from the conditions of this License. If you cannot convey a
532 | covered work so as to satisfy simultaneously your obligations under this
533 | License and any other pertinent obligations, then as a consequence you may
534 | not convey it at all. For example, if you agree to terms that obligate you
535 | to collect a royalty for further conveying from those to whom you convey
536 | the Program, the only way you could satisfy both those terms and this
537 | License would be to refrain entirely from conveying the Program.
538 |
539 | 13. Remote Network Interaction; Use with the GNU General Public License.
540 |
541 | Notwithstanding any other provision of this License, if you modify the
542 | Program, your modified version must prominently offer all users
543 | interacting with it remotely through a computer network (if your version
544 | supports such interaction) an opportunity to receive the Corresponding
545 | Source of your version by providing access to the Corresponding Source
546 | from a network server at no charge, through some standard or customary
547 | means of facilitating copying of software. This Corresponding Source
548 | shall include the Corresponding Source for any work covered by version 3
549 | of the GNU General Public License that is incorporated pursuant to the
550 | following paragraph.
551 |
552 | Notwithstanding any other provision of this License, you have
553 | permission to link or combine any covered work with a work licensed
554 | under version 3 of the GNU General Public License into a single
555 | combined work, and to convey the resulting work. The terms of this
556 | License will continue to apply to the part which is the covered work,
557 | but the work with which it is combined will remain governed by version
558 | 3 of the GNU General Public License.
559 |
560 | 14. Revised Versions of this License.
561 |
562 | The Free Software Foundation may publish revised and/or new versions of
563 | the GNU Affero General Public License from time to time. Such new versions
564 | will be similar in spirit to the present version, but may differ in detail to
565 | address new problems or concerns.
566 |
567 | Each version is given a distinguishing version number. If the
568 | Program specifies that a certain numbered version of the GNU Affero General
569 | Public License "or any later version" applies to it, you have the
570 | option of following the terms and conditions either of that numbered
571 | version or of any later version published by the Free Software
572 | Foundation. If the Program does not specify a version number of the
573 | GNU Affero General Public License, you may choose any version ever published
574 | by the Free Software Foundation.
575 |
576 | If the Program specifies that a proxy can decide which future
577 | versions of the GNU Affero General Public License can be used, that proxy's
578 | public statement of acceptance of a version permanently authorizes you
579 | to choose that version for the Program.
580 |
581 | Later license versions may give you additional or different
582 | permissions. However, no additional obligations are imposed on any
583 | author or copyright holder as a result of your choosing to follow a
584 | later version.
585 |
586 | 15. Disclaimer of Warranty.
587 |
588 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
589 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
590 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
591 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
592 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
593 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
594 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
595 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
596 |
597 | 16. Limitation of Liability.
598 |
599 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
600 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
601 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
602 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
603 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
604 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
605 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
606 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
607 | SUCH DAMAGES.
608 |
609 | 17. Interpretation of Sections 15 and 16.
610 |
611 | If the disclaimer of warranty and limitation of liability provided
612 | above cannot be given local legal effect according to their terms,
613 | reviewing courts shall apply local law that most closely approximates
614 | an absolute waiver of all civil liability in connection with the
615 | Program, unless a warranty or assumption of liability accompanies a
616 | copy of the Program in return for a fee.
617 |
618 | END OF TERMS AND CONDITIONS
619 |
620 | How to Apply These Terms to Your New Programs
621 |
622 | If you develop a new program, and you want it to be of the greatest
623 | possible use to the public, the best way to achieve this is to make it
624 | free software which everyone can redistribute and change under these terms.
625 |
626 | To do so, attach the following notices to the program. It is safest
627 | to attach them to the start of each source file to most effectively
628 | state the exclusion of warranty; and each file should have at least
629 | the "copyright" line and a pointer to where the full notice is found.
630 |
631 |
632 | Copyright (C)
633 |
634 | This program is free software: you can redistribute it and/or modify
635 | it under the terms of the GNU Affero General Public License as published
636 | by the Free Software Foundation, either version 3 of the License, or
637 | (at your option) any later version.
638 |
639 | This program is distributed in the hope that it will be useful,
640 | but WITHOUT ANY WARRANTY; without even the implied warranty of
641 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
642 | GNU Affero General Public License for more details.
643 |
644 | You should have received a copy of the GNU Affero General Public License
645 | along with this program. If not, see .
646 |
647 | Also add information on how to contact you by electronic and paper mail.
648 |
649 | If your software can interact with users remotely through a computer
650 | network, you should also make sure that it provides a way for users to
651 | get its source. For example, if your program is a web application, its
652 | interface could display a "Source" link that leads users to an archive
653 | of the code. There are many ways you could offer source, and different
654 | solutions will be better for different programs; see section 13 for the
655 | specific requirements.
656 |
657 | You should also get your employer (if you work as a programmer) or school,
658 | if any, to sign a "copyright disclaimer" for the program, if necessary.
659 | For more information on this, and how to apply and follow the GNU AGPL, see
660 | .
661 |
--------------------------------------------------------------------------------