├── .gitignore ├── LICENSE ├── Notarized.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── Notarized ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Artboard-1.png │ │ ├── Artboard.png │ │ ├── Artboard@0.5x-1.png │ │ ├── Artboard@0.5x.png │ │ ├── Artboard@2x.png │ │ └── Contents.json │ ├── CheckmarkChecked.imageset │ │ ├── CheckmarkChecked.png │ │ ├── CheckmarkChecked@2x.png │ │ └── Contents.json │ ├── CheckmarkUnchecked.imageset │ │ ├── CheckmarkUnchecked.png │ │ ├── CheckmarkUnchecked@2x.png │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ └── MainMenu.xib ├── Info.plist ├── NTAppDelegate.h ├── NTAppDelegate.m ├── NTApplication.h ├── NTApplication.m ├── NTApplicationsFetcher.h ├── NTApplicationsFetcher.m ├── NTBoolToCheckmarkTransformer.h ├── NTBoolToCheckmarkTransformer.m ├── NTTaskRunner.h ├── NTTaskRunner.m └── main.m ├── README.md └── assets ├── logo.png ├── screenshot1.png └── screenshot2.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 52 | 53 | fastlane/report.xml 54 | fastlane/Preview.html 55 | fastlane/screenshots/**/*.png 56 | fastlane/test_output 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ 64 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 MacPaw 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Notarized.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | A78A94AE21CABCB30079D10B /* NTBoolToCheckmarkTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = A78A94AD21CABCB30079D10B /* NTBoolToCheckmarkTransformer.m */; }; 11 | A78A94B121CAC5DF0079D10B /* NTTaskRunner.m in Sources */ = {isa = PBXBuildFile; fileRef = A78A94B021CAC5DF0079D10B /* NTTaskRunner.m */; }; 12 | A7B0761F21C18E5700AD998C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A7B0761E21C18E5700AD998C /* Assets.xcassets */; }; 13 | A7B0762221C18E5700AD998C /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = A7B0762021C18E5700AD998C /* MainMenu.xib */; }; 14 | A7B0762521C18E5700AD998C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A7B0762421C18E5700AD998C /* main.m */; }; 15 | A7BA785021D24469007F238A /* NTApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = A7BA784F21D24469007F238A /* NTApplication.m */; }; 16 | A7BA785221D24577007F238A /* NTAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A7BA785121D24577007F238A /* NTAppDelegate.m */; }; 17 | A7EC9BAD21D255A300683B7D /* NTApplicationsFetcher.m in Sources */ = {isa = PBXBuildFile; fileRef = A7EC9BAC21D255A300683B7D /* NTApplicationsFetcher.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | A78A94AC21CABCB30079D10B /* NTBoolToCheckmarkTransformer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NTBoolToCheckmarkTransformer.h; sourceTree = ""; }; 22 | A78A94AD21CABCB30079D10B /* NTBoolToCheckmarkTransformer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NTBoolToCheckmarkTransformer.m; sourceTree = ""; }; 23 | A78A94AF21CAC5DF0079D10B /* NTTaskRunner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NTTaskRunner.h; sourceTree = ""; }; 24 | A78A94B021CAC5DF0079D10B /* NTTaskRunner.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NTTaskRunner.m; sourceTree = ""; }; 25 | A7B0761821C18E5500AD998C /* Notarized.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Notarized.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | A7B0761B21C18E5500AD998C /* NTAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NTAppDelegate.h; sourceTree = ""; }; 27 | A7B0761E21C18E5700AD998C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | A7B0762121C18E5700AD998C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 29 | A7B0762321C18E5700AD998C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | A7B0762421C18E5700AD998C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 31 | A7B0762C21C18F8600AD998C /* NTApplication.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NTApplication.h; sourceTree = ""; }; 32 | A7BA784F21D24469007F238A /* NTApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NTApplication.m; sourceTree = ""; }; 33 | A7BA785121D24577007F238A /* NTAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NTAppDelegate.m; sourceTree = ""; }; 34 | A7EC9BAB21D255A300683B7D /* NTApplicationsFetcher.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NTApplicationsFetcher.h; sourceTree = ""; }; 35 | A7EC9BAC21D255A300683B7D /* NTApplicationsFetcher.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NTApplicationsFetcher.m; sourceTree = ""; }; 36 | /* End PBXFileReference section */ 37 | 38 | /* Begin PBXFrameworksBuildPhase section */ 39 | A7B0761521C18E5500AD998C /* Frameworks */ = { 40 | isa = PBXFrameworksBuildPhase; 41 | buildActionMask = 2147483647; 42 | files = ( 43 | ); 44 | runOnlyForDeploymentPostprocessing = 0; 45 | }; 46 | /* End PBXFrameworksBuildPhase section */ 47 | 48 | /* Begin PBXGroup section */ 49 | A7B0760F21C18E5500AD998C = { 50 | isa = PBXGroup; 51 | children = ( 52 | A7B0761A21C18E5500AD998C /* Notarized */, 53 | A7B0761921C18E5500AD998C /* Products */, 54 | ); 55 | sourceTree = ""; 56 | }; 57 | A7B0761921C18E5500AD998C /* Products */ = { 58 | isa = PBXGroup; 59 | children = ( 60 | A7B0761821C18E5500AD998C /* Notarized.app */, 61 | ); 62 | name = Products; 63 | sourceTree = ""; 64 | }; 65 | A7B0761A21C18E5500AD998C /* Notarized */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | A7B0761B21C18E5500AD998C /* NTAppDelegate.h */, 69 | A7BA785121D24577007F238A /* NTAppDelegate.m */, 70 | A7B0762C21C18F8600AD998C /* NTApplication.h */, 71 | A7BA784F21D24469007F238A /* NTApplication.m */, 72 | A78A94AC21CABCB30079D10B /* NTBoolToCheckmarkTransformer.h */, 73 | A78A94AD21CABCB30079D10B /* NTBoolToCheckmarkTransformer.m */, 74 | A7EC9BAB21D255A300683B7D /* NTApplicationsFetcher.h */, 75 | A7EC9BAC21D255A300683B7D /* NTApplicationsFetcher.m */, 76 | A78A94AF21CAC5DF0079D10B /* NTTaskRunner.h */, 77 | A78A94B021CAC5DF0079D10B /* NTTaskRunner.m */, 78 | A7B0761E21C18E5700AD998C /* Assets.xcassets */, 79 | A7B0762021C18E5700AD998C /* MainMenu.xib */, 80 | A7B0762321C18E5700AD998C /* Info.plist */, 81 | A7B0762421C18E5700AD998C /* main.m */, 82 | ); 83 | path = Notarized; 84 | sourceTree = ""; 85 | }; 86 | /* End PBXGroup section */ 87 | 88 | /* Begin PBXNativeTarget section */ 89 | A7B0761721C18E5500AD998C /* Notarized */ = { 90 | isa = PBXNativeTarget; 91 | buildConfigurationList = A7B0762921C18E5700AD998C /* Build configuration list for PBXNativeTarget "Notarized" */; 92 | buildPhases = ( 93 | A7B0761421C18E5500AD998C /* Sources */, 94 | A7B0761521C18E5500AD998C /* Frameworks */, 95 | A7B0761621C18E5500AD998C /* Resources */, 96 | ); 97 | buildRules = ( 98 | ); 99 | dependencies = ( 100 | ); 101 | name = Notarized; 102 | productName = Notarized; 103 | productReference = A7B0761821C18E5500AD998C /* Notarized.app */; 104 | productType = "com.apple.product-type.application"; 105 | }; 106 | /* End PBXNativeTarget section */ 107 | 108 | /* Begin PBXProject section */ 109 | A7B0761021C18E5500AD998C /* Project object */ = { 110 | isa = PBXProject; 111 | attributes = { 112 | LastUpgradeCheck = 1010; 113 | ORGANIZATIONNAME = MacPaw; 114 | TargetAttributes = { 115 | A7B0761721C18E5500AD998C = { 116 | CreatedOnToolsVersion = 10.1; 117 | SystemCapabilities = { 118 | com.apple.Sandbox = { 119 | enabled = 0; 120 | }; 121 | }; 122 | }; 123 | }; 124 | }; 125 | buildConfigurationList = A7B0761321C18E5500AD998C /* Build configuration list for PBXProject "Notarized" */; 126 | compatibilityVersion = "Xcode 9.3"; 127 | developmentRegion = en; 128 | hasScannedForEncodings = 0; 129 | knownRegions = ( 130 | en, 131 | Base, 132 | ); 133 | mainGroup = A7B0760F21C18E5500AD998C; 134 | productRefGroup = A7B0761921C18E5500AD998C /* Products */; 135 | projectDirPath = ""; 136 | projectRoot = ""; 137 | targets = ( 138 | A7B0761721C18E5500AD998C /* Notarized */, 139 | ); 140 | }; 141 | /* End PBXProject section */ 142 | 143 | /* Begin PBXResourcesBuildPhase section */ 144 | A7B0761621C18E5500AD998C /* Resources */ = { 145 | isa = PBXResourcesBuildPhase; 146 | buildActionMask = 2147483647; 147 | files = ( 148 | A7B0761F21C18E5700AD998C /* Assets.xcassets in Resources */, 149 | A7B0762221C18E5700AD998C /* MainMenu.xib in Resources */, 150 | ); 151 | runOnlyForDeploymentPostprocessing = 0; 152 | }; 153 | /* End PBXResourcesBuildPhase section */ 154 | 155 | /* Begin PBXSourcesBuildPhase section */ 156 | A7B0761421C18E5500AD998C /* Sources */ = { 157 | isa = PBXSourcesBuildPhase; 158 | buildActionMask = 2147483647; 159 | files = ( 160 | A78A94B121CAC5DF0079D10B /* NTTaskRunner.m in Sources */, 161 | A7B0762521C18E5700AD998C /* main.m in Sources */, 162 | A7EC9BAD21D255A300683B7D /* NTApplicationsFetcher.m in Sources */, 163 | A7BA785021D24469007F238A /* NTApplication.m in Sources */, 164 | A7BA785221D24577007F238A /* NTAppDelegate.m in Sources */, 165 | A78A94AE21CABCB30079D10B /* NTBoolToCheckmarkTransformer.m in Sources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXSourcesBuildPhase section */ 170 | 171 | /* Begin PBXVariantGroup section */ 172 | A7B0762021C18E5700AD998C /* MainMenu.xib */ = { 173 | isa = PBXVariantGroup; 174 | children = ( 175 | A7B0762121C18E5700AD998C /* Base */, 176 | ); 177 | name = MainMenu.xib; 178 | sourceTree = ""; 179 | }; 180 | /* End PBXVariantGroup section */ 181 | 182 | /* Begin XCBuildConfiguration section */ 183 | A7B0762721C18E5700AD998C /* Debug */ = { 184 | isa = XCBuildConfiguration; 185 | buildSettings = { 186 | ALWAYS_SEARCH_USER_PATHS = NO; 187 | CLANG_ANALYZER_NONNULL = YES; 188 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 189 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 190 | CLANG_CXX_LIBRARY = "libc++"; 191 | CLANG_ENABLE_MODULES = YES; 192 | CLANG_ENABLE_OBJC_ARC = YES; 193 | CLANG_ENABLE_OBJC_WEAK = YES; 194 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 195 | CLANG_WARN_BOOL_CONVERSION = YES; 196 | CLANG_WARN_COMMA = YES; 197 | CLANG_WARN_CONSTANT_CONVERSION = YES; 198 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 199 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 200 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 201 | CLANG_WARN_EMPTY_BODY = YES; 202 | CLANG_WARN_ENUM_CONVERSION = YES; 203 | CLANG_WARN_INFINITE_RECURSION = YES; 204 | CLANG_WARN_INT_CONVERSION = YES; 205 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 206 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 207 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 208 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 209 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 210 | CLANG_WARN_STRICT_PROTOTYPES = YES; 211 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 212 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 213 | CLANG_WARN_UNREACHABLE_CODE = YES; 214 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 215 | CODE_SIGN_IDENTITY = "Mac Developer"; 216 | COPY_PHASE_STRIP = NO; 217 | DEBUG_INFORMATION_FORMAT = dwarf; 218 | ENABLE_STRICT_OBJC_MSGSEND = YES; 219 | ENABLE_TESTABILITY = YES; 220 | GCC_C_LANGUAGE_STANDARD = gnu11; 221 | GCC_DYNAMIC_NO_PIC = NO; 222 | GCC_NO_COMMON_BLOCKS = YES; 223 | GCC_OPTIMIZATION_LEVEL = 0; 224 | GCC_PREPROCESSOR_DEFINITIONS = ( 225 | "DEBUG=1", 226 | "$(inherited)", 227 | ); 228 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 229 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 230 | GCC_WARN_UNDECLARED_SELECTOR = YES; 231 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 232 | GCC_WARN_UNUSED_FUNCTION = YES; 233 | GCC_WARN_UNUSED_VARIABLE = YES; 234 | MACOSX_DEPLOYMENT_TARGET = 10.14; 235 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 236 | MTL_FAST_MATH = YES; 237 | ONLY_ACTIVE_ARCH = YES; 238 | SDKROOT = macosx; 239 | }; 240 | name = Debug; 241 | }; 242 | A7B0762821C18E5700AD998C /* Release */ = { 243 | isa = XCBuildConfiguration; 244 | buildSettings = { 245 | ALWAYS_SEARCH_USER_PATHS = NO; 246 | CLANG_ANALYZER_NONNULL = YES; 247 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 248 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 249 | CLANG_CXX_LIBRARY = "libc++"; 250 | CLANG_ENABLE_MODULES = YES; 251 | CLANG_ENABLE_OBJC_ARC = YES; 252 | CLANG_ENABLE_OBJC_WEAK = YES; 253 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 254 | CLANG_WARN_BOOL_CONVERSION = YES; 255 | CLANG_WARN_COMMA = YES; 256 | CLANG_WARN_CONSTANT_CONVERSION = YES; 257 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 258 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 259 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 260 | CLANG_WARN_EMPTY_BODY = YES; 261 | CLANG_WARN_ENUM_CONVERSION = YES; 262 | CLANG_WARN_INFINITE_RECURSION = YES; 263 | CLANG_WARN_INT_CONVERSION = YES; 264 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 265 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 266 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 267 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 268 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 269 | CLANG_WARN_STRICT_PROTOTYPES = YES; 270 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 271 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 272 | CLANG_WARN_UNREACHABLE_CODE = YES; 273 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 274 | CODE_SIGN_IDENTITY = "Mac Developer"; 275 | COPY_PHASE_STRIP = NO; 276 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 277 | ENABLE_NS_ASSERTIONS = NO; 278 | ENABLE_STRICT_OBJC_MSGSEND = YES; 279 | GCC_C_LANGUAGE_STANDARD = gnu11; 280 | GCC_NO_COMMON_BLOCKS = YES; 281 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 282 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 283 | GCC_WARN_UNDECLARED_SELECTOR = YES; 284 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 285 | GCC_WARN_UNUSED_FUNCTION = YES; 286 | GCC_WARN_UNUSED_VARIABLE = YES; 287 | MACOSX_DEPLOYMENT_TARGET = 10.14; 288 | MTL_ENABLE_DEBUG_INFO = NO; 289 | MTL_FAST_MATH = YES; 290 | SDKROOT = macosx; 291 | }; 292 | name = Release; 293 | }; 294 | A7B0762A21C18E5700AD998C /* Debug */ = { 295 | isa = XCBuildConfiguration; 296 | buildSettings = { 297 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 298 | CODE_SIGN_STYLE = Automatic; 299 | COMBINE_HIDPI_IMAGES = YES; 300 | DEVELOPMENT_TEAM = S8EX82NJP6; 301 | INFOPLIST_FILE = Notarized/Info.plist; 302 | LD_RUNPATH_SEARCH_PATHS = ( 303 | "$(inherited)", 304 | "@executable_path/../Frameworks", 305 | ); 306 | PRODUCT_BUNDLE_IDENTIFIER = com.macpaw.notarized.Notarized; 307 | PRODUCT_NAME = "$(TARGET_NAME)"; 308 | }; 309 | name = Debug; 310 | }; 311 | A7B0762B21C18E5700AD998C /* Release */ = { 312 | isa = XCBuildConfiguration; 313 | buildSettings = { 314 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 315 | CODE_SIGN_STYLE = Automatic; 316 | COMBINE_HIDPI_IMAGES = YES; 317 | DEVELOPMENT_TEAM = S8EX82NJP6; 318 | INFOPLIST_FILE = Notarized/Info.plist; 319 | LD_RUNPATH_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "@executable_path/../Frameworks", 322 | ); 323 | PRODUCT_BUNDLE_IDENTIFIER = com.macpaw.notarized.Notarized; 324 | PRODUCT_NAME = "$(TARGET_NAME)"; 325 | }; 326 | name = Release; 327 | }; 328 | /* End XCBuildConfiguration section */ 329 | 330 | /* Begin XCConfigurationList section */ 331 | A7B0761321C18E5500AD998C /* Build configuration list for PBXProject "Notarized" */ = { 332 | isa = XCConfigurationList; 333 | buildConfigurations = ( 334 | A7B0762721C18E5700AD998C /* Debug */, 335 | A7B0762821C18E5700AD998C /* Release */, 336 | ); 337 | defaultConfigurationIsVisible = 0; 338 | defaultConfigurationName = Release; 339 | }; 340 | A7B0762921C18E5700AD998C /* Build configuration list for PBXNativeTarget "Notarized" */ = { 341 | isa = XCConfigurationList; 342 | buildConfigurations = ( 343 | A7B0762A21C18E5700AD998C /* Debug */, 344 | A7B0762B21C18E5700AD998C /* Release */, 345 | ); 346 | defaultConfigurationIsVisible = 0; 347 | defaultConfigurationName = Release; 348 | }; 349 | /* End XCConfigurationList section */ 350 | }; 351 | rootObject = A7B0761021C18E5500AD998C /* Project object */; 352 | } 353 | -------------------------------------------------------------------------------- /Notarized.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Notarized.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/AppIcon.appiconset/Artboard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/AppIcon.appiconset/Artboard-1.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/AppIcon.appiconset/Artboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/AppIcon.appiconset/Artboard.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/AppIcon.appiconset/Artboard@0.5x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/AppIcon.appiconset/Artboard@0.5x-1.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/AppIcon.appiconset/Artboard@0.5x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/AppIcon.appiconset/Artboard@0.5x.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/AppIcon.appiconset/Artboard@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/AppIcon.appiconset/Artboard@2x.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "size" : "128x128", 30 | "idiom" : "mac", 31 | "filename" : "Artboard@0.5x-1.png", 32 | "scale" : "2x" 33 | }, 34 | { 35 | "size" : "256x256", 36 | "idiom" : "mac", 37 | "filename" : "Artboard@0.5x.png", 38 | "scale" : "1x" 39 | }, 40 | { 41 | "size" : "256x256", 42 | "idiom" : "mac", 43 | "filename" : "Artboard-1.png", 44 | "scale" : "2x" 45 | }, 46 | { 47 | "size" : "512x512", 48 | "idiom" : "mac", 49 | "filename" : "Artboard.png", 50 | "scale" : "1x" 51 | }, 52 | { 53 | "size" : "512x512", 54 | "idiom" : "mac", 55 | "filename" : "Artboard@2x.png", 56 | "scale" : "2x" 57 | } 58 | ], 59 | "info" : { 60 | "version" : 1, 61 | "author" : "xcode" 62 | } 63 | } -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/CheckmarkChecked.imageset/CheckmarkChecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/CheckmarkChecked.imageset/CheckmarkChecked.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/CheckmarkChecked.imageset/CheckmarkChecked@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/CheckmarkChecked.imageset/CheckmarkChecked@2x.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/CheckmarkChecked.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "CheckmarkChecked.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "CheckmarkChecked@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/CheckmarkUnchecked.imageset/CheckmarkUnchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/CheckmarkUnchecked.imageset/CheckmarkUnchecked.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/CheckmarkUnchecked.imageset/CheckmarkUnchecked@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/Notarized/Assets.xcassets/CheckmarkUnchecked.imageset/CheckmarkUnchecked@2x.png -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/CheckmarkUnchecked.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "CheckmarkUnchecked.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "CheckmarkUnchecked@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Notarized/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Notarized/Base.lproj/MainMenu.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 | 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 | 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 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 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 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 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 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | Default 547 | 548 | 549 | 550 | 551 | 552 | 553 | Left to Right 554 | 555 | 556 | 557 | 558 | 559 | 560 | Right to Left 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | Default 572 | 573 | 574 | 575 | 576 | 577 | 578 | Left to Right 579 | 580 | 581 | 582 | 583 | 584 | 585 | Right to Left 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | NTBoolToCheckmarkTransformer 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 868 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | NSNegateBoolean 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | -------------------------------------------------------------------------------- /Notarized/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | Copyright © 2018 MacPaw. All rights reserved. 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /Notarized/NTAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/12/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NTAppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Notarized/NTAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/12/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | #import "NTAppDelegate.h" 10 | #import "NTApplication.h" 11 | #import "NTApplicationsFetcher.h" 12 | 13 | @interface NTAppDelegate () 14 | 15 | @property (weak) IBOutlet NSTextField *processingLabel; 16 | @property (weak) IBOutlet NSLayoutConstraint *tableViewHeightConstraint; 17 | @property (weak) IBOutlet NSWindow *window; 18 | 19 | @property (nonatomic, strong) NSArray *sortDescriptors; 20 | @property (nonatomic, strong) NSArray *applications; 21 | 22 | @property (nonatomic) BOOL isProcessing; 23 | @property (nonatomic) NSInteger processedApplicationsCount; 24 | @property (nonatomic) NSInteger applicationsCount; 25 | 26 | @property (nonatomic, strong) dispatch_queue_t workingQueue; 27 | 28 | @end 29 | 30 | @implementation NTAppDelegate 31 | 32 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification 33 | { 34 | self.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES], 35 | [NSSortDescriptor sortDescriptorWithKey:@"path" ascending:YES], 36 | [NSSortDescriptor sortDescriptorWithKey:@"isNotarized" ascending:NO]]; 37 | self.workingQueue = dispatch_queue_create([[self className] cStringUsingEncoding:NSUTF8StringEncoding], DISPATCH_QUEUE_SERIAL); 38 | 39 | NTApplicationsFetcher *fetcher = [NTApplicationsFetcher new]; 40 | NSArray *applications = [fetcher fetchDeveloperIDapplications]; 41 | [self _setupLoadingStateWithApplications:applications]; 42 | [self _loadNotarizationStatusesWithApplications:applications]; 43 | } 44 | 45 | - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender 46 | { 47 | return YES; 48 | } 49 | 50 | #pragma mark - 51 | 52 | - (void)_setupLoadingStateWithApplications:(NSArray *)applications 53 | { 54 | [self _setupViewCollapsed:YES animated:NO]; 55 | self.isProcessing = YES; 56 | self.applicationsCount = applications.count; 57 | } 58 | 59 | - (void)_setupCompletedStateWithApplications:(NSArray *)applications 60 | { 61 | [self _setupViewCollapsed:NO animated:YES]; 62 | self.isProcessing = NO; 63 | NSPredicate *predicate = [NSPredicate predicateWithFormat:@"isNotarized == YES"]; 64 | NSArray *notarizedApps = [applications filteredArrayUsingPredicate:predicate]; 65 | [self _updateProgressLabelWithPrefix:@"Notarization Result:" totalCount:applications.count processedCount:notarizedApps.count]; 66 | } 67 | 68 | - (void)_setupViewCollapsed:(BOOL)collapsed animated:(BOOL)animated 69 | { 70 | [NSAnimationContext runAnimationGroup:^(NSAnimationContext * _Nonnull context) { 71 | context.duration = animated ? 0.4 : 0.0f; 72 | self.tableViewHeightConstraint.animator.constant = collapsed ? 0 : 500; 73 | } completionHandler:^{ 74 | self.tableViewHeightConstraint.active = collapsed; 75 | }]; 76 | } 77 | 78 | - (void)_updateProgressLabelWithPrefix:(NSString *)prefix totalCount:(NSInteger)totalCount processedCount:(NSInteger)processedCount 79 | { 80 | self.processingLabel.stringValue = [NSString stringWithFormat:@"%@ %ld of %ld", prefix, processedCount, totalCount]; 81 | } 82 | 83 | - (void)_loadNotarizationStatusesWithApplications:(NSArray *)applications 84 | { 85 | dispatch_group_t group = dispatch_group_create(); 86 | [applications enumerateObjectsUsingBlock:^(NTApplication * _Nonnull application, NSUInteger idx, BOOL * _Nonnull stop) { 87 | dispatch_group_async(group, self.workingQueue, ^{ 88 | [application loadNotarizationStatus]; 89 | dispatch_async(dispatch_get_main_queue(), ^{ 90 | self.processedApplicationsCount++; 91 | [self _updateProgressLabelWithPrefix:@"Processing:" totalCount:self.applicationsCount processedCount:self.processedApplicationsCount]; 92 | }); 93 | }); 94 | }]; 95 | dispatch_group_notify(group, self.workingQueue, ^ { 96 | dispatch_async(dispatch_get_main_queue(), ^{ 97 | self.applications = applications; 98 | [self _setupCompletedStateWithApplications:applications]; 99 | }); 100 | }); 101 | } 102 | 103 | @end 104 | -------------------------------------------------------------------------------- /Notarized/NTApplication.h: -------------------------------------------------------------------------------- 1 | // 2 | // Application.h 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/12/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | @import AppKit; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface NTApplication : NSObject 14 | 15 | - (instancetype)initWithURL:(NSURL *)url; 16 | 17 | @property (nonatomic, readonly) BOOL isNotarized; 18 | @property (nonatomic, readonly) BOOL isAppStoreApplication; 19 | 20 | @property (nonatomic, strong, readonly) NSImage *icon; 21 | 22 | @property (nonatomic, readonly) NSString *path; 23 | @property (nonatomic, readonly) NSString *name; 24 | 25 | @end 26 | 27 | @interface NTApplication(Unavailable) 28 | 29 | - (instancetype)init NS_UNAVAILABLE; 30 | + (instancetype)new NS_UNAVAILABLE; 31 | 32 | @end 33 | 34 | @interface NTApplication(DataLoading) 35 | 36 | - (void)loadNotarizationStatus; 37 | 38 | @end 39 | 40 | NS_ASSUME_NONNULL_END 41 | -------------------------------------------------------------------------------- /Notarized/NTApplication.m: -------------------------------------------------------------------------------- 1 | // 2 | // Application.m 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/12/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | #import "NTApplication.h" 10 | #import "NTTaskRunner.h" 11 | 12 | @implementation NTApplication 13 | 14 | @synthesize isNotarized = _isNotarized; 15 | @synthesize icon = _icon; 16 | 17 | - (instancetype)initWithURL:(NSURL *)url 18 | { 19 | self = [super init]; 20 | if (self) 21 | { 22 | _path = [url path]; 23 | _name = [[url lastPathComponent] stringByDeletingPathExtension]; 24 | _isAppStoreApplication = [self _loadAppStoreStatus]; 25 | } 26 | return self; 27 | } 28 | 29 | - (NSImage *)icon 30 | { 31 | if (!_icon) 32 | { 33 | _icon = [[NSWorkspace sharedWorkspace] iconForFile:self.path]; 34 | } 35 | return _icon; 36 | } 37 | 38 | #pragma mark - Private 39 | 40 | - (BOOL)_loadAppStoreStatus 41 | { 42 | NSString *receiptPath = [self.path stringByAppendingPathComponent:@"Contents/_MASReceipt/receipt"]; 43 | BOOL exists = [[NSURL fileURLWithPath:receiptPath] checkResourceIsReachableAndReturnError:NULL]; 44 | if (exists) 45 | { 46 | return YES; 47 | } 48 | NSURL *infoPlist = [[NSURL fileURLWithPath:self.path] URLByAppendingPathComponent:@"Contents/Info.plist"]; 49 | NSDictionary *dict = [NSDictionary dictionaryWithContentsOfURL:infoPlist]; 50 | return [dict[@"CFBundleIdentifier"] hasPrefix:@"com.apple"]; 51 | } 52 | 53 | @end 54 | 55 | @implementation NTApplication (DataLoading) 56 | 57 | - (void)loadNotarizationStatus 58 | { 59 | NSString *result = [NTTaskRunner getOutput:@"/usr/sbin/spctl" arguments:@[@"-a", @"-v", self.path] suppressErrorOutput:NO useErrorOutputAsStd:YES resultCode:NULL]; 60 | [self willChangeValueForKey:@"isNotarized"]; 61 | _isNotarized = [result rangeOfString:@"source=Notarized Developer ID"].location != NSNotFound; 62 | [self didChangeValueForKey:@"isNotarized"]; 63 | } 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /Notarized/NTApplicationsFetcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // NTApplicationsFetcher.h 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/25/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | @import Foundation; 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @class NTApplication; 14 | @interface NTApplicationsFetcher : NSObject 15 | 16 | - (NSArray *)fetchDeveloperIDapplications; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /Notarized/NTApplicationsFetcher.m: -------------------------------------------------------------------------------- 1 | // 2 | // NTApplicationsFetcher.m 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/25/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | #import "NTApplicationsFetcher.h" 10 | #import "NTApplication.h" 11 | 12 | @implementation NTApplicationsFetcher 13 | 14 | - (NSArray *)fetchDeveloperIDapplications 15 | { 16 | NSArray *urls = [[NSFileManager defaultManager] contentsOfDirectoryAtURL:[NSURL fileURLWithPath:@"/Applications"] includingPropertiesForKeys:nil options:0 error:nil]; 17 | NSMutableArray *apps = [NSMutableArray new]; 18 | for (NSURL *url in urls) 19 | { 20 | if ([url.pathExtension isEqualToString:@"app"]) 21 | { 22 | NTApplication *app = [[NTApplication alloc] initWithURL:url]; 23 | if (app.isAppStoreApplication == NO) 24 | { 25 | [apps addObject:app]; 26 | } 27 | } 28 | } 29 | return [[apps copy] sortedArrayUsingDescriptors:@[[NSSortDescriptor sortDescriptorWithKey:@"name" ascending:YES]]]; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Notarized/NTBoolToCheckmarkTransformer.h: -------------------------------------------------------------------------------- 1 | // 2 | // BoolToCheckmarkTransformer.h 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/19/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface NTBoolToCheckmarkTransformer : NSValueTransformer 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Notarized/NTBoolToCheckmarkTransformer.m: -------------------------------------------------------------------------------- 1 | // 2 | // BoolToCheckmarkTransformer.m 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/19/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | @import AppKit; 10 | 11 | #import "NTBoolToCheckmarkTransformer.h" 12 | 13 | @implementation NTBoolToCheckmarkTransformer 14 | 15 | - (id)transformedValue:(NSNumber *)value 16 | { 17 | NSString *name = [value boolValue] ? @"CheckmarkChecked" : @"CheckmarkUnchecked"; 18 | return [NSImage imageNamed:name]; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Notarized/NTTaskRunner.h: -------------------------------------------------------------------------------- 1 | // 2 | // NTTaskRunner.h 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/12/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | @import Cocoa; 10 | 11 | @interface NTTaskRunner : NSObject 12 | 13 | + (NSString *)getOutput:(NSString *)cmd arguments:(NSArray *)args suppressErrorOutput:(BOOL)suppressErrorOutput useErrorOutputAsStd:(BOOL)useErrorOutputAsStd resultCode:(NSInteger *)resultCode; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Notarized/NTTaskRunner.m: -------------------------------------------------------------------------------- 1 | // 2 | // NTTaskRunner.m 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/12/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | #import "NTTaskRunner.h" 10 | 11 | static CGFloat NTTaskRunningWaitTime = 0.01f; 12 | 13 | @implementation NTTaskRunner 14 | 15 | /// configurable task exec suppressErrorOutput = YES - error output => null 16 | /// useErrorOutputAsStd = YES - return error output 17 | + (NSString *)getOutput:(NSString *)cmd arguments:(NSArray *)args suppressErrorOutput:(BOOL)suppressErrorOutput useErrorOutputAsStd:(BOOL)useErrorOutputAsStd resultCode:(NSInteger *)resultCode 18 | { 19 | NSString *rawoutput = nil; 20 | 21 | @try 22 | { 23 | if (![[NSFileManager defaultManager] isExecutableFileAtPath:cmd]) 24 | { 25 | NSLog(@"Unable to execute %@. File doesn't seem to be executable.", cmd); 26 | return nil; 27 | } 28 | 29 | // create task and pipe objects 30 | NSTask *task = [[NSTask alloc] init]; 31 | NSPipe *outputPipe = [[NSPipe alloc] init]; 32 | NSPipe *errorPipe = [[NSPipe alloc] init]; 33 | 34 | // setup binary and arguments 35 | task.launchPath = cmd; 36 | task.standardOutput = outputPipe; 37 | // and all error output goes to our pipe, not console 38 | if (suppressErrorOutput || useErrorOutputAsStd) 39 | { 40 | task.standardError = errorPipe; 41 | } 42 | task.arguments = args; 43 | 44 | // launch task 45 | [task launch]; 46 | 47 | NSData *result = [[useErrorOutputAsStd ? errorPipe : outputPipe fileHandleForReading] readDataToEndOfFile]; 48 | if (result) 49 | { 50 | rawoutput = [[NSString alloc] initWithData:result encoding:NSUTF8StringEncoding]; 51 | if ([[rawoutput stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] length] == 0) 52 | { 53 | rawoutput = nil; 54 | } 55 | } 56 | while (task.isRunning) 57 | { 58 | [NSThread sleepForTimeInterval:NTTaskRunningWaitTime]; 59 | } 60 | 61 | if (resultCode != NULL) 62 | { 63 | *resultCode = task.terminationStatus; 64 | } 65 | // cleanup 66 | [[errorPipe fileHandleForReading] closeFile]; 67 | [[outputPipe fileHandleForReading] closeFile]; 68 | } 69 | @catch (NSException *e) 70 | { 71 | NSLog(@"Error while invoking command %@ with args %@ : %@", cmd, args, [e reason]); 72 | } 73 | 74 | return rawoutput; 75 | } 76 | 77 | @end 78 | -------------------------------------------------------------------------------- /Notarized/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Notarized 4 | // 5 | // Created by Sergii Kryvoblotskyi on 12/12/18. 6 | // Copyright © 2018 MacPaw. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Logo](https://github.com/MacPaw/Notarized/raw/master/assets/logo.png) 2 | 3 | Tiny tool to reveal notarized applications 4 | 5 | ## What's Inside 6 | 7 | Notarized is a small application that checks how many of your applications passed notarization by [Apple Notary Service](https://developer.apple.com/developer-id/). 8 | 9 | ## How it works 10 | 11 | KISS. The application traverses `/Applications` folder and invokes `spctl -a -v ` on every non-appstore app found. 12 | 13 | ## Screenshots 14 | 15 | ![Screenshot 2](https://github.com/MacPaw/Notarized/raw/master/assets/screenshot2.png) 16 | ![Screenshot 1](https://github.com/MacPaw/Notarized/raw/master/assets/screenshot1.png) 17 | 18 | ## License 19 | 20 | MIT License 21 | 22 | Copyright (c) 2018 MacPaw 23 | 24 | Permission is hereby granted, free of charge, to any person obtaining a copy 25 | of this software and associated documentation files (the "Software"), to deal 26 | in the Software without restriction, including without limitation the rights 27 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 28 | copies of the Software, and to permit persons to whom the Software is 29 | furnished to do so, subject to the following conditions: 30 | 31 | The above copyright notice and this permission notice shall be included in all 32 | copies or substantial portions of the Software. 33 | 34 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 35 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 36 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 37 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 38 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 39 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 40 | SOFTWARE. 41 | -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/assets/logo.png -------------------------------------------------------------------------------- /assets/screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/assets/screenshot1.png -------------------------------------------------------------------------------- /assets/screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MacPaw/Notarized/b381082b9c609287bb8c05cef14b3d8c69659468/assets/screenshot2.png --------------------------------------------------------------------------------