├── .github ├── FUNDING.yml └── workflows │ └── ci-mac.yaml ├── Assets ├── Notarize.psd └── MainWindow.png ├── Notarize ├── UI │ ├── Images │ │ ├── Icon.icns │ │ └── Accounts.icns │ └── Base.lproj │ │ ├── Notarize.AboutWindowController.xib │ │ ├── Notarize.AccountWindowController.xib │ │ ├── Notarize.MainWindowController.xib │ │ └── Notarize.HistoryViewController.xib ├── Notarize.entitlements ├── Info.plist └── Classes │ ├── IsEmpty.swift │ ├── IsNotEmpty.swift │ ├── AboutWindowController.swift │ ├── ApplicationDelegate.swift │ ├── Account.swift │ ├── HistoryItem.swift │ ├── Keychain.swift │ ├── AccountWindowController.swift │ ├── Preferences.swift │ ├── ALTool.swift │ ├── MainWindowController.swift │ └── HistoryViewController.swift ├── .travis.yml ├── Notarize.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── xcshareddata │ └── xcschemes │ │ └── Notarize.xcscheme └── project.pbxproj ├── .gitmodules ├── .gitignore ├── LICENSE ├── README.md └── CODE_OF_CONDUCT.md /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: macmade 2 | -------------------------------------------------------------------------------- /Assets/Notarize.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macmade/Notarize/HEAD/Assets/Notarize.psd -------------------------------------------------------------------------------- /Assets/MainWindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macmade/Notarize/HEAD/Assets/MainWindow.png -------------------------------------------------------------------------------- /Notarize/UI/Images/Icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macmade/Notarize/HEAD/Notarize/UI/Images/Icon.icns -------------------------------------------------------------------------------- /Notarize/UI/Images/Accounts.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/macmade/Notarize/HEAD/Notarize/UI/Images/Accounts.icns -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | xcode_project: Notarize.xcodeproj 3 | xcode_scheme: Notarize 4 | osx_image: xcode12 5 | script: 6 | - xcodebuild build -project Notarize.xcodeproj -scheme Notarize 7 | -------------------------------------------------------------------------------- /Notarize/Notarize.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Notarize.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Submodules/xcconfig"] 2 | path = Submodules/xcconfig 3 | url = https://github.com/macmade/xcconfig 4 | [submodule "Submodules/GitHubUpdates"] 5 | path = Submodules/GitHubUpdates 6 | url = https://github.com/macmade/GitHubUpdates.git 7 | -------------------------------------------------------------------------------- /Notarize.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Mac Finder 2 | .DS_Store 3 | .Trashes 4 | Icon? 5 | 6 | # Thumbnails 7 | ._* 8 | 9 | # Files that might appear on external disk 10 | .Spotlight-V100 11 | .Trashes 12 | 13 | # Xcode 14 | *.pbxuser 15 | *.mode1v3 16 | *.mode2v3 17 | *.perspectivev3 18 | *.xccheckout 19 | *.profraw 20 | !default.pbxuser 21 | !default.mode1v3 22 | !default.mode2v3 23 | !default.perspectivev3 24 | xcuserdata 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2021 Jean-David Gadina - www.xs-labs.com 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /.github/workflows/ci-mac.yaml: -------------------------------------------------------------------------------- 1 | name: ci-mac 2 | on: [push] 3 | jobs: 4 | ci: 5 | runs-on: macos-latest 6 | strategy: 7 | matrix: 8 | run-config: 9 | - { scheme: 'Notarize', configuration: 'Debug', project: 'Notarize.xcodeproj', build: 1, analyze: 1, test: 0, info: 1, destination: 'platform=macOS' } 10 | - { scheme: 'Notarize', configuration: 'Release', project: 'Notarize.xcodeproj', build: 1, analyze: 1, test: 0, info: 1, destination: 'platform=macOS' } 11 | steps: 12 | 13 | - uses: actions/checkout@v1 14 | with: 15 | submodules: 'recursive' 16 | 17 | - uses: macmade/action-xcodebuild@v1.0.0 18 | 19 | - uses: macmade/action-slack@v1.0.0 20 | if: ${{ always() }} 21 | env: 22 | SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} 23 | with: 24 | channel: '#ci' 25 | status: ${{ job.status }} 26 | title: ${{ matrix.run-config[ 'scheme' ] }} - ${{ matrix.run-config[ 'configuration' ] }} 27 | -------------------------------------------------------------------------------- /Notarize/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | Icon 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleVersion 22 | 49 23 | LSApplicationCategoryType 24 | public.app-category.developer-tools 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2020 XS-Labs. All rights reserved. 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Notarize 2 | ======== 3 | 4 | [![Build Status](https://img.shields.io/github/actions/workflow/status/macmade/Notarize/ci-mac.yaml?label=macOS&logo=apple)](https://github.com/macmade/Notarize/actions/workflows/ci-mac.yaml) 5 | [![Issues](http://img.shields.io/github/issues/macmade/Notarize.svg?logo=github)](https://github.com/macmade/Notarize/issues) 6 | ![Status](https://img.shields.io/badge/status-active-brightgreen.svg?logo=git) 7 | ![License](https://img.shields.io/badge/license-mit-brightgreen.svg?logo=open-source-initiative) 8 | [![Contact](https://img.shields.io/badge/follow-@macmade-blue.svg?logo=twitter&style=social)](https://twitter.com/macmade) 9 | [![Sponsor](https://img.shields.io/badge/sponsor-macmade-pink.svg?logo=github-sponsors&style=social)](https://github.com/sponsors/macmade) 10 | 11 | ### About 12 | 13 | Notarization status monitoring tool for macOS, supporting multiple developer accounts. 14 | 15 | ![Main Window](Assets/MainWindow.png "Main Window") 16 | 17 | License 18 | ------- 19 | 20 | Project is released under the terms of the MIT License. 21 | 22 | Repository Infos 23 | ---------------- 24 | 25 | Owner: Jean-David Gadina - XS-Labs 26 | Web: www.xs-labs.com 27 | Blog: www.noxeos.com 28 | Twitter: @macmade 29 | GitHub: github.com/macmade 30 | LinkedIn: ch.linkedin.com/in/macmade/ 31 | StackOverflow: stackoverflow.com/users/182676/macmade 32 | -------------------------------------------------------------------------------- /Notarize/Classes/IsEmpty.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 DigiDNA - www.imazing.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | class IsEmpty: ValueTransformer 28 | { 29 | override class func transformedValueClass() -> AnyClass 30 | { 31 | return NSNumber.self 32 | } 33 | 34 | override class func allowsReverseTransformation() -> Bool 35 | { 36 | return false 37 | } 38 | 39 | override func transformedValue( _ value: Any? ) -> Any? 40 | { 41 | if let array = value as? NSArray 42 | { 43 | return array.count == 0 44 | } 45 | else if let set = value as? NSSet 46 | { 47 | return set.count == 0 48 | } 49 | else if let dictionary = value as? NSDictionary 50 | { 51 | return dictionary.count == 0 52 | } 53 | else if let string = value as? String 54 | { 55 | return string.count == 0 56 | } 57 | 58 | return true 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Notarize/Classes/IsNotEmpty.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 DigiDNA - www.imazing.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | class IsNotEmpty: ValueTransformer 28 | { 29 | override class func transformedValueClass() -> AnyClass 30 | { 31 | return NSNumber.self 32 | } 33 | 34 | override class func allowsReverseTransformation() -> Bool 35 | { 36 | return false 37 | } 38 | 39 | override func transformedValue( _ value: Any? ) -> Any? 40 | { 41 | if let array = value as? NSArray 42 | { 43 | return array.count > 0 44 | } 45 | else if let set = value as? NSSet 46 | { 47 | return set.count > 0 48 | } 49 | else if let dictionary = value as? NSDictionary 50 | { 51 | return dictionary.count > 0 52 | } 53 | else if let string = value as? String 54 | { 55 | return string.count > 0 56 | } 57 | 58 | return false 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Notarize/Classes/AboutWindowController.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2020 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | public class AboutWindowController: NSWindowController 28 | { 29 | @objc private dynamic var name: String? 30 | @objc private dynamic var version: String? 31 | @objc private dynamic var copyright: String? 32 | 33 | public override var windowNibName: NSNib.Name? 34 | { 35 | return NSStringFromClass( type( of: self ) ) 36 | } 37 | 38 | override public func windowDidLoad() 39 | { 40 | super.windowDidLoad() 41 | 42 | let version = Bundle.main.object( forInfoDictionaryKey: "CFBundleShortVersionString" ) as? String ?? "0.0.0" 43 | 44 | if let build = Bundle.main.object( forInfoDictionaryKey: "CFBundleVersion" ) as? String 45 | { 46 | self.version = "\(version) (\(build))" 47 | } 48 | else 49 | { 50 | self.version = version 51 | } 52 | 53 | self.name = Bundle.main.object( forInfoDictionaryKey: "CFBundleName" ) as? String 54 | self.copyright = Bundle.main.object( forInfoDictionaryKey: "NSHumanReadableCopyright" ) as? String 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Notarize/Classes/ApplicationDelegate.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | import GitHubUpdates 27 | 28 | @NSApplicationMain class ApplicationDelegate: NSObject, NSApplicationDelegate 29 | { 30 | private var mainWindowController: MainWindowController? 31 | private var aboutWindowController: AboutWindowController? 32 | 33 | @IBOutlet private var updater: GitHubUpdater! 34 | 35 | func applicationDidFinishLaunching( _ notification: Notification ) 36 | { 37 | self.mainWindowController = MainWindowController() 38 | 39 | if Preferences.shared.lastStart == nil 40 | { 41 | self.mainWindowController?.window?.center() 42 | } 43 | 44 | Preferences.shared.lastStart = Date() 45 | 46 | self.mainWindowController?.window?.makeKeyAndOrderFront( nil ) 47 | 48 | self.updater.checkForUpdatesInBackground() 49 | } 50 | 51 | func applicationWillTerminate( _ notification: Notification ) 52 | {} 53 | 54 | func applicationShouldTerminateAfterLastWindowClosed( _ sender: NSApplication ) -> Bool 55 | { 56 | return true 57 | } 58 | 59 | @IBAction func showAboutWindow( _ sender: Any? ) 60 | { 61 | if self.aboutWindowController == nil 62 | { 63 | self.aboutWindowController = AboutWindowController() 64 | 65 | self.aboutWindowController?.window?.center() 66 | } 67 | 68 | self.aboutWindowController?.window?.makeKeyAndOrderFront( sender ) 69 | } 70 | } 71 | 72 | -------------------------------------------------------------------------------- /Notarize/Classes/Account.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | @objc class Account: NSObject 28 | { 29 | @objc public private( set ) dynamic var username: String 30 | @objc public private( set ) dynamic var password: String? 31 | @objc public private( set ) dynamic var providerShortName: String? 32 | @objc public private( set ) dynamic var useKeychain: Bool 33 | 34 | private static var sessionPasswords = [ String : String ]() 35 | 36 | init( username: String, useKeychain: Bool, providerShortName: String? ) 37 | { 38 | self.username = username 39 | self.useKeychain = useKeychain 40 | self.providerShortName = providerShortName 41 | 42 | guard let bundleID = Bundle.main.bundleIdentifier else 43 | { 44 | return 45 | } 46 | 47 | if useKeychain 48 | { 49 | self.password = Keychain( keychain: nil ).getPassword( service: bundleID, account: username ) 50 | } 51 | 52 | if let password = Account.sessionPasswords[ username ] 53 | { 54 | self.password = password 55 | } 56 | } 57 | 58 | init( username: String, password: String, useKeychain: Bool, providerShortName: String? ) 59 | { 60 | self.username = username 61 | self.password = password 62 | self.useKeychain = useKeychain 63 | self.providerShortName = providerShortName 64 | 65 | guard let bundleID = Bundle.main.bundleIdentifier else 66 | { 67 | return 68 | } 69 | 70 | if useKeychain 71 | { 72 | let _ = Keychain( keychain: nil ).setPassword( service: bundleID, account: username, password: password ) 73 | } 74 | else 75 | { 76 | Account.sessionPasswords[ username ] = password 77 | } 78 | } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /Notarize/Classes/HistoryItem.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | @objc class HistoryItem: NSObject 28 | { 29 | @objc public dynamic var date: Date 30 | @objc public dynamic var uuid: String 31 | @objc public dynamic var success: Bool 32 | @objc public dynamic var status: Int 33 | @objc public dynamic var message: String 34 | @objc public dynamic var logURL: String? 35 | 36 | class func ItemsFromDictionary( dict: [ AnyHashable : Any ]? ) -> [ HistoryItem ] 37 | { 38 | guard let history = dict?[ "notarization-history" ] as? [ AnyHashable : Any ], 39 | let items = history[ "items" ] as? [ Any ] 40 | else 41 | { 42 | return [] 43 | } 44 | 45 | return items.compactMap 46 | { 47 | $0 as? [ AnyHashable : Any ] 48 | } 49 | .compactMap 50 | { 51 | HistoryItem( dict: $0 ) 52 | } 53 | } 54 | 55 | init?( dict: [ AnyHashable : Any ] ) 56 | { 57 | guard let date = dict[ "Date" ] as? Date, 58 | let uuid = dict[ "RequestUUID" ] as? String, 59 | let status = dict[ "Status" ] as? String, 60 | let code = dict[ "Status Code" ] as? NSNumber, 61 | let message = dict[ "Status Message" ] as? String 62 | else 63 | { 64 | return nil 65 | } 66 | 67 | self.date = date 68 | self.uuid = uuid 69 | self.success = status == "success" 70 | self.status = code.intValue 71 | self.message = message 72 | } 73 | 74 | override func isEqual( _ object: Any? ) -> Bool 75 | { 76 | guard let o = object as? HistoryItem else 77 | { 78 | return false 79 | } 80 | 81 | return self.uuid == o.uuid 82 | } 83 | 84 | override var hash: Int 85 | { 86 | return self.uuid.hash 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Notarize.xcodeproj/xcshareddata/xcschemes/Notarize.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /Notarize/Classes/Keychain.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Foundation 26 | import Security 27 | 28 | class Keychain 29 | { 30 | private var keychain: CFTypeRef? 31 | 32 | init( keychain: CFTypeRef? ) 33 | { 34 | self.keychain = keychain 35 | } 36 | 37 | func setPassword( service: String, account: String, password: String ) -> Bool 38 | { 39 | guard let item = self.findGenericPassword( service: service, account: account ) else 40 | { 41 | let status = SecKeychainAddGenericPassword( nil, UInt32( service.utf8.count ), service, UInt32( account.utf8.count ), account, UInt32( password.utf8.count ), password, nil ) 42 | 43 | return status == errSecSuccess 44 | } 45 | 46 | return SecKeychainItemModifyContent( item, nil, UInt32( password.utf8.count ), password ) == errSecSuccess 47 | } 48 | 49 | func getPassword( service: String, account: String ) -> String? 50 | { 51 | guard let item = self.findGenericPassword( service: service, account: account ) else 52 | { 53 | return nil 54 | } 55 | 56 | var length: UInt32 = 0 57 | var data: UnsafeMutableRawPointer? = nil 58 | 59 | if SecKeychainItemCopyContent( item, nil, nil, &length, &data ) == errSecSuccess && data != nil 60 | { 61 | let password = NSString( bytes: data!, length: Int( length ), encoding: String.Encoding.utf8.rawValue ) as String? 62 | 63 | SecKeychainItemFreeContent( nil, data ) 64 | 65 | return password 66 | } 67 | 68 | return nil 69 | } 70 | 71 | func delete( service: String, account: String ) -> Bool 72 | { 73 | guard let item = self.findGenericPassword( service: service, account: account ) else 74 | { 75 | return true 76 | } 77 | 78 | return SecKeychainItemDelete( item ) == errSecSuccess 79 | } 80 | 81 | private func findGenericPassword( service: String, account: String ) -> SecKeychainItem? 82 | { 83 | var item: SecKeychainItem? 84 | 85 | let status = SecKeychainFindGenericPassword( nil, UInt32( service.utf8.count ), service, UInt32( account.utf8.count ), account, nil, nil, &item ) 86 | 87 | return ( status == errSecSuccess ) ? item : nil 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /Notarize/Classes/AccountWindowController.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | class AccountWindowController: NSWindowController 28 | { 29 | @objc public dynamic var username = "" 30 | @objc public dynamic var providerShortName = "" 31 | @objc public private( set ) dynamic var password = "" 32 | @objc public private( set ) dynamic var keepInKeychain = false 33 | @objc public private( set ) dynamic var loading = false 34 | 35 | override var windowNibName: NSNib.Name? 36 | { 37 | return NSStringFromClass( type( of: self ) ) 38 | } 39 | 40 | @IBAction func add( _ sender: Any? ) 41 | { 42 | if self.username.count == 0 43 | { 44 | self.displayAlert( title: "Empty username", message: "Please enter a valid username" ) 45 | 46 | return 47 | } 48 | 49 | if self.password.count == 0 50 | { 51 | self.displayAlert( title: "Empty password", message: "Please enter a valid password" ) 52 | 53 | return 54 | } 55 | 56 | let altool = ALTool( username: self.username, password: self.password, providerShortName: self.providerShortName.count > 0 ? self.providerShortName : nil ) 57 | 58 | self.loading = true 59 | 60 | DispatchQueue.global( qos: .userInitiated ).async 61 | { 62 | do 63 | { 64 | try altool.checkPassword() 65 | } 66 | catch let e as NSError 67 | { 68 | DispatchQueue.main.async 69 | { 70 | self.loading = false 71 | 72 | self.displayAlert( error: e ) 73 | } 74 | 75 | return 76 | } 77 | 78 | DispatchQueue.main.async 79 | { 80 | guard let window = self.window else 81 | { 82 | return 83 | } 84 | 85 | self.window?.sheetParent?.endSheet( window, returnCode: .OK ) 86 | } 87 | } 88 | } 89 | 90 | private func displayAlert( title: String, message: String ) 91 | { 92 | let alert = NSAlert() 93 | 94 | alert.messageText = title 95 | alert.informativeText = message 96 | 97 | alert.addButton( withTitle: "OK" ) 98 | alert.runModal() 99 | } 100 | 101 | private func displayAlert( error: NSError ) 102 | { 103 | let alert = NSAlert( error: error ) 104 | 105 | alert.runModal() 106 | } 107 | 108 | @IBAction func cancel( _ sender: Any? ) 109 | { 110 | self.username = "" 111 | self.password = "" 112 | self.keepInKeychain = false 113 | 114 | guard let window = self.window else 115 | { 116 | return 117 | } 118 | 119 | self.window?.sheetParent?.endSheet( window, returnCode: .cancel ) 120 | } 121 | } 122 | 123 | -------------------------------------------------------------------------------- /Notarize/Classes/Preferences.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2017 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | @objc public class Preferences: NSObject 28 | { 29 | @objc public dynamic var lastStart: Date? 30 | @objc public dynamic var accounts: [ AnyHashable : Any ]? 31 | 32 | @objc public static let shared = Preferences() 33 | 34 | override init() 35 | { 36 | super.init() 37 | 38 | if let path = Bundle.main.path( forResource: "Defaults", ofType: "plist" ) 39 | { 40 | UserDefaults.standard.register( defaults: NSDictionary( contentsOfFile: path ) as? [ String : Any ] ?? [ : ] ) 41 | } 42 | 43 | for c in Mirror( reflecting: self ).children 44 | { 45 | guard let key = c.label else 46 | { 47 | continue 48 | } 49 | 50 | self.setValue( UserDefaults.standard.object( forKey: key ), forKey: key ) 51 | self.addObserver( self, forKeyPath: key, options: .new, context: nil ) 52 | } 53 | } 54 | 55 | deinit 56 | { 57 | for c in Mirror( reflecting: self ).children 58 | { 59 | guard let key = c.label else 60 | { 61 | continue 62 | } 63 | 64 | self.removeObserver( self, forKeyPath: key ) 65 | } 66 | } 67 | 68 | @objc public override func observeValue( forKeyPath keyPath: String?, of object: Any?, change: [ NSKeyValueChangeKey : Any ]?, context: UnsafeMutableRawPointer? ) 69 | { 70 | for c in Mirror( reflecting: self ).children 71 | { 72 | guard let key = c.label else 73 | { 74 | continue 75 | } 76 | 77 | if( key == keyPath ) 78 | { 79 | UserDefaults.standard.set( change?[ NSKeyValueChangeKey.newKey ], forKey: key ) 80 | } 81 | } 82 | } 83 | 84 | func addAccount( _ account: Account ) 85 | { 86 | var accounts = self.accounts ?? [:] 87 | 88 | if let name = account.providerShortName 89 | { 90 | accounts[ account.username ] = 91 | [ 92 | "UseKeychain" : NSNumber( booleanLiteral: account.useKeychain ), 93 | "ProviderShortName" : name 94 | ] 95 | } 96 | else 97 | { 98 | accounts[ account.username ] = NSNumber( booleanLiteral: account.useKeychain ) 99 | } 100 | 101 | self.accounts = accounts 102 | } 103 | 104 | func removeAccount( _ account: Account ) 105 | { 106 | guard var accounts = self.accounts else 107 | { 108 | return 109 | } 110 | 111 | accounts.removeValue( forKey: account.username ) 112 | 113 | if account.useKeychain, let bundleID = Bundle.main.bundleIdentifier 114 | { 115 | let _ = Keychain( keychain: nil ).delete( service: bundleID, account: account.username ) 116 | } 117 | 118 | self.accounts = accounts 119 | } 120 | 121 | func getAccounts() -> [ Account ] 122 | { 123 | guard let accounts = self.accounts else 124 | { 125 | return [] 126 | } 127 | 128 | return accounts.compactMap 129 | { 130 | guard let username = $0.key as? String else 131 | { 132 | return nil 133 | } 134 | 135 | if let info = $0.value as? [ AnyHashable : Any ] 136 | { 137 | let useKeychain = info[ "UseKeychain" ] as? NSNumber 138 | let providerShortName = info[ "ProviderShortName" ] as? String 139 | 140 | return Account( username: username, useKeychain: useKeychain?.boolValue ?? false, providerShortName: providerShortName ) 141 | } 142 | else 143 | { 144 | let useKeychain = ( $0.value as? NSNumber )?.boolValue ?? false 145 | 146 | return Account( username: username, useKeychain: useKeychain, providerShortName: nil ) 147 | } 148 | } 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | xs-labs.com. 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 120 | 121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 122 | enforcement ladder](https://github.com/mozilla/diversity). 123 | 124 | [homepage]: https://www.contributor-covenant.org 125 | 126 | For answers to common questions about this code of conduct, see the FAQ at 127 | https://www.contributor-covenant.org/faq. Translations are available at 128 | https://www.contributor-covenant.org/translations. 129 | -------------------------------------------------------------------------------- /Notarize/Classes/ALTool.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Foundation 26 | 27 | class ALTool 28 | { 29 | private var username: String 30 | private var password: String 31 | private var providerShortName: String? 32 | 33 | class func isAvailable() -> Bool 34 | { 35 | guard let out = try? ALTool.run( arguments: [ "--help" ] ) else 36 | { 37 | return false 38 | } 39 | 40 | return out.stdout.count > 0 || out.stderr.count > 0 41 | } 42 | 43 | init( username: String, password: String, providerShortName: String? ) 44 | { 45 | self.username = username 46 | self.password = password 47 | self.providerShortName = providerShortName 48 | } 49 | 50 | func checkPassword() throws 51 | { 52 | let _ = try ALTool.run( arguments: self.arguments( [ "--notarization-history", "0" ] ) + [ "--output-format", "xml" ] ) 53 | } 54 | 55 | func notarizationHistory( page: Int64 ) throws -> String? 56 | { 57 | let out = try ALTool.run( arguments: self.arguments( [ "--notarization-history", "\( page )" ] ) + [ "--output-format", "xml" ] ) 58 | 59 | return out.stdout.trimmingCharacters( in: NSCharacterSet.whitespacesAndNewlines ) 60 | } 61 | 62 | func notarizationInfo( for uuid: String ) throws -> String? 63 | { 64 | let out = try ALTool.run( arguments: self.arguments( [ "--notarization-info", uuid ] ) + [ "--output-format", "xml" ] ) 65 | 66 | return out.stdout.trimmingCharacters( in: NSCharacterSet.whitespacesAndNewlines ) 67 | } 68 | 69 | private func arguments( _ arguments: [ String ] ) -> [ String ] 70 | { 71 | var arguments = arguments 72 | 73 | arguments.append( "-u" ) 74 | arguments.append( self.username ) 75 | arguments.append( "-p" ) 76 | arguments.append( self.password ) 77 | 78 | if let name = self.providerShortName 79 | { 80 | arguments.append( "--asc-provider" ) 81 | arguments.append( name ) 82 | } 83 | 84 | return arguments 85 | } 86 | 87 | private class var executablePath: String? 88 | { 89 | let pipe = Pipe() 90 | let process = Process() 91 | process.launchPath = "/usr/bin/xcrun" 92 | process.arguments = [ "-f", "altool" ] 93 | process.standardOutput = pipe 94 | 95 | do 96 | { 97 | try process.run() 98 | } 99 | catch let e as NSError 100 | { 101 | Swift.print( e ) 102 | 103 | return nil 104 | } 105 | 106 | process.waitUntilExit() 107 | 108 | let data = pipe.fileHandleForReading.readDataToEndOfFile() 109 | 110 | guard let out = String( bytes: data, encoding: .utf8 ) else 111 | { 112 | return nil 113 | } 114 | 115 | return out.trimmingCharacters( in: .whitespacesAndNewlines ) 116 | } 117 | 118 | private class func run( arguments: [ String ] ) throws -> ( stdout: String, stderr: String ) 119 | { 120 | guard let exec = ALTool.executablePath else 121 | { 122 | throw NSError( domain: NSCocoaErrorDomain, code: -1, userInfo: [ NSLocalizedDescriptionKey : "altool executable not found" ] ) 123 | } 124 | 125 | let pipeOut = Pipe() 126 | let pipeErr = Pipe() 127 | let process = Process() 128 | process.launchPath = exec 129 | process.arguments = arguments 130 | process.standardOutput = pipeOut 131 | process.standardError = pipeErr 132 | 133 | do 134 | { 135 | try process.run() 136 | } 137 | catch let e as NSError 138 | { 139 | Swift.print( e ) 140 | 141 | throw e 142 | } 143 | 144 | process.waitUntilExit() 145 | 146 | let dataOut = pipeOut.fileHandleForReading.readDataToEndOfFile() 147 | let dataErr = pipeErr.fileHandleForReading.readDataToEndOfFile() 148 | 149 | guard let out = String( bytes: dataOut, encoding: .utf8 ), 150 | let err = String( bytes: dataErr, encoding: .utf8 ) 151 | else 152 | { 153 | throw NSError( domain: NSCocoaErrorDomain, code: -1, userInfo: [ NSLocalizedDescriptionKey : "No data received from altool" ] ) 154 | } 155 | 156 | if let data = out.data( using: .utf8 ) 157 | { 158 | if let dict = try? PropertyListSerialization.propertyList( from: data, options: [], format: nil ) as? [ AnyHashable : Any ] 159 | { 160 | if let errors = dict[ "product-errors" ] as? [ Any ] 161 | { 162 | if errors.count > 0, let errorDict = errors[ 0 ] as? [ AnyHashable : Any ] 163 | { 164 | let code = errorDict[ "code" ] as? NSNumber ?? NSNumber( integerLiteral: 0 ) 165 | let message = errorDict[ "message" ] as? String ?? "Unknown error" 166 | 167 | if let info = errorDict[ "userInfo" ] as? [ AnyHashable : Any ], let failure = info[ "NSLocalizedFailureReason" ] as? String 168 | { 169 | throw NSError( domain: NSCocoaErrorDomain, code: code.intValue, userInfo: [ NSLocalizedDescriptionKey : message, NSLocalizedRecoverySuggestionErrorKey : failure ] ) 170 | } 171 | else 172 | { 173 | throw NSError( domain: NSCocoaErrorDomain, code: code.intValue, userInfo: [ NSLocalizedDescriptionKey : "Error", NSLocalizedRecoverySuggestionErrorKey : message ] ) 174 | } 175 | } 176 | } 177 | } 178 | } 179 | 180 | return ( stdout: out, stderr: err ) 181 | } 182 | } 183 | -------------------------------------------------------------------------------- /Notarize/Classes/MainWindowController.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | class MainWindowController: NSWindowController 28 | { 29 | @IBOutlet private var accountsController: NSArrayController! 30 | @IBOutlet private var historyViewContainer: NSView! 31 | 32 | private var add: AccountWindowController? = nil 33 | private var observations: [ NSKeyValueObservation ] = [] 34 | private var controllers: [ String : HistoryViewController ] = [ : ] 35 | 36 | @objc private dynamic var controller: HistoryViewController? 37 | @objc private dynamic var accounts: [ Account ] = [] 38 | @objc private dynamic var altoolIsAvailable: Bool = true 39 | 40 | override var windowNibName: NSNib.Name? 41 | { 42 | return NSStringFromClass( type( of: self ) ) 43 | } 44 | 45 | override func windowDidLoad() 46 | { 47 | super.windowDidLoad() 48 | 49 | self.altoolIsAvailable = ALTool.isAvailable() 50 | self.accounts = Preferences.shared.getAccounts() 51 | 52 | let o1 = Preferences.shared.observe( \.accounts ) 53 | { 54 | o, c in self.accounts = Preferences.shared.getAccounts() 55 | } 56 | 57 | let o2 = self.accountsController.observe( \.selection ) 58 | { 59 | o, c in 60 | 61 | self.controller = nil 62 | 63 | self.historyViewContainer.subviews.forEach 64 | { 65 | v in v.removeFromSuperview() 66 | } 67 | 68 | guard let account = self.accountsController.selectedObjects.first as? Account else 69 | { 70 | return 71 | } 72 | 73 | if self.controllers[ account.username ] == nil 74 | { 75 | self.controllers[ account.username ] = HistoryViewController( account: account ) 76 | 77 | self.controllers[ account.username ]?.refresh( nil ) 78 | } 79 | 80 | guard let controller = self.controllers[ account.username ] else 81 | { 82 | return 83 | } 84 | 85 | self.controller = controller 86 | controller.view.frame = self.historyViewContainer.bounds 87 | 88 | controller.view.translatesAutoresizingMaskIntoConstraints = false 89 | 90 | self.historyViewContainer.addSubview( controller.view ) 91 | self.historyViewContainer.addConstraint( NSLayoutConstraint( item: controller.view, attribute: .width, relatedBy: .equal, toItem: self.historyViewContainer, attribute: .width, multiplier: 1, constant: 0 ) ) 92 | self.historyViewContainer.addConstraint( NSLayoutConstraint( item: controller.view, attribute: .height, relatedBy: .equal, toItem: self.historyViewContainer, attribute: .height, multiplier: 1, constant: 0 ) ) 93 | self.historyViewContainer.addConstraint( NSLayoutConstraint( item: controller.view, attribute: .centerX, relatedBy: .equal, toItem: self.historyViewContainer, attribute: .centerX, multiplier: 1, constant: 0 ) ) 94 | self.historyViewContainer.addConstraint( NSLayoutConstraint( item: controller.view, attribute: .centerY, relatedBy: .equal, toItem: self.historyViewContainer, attribute: .centerY, multiplier: 1, constant: 0 ) ) 95 | } 96 | 97 | self.observations.append( contentsOf: [ o1, o2 ] ) 98 | 99 | self.accountsController.sortDescriptors = [ NSSortDescriptor( key: "username", ascending: true ) ] 100 | } 101 | 102 | @IBAction func refresh( _ sender: Any? ) 103 | { 104 | guard let account = self.accountsController.selectedObjects.first as? Account, 105 | let controller = self.controllers[ account.username ] 106 | else 107 | { 108 | return 109 | } 110 | 111 | controller.refresh( sender ) 112 | } 113 | 114 | @IBAction func addAccount( _ sender: Any? ) 115 | { 116 | if self.add != nil 117 | { 118 | return 119 | } 120 | 121 | self.add = AccountWindowController() 122 | 123 | guard let sheet = self.add?.window else 124 | { 125 | return 126 | } 127 | 128 | self.window?.beginSheet( sheet ) 129 | { 130 | r in 131 | 132 | guard let add = self.add else 133 | { 134 | return 135 | } 136 | 137 | self.add = nil 138 | 139 | if r != .OK 140 | { 141 | return 142 | } 143 | 144 | if( add.username.count == 0 || add.password.count == 0 ) 145 | { 146 | return 147 | } 148 | 149 | let account = Account( username: add.username, password: add.password, useKeychain: add.keepInKeychain, providerShortName: add.providerShortName.count > 0 ? add.providerShortName : nil ) 150 | 151 | Preferences.shared.addAccount( account ); 152 | } 153 | } 154 | 155 | @IBAction func removeAccount( _ sender: Any? ) 156 | { 157 | guard let account = self.accountsController.selectedObjects.first as? Account, 158 | let window = self.window 159 | else 160 | { 161 | return 162 | } 163 | 164 | let alert = NSAlert() 165 | 166 | alert.messageText = "Delete Account" 167 | alert.informativeText = "Are you sure you want to delete this account?" 168 | 169 | alert.addButton( withTitle: "Delete" ) 170 | alert.addButton( withTitle: "Cancel" ) 171 | 172 | alert.beginSheetModal( for: window ) 173 | { 174 | r in 175 | 176 | if r != .alertFirstButtonReturn 177 | { 178 | return 179 | } 180 | 181 | Preferences.shared.removeAccount( account ) 182 | } 183 | } 184 | } 185 | 186 | -------------------------------------------------------------------------------- /Notarize/UI/Base.lproj/Notarize.AboutWindowController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /Notarize/Classes/HistoryViewController.swift: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * The MIT License (MIT) 3 | * 4 | * Copyright (c) 2018 Jean-David Gadina - www.xs-labs.com 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | ******************************************************************************/ 24 | 25 | import Cocoa 26 | 27 | class HistoryViewController: NSViewController, NSTableViewDelegate, NSTableViewDataSource 28 | { 29 | @IBOutlet private var itemsController: NSArrayController! 30 | 31 | @objc private dynamic var loading = true 32 | @objc private dynamic var refreshing = false 33 | @objc private dynamic var gettingInfo = false 34 | @objc private dynamic var items = Set< HistoryItem >() 35 | 36 | private var account: Account? 37 | private var refreshTimer: Timer? 38 | private var infoTimer: Timer? 39 | private var add: AccountWindowController? 40 | 41 | convenience init( account: Account ) 42 | { 43 | self.init() 44 | 45 | self.account = account 46 | } 47 | 48 | deinit 49 | { 50 | self.refreshTimer?.invalidate() 51 | self.infoTimer?.invalidate() 52 | } 53 | 54 | override var nibName: NSNib.Name? 55 | { 56 | return NSStringFromClass( type( of: self ) ) 57 | } 58 | 59 | override func viewDidLoad() 60 | { 61 | super.viewDidLoad() 62 | 63 | self.itemsController.sortDescriptors = [ NSSortDescriptor( key: "date", ascending: false ) ] 64 | 65 | self.refresh( nil ) 66 | 67 | self.refreshTimer = Timer.scheduledTimer( withTimeInterval: 5, repeats: true ) 68 | { 69 | t in self.refresh( userInitiated: false ) 70 | } 71 | 72 | self.infoTimer = Timer.scheduledTimer( withTimeInterval: 5, repeats: true ) 73 | { 74 | t in self.getInfo() 75 | } 76 | } 77 | 78 | @IBAction func refresh( _ sender: Any? ) 79 | { 80 | self.refresh( userInitiated: true ) 81 | } 82 | 83 | @IBAction func showInfo( _ sender: Any? ) 84 | { 85 | guard let item = sender as? HistoryItem, 86 | let url = URL( string: item.logURL ?? "" ) 87 | else 88 | { 89 | return 90 | } 91 | 92 | NSWorkspace.shared.open( url ) 93 | } 94 | 95 | private func refresh( userInitiated: Bool ) 96 | { 97 | DispatchQueue.main.async 98 | { 99 | if self.refreshing 100 | { 101 | return 102 | } 103 | 104 | self.refreshing = true 105 | 106 | guard let account = self.account else 107 | { 108 | self.refreshing = false 109 | self.loading = false 110 | 111 | return 112 | } 113 | 114 | guard let password = account.password else 115 | { 116 | if userInitiated 117 | { 118 | self.askPassword() 119 | } 120 | 121 | self.refreshing = false 122 | self.loading = false 123 | 124 | return 125 | } 126 | 127 | if userInitiated 128 | { 129 | self.loading = true 130 | } 131 | 132 | DispatchQueue.global( qos: .userInitiated ).async 133 | { 134 | do 135 | { 136 | let items = try self.loadHistory( username: account.username, password: password, providerShortName: account.providerShortName ) 137 | 138 | DispatchQueue.main.async 139 | { 140 | items.forEach 141 | { 142 | o in 143 | 144 | if self.items.contains( o ) == false 145 | { 146 | self.items.insert( o ) 147 | } 148 | } 149 | 150 | self.loading = false 151 | self.refreshing = false 152 | } 153 | } 154 | catch let error 155 | { 156 | if userInitiated 157 | { 158 | DispatchQueue.main.async 159 | { 160 | let alert = NSAlert( error: error ) 161 | 162 | if let window = self.view.window 163 | { 164 | alert.beginSheetModal( for: window, completionHandler: nil ) 165 | } 166 | else 167 | { 168 | alert.runModal() 169 | } 170 | 171 | self.loading = false 172 | self.refreshing = false 173 | } 174 | } 175 | else 176 | { 177 | print( error ) 178 | } 179 | } 180 | } 181 | } 182 | } 183 | 184 | private func loadHistory( username: String, password: String, providerShortName: String? ) throws -> [ HistoryItem ] 185 | { 186 | var items = [ HistoryItem ]() 187 | let altool = ALTool( username: username, password: password, providerShortName: providerShortName ) 188 | var page = Int64( 0 ) 189 | 190 | repeat 191 | { 192 | let xml = try altool.notarizationHistory( page: page ) 193 | page = -1 194 | 195 | if let xmlData = xml?.data( using: .utf8 ) 196 | { 197 | if let history = try? PropertyListSerialization.propertyList( from: xmlData, options: [], format: nil ) as? [ AnyHashable : Any ] 198 | { 199 | let current = HistoryItem.ItemsFromDictionary( dict: history ) 200 | 201 | items.append( contentsOf: current ) 202 | 203 | if current.count > 0, let history = history[ "notarization-history" ] as? [ AnyHashable : Any ], let next = history[ "next-page" ] as? Int64 204 | { 205 | page = next 206 | } 207 | } 208 | } 209 | } 210 | while page >= 0 211 | 212 | return items 213 | } 214 | 215 | private func getInfo() 216 | { 217 | DispatchQueue.main.async 218 | { 219 | if self.gettingInfo 220 | { 221 | return 222 | } 223 | 224 | self.gettingInfo = true 225 | 226 | DispatchQueue.global( qos: .userInitiated ).async 227 | { 228 | guard let account = self.account, 229 | let password = account.password 230 | else 231 | { 232 | return 233 | } 234 | 235 | let items = DispatchQueue.main.sync { return self.items } 236 | let altool = ALTool( username: account.username, password: password, providerShortName: account.providerShortName ) 237 | let group = DispatchGroup() 238 | 239 | items.filter( { o in o.logURL == nil } ).forEach 240 | { 241 | item in DispatchQueue.global( qos: .userInitiated ).async( group: group ) 242 | { 243 | guard let xml = try? altool.notarizationInfo( for: item.uuid ), 244 | let xmlData = xml.data( using: .utf8 ), 245 | let info = try? PropertyListSerialization.propertyList( from: xmlData, options: [], format: nil ) as? [ AnyHashable : Any ], 246 | let notarization = info[ "notarization-info" ] as? [ AnyHashable : Any ], 247 | let url = notarization[ "LogFileURL" ] as? String else 248 | { 249 | return 250 | } 251 | 252 | DispatchQueue.main.async 253 | { 254 | item.logURL = url 255 | } 256 | } 257 | } 258 | 259 | group.wait() 260 | 261 | DispatchQueue.main.async 262 | { 263 | self.gettingInfo = false 264 | } 265 | } 266 | } 267 | } 268 | 269 | private func askPassword() 270 | { 271 | if self.add != nil 272 | { 273 | return 274 | } 275 | 276 | self.add = AccountWindowController() 277 | 278 | guard let add = self.add, 279 | let account = self.account, 280 | let sheet = add.window 281 | else 282 | { 283 | return 284 | } 285 | 286 | add.username = account.username 287 | add.providerShortName = account.providerShortName ?? "" 288 | 289 | self.view.window?.beginSheet( sheet ) 290 | { 291 | r in 292 | 293 | guard let add = self.add else 294 | { 295 | return 296 | } 297 | 298 | self.add = nil 299 | 300 | if r != .OK 301 | { 302 | return 303 | } 304 | 305 | if( add.username.count == 0 || add.password.count == 0 ) 306 | { 307 | return 308 | } 309 | 310 | let account = Account( username: add.username, password: add.password, useKeychain: add.keepInKeychain, providerShortName: add.providerShortName.count > 0 ? add.providerShortName : nil ) 311 | 312 | Preferences.shared.addAccount( account ); 313 | 314 | self.account = account 315 | 316 | self.refresh( nil ) 317 | } 318 | } 319 | } 320 | -------------------------------------------------------------------------------- /Notarize/UI/Base.lproj/Notarize.AccountWindowController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | NSNegateBoolean 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | NSAllRomanInputSourcesLocaleIdentifier 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 219 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | -------------------------------------------------------------------------------- /Notarize.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 059A0B5D2190504B004E1D89 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 059A0B592190504B004E1D89 /* MainMenu.xib */; }; 11 | 059A0B5E2190504B004E1D89 /* ApplicationDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 059A0B5C2190504B004E1D89 /* ApplicationDelegate.swift */; }; 12 | 059A0B61219050A3004E1D89 /* MainWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 059A0B60219050A3004E1D89 /* MainWindowController.swift */; }; 13 | 059A0B6421905107004E1D89 /* Notarize.MainWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 059A0B6221905107004E1D89 /* Notarize.MainWindowController.xib */; }; 14 | 059A0B6721905325004E1D89 /* Accounts.icns in Resources */ = {isa = PBXBuildFile; fileRef = 059A0B6621905325004E1D89 /* Accounts.icns */; }; 15 | 059A0B6921905534004E1D89 /* AccountWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 059A0B6821905534004E1D89 /* AccountWindowController.swift */; }; 16 | 059A0B6C2190554D004E1D89 /* Notarize.AccountWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 059A0B6A2190554D004E1D89 /* Notarize.AccountWindowController.xib */; }; 17 | 05D7469221919DE7002CF085 /* Preferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05D7469121919DE7002CF085 /* Preferences.swift */; }; 18 | 05D7469421919F53002CF085 /* Account.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05D7469321919F53002CF085 /* Account.swift */; }; 19 | 05D746BA2191F0BB002CF085 /* Keychain.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05D746B92191F0BB002CF085 /* Keychain.swift */; }; 20 | 05D746E021922726002CF085 /* ALTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05D746DF21922726002CF085 /* ALTool.swift */; }; 21 | 05D746E2219230FC002CF085 /* HistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05D746E1219230FC002CF085 /* HistoryViewController.swift */; }; 22 | 05D746E52192315C002CF085 /* Notarize.HistoryViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 05D746E32192315C002CF085 /* Notarize.HistoryViewController.xib */; }; 23 | 05D746E721923630002CF085 /* HistoryItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05D746E621923630002CF085 /* HistoryItem.swift */; }; 24 | 05D7471B21924CA6002CF085 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 05D7471A21924CA6002CF085 /* Icon.icns */; }; 25 | 05D7471E21924D18002CF085 /* Notarize.AboutWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 05D7471C21924D18002CF085 /* Notarize.AboutWindowController.xib */; }; 26 | 05D7472021924D1F002CF085 /* AboutWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05D7471F21924D1F002CF085 /* AboutWindowController.swift */; }; 27 | 05E3745521925281000C6736 /* GitHubUpdates.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05E3745121925277000C6736 /* GitHubUpdates.framework */; }; 28 | 05E3745921925294000C6736 /* GitHubUpdates.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 05E3745121925277000C6736 /* GitHubUpdates.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 29 | 05E3745B219253B5000C6736 /* IsEmpty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05E3745A219253B5000C6736 /* IsEmpty.swift */; }; 30 | 05E3745D2192545A000C6736 /* IsNotEmpty.swift in Sources */ = {isa = PBXBuildFile; fileRef = 05E3745C2192545A000C6736 /* IsNotEmpty.swift */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | 05E3745021925277000C6736 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = 05E3744B21925276000C6736 /* GitHubUpdates.xcodeproj */; 37 | proxyType = 2; 38 | remoteGlobalIDString = 05F82B251EF32EA700EC8A93; 39 | remoteInfo = GitHubUpdates; 40 | }; 41 | 05E3745221925277000C6736 /* PBXContainerItemProxy */ = { 42 | isa = PBXContainerItemProxy; 43 | containerPortal = 05E3744B21925276000C6736 /* GitHubUpdates.xcodeproj */; 44 | proxyType = 2; 45 | remoteGlobalIDString = 0555EBA01EF3DDA10016167F; 46 | remoteInfo = Relauncher; 47 | }; 48 | 05E3745621925286000C6736 /* PBXContainerItemProxy */ = { 49 | isa = PBXContainerItemProxy; 50 | containerPortal = 05E3744B21925276000C6736 /* GitHubUpdates.xcodeproj */; 51 | proxyType = 1; 52 | remoteGlobalIDString = 05F82B241EF32EA700EC8A93; 53 | remoteInfo = GitHubUpdates; 54 | }; 55 | /* End PBXContainerItemProxy section */ 56 | 57 | /* Begin PBXCopyFilesBuildPhase section */ 58 | 05E374582192528D000C6736 /* CopyFiles */ = { 59 | isa = PBXCopyFilesBuildPhase; 60 | buildActionMask = 2147483647; 61 | dstPath = ""; 62 | dstSubfolderSpec = 10; 63 | files = ( 64 | 05E3745921925294000C6736 /* GitHubUpdates.framework in CopyFiles */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXCopyFilesBuildPhase section */ 69 | 70 | /* Begin PBXFileReference section */ 71 | 059A0B4721905010004E1D89 /* Notarize.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Notarize.app; sourceTree = BUILT_PRODUCTS_DIR; }; 72 | 059A0B5121905012004E1D89 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 73 | 059A0B5221905012004E1D89 /* Notarize.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Notarize.entitlements; sourceTree = ""; }; 74 | 059A0B5A2190504B004E1D89 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 75 | 059A0B5C2190504B004E1D89 /* ApplicationDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ApplicationDelegate.swift; sourceTree = ""; }; 76 | 059A0B60219050A3004E1D89 /* MainWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainWindowController.swift; sourceTree = ""; }; 77 | 059A0B6321905107004E1D89 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Notarize.MainWindowController.xib; sourceTree = ""; }; 78 | 059A0B6621905325004E1D89 /* Accounts.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Accounts.icns; sourceTree = ""; }; 79 | 059A0B6821905534004E1D89 /* AccountWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountWindowController.swift; sourceTree = ""; }; 80 | 059A0B6B2190554D004E1D89 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Notarize.AccountWindowController.xib; sourceTree = ""; }; 81 | 05D7469121919DE7002CF085 /* Preferences.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Preferences.swift; sourceTree = ""; }; 82 | 05D7469321919F53002CF085 /* Account.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Account.swift; sourceTree = ""; }; 83 | 05D746B92191F0BB002CF085 /* Keychain.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Keychain.swift; sourceTree = ""; }; 84 | 05D746DF21922726002CF085 /* ALTool.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ALTool.swift; sourceTree = ""; }; 85 | 05D746E1219230FC002CF085 /* HistoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HistoryViewController.swift; sourceTree = ""; }; 86 | 05D746E42192315C002CF085 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Notarize.HistoryViewController.xib; sourceTree = ""; }; 87 | 05D746E621923630002CF085 /* HistoryItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HistoryItem.swift; sourceTree = ""; }; 88 | 05D746E921924850002CF085 /* Release - ccache.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Release - ccache.xcconfig"; sourceTree = ""; }; 89 | 05D746EA21924850002CF085 /* Common.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Common.xcconfig; sourceTree = ""; }; 90 | 05D746EB21924850002CF085 /* Debug - ccache.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Debug - ccache.xcconfig"; sourceTree = ""; }; 91 | 05D746EC21924850002CF085 /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; 92 | 05D746ED21924850002CF085 /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; 93 | 05D746EE21924850002CF085 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 94 | 05D746F021924850002CF085 /* Signing.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Signing.xcconfig; sourceTree = ""; }; 95 | 05D746F121924850002CF085 /* Architectures.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Architectures.xcconfig; sourceTree = ""; }; 96 | 05D746F321924850002CF085 /* Issues.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Issues.xcconfig; sourceTree = ""; }; 97 | 05D746F521924850002CF085 /* Apple-APIs.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Apple-APIs.xcconfig"; sourceTree = ""; }; 98 | 05D746F621924850002CF085 /* Generic-Issues.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Generic-Issues.xcconfig"; sourceTree = ""; }; 99 | 05D746F721924850002CF085 /* Security.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Security.xcconfig; sourceTree = ""; }; 100 | 05D746F821924850002CF085 /* Objective-C.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Objective-C.xcconfig"; sourceTree = ""; }; 101 | 05D746F921924850002CF085 /* Analysis-Policy.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Analysis-Policy.xcconfig"; sourceTree = ""; }; 102 | 05D746FA21924850002CF085 /* Deployment.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Deployment.xcconfig; sourceTree = ""; }; 103 | 05D746FB21924850002CF085 /* Build-Options.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Build-Options.xcconfig"; sourceTree = ""; }; 104 | 05D746FC21924850002CF085 /* Swift-Compiler.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Swift-Compiler.xcconfig"; sourceTree = ""; }; 105 | 05D746FD21924850002CF085 /* Static-Analyzer.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Static-Analyzer.xcconfig"; sourceTree = ""; }; 106 | 05D746FF21924850002CF085 /* Warnings-Policies.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Warnings-Policies.xcconfig"; sourceTree = ""; }; 107 | 05D7470021924850002CF085 /* Code-Generation.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Code-Generation.xcconfig"; sourceTree = ""; }; 108 | 05D7470121924850002CF085 /* Language.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Language.xcconfig; sourceTree = ""; }; 109 | 05D7470221924850002CF085 /* General.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = General.xcconfig; sourceTree = ""; }; 110 | 05D7470321924850002CF085 /* Search-Paths.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Search-Paths.xcconfig"; sourceTree = ""; }; 111 | 05D7470421924850002CF085 /* Apple-LLVM.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Apple-LLVM.xcconfig"; sourceTree = ""; }; 112 | 05D7470721924850002CF085 /* Modules.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Modules.xcconfig; sourceTree = ""; }; 113 | 05D7470821924850002CF085 /* Objective-C.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Objective-C.xcconfig"; sourceTree = ""; }; 114 | 05D7470921924850002CF085 /* C++.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "C++.xcconfig"; sourceTree = ""; }; 115 | 05D7470A21924850002CF085 /* Code-Generation.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Code-Generation.xcconfig"; sourceTree = ""; }; 116 | 05D7470B21924850002CF085 /* Address-Sanitizer.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Address-Sanitizer.xcconfig"; sourceTree = ""; }; 117 | 05D7470C21924850002CF085 /* Language.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Language.xcconfig; sourceTree = ""; }; 118 | 05D7470D21924850002CF085 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 119 | 05D7470E21924850002CF085 /* Undefined-Behavior-Sanitizer.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Undefined-Behavior-Sanitizer.xcconfig"; sourceTree = ""; }; 120 | 05D7470F21924850002CF085 /* Warning-Policies.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Warning-Policies.xcconfig"; sourceTree = ""; }; 121 | 05D7471121924850002CF085 /* Objective-C-ARC.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Objective-C-ARC.xcconfig"; sourceTree = ""; }; 122 | 05D7471221924850002CF085 /* Objective-C.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Objective-C.xcconfig"; sourceTree = ""; }; 123 | 05D7471321924850002CF085 /* C++.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "C++.xcconfig"; sourceTree = ""; }; 124 | 05D7471421924850002CF085 /* All-Languages.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "All-Languages.xcconfig"; sourceTree = ""; }; 125 | 05D7471521924850002CF085 /* Preprocessing.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Preprocessing.xcconfig; sourceTree = ""; }; 126 | 05D7471621924850002CF085 /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = ""; }; 127 | 05D7471821924850002CF085 /* ccache-config.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "ccache-config.sh"; sourceTree = ""; }; 128 | 05D7471921924850002CF085 /* ccache.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = ccache.sh; sourceTree = ""; }; 129 | 05D7471A21924CA6002CF085 /* Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Icon.icns; sourceTree = ""; }; 130 | 05D7471D21924D18002CF085 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Notarize.AboutWindowController.xib; sourceTree = ""; }; 131 | 05D7471F21924D1F002CF085 /* AboutWindowController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AboutWindowController.swift; sourceTree = ""; }; 132 | 05E3744B21925276000C6736 /* GitHubUpdates.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GitHubUpdates.xcodeproj; path = Submodules/GitHubUpdates/GitHubUpdates.xcodeproj; sourceTree = ""; }; 133 | 05E3745A219253B5000C6736 /* IsEmpty.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IsEmpty.swift; sourceTree = ""; }; 134 | 05E3745C2192545A000C6736 /* IsNotEmpty.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IsNotEmpty.swift; sourceTree = ""; }; 135 | /* End PBXFileReference section */ 136 | 137 | /* Begin PBXFrameworksBuildPhase section */ 138 | 059A0B4421905010004E1D89 /* Frameworks */ = { 139 | isa = PBXFrameworksBuildPhase; 140 | buildActionMask = 2147483647; 141 | files = ( 142 | 05E3745521925281000C6736 /* GitHubUpdates.framework in Frameworks */, 143 | ); 144 | runOnlyForDeploymentPostprocessing = 0; 145 | }; 146 | /* End PBXFrameworksBuildPhase section */ 147 | 148 | /* Begin PBXGroup section */ 149 | 059A0B3E21905010004E1D89 = { 150 | isa = PBXGroup; 151 | children = ( 152 | 05E3744B21925276000C6736 /* GitHubUpdates.xcodeproj */, 153 | 05D746E821924850002CF085 /* xcconfig */, 154 | 059A0B4921905010004E1D89 /* Notarize */, 155 | 059A0B4821905010004E1D89 /* Products */, 156 | 05E3745421925281000C6736 /* Frameworks */, 157 | ); 158 | sourceTree = ""; 159 | }; 160 | 059A0B4821905010004E1D89 /* Products */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 059A0B4721905010004E1D89 /* Notarize.app */, 164 | ); 165 | name = Products; 166 | sourceTree = ""; 167 | }; 168 | 059A0B4921905010004E1D89 /* Notarize */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 059A0B5B2190504B004E1D89 /* Classes */, 172 | 059A0B582190504B004E1D89 /* UI */, 173 | 059A0B5121905012004E1D89 /* Info.plist */, 174 | 059A0B5221905012004E1D89 /* Notarize.entitlements */, 175 | ); 176 | path = Notarize; 177 | sourceTree = ""; 178 | }; 179 | 059A0B582190504B004E1D89 /* UI */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 059A0B6521905325004E1D89 /* Images */, 183 | 059A0B592190504B004E1D89 /* MainMenu.xib */, 184 | 05D7471C21924D18002CF085 /* Notarize.AboutWindowController.xib */, 185 | 059A0B6A2190554D004E1D89 /* Notarize.AccountWindowController.xib */, 186 | 05D746E32192315C002CF085 /* Notarize.HistoryViewController.xib */, 187 | 059A0B6221905107004E1D89 /* Notarize.MainWindowController.xib */, 188 | ); 189 | path = UI; 190 | sourceTree = ""; 191 | }; 192 | 059A0B5B2190504B004E1D89 /* Classes */ = { 193 | isa = PBXGroup; 194 | children = ( 195 | 05D7471F21924D1F002CF085 /* AboutWindowController.swift */, 196 | 05D7469321919F53002CF085 /* Account.swift */, 197 | 059A0B6821905534004E1D89 /* AccountWindowController.swift */, 198 | 05D746DF21922726002CF085 /* ALTool.swift */, 199 | 059A0B5C2190504B004E1D89 /* ApplicationDelegate.swift */, 200 | 05D746E621923630002CF085 /* HistoryItem.swift */, 201 | 05D746E1219230FC002CF085 /* HistoryViewController.swift */, 202 | 05D746B92191F0BB002CF085 /* Keychain.swift */, 203 | 059A0B60219050A3004E1D89 /* MainWindowController.swift */, 204 | 05D7469121919DE7002CF085 /* Preferences.swift */, 205 | 05E3745A219253B5000C6736 /* IsEmpty.swift */, 206 | 05E3745C2192545A000C6736 /* IsNotEmpty.swift */, 207 | ); 208 | path = Classes; 209 | sourceTree = ""; 210 | }; 211 | 059A0B6521905325004E1D89 /* Images */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 05D7471A21924CA6002CF085 /* Icon.icns */, 215 | 059A0B6621905325004E1D89 /* Accounts.icns */, 216 | ); 217 | path = Images; 218 | sourceTree = ""; 219 | }; 220 | 05D746E821924850002CF085 /* xcconfig */ = { 221 | isa = PBXGroup; 222 | children = ( 223 | 05D746E921924850002CF085 /* Release - ccache.xcconfig */, 224 | 05D746EA21924850002CF085 /* Common.xcconfig */, 225 | 05D746EB21924850002CF085 /* Debug - ccache.xcconfig */, 226 | 05D746EC21924850002CF085 /* Debug.xcconfig */, 227 | 05D746ED21924850002CF085 /* Release.xcconfig */, 228 | 05D746EE21924850002CF085 /* README.md */, 229 | 05D746EF21924850002CF085 /* Common */, 230 | 05D7471621924850002CF085 /* .gitignore */, 231 | 05D7471721924850002CF085 /* Scripts */, 232 | ); 233 | name = xcconfig; 234 | path = Submodules/xcconfig; 235 | sourceTree = ""; 236 | }; 237 | 05D746EF21924850002CF085 /* Common */ = { 238 | isa = PBXGroup; 239 | children = ( 240 | 05D746F021924850002CF085 /* Signing.xcconfig */, 241 | 05D746F121924850002CF085 /* Architectures.xcconfig */, 242 | 05D746F221924850002CF085 /* Static-Analyzer */, 243 | 05D746FA21924850002CF085 /* Deployment.xcconfig */, 244 | 05D746FB21924850002CF085 /* Build-Options.xcconfig */, 245 | 05D746FC21924850002CF085 /* Swift-Compiler.xcconfig */, 246 | 05D746FD21924850002CF085 /* Static-Analyzer.xcconfig */, 247 | 05D746FE21924850002CF085 /* Swift-Compiler */, 248 | 05D7470321924850002CF085 /* Search-Paths.xcconfig */, 249 | 05D7470421924850002CF085 /* Apple-LLVM.xcconfig */, 250 | 05D7470521924850002CF085 /* Apple-LLVM */, 251 | ); 252 | path = Common; 253 | sourceTree = ""; 254 | }; 255 | 05D746F221924850002CF085 /* Static-Analyzer */ = { 256 | isa = PBXGroup; 257 | children = ( 258 | 05D746F321924850002CF085 /* Issues.xcconfig */, 259 | 05D746F421924850002CF085 /* Issues */, 260 | ); 261 | path = "Static-Analyzer"; 262 | sourceTree = ""; 263 | }; 264 | 05D746F421924850002CF085 /* Issues */ = { 265 | isa = PBXGroup; 266 | children = ( 267 | 05D746F521924850002CF085 /* Apple-APIs.xcconfig */, 268 | 05D746F621924850002CF085 /* Generic-Issues.xcconfig */, 269 | 05D746F721924850002CF085 /* Security.xcconfig */, 270 | 05D746F821924850002CF085 /* Objective-C.xcconfig */, 271 | 05D746F921924850002CF085 /* Analysis-Policy.xcconfig */, 272 | ); 273 | path = Issues; 274 | sourceTree = ""; 275 | }; 276 | 05D746FE21924850002CF085 /* Swift-Compiler */ = { 277 | isa = PBXGroup; 278 | children = ( 279 | 05D746FF21924850002CF085 /* Warnings-Policies.xcconfig */, 280 | 05D7470021924850002CF085 /* Code-Generation.xcconfig */, 281 | 05D7470121924850002CF085 /* Language.xcconfig */, 282 | 05D7470221924850002CF085 /* General.xcconfig */, 283 | ); 284 | path = "Swift-Compiler"; 285 | sourceTree = ""; 286 | }; 287 | 05D7470521924850002CF085 /* Apple-LLVM */ = { 288 | isa = PBXGroup; 289 | children = ( 290 | 05D7470621924850002CF085 /* Language */, 291 | 05D7470A21924850002CF085 /* Code-Generation.xcconfig */, 292 | 05D7470B21924850002CF085 /* Address-Sanitizer.xcconfig */, 293 | 05D7470C21924850002CF085 /* Language.xcconfig */, 294 | 05D7470D21924850002CF085 /* Warnings.xcconfig */, 295 | 05D7470E21924850002CF085 /* Undefined-Behavior-Sanitizer.xcconfig */, 296 | 05D7470F21924850002CF085 /* Warning-Policies.xcconfig */, 297 | 05D7471021924850002CF085 /* Warnings */, 298 | 05D7471521924850002CF085 /* Preprocessing.xcconfig */, 299 | ); 300 | path = "Apple-LLVM"; 301 | sourceTree = ""; 302 | }; 303 | 05D7470621924850002CF085 /* Language */ = { 304 | isa = PBXGroup; 305 | children = ( 306 | 05D7470721924850002CF085 /* Modules.xcconfig */, 307 | 05D7470821924850002CF085 /* Objective-C.xcconfig */, 308 | 05D7470921924850002CF085 /* C++.xcconfig */, 309 | ); 310 | path = Language; 311 | sourceTree = ""; 312 | }; 313 | 05D7471021924850002CF085 /* Warnings */ = { 314 | isa = PBXGroup; 315 | children = ( 316 | 05D7471121924850002CF085 /* Objective-C-ARC.xcconfig */, 317 | 05D7471221924850002CF085 /* Objective-C.xcconfig */, 318 | 05D7471321924850002CF085 /* C++.xcconfig */, 319 | 05D7471421924850002CF085 /* All-Languages.xcconfig */, 320 | ); 321 | path = Warnings; 322 | sourceTree = ""; 323 | }; 324 | 05D7471721924850002CF085 /* Scripts */ = { 325 | isa = PBXGroup; 326 | children = ( 327 | 05D7471821924850002CF085 /* ccache-config.sh */, 328 | 05D7471921924850002CF085 /* ccache.sh */, 329 | ); 330 | path = Scripts; 331 | sourceTree = ""; 332 | }; 333 | 05E3744C21925276000C6736 /* Products */ = { 334 | isa = PBXGroup; 335 | children = ( 336 | 05E3745121925277000C6736 /* GitHubUpdates.framework */, 337 | 05E3745321925277000C6736 /* Relauncher */, 338 | ); 339 | name = Products; 340 | sourceTree = ""; 341 | }; 342 | 05E3745421925281000C6736 /* Frameworks */ = { 343 | isa = PBXGroup; 344 | children = ( 345 | ); 346 | name = Frameworks; 347 | sourceTree = ""; 348 | }; 349 | /* End PBXGroup section */ 350 | 351 | /* Begin PBXNativeTarget section */ 352 | 059A0B4621905010004E1D89 /* Notarize */ = { 353 | isa = PBXNativeTarget; 354 | buildConfigurationList = 059A0B5521905012004E1D89 /* Build configuration list for PBXNativeTarget "Notarize" */; 355 | buildPhases = ( 356 | 059A0B4321905010004E1D89 /* Sources */, 357 | 059A0B4421905010004E1D89 /* Frameworks */, 358 | 055F744C219269B600C1724D /* ShellScript */, 359 | 059A0B4521905010004E1D89 /* Resources */, 360 | 05E374582192528D000C6736 /* CopyFiles */, 361 | ); 362 | buildRules = ( 363 | ); 364 | dependencies = ( 365 | 05E3745721925286000C6736 /* PBXTargetDependency */, 366 | ); 367 | name = Notarize; 368 | productName = Notarize; 369 | productReference = 059A0B4721905010004E1D89 /* Notarize.app */; 370 | productType = "com.apple.product-type.application"; 371 | }; 372 | /* End PBXNativeTarget section */ 373 | 374 | /* Begin PBXProject section */ 375 | 059A0B3F21905010004E1D89 /* Project object */ = { 376 | isa = PBXProject; 377 | attributes = { 378 | LastSwiftUpdateCheck = 1010; 379 | LastUpgradeCheck = 1300; 380 | ORGANIZATIONNAME = "XS-Labs"; 381 | TargetAttributes = { 382 | 059A0B4621905010004E1D89 = { 383 | CreatedOnToolsVersion = 10.1; 384 | SystemCapabilities = { 385 | com.apple.Sandbox = { 386 | enabled = 0; 387 | }; 388 | }; 389 | }; 390 | }; 391 | }; 392 | buildConfigurationList = 059A0B4221905010004E1D89 /* Build configuration list for PBXProject "Notarize" */; 393 | compatibilityVersion = "Xcode 9.3"; 394 | developmentRegion = en; 395 | hasScannedForEncodings = 0; 396 | knownRegions = ( 397 | en, 398 | Base, 399 | ); 400 | mainGroup = 059A0B3E21905010004E1D89; 401 | productRefGroup = 059A0B4821905010004E1D89 /* Products */; 402 | projectDirPath = ""; 403 | projectReferences = ( 404 | { 405 | ProductGroup = 05E3744C21925276000C6736 /* Products */; 406 | ProjectRef = 05E3744B21925276000C6736 /* GitHubUpdates.xcodeproj */; 407 | }, 408 | ); 409 | projectRoot = ""; 410 | targets = ( 411 | 059A0B4621905010004E1D89 /* Notarize */, 412 | ); 413 | }; 414 | /* End PBXProject section */ 415 | 416 | /* Begin PBXReferenceProxy section */ 417 | 05E3745121925277000C6736 /* GitHubUpdates.framework */ = { 418 | isa = PBXReferenceProxy; 419 | fileType = wrapper.framework; 420 | path = GitHubUpdates.framework; 421 | remoteRef = 05E3745021925277000C6736 /* PBXContainerItemProxy */; 422 | sourceTree = BUILT_PRODUCTS_DIR; 423 | }; 424 | 05E3745321925277000C6736 /* Relauncher */ = { 425 | isa = PBXReferenceProxy; 426 | fileType = "compiled.mach-o.executable"; 427 | path = Relauncher; 428 | remoteRef = 05E3745221925277000C6736 /* PBXContainerItemProxy */; 429 | sourceTree = BUILT_PRODUCTS_DIR; 430 | }; 431 | /* End PBXReferenceProxy section */ 432 | 433 | /* Begin PBXResourcesBuildPhase section */ 434 | 059A0B4521905010004E1D89 /* Resources */ = { 435 | isa = PBXResourcesBuildPhase; 436 | buildActionMask = 2147483647; 437 | files = ( 438 | 059A0B5D2190504B004E1D89 /* MainMenu.xib in Resources */, 439 | 05D746E52192315C002CF085 /* Notarize.HistoryViewController.xib in Resources */, 440 | 059A0B6C2190554D004E1D89 /* Notarize.AccountWindowController.xib in Resources */, 441 | 05D7471B21924CA6002CF085 /* Icon.icns in Resources */, 442 | 05D7471E21924D18002CF085 /* Notarize.AboutWindowController.xib in Resources */, 443 | 059A0B6421905107004E1D89 /* Notarize.MainWindowController.xib in Resources */, 444 | 059A0B6721905325004E1D89 /* Accounts.icns in Resources */, 445 | ); 446 | runOnlyForDeploymentPostprocessing = 0; 447 | }; 448 | /* End PBXResourcesBuildPhase section */ 449 | 450 | /* Begin PBXShellScriptBuildPhase section */ 451 | 055F744C219269B600C1724D /* ShellScript */ = { 452 | isa = PBXShellScriptBuildPhase; 453 | buildActionMask = 2147483647; 454 | files = ( 455 | ); 456 | inputFileListPaths = ( 457 | ); 458 | inputPaths = ( 459 | ); 460 | outputFileListPaths = ( 461 | ); 462 | outputPaths = ( 463 | ); 464 | runOnlyForDeploymentPostprocessing = 0; 465 | shellPath = /bin/sh; 466 | shellScript = "#!/bin/bash\nif [ \"${CONFIGURATION}\" = \"Release\" ]; then\n plist=\"Notarize/Info.plist\"\n rev=$(git rev-list `git branch | grep -e \"^*\" | cut -d' ' -f 2` | wc -l)\n /usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $rev\" \"$plist\"\nfi\n"; 467 | }; 468 | /* End PBXShellScriptBuildPhase section */ 469 | 470 | /* Begin PBXSourcesBuildPhase section */ 471 | 059A0B4321905010004E1D89 /* Sources */ = { 472 | isa = PBXSourcesBuildPhase; 473 | buildActionMask = 2147483647; 474 | files = ( 475 | 05D7469421919F53002CF085 /* Account.swift in Sources */, 476 | 05D7472021924D1F002CF085 /* AboutWindowController.swift in Sources */, 477 | 059A0B61219050A3004E1D89 /* MainWindowController.swift in Sources */, 478 | 05E3745D2192545A000C6736 /* IsNotEmpty.swift in Sources */, 479 | 05D746E721923630002CF085 /* HistoryItem.swift in Sources */, 480 | 05D746E021922726002CF085 /* ALTool.swift in Sources */, 481 | 059A0B6921905534004E1D89 /* AccountWindowController.swift in Sources */, 482 | 05D7469221919DE7002CF085 /* Preferences.swift in Sources */, 483 | 059A0B5E2190504B004E1D89 /* ApplicationDelegate.swift in Sources */, 484 | 05D746BA2191F0BB002CF085 /* Keychain.swift in Sources */, 485 | 05E3745B219253B5000C6736 /* IsEmpty.swift in Sources */, 486 | 05D746E2219230FC002CF085 /* HistoryViewController.swift in Sources */, 487 | ); 488 | runOnlyForDeploymentPostprocessing = 0; 489 | }; 490 | /* End PBXSourcesBuildPhase section */ 491 | 492 | /* Begin PBXTargetDependency section */ 493 | 05E3745721925286000C6736 /* PBXTargetDependency */ = { 494 | isa = PBXTargetDependency; 495 | name = GitHubUpdates; 496 | targetProxy = 05E3745621925286000C6736 /* PBXContainerItemProxy */; 497 | }; 498 | /* End PBXTargetDependency section */ 499 | 500 | /* Begin PBXVariantGroup section */ 501 | 059A0B592190504B004E1D89 /* MainMenu.xib */ = { 502 | isa = PBXVariantGroup; 503 | children = ( 504 | 059A0B5A2190504B004E1D89 /* Base */, 505 | ); 506 | name = MainMenu.xib; 507 | sourceTree = ""; 508 | }; 509 | 059A0B6221905107004E1D89 /* Notarize.MainWindowController.xib */ = { 510 | isa = PBXVariantGroup; 511 | children = ( 512 | 059A0B6321905107004E1D89 /* Base */, 513 | ); 514 | name = Notarize.MainWindowController.xib; 515 | sourceTree = ""; 516 | }; 517 | 059A0B6A2190554D004E1D89 /* Notarize.AccountWindowController.xib */ = { 518 | isa = PBXVariantGroup; 519 | children = ( 520 | 059A0B6B2190554D004E1D89 /* Base */, 521 | ); 522 | name = Notarize.AccountWindowController.xib; 523 | sourceTree = ""; 524 | }; 525 | 05D746E32192315C002CF085 /* Notarize.HistoryViewController.xib */ = { 526 | isa = PBXVariantGroup; 527 | children = ( 528 | 05D746E42192315C002CF085 /* Base */, 529 | ); 530 | name = Notarize.HistoryViewController.xib; 531 | sourceTree = ""; 532 | }; 533 | 05D7471C21924D18002CF085 /* Notarize.AboutWindowController.xib */ = { 534 | isa = PBXVariantGroup; 535 | children = ( 536 | 05D7471D21924D18002CF085 /* Base */, 537 | ); 538 | name = Notarize.AboutWindowController.xib; 539 | sourceTree = ""; 540 | }; 541 | /* End PBXVariantGroup section */ 542 | 543 | /* Begin XCBuildConfiguration section */ 544 | 059A0B5321905012004E1D89 /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = 05D746EC21924850002CF085 /* Debug.xcconfig */; 547 | buildSettings = { 548 | }; 549 | name = Debug; 550 | }; 551 | 059A0B5421905012004E1D89 /* Release */ = { 552 | isa = XCBuildConfiguration; 553 | baseConfigurationReference = 05D746ED21924850002CF085 /* Release.xcconfig */; 554 | buildSettings = { 555 | }; 556 | name = Release; 557 | }; 558 | 059A0B5621905012004E1D89 /* Debug */ = { 559 | isa = XCBuildConfiguration; 560 | buildSettings = { 561 | INFOPLIST_FILE = Notarize/Info.plist; 562 | LD_RUNPATH_SEARCH_PATHS = ( 563 | "$(inherited)", 564 | "@executable_path/../Frameworks", 565 | ); 566 | MARKETING_VERSION = 1.2.0; 567 | PRODUCT_BUNDLE_IDENTIFIER = "com.xs-labs.Notarize"; 568 | PRODUCT_NAME = "$(TARGET_NAME)"; 569 | }; 570 | name = Debug; 571 | }; 572 | 059A0B5721905012004E1D89 /* Release */ = { 573 | isa = XCBuildConfiguration; 574 | buildSettings = { 575 | INFOPLIST_FILE = Notarize/Info.plist; 576 | LD_RUNPATH_SEARCH_PATHS = ( 577 | "$(inherited)", 578 | "@executable_path/../Frameworks", 579 | ); 580 | MARKETING_VERSION = 1.2.0; 581 | PRODUCT_BUNDLE_IDENTIFIER = "com.xs-labs.Notarize"; 582 | PRODUCT_NAME = "$(TARGET_NAME)"; 583 | }; 584 | name = Release; 585 | }; 586 | /* End XCBuildConfiguration section */ 587 | 588 | /* Begin XCConfigurationList section */ 589 | 059A0B4221905010004E1D89 /* Build configuration list for PBXProject "Notarize" */ = { 590 | isa = XCConfigurationList; 591 | buildConfigurations = ( 592 | 059A0B5321905012004E1D89 /* Debug */, 593 | 059A0B5421905012004E1D89 /* Release */, 594 | ); 595 | defaultConfigurationIsVisible = 0; 596 | defaultConfigurationName = Release; 597 | }; 598 | 059A0B5521905012004E1D89 /* Build configuration list for PBXNativeTarget "Notarize" */ = { 599 | isa = XCConfigurationList; 600 | buildConfigurations = ( 601 | 059A0B5621905012004E1D89 /* Debug */, 602 | 059A0B5721905012004E1D89 /* Release */, 603 | ); 604 | defaultConfigurationIsVisible = 0; 605 | defaultConfigurationName = Release; 606 | }; 607 | /* End XCConfigurationList section */ 608 | }; 609 | rootObject = 059A0B3F21905010004E1D89 /* Project object */; 610 | } 611 | -------------------------------------------------------------------------------- /Notarize/UI/Base.lproj/Notarize.MainWindowController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | NSIsNil 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 182 | 186 | 187 | 201 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | NSIsNotNil 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | NSIsNil 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | NSNegateBoolean 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | -------------------------------------------------------------------------------- /Notarize/UI/Base.lproj/Notarize.HistoryViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | NSNegateBoolean 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | Notarize.IsNotEmpty 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | NSNegateBoolean 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 353 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | Notarize.IsEmpty 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | --------------------------------------------------------------------------------