Skip to content

Commit e2e9150

Browse files
authored
Merge pull request #25 from orchetect/dev
Formatting
2 parents 577b36c + 70c1b8b commit e2e9150

58 files changed

Lines changed: 6693 additions & 6673 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ timeline.xctimeline
3737
playground.xcworkspace
3838

3939
## SPM support in Xcode
40-
.swiftpm
40+
# .swiftpm - for shared CI schemes we need these checked in:
41+
# -> .swiftpm/xcode/package.xcworkspace
42+
# -> .swiftpm/xcode/xcshareddata/xcschemes/*.*
4143

4244
# Swift Package Manager
4345
#
@@ -72,4 +74,4 @@ Carthage/Build
7274
fastlane/report.xml
7375
fastlane/Preview.html
7476
fastlane/screenshots/**/*.png
75-
fastlane/test_output
77+
fastlane/test_output

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1220"
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 = "TimecodeKit"
18+
BuildableName = "TimecodeKit"
19+
BlueprintName = "TimecodeKit"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "TimecodeKit-Dev-Tests"
32+
BuildableName = "TimecodeKit-Dev-Tests"
33+
BlueprintName = "TimecodeKit-Dev-Tests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
<BuildActionEntry
38+
buildForTesting = "YES"
39+
buildForRunning = "YES"
40+
buildForProfiling = "NO"
41+
buildForArchiving = "NO"
42+
buildForAnalyzing = "YES">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "TimecodeKit-Unit-Tests"
46+
BuildableName = "TimecodeKit-Unit-Tests"
47+
BlueprintName = "TimecodeKit-Unit-Tests"
48+
ReferencedContainer = "container:">
49+
</BuildableReference>
50+
</BuildActionEntry>
51+
</BuildActionEntries>
52+
</BuildAction>
53+
<TestAction
54+
buildConfiguration = "Debug"
55+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
56+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57+
shouldUseLaunchSchemeArgsEnv = "YES"
58+
codeCoverageEnabled = "YES">
59+
<Testables>
60+
<TestableReference
61+
skipped = "NO">
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "TimecodeKit-Dev-Tests"
65+
BuildableName = "TimecodeKit-Dev-Tests"
66+
BlueprintName = "TimecodeKit-Dev-Tests"
67+
ReferencedContainer = "container:">
68+
</BuildableReference>
69+
</TestableReference>
70+
<TestableReference
71+
skipped = "NO"
72+
parallelizable = "YES">
73+
<BuildableReference
74+
BuildableIdentifier = "primary"
75+
BlueprintIdentifier = "TimecodeKit-Unit-Tests"
76+
BuildableName = "TimecodeKit-Unit-Tests"
77+
BlueprintName = "TimecodeKit-Unit-Tests"
78+
ReferencedContainer = "container:">
79+
</BuildableReference>
80+
</TestableReference>
81+
</Testables>
82+
</TestAction>
83+
<LaunchAction
84+
buildConfiguration = "Debug"
85+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
86+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
87+
launchStyle = "0"
88+
useCustomWorkingDirectory = "NO"
89+
ignoresPersistentStateOnLaunch = "NO"
90+
debugDocumentVersioning = "YES"
91+
debugServiceExtension = "internal"
92+
allowLocationSimulation = "YES">
93+
</LaunchAction>
94+
<ProfileAction
95+
buildConfiguration = "Release"
96+
shouldUseLaunchSchemeArgsEnv = "YES"
97+
savedToolIdentifier = ""
98+
useCustomWorkingDirectory = "NO"
99+
debugDocumentVersioning = "YES">
100+
<MacroExpansion>
101+
<BuildableReference
102+
BuildableIdentifier = "primary"
103+
BlueprintIdentifier = "TimecodeKit"
104+
BuildableName = "TimecodeKit"
105+
BlueprintName = "TimecodeKit"
106+
ReferencedContainer = "container:">
107+
</BuildableReference>
108+
</MacroExpansion>
109+
</ProfileAction>
110+
<AnalyzeAction
111+
buildConfiguration = "Debug">
112+
</AnalyzeAction>
113+
<ArchiveAction
114+
buildConfiguration = "Release"
115+
revealArchiveInOrganizer = "YES">
116+
</ArchiveAction>
117+
</Scheme>
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1220"
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 = "TimecodeKit"
18+
BuildableName = "TimecodeKit"
19+
BlueprintName = "TimecodeKit"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "TimecodeKit-Dev-Tests"
32+
BuildableName = "TimecodeKit-Dev-Tests"
33+
BlueprintName = "TimecodeKit-Dev-Tests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
<BuildActionEntry
38+
buildForTesting = "YES"
39+
buildForRunning = "YES"
40+
buildForProfiling = "NO"
41+
buildForArchiving = "NO"
42+
buildForAnalyzing = "YES">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "TimecodeKit-Unit-Tests"
46+
BuildableName = "TimecodeKit-Unit-Tests"
47+
BlueprintName = "TimecodeKit-Unit-Tests"
48+
ReferencedContainer = "container:">
49+
</BuildableReference>
50+
</BuildActionEntry>
51+
</BuildActionEntries>
52+
</BuildAction>
53+
<TestAction
54+
buildConfiguration = "Debug"
55+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
56+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57+
shouldUseLaunchSchemeArgsEnv = "YES"
58+
codeCoverageEnabled = "YES">
59+
<Testables>
60+
<TestableReference
61+
skipped = "NO">
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "TimecodeKit-Dev-Tests"
65+
BuildableName = "TimecodeKit-Dev-Tests"
66+
BlueprintName = "TimecodeKit-Dev-Tests"
67+
ReferencedContainer = "container:">
68+
</BuildableReference>
69+
</TestableReference>
70+
<TestableReference
71+
skipped = "NO"
72+
parallelizable = "YES">
73+
<BuildableReference
74+
BuildableIdentifier = "primary"
75+
BlueprintIdentifier = "TimecodeKit-Unit-Tests"
76+
BuildableName = "TimecodeKit-Unit-Tests"
77+
BlueprintName = "TimecodeKit-Unit-Tests"
78+
ReferencedContainer = "container:">
79+
</BuildableReference>
80+
</TestableReference>
81+
</Testables>
82+
</TestAction>
83+
<LaunchAction
84+
buildConfiguration = "Debug"
85+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
86+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
87+
launchStyle = "0"
88+
useCustomWorkingDirectory = "NO"
89+
ignoresPersistentStateOnLaunch = "NO"
90+
debugDocumentVersioning = "YES"
91+
debugServiceExtension = "internal"
92+
allowLocationSimulation = "YES">
93+
</LaunchAction>
94+
<ProfileAction
95+
buildConfiguration = "Release"
96+
shouldUseLaunchSchemeArgsEnv = "YES"
97+
savedToolIdentifier = ""
98+
useCustomWorkingDirectory = "NO"
99+
debugDocumentVersioning = "YES">
100+
<MacroExpansion>
101+
<BuildableReference
102+
BuildableIdentifier = "primary"
103+
BlueprintIdentifier = "TimecodeKit"
104+
BuildableName = "TimecodeKit"
105+
BlueprintName = "TimecodeKit"
106+
ReferencedContainer = "container:">
107+
</BuildableReference>
108+
</MacroExpansion>
109+
</ProfileAction>
110+
<AnalyzeAction
111+
buildConfiguration = "Debug">
112+
</AnalyzeAction>
113+
<ArchiveAction
114+
buildConfiguration = "Release"
115+
revealArchiveInOrganizer = "YES">
116+
</ArchiveAction>
117+
</Scheme>

Package.swift

Lines changed: 42 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,50 @@
33
import PackageDescription
44

55
let package = Package(
6-
6+
77
name: "TimecodeKit",
8-
8+
99
defaultLocalization: "en",
1010

11-
// certain features of the library are marked @available only on newer versions of OSes,
12-
// but a platforms spec here determines what base platforms
13-
// the library is currently supported on
14-
platforms: [.macOS(.v10_10), .iOS(.v9), .tvOS(.v9), .watchOS(.v2)],
11+
// certain features of the library are marked @available only on newer versions of OSes,
12+
// but a platforms spec here determines what base platforms
13+
// the library is currently supported on
14+
platforms: [.macOS(.v10_10), .iOS(.v9), .tvOS(.v9), .watchOS(.v2)],
15+
16+
products: [
17+
// library:
18+
.library(
19+
name: "TimecodeKit",
20+
targets: ["TimecodeKit"])
21+
],
22+
23+
dependencies: [
24+
// boilerplate:
25+
.package(url: "https://github.com/orchetect/OTCore", from: "1.1.8")
26+
27+
// used only for Dev tests, not part of regular unit test
28+
//.package(url: "https://github.com/orchetect/SegmentedProgress", from: "1.0.1")
29+
],
30+
31+
targets: [
32+
// main target:
33+
.target(
34+
name: "TimecodeKit",
35+
dependencies: ["OTCore"]
36+
),
37+
38+
// unit tests:
39+
.testTarget(
40+
name: "TimecodeKit-Unit-Tests",
41+
dependencies: ["TimecodeKit"]
42+
),
43+
44+
// dev tests:
45+
// not meant to be run as unit tests, but only to verify library's computational integrity when making major changes to the library, as these tests require modification to be meaningful
46+
.testTarget(
47+
name: "TimecodeKit-Dev-Tests",
48+
dependencies: ["TimecodeKit"] // , "SegmentedProgress"
49+
)
50+
]
1551

16-
products: [
17-
18-
// library:
19-
.library(
20-
name: "TimecodeKit",
21-
targets: ["TimecodeKit"])
22-
23-
],
24-
25-
dependencies: [
26-
27-
// boilerplate:
28-
.package(url: "https://github.com/orchetect/OTCore", from: "1.1.6"),
29-
30-
// testing-only dependencies:
31-
.package(url: "https://github.com/orchetect/SegmentedProgress", from: "1.0.1")
32-
33-
],
34-
35-
targets: [
36-
37-
// main target:
38-
.target(
39-
name: "TimecodeKit",
40-
dependencies: ["OTCore"]
41-
),
42-
43-
// unit tests:
44-
.testTarget(
45-
name: "TimecodeKit-Unit-Tests",
46-
dependencies: ["TimecodeKit"]
47-
),
48-
49-
// dev tests:
50-
// not meant to be run as unit tests, but only to verify library's computational integrity when making major changes to the library, as these tests require modification to be meaningful
51-
.testTarget(
52-
name: "TimecodeKit-Dev-Tests",
53-
dependencies: ["TimecodeKit", "SegmentedProgress"]
54-
)
55-
56-
]
57-
5852
)
Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
//
22
// Component.swift
3-
// TimecodeKit
4-
//
5-
// Created by Steffan Andrews on 2020-06-15.
6-
// Copyright © 2020 Steffan Andrews. All rights reserved.
3+
// TimecodeKit • https://github.com/orchetect/TimecodeKit
74
//
85

96
extension Timecode {
10-
11-
/// Enum naming an individual timecode component
12-
public enum Component {
13-
14-
case days
15-
case hours
16-
case minutes
17-
case seconds
18-
case frames
19-
case subFrames
20-
21-
}
22-
7+
8+
/// Enum naming an individual timecode component
9+
public enum Component {
10+
11+
case days
12+
case hours
13+
case minutes
14+
case seconds
15+
case frames
16+
case subFrames
17+
18+
}
19+
2320
}

0 commit comments

Comments
 (0)