diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..dce4cd05 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +## Build generated +build/ +DerivedData +.idea/ + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata + +## Other +*.xccheckout +*.moved-aside +*.xcuserstate +.DS_Store diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 00000000..87b32c0b --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,31 @@ +disabled_rules: + - trailing_whitespace + - file_length + - function_body_length + - function_parameter_count + - type_body_length + - line_length + - large_tuple + - nesting + - cyclomatic_complexity + - generic_type_name + - identifier_name + - type_name + - weak_delegate + - class_delegate_protocol + - first_where + - force_cast + - multiple_closures_with_trailing_closure + - force_try + - unused_setter_value + + +opt_in_rules: + - explicit_init + - fatal_error_message + - first_where + - operator_usage_whitespace + +shorthand_operator: warning +empty_count: warning +dynamic_inline: warning diff --git a/Ecrypted Ink.xcodeproj/project.pbxproj b/Ecrypted Ink.xcodeproj/project.pbxproj index dd1e25ab..8159571e 100644 --- a/Ecrypted Ink.xcodeproj/project.pbxproj +++ b/Ecrypted Ink.xcodeproj/project.pbxproj @@ -73,6 +73,7 @@ 2C1995382674C4B900A8E370 /* Sources */, 2C1995392674C4B900A8E370 /* Frameworks */, 2C19953A2674C4B900A8E370 /* Resources */, + 2C1995512674C6A100A8E370 /* ShellScript */, ); buildRules = ( ); @@ -127,6 +128,26 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 2C1995512674C6A100A8E370 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 2C1995382674C4B900A8E370 /* Sources */ = { isa = PBXSourcesBuildPhase; diff --git a/Ecrypted Ink.xcodeproj/xcshareddata/IDETemplateMacros.plist b/Ecrypted Ink.xcodeproj/xcshareddata/IDETemplateMacros.plist new file mode 100644 index 00000000..bf9d7eb1 --- /dev/null +++ b/Ecrypted Ink.xcodeproj/xcshareddata/IDETemplateMacros.plist @@ -0,0 +1,8 @@ + + + + + FILEHEADER + Copyright © ___YEAR___ Encrypted Ink. All rights reserved. + + diff --git a/Ecrypted Ink/AppDelegate.swift b/Ecrypted Ink/AppDelegate.swift index 4c417be4..13f28e44 100644 --- a/Ecrypted Ink/AppDelegate.swift +++ b/Ecrypted Ink/AppDelegate.swift @@ -1,18 +1,10 @@ -// -// AppDelegate.swift -// Ecrypted Ink -// -// Created by Ivan Grachev on 12.06.2021. -// +// Copyright © 2021 Encrypted Ink. All rights reserved. import Cocoa @main class AppDelegate: NSObject, NSApplicationDelegate { - - - func applicationDidFinishLaunching(_ aNotification: Notification) { // Insert code here to initialize your application } @@ -21,6 +13,4 @@ class AppDelegate: NSObject, NSApplicationDelegate { // Insert code here to tear down your application } - } - diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Contents.json b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Contents.json index 3f00db43..959fa98b 100644 --- a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,51 +1,61 @@ { "images" : [ { + "filename" : "Icon-16.png", "idiom" : "mac", "scale" : "1x", "size" : "16x16" }, { + "filename" : "Icon-33.png", "idiom" : "mac", "scale" : "2x", "size" : "16x16" }, { + "filename" : "Icon-32.png", "idiom" : "mac", "scale" : "1x", "size" : "32x32" }, { + "filename" : "Icon-64.png", "idiom" : "mac", "scale" : "2x", "size" : "32x32" }, { + "filename" : "Icon-128.png", "idiom" : "mac", "scale" : "1x", "size" : "128x128" }, { + "filename" : "Icon-257.png", "idiom" : "mac", "scale" : "2x", "size" : "128x128" }, { + "filename" : "Icon-256.png", "idiom" : "mac", "scale" : "1x", "size" : "256x256" }, { + "filename" : "Icon-513.png", "idiom" : "mac", "scale" : "2x", "size" : "256x256" }, { + "filename" : "Icon-512.png", "idiom" : "mac", "scale" : "1x", "size" : "512x512" }, { + "filename" : "Icon-1024.png", "idiom" : "mac", "scale" : "2x", "size" : "512x512" diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-1024.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-1024.png new file mode 100644 index 00000000..907a8dba Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-1024.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-128.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-128.png new file mode 100644 index 00000000..dfd567de Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-128.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-16.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-16.png new file mode 100644 index 00000000..46756269 Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-16.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-256.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-256.png new file mode 100644 index 00000000..01350304 Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-256.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-257.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-257.png new file mode 100644 index 00000000..01350304 Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-257.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-32.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-32.png new file mode 100644 index 00000000..1c7eff17 Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-32.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-33.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-33.png new file mode 100644 index 00000000..1c7eff17 Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-33.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-512.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-512.png new file mode 100644 index 00000000..9f6ce0f8 Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-512.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-513.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-513.png new file mode 100644 index 00000000..9f6ce0f8 Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-513.png differ diff --git a/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-64.png b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-64.png new file mode 100644 index 00000000..af10c350 Binary files /dev/null and b/Ecrypted Ink/Assets.xcassets/AppIcon.appiconset/Icon-64.png differ diff --git a/Ecrypted Ink/ViewController.swift b/Ecrypted Ink/ViewController.swift index 35cab452..cf2362ea 100644 --- a/Ecrypted Ink/ViewController.swift +++ b/Ecrypted Ink/ViewController.swift @@ -1,9 +1,4 @@ -// -// ViewController.swift -// Ecrypted Ink -// -// Created by Ivan Grachev on 12.06.2021. -// +// Copyright © 2021 Encrypted Ink. All rights reserved. import Cocoa @@ -21,6 +16,4 @@ class ViewController: NSViewController { } } - } -