Skip to content

Commit 2962a11

Browse files
committed
Added Carthage/Setup Quick & Nimble
-------------------------------------- * Added Carthage. * Setup Test dependencies for iOS. * Added setup script for carthage deps. * Added fake test.
1 parent ec1c6ce commit 2962a11

File tree

12 files changed

+55
-26
lines changed

12 files changed

+55
-26
lines changed

.gitmodules

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "Carthage/Checkouts/Quick"]
2+
path = Carthage/Checkouts/Quick
3+
url = https://github.com/Quick/Quick.git
4+
[submodule "Carthage/Checkouts/Nimble"]
5+
path = Carthage/Checkouts/Nimble
6+
url = https://github.com/Quick/Nimble.git

Cartfile

Whitespace-only changes.

Cartfile.private

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github "Quick/Quick"
2+
github "Quick/Nimble"

Cartfile.resolved

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github "Quick/Nimble" "v4.0.1"
2+
github "Quick/Quick" "v0.9.2"

Carthage/Checkouts/Nimble

Submodule Nimble added at 0cf1291

Carthage/Checkouts/Quick

Submodule Quick added at dc2b4b7

HeavyCore.xcworkspace/contents.xcworkspacedata

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

HeavyCore/Common/Entities/Entity.swift

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Created by Dylan Wreggelsworth on 5/2/16.
66
// Copyright © 2016 Heavy. All rights reserved.
77
//
8+
import Foundation
89

910
public struct Entity {
1011
var id: String = NSUUID().UUIDString

HeavyCore/Common/Utilities/Timer.swift

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Created by Dylan Wreggelsworth on 5/12/16.
66
// Copyright © 2016 Heavy. All rights reserved.
77
//
8+
import Foundation
89

910
public struct Timer {
1011

HeavyCore/iOS/HeavyCore for iOS.xcodeproj/project.pbxproj

+16
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/* Begin PBXBuildFile section */
1010
C285CAAB1CED615400B1390B /* Random.swift in Sources */ = {isa = PBXBuildFile; fileRef = C285CAAA1CED615400B1390B /* Random.swift */; };
11+
FC1F90B21CF4E7BF0049C4D2 /* Nimble.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FC1F90B11CF4E7BF0049C4D2 /* Nimble.framework */; };
12+
FC1F90B41CF4E7C60049C4D2 /* Quick.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FC1F90B31CF4E7C60049C4D2 /* Quick.framework */; };
1113
FC3F309F1CD99DC20014ECD5 /* Behavior.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC3F309D1CD99DC20014ECD5 /* Behavior.swift */; };
1214
FC3F30A11CD99DC20014ECD5 /* Entity.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC3F309E1CD99DC20014ECD5 /* Entity.swift */; };
1315
FC6C7FF41CD962E4001E2F90 /* HeavyCore.h in Headers */ = {isa = PBXBuildFile; fileRef = FC6C7FF31CD962E4001E2F90 /* HeavyCore.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -49,6 +51,8 @@
4951

5052
/* Begin PBXFileReference section */
5153
C285CAAA1CED615400B1390B /* Random.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Random.swift; sourceTree = "<group>"; };
54+
FC1F90B11CF4E7BF0049C4D2 /* Nimble.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Nimble.framework; path = "../../Carthage/Checkouts/Nimble/build/Debug-iphoneos/Nimble.framework"; sourceTree = "<group>"; };
55+
FC1F90B31CF4E7C60049C4D2 /* Quick.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quick.framework; path = "../../Carthage/Checkouts/Quick/build/Debug-iphoneos/Quick.framework"; sourceTree = "<group>"; };
5256
FC3F309D1CD99DC20014ECD5 /* Behavior.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Behavior.swift; path = ../../Common/Entities/Behavior.swift; sourceTree = "<group>"; };
5357
FC3F309E1CD99DC20014ECD5 /* Entity.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Entity.swift; path = ../../Common/Entities/Entity.swift; sourceTree = "<group>"; };
5458
FC6C7FDD1CD96200001E2F90 /* Point.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Point.swift; sourceTree = "<group>"; };
@@ -81,13 +85,24 @@
8185
isa = PBXFrameworksBuildPhase;
8286
buildActionMask = 2147483647;
8387
files = (
88+
FC1F90B41CF4E7C60049C4D2 /* Quick.framework in Frameworks */,
89+
FC1F90B21CF4E7BF0049C4D2 /* Nimble.framework in Frameworks */,
8490
FC6C7FFB1CD962E5001E2F90 /* HeavyCore.framework in Frameworks */,
8591
);
8692
runOnlyForDeploymentPostprocessing = 0;
8793
};
8894
/* End PBXFrameworksBuildPhase section */
8995

9096
/* Begin PBXGroup section */
97+
FC1F90B51CF4E7FA0049C4D2 /* Frameworks */ = {
98+
isa = PBXGroup;
99+
children = (
100+
FC1F90B31CF4E7C60049C4D2 /* Quick.framework */,
101+
FC1F90B11CF4E7BF0049C4D2 /* Nimble.framework */,
102+
);
103+
name = Frameworks;
104+
sourceTree = "<group>";
105+
};
91106
FC3F30991CD99D5F0014ECD5 /* Entities */ = {
92107
isa = PBXGroup;
93108
children = (
@@ -144,6 +159,7 @@
144159
FCA7CF451CD1643400AC174C = {
145160
isa = PBXGroup;
146161
children = (
162+
FC1F90B51CF4E7FA0049C4D2 /* Frameworks */,
147163
FC6C80081CD96376001E2F90 /* Core.playground */,
148164
FCA7CF511CD1643400AC174C /* HeavyCore */,
149165
FC6C7FFE1CD962E5001E2F90 /* HeavyCoreTests */,

HeavyCore/iOS/HeavyCoreTests/HeavyCoreTests.swift

+10-26
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,16 @@
55
// Created by Dylan Wreggelsworth on 5/3/16.
66
// Copyright © 2016 Heavy. All rights reserved.
77
//
8+
import Quick
9+
import Nimble
10+
import HeavyCore
811

9-
import XCTest
10-
@testable import HeavyCore
11-
12-
class HeavyCoreTests: XCTestCase {
13-
override func setUp() {
14-
super.setUp()
15-
// Put setup code here. This method is called before the invocation of
16-
// each test method in the class.
17-
}
18-
19-
override func tearDown() {
20-
// Put teardown code here. This method is called after the invocation of
21-
// each test method in the class.
22-
super.tearDown()
23-
}
24-
25-
func testExample() {
26-
// This is an example of a functional test case.
27-
// Use XCTAssert and related functions to verify your tests produce the correct results.
28-
}
29-
30-
func testPerformanceExample() {
31-
// This is an example of a performance test case.
32-
self.measureBlock {
33-
// Put the code you want to measure the time of here.
34-
}
12+
class HeavyCoreTests: QuickSpec {
13+
override func spec() {
14+
describe("HeavyCore") {
15+
it("works") {
16+
expect(true).to(beTrue())
17+
}
3518
}
19+
}
3620
}

bin/setup

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env sh
2+
3+
if ! command -v carthage > /dev/null; then
4+
printf 'Carthage is not installed.\n'
5+
printf 'See https://github.com/Carthage/Carthage for install instructions.\n'
6+
exit 1
7+
fi
8+
9+
carthage update --platform iOS --use-submodules --no-use-binaries

0 commit comments

Comments
 (0)