Skip to content

Commit 2529f38

Browse files
authored
Merge pull request #12 from johnchoi96/1.0
1.0
2 parents 945d183 + b4369f6 commit 2529f38

File tree

3,889 files changed

+1013160
-257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,889 files changed

+1013160
-257
lines changed

EmployeeManager.xcodeproj/project.pbxproj

Lines changed: 252 additions & 11 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>classNames</key>
6+
<dict>
7+
<key>EmployeeTest</key>
8+
<dict>
9+
<key>testPerformanceExample()</key>
10+
<dict>
11+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
12+
<dict>
13+
<key>baselineAverage</key>
14+
<real>2.55e-05</real>
15+
<key>baselineIntegrationDisplayName</key>
16+
<string>Local Baseline</string>
17+
</dict>
18+
</dict>
19+
</dict>
20+
</dict>
21+
</dict>
22+
</plist>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>runDestinationsByUUID</key>
6+
<dict>
7+
<key>4FBF18A7-B517-4D12-B80A-39C03B63D09D</key>
8+
<dict>
9+
<key>localComputer</key>
10+
<dict>
11+
<key>busSpeedInMHz</key>
12+
<integer>100</integer>
13+
<key>cpuCount</key>
14+
<integer>1</integer>
15+
<key>cpuKind</key>
16+
<string>Dual-Core Intel Core i5</string>
17+
<key>cpuSpeedInMHz</key>
18+
<integer>2300</integer>
19+
<key>logicalCPUCoresPerPackage</key>
20+
<integer>4</integer>
21+
<key>modelCode</key>
22+
<string>MacBookPro14,1</string>
23+
<key>physicalCPUCoresPerPackage</key>
24+
<integer>2</integer>
25+
<key>platformIdentifier</key>
26+
<string>com.apple.platform.macosx</string>
27+
</dict>
28+
<key>targetArchitecture</key>
29+
<string>x86_64</string>
30+
<key>targetDevice</key>
31+
<dict>
32+
<key>modelCode</key>
33+
<string>iPhone12,3</string>
34+
<key>platformIdentifier</key>
35+
<string>com.apple.platform.iphonesimulator</string>
36+
</dict>
37+
</dict>
38+
</dict>
39+
</dict>
40+
</plist>
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1150"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "D22C7A6B247372FB00FA5DFC"
18+
BuildableName = "Employees.app"
19+
BlueprintName = "EmployeeManager"
20+
ReferencedContainer = "container:EmployeeManager.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
language = "ko"
31+
region = "KR">
32+
<Testables>
33+
</Testables>
34+
</TestAction>
35+
<LaunchAction
36+
buildConfiguration = "Debug"
37+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
38+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
39+
language = "ko"
40+
region = "KR"
41+
launchStyle = "0"
42+
useCustomWorkingDirectory = "NO"
43+
ignoresPersistentStateOnLaunch = "NO"
44+
debugDocumentVersioning = "YES"
45+
debugServiceExtension = "internal"
46+
allowLocationSimulation = "YES">
47+
<BuildableProductRunnable
48+
runnableDebuggingMode = "0">
49+
<BuildableReference
50+
BuildableIdentifier = "primary"
51+
BlueprintIdentifier = "D22C7A6B247372FB00FA5DFC"
52+
BuildableName = "Employees.app"
53+
BlueprintName = "EmployeeManager"
54+
ReferencedContainer = "container:EmployeeManager.xcodeproj">
55+
</BuildableReference>
56+
</BuildableProductRunnable>
57+
</LaunchAction>
58+
<ProfileAction
59+
buildConfiguration = "Release"
60+
shouldUseLaunchSchemeArgsEnv = "YES"
61+
savedToolIdentifier = ""
62+
useCustomWorkingDirectory = "NO"
63+
debugDocumentVersioning = "YES">
64+
<BuildableProductRunnable
65+
runnableDebuggingMode = "0">
66+
<BuildableReference
67+
BuildableIdentifier = "primary"
68+
BlueprintIdentifier = "D22C7A6B247372FB00FA5DFC"
69+
BuildableName = "Employees.app"
70+
BlueprintName = "EmployeeManager"
71+
ReferencedContainer = "container:EmployeeManager.xcodeproj">
72+
</BuildableReference>
73+
</BuildableProductRunnable>
74+
</ProfileAction>
75+
<AnalyzeAction
76+
buildConfiguration = "Debug">
77+
</AnalyzeAction>
78+
<ArchiveAction
79+
buildConfiguration = "Release"
80+
revealArchiveInOrganizer = "YES">
81+
</ArchiveAction>
82+
</Scheme>
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1150"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "D22C7A6B247372FB00FA5DFC"
18+
BuildableName = "Employees.app"
19+
BlueprintName = "EmployeeManager"
20+
ReferencedContainer = "container:EmployeeManager.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
codeCoverageEnabled = "YES">
31+
<Testables>
32+
<TestableReference
33+
skipped = "NO">
34+
<BuildableReference
35+
BuildableIdentifier = "primary"
36+
BlueprintIdentifier = "D2BB60B2247E6DE300EE499A"
37+
BuildableName = "EmployeesTests.xctest"
38+
BlueprintName = "EmployeesTests"
39+
ReferencedContainer = "container:EmployeeManager.xcodeproj">
40+
</BuildableReference>
41+
</TestableReference>
42+
<TestableReference
43+
skipped = "NO">
44+
<BuildableReference
45+
BuildableIdentifier = "primary"
46+
BlueprintIdentifier = "D2BB60C3247F825600EE499A"
47+
BuildableName = "EmployeesUITests.xctest"
48+
BlueprintName = "EmployeesUITests"
49+
ReferencedContainer = "container:EmployeeManager.xcodeproj">
50+
</BuildableReference>
51+
</TestableReference>
52+
</Testables>
53+
</TestAction>
54+
<LaunchAction
55+
buildConfiguration = "Debug"
56+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
57+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
58+
launchStyle = "0"
59+
useCustomWorkingDirectory = "NO"
60+
ignoresPersistentStateOnLaunch = "NO"
61+
debugDocumentVersioning = "YES"
62+
debugServiceExtension = "internal"
63+
allowLocationSimulation = "YES">
64+
<BuildableProductRunnable
65+
runnableDebuggingMode = "0">
66+
<BuildableReference
67+
BuildableIdentifier = "primary"
68+
BlueprintIdentifier = "D22C7A6B247372FB00FA5DFC"
69+
BuildableName = "Employees.app"
70+
BlueprintName = "EmployeeManager"
71+
ReferencedContainer = "container:EmployeeManager.xcodeproj">
72+
</BuildableReference>
73+
</BuildableProductRunnable>
74+
</LaunchAction>
75+
<ProfileAction
76+
buildConfiguration = "Release"
77+
shouldUseLaunchSchemeArgsEnv = "YES"
78+
savedToolIdentifier = ""
79+
useCustomWorkingDirectory = "NO"
80+
debugDocumentVersioning = "YES">
81+
<BuildableProductRunnable
82+
runnableDebuggingMode = "0">
83+
<BuildableReference
84+
BuildableIdentifier = "primary"
85+
BlueprintIdentifier = "D22C7A6B247372FB00FA5DFC"
86+
BuildableName = "Employees.app"
87+
BlueprintName = "EmployeeManager"
88+
ReferencedContainer = "container:EmployeeManager.xcodeproj">
89+
</BuildableReference>
90+
</BuildableProductRunnable>
91+
</ProfileAction>
92+
<AnalyzeAction
93+
buildConfiguration = "Debug">
94+
</AnalyzeAction>
95+
<ArchiveAction
96+
buildConfiguration = "Release"
97+
revealArchiveInOrganizer = "YES">
98+
</ArchiveAction>
99+
</Scheme>

EmployeeManager.xcodeproj/xcuserdata/jchoi.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,33 @@
44
<dict>
55
<key>SchemeUserState</key>
66
<dict>
7+
<key>EmployeeManager-ko.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>1</integer>
11+
</dict>
712
<key>EmployeeManager.xcscheme_^#shared#^_</key>
813
<dict>
914
<key>orderHint</key>
10-
<integer>23</integer>
15+
<integer>0</integer>
16+
</dict>
17+
</dict>
18+
<key>SuppressBuildableAutocreation</key>
19+
<dict>
20+
<key>D22C7A6B247372FB00FA5DFC</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
<key>D2BB60B2247E6DE300EE499A</key>
26+
<dict>
27+
<key>primary</key>
28+
<true/>
29+
</dict>
30+
<key>D2BB60C3247F825600EE499A</key>
31+
<dict>
32+
<key>primary</key>
33+
<true/>
1134
</dict>
1235
</dict>
1336
</dict>

EmployeeManager/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
GoogleService-Info.plist
2+

EmployeeManager/Constants.swift

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ struct K {
1212

1313
static let employeeCell = "employeeCell"
1414
static let employeeCellName = "EmployeeTableViewCell"
15-
15+
static let states = ["AK", "AL", "AR", "AZ", "CA", "CO", "CT",
16+
"DE", "FL", "GA", "HI", "IA", "ID", "IL",
17+
"IN", "KS", "KY", "LA", "MA", "MD", "ME",
18+
"MI", "MN", "MO", "MS", "MT", "NC", "ND",
19+
"NE", "NH", "NJ", "NM", "NV", "NY", "OH",
20+
"OK", "OR", "PA", "RI", "SC", "SD", "TN",
21+
"TX", "UT", "VA", "VT", "WA", "WI", "WV",
22+
"WY"]
1623
struct Segues {
1724
static let welcomeToSignup = "welcomeToSignup"
1825
static let welcomeToLogin = "welcomeToLogin"
@@ -21,5 +28,19 @@ struct K {
2128
static let mainToTable = "mainToTable"
2229
static let tableToEmployeeDetail = "tableToEmployeeDetail"
2330
static let mainToAddEmployee = "mainToAddEmployee"
31+
static let detailToAddress = "detailToAddress"
32+
static let mainToAbout = "mainToAbout"
33+
}
34+
35+
static var APP_VERSION: String {
36+
return Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String
37+
}
38+
39+
static var BUILD_NUMBER: String {
40+
return Bundle.main.infoDictionary?["CFBundleVersion"] as! String
41+
}
42+
43+
static var OS: String {
44+
return "iOS \(Bundle.main.infoDictionary?["DTPlatformVersion"] as! String)"
2445
}
2546
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
//
2+
// AboutViewController.swift
3+
// EmployeeManager
4+
//
5+
// Created by John Choi on 6/8/20.
6+
// Copyright © 2020 John Choi. All rights reserved.
7+
//
8+
9+
import UIKit
10+
import SafariServices
11+
12+
class AboutViewController: UIViewController {
13+
14+
@IBOutlet weak var appVersionTitleLabel: UILabel!
15+
@IBOutlet weak var buildNumberTitleLabel: UILabel!
16+
17+
@IBOutlet weak var appVersionLabel: UILabel!
18+
@IBOutlet weak var buildNumberLabel: UILabel!
19+
@IBOutlet weak var osLabel: UILabel!
20+
21+
@IBOutlet weak var devWebsiteButton: UIButton!
22+
23+
override func viewDidLoad() {
24+
super.viewDidLoad()
25+
26+
// Do any additional setup after loading the view.
27+
applyLocalization()
28+
29+
devWebsiteButton.layer.cornerRadius = 25
30+
31+
appVersionLabel.text = K.APP_VERSION
32+
buildNumberLabel.text = K.BUILD_NUMBER
33+
osLabel.text = K.OS
34+
}
35+
36+
private func applyLocalization() {
37+
appVersionTitleLabel.text = NSLocalizedString("app version label", comment: "Short app version label")
38+
buildNumberTitleLabel.text = NSLocalizedString("build number label", comment: "Build number")
39+
}
40+
41+
@IBAction func devWebsitePressed(_ sender: UIButton) {
42+
let address = "https://johnchoi96.github.io/"
43+
guard let url = URL(string: address) else {
44+
let alert = UIAlertController(title: NSLocalizedString("cannot load page alert", comment: ""), message: NSLocalizedString("cannot load page alert message", comment: ""), preferredStyle: .alert)
45+
let action = UIAlertAction(title: NSLocalizedString("Close message", comment: ""), style: .cancel) { (action) in
46+
self.dismiss(animated: true, completion: nil)
47+
}
48+
alert.addAction(action)
49+
self.present(alert, animated: true, completion: nil)
50+
return
51+
}
52+
let safariVC = SFSafariViewController(url: url)
53+
safariVC.modalPresentationStyle = .pageSheet
54+
self.present(safariVC, animated: true, completion: nil)
55+
}
56+
}

0 commit comments

Comments
 (0)