Project setup

This commit is contained in:
Ivan Grachyov 2021-06-12 13:48:29 +03:00
parent 785da935d9
commit 4785abcfdf
17 changed files with 93 additions and 19 deletions

21
.gitignore vendored Normal file
View File

@ -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

31
.swiftlint.yml Normal file
View File

@ -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

View File

@ -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;

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FILEHEADER</key>
<string> Copyright © ___YEAR___ Encrypted Ink. All rights reserved.</string>
</dict>
</plist>

View File

@ -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
}
}

View File

@ -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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -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 {
}
}
}