Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds CoindarTests target #2

Merged
merged 2 commits into from Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
197 changes: 196 additions & 1 deletion Coindar.xcodeproj/project.pbxproj
Expand Up @@ -22,8 +22,10 @@
27E235BC218E7FFD00D68920 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27CE904B218E76E500069005 /* AppDelegate.swift */; };
27E9014B2198210600535CF3 /* SplashViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27E9014A2198210600535CF3 /* SplashViewModel.swift */; };
27F94CF0218E8BB300FAEF54 /* Environment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27F94CEF218E8BB300FAEF54 /* Environment.swift */; };
346C825E36390C2B94B03035 /* Pods_App_CoindarTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 653739CE513BADA8703E2F1F /* Pods_App_CoindarTests.framework */; };
3AF41C89A7F395F96ED5305D /* Pods_App_Coindar.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 789E65145364E213CAFF00F7 /* Pods_App_Coindar.framework */; };
3B7ADF9DF3C017D21B865B8C /* Pods_Coindar.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D9DF357C208EE7346E6A5EB8 /* Pods_Coindar.framework */; };
6A5E4560219D621000F2B749 /* CoindarTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A5E455F219D621000F2B749 /* CoindarTests.swift */; };
D6AEE396FE5D09F411981AC5 /* Pods_App_CoindarFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CCDF15D63F0D66263A86A62A /* Pods_App_CoindarFramework.framework */; };
/* End PBXBuildFile section */

Expand All @@ -35,6 +37,13 @@
remoteGlobalIDString = 27E235AC218E7F3000D68920;
remoteInfo = CoindarFramework;
};
6A5E4562219D621000F2B749 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 27CE9040218E76E500069005 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 27CE9047218E76E500069005;
remoteInfo = Coindar;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -52,6 +61,8 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
086873086056752FBBBA6E53 /* Pods-App-CoindarTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App-CoindarTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-App-CoindarTests/Pods-App-CoindarTests.release.xcconfig"; sourceTree = "<group>"; };
1254AD883D5F1F3D60964B75 /* Pods-App-CoindarTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App-CoindarTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App-CoindarTests/Pods-App-CoindarTests.debug.xcconfig"; sourceTree = "<group>"; };
15067097219C2387000AC091 /* Coordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Coordinator.swift; sourceTree = "<group>"; };
15067099219C23DC000AC091 /* AppCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppCoordinator.swift; sourceTree = "<group>"; };
27616B28218EFB3F00D4CF1B /* Config.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Config.swift; sourceTree = SOURCE_ROOT; };
Expand All @@ -71,6 +82,10 @@
3CAACD2CB6547B40776BF3F8 /* Pods-Coindar.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Coindar.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Coindar/Pods-Coindar.debug.xcconfig"; sourceTree = "<group>"; };
41B7B1A0F5B7F790CC3F20BC /* Pods-CoindarFramework.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CoindarFramework.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CoindarFramework/Pods-CoindarFramework.debug.xcconfig"; sourceTree = "<group>"; };
5CC08F145F6A5A3D7A528976 /* Pods-App-Coindar.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App-Coindar.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App-Coindar/Pods-App-Coindar.debug.xcconfig"; sourceTree = "<group>"; };
653739CE513BADA8703E2F1F /* Pods_App_CoindarTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App_CoindarTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6A5E455D219D621000F2B749 /* CoindarTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CoindarTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
6A5E455F219D621000F2B749 /* CoindarTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CoindarTests.swift; sourceTree = "<group>"; };
6A5E4561219D621000F2B749 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
735A954528C4179B02106897 /* Pods-App-CoindarFramework.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App-CoindarFramework.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App-CoindarFramework/Pods-App-CoindarFramework.debug.xcconfig"; sourceTree = "<group>"; };
789E65145364E213CAFF00F7 /* Pods_App_Coindar.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App_Coindar.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7FDC117464CE5185CB8B74A1 /* Pods-App-Coindar.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App-Coindar.release.xcconfig"; path = "Pods/Target Support Files/Pods-App-Coindar/Pods-App-Coindar.release.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -102,6 +117,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
6A5E455A219D621000F2B749 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
346C825E36390C2B94B03035 /* Pods_App_CoindarTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -128,6 +151,7 @@
children = (
27CE904A218E76E500069005 /* Coindar */,
27E235AE218E7F3000D68920 /* CoindarFramework */,
6A5E455E219D621000F2B749 /* CoindarTests */,
27CE9049218E76E500069005 /* Products */,
61B76B90DBFD1AFE2E8A79F1 /* Pods */,
DFB31E7AEBE2B257FCAA17C6 /* Frameworks */,
Expand All @@ -139,6 +163,7 @@
children = (
27CE9048218E76E500069005 /* Coindar.app */,
27E235AD218E7F3000D68920 /* CoindarFramework.framework */,
6A5E455D219D621000F2B749 /* CoindarTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -180,17 +205,29 @@
7FDC117464CE5185CB8B74A1 /* Pods-App-Coindar.release.xcconfig */,
735A954528C4179B02106897 /* Pods-App-CoindarFramework.debug.xcconfig */,
EF708C89731881A4B6A3FEF0 /* Pods-App-CoindarFramework.release.xcconfig */,
1254AD883D5F1F3D60964B75 /* Pods-App-CoindarTests.debug.xcconfig */,
086873086056752FBBBA6E53 /* Pods-App-CoindarTests.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
6A5E455E219D621000F2B749 /* CoindarTests */ = {
isa = PBXGroup;
children = (
6A5E455F219D621000F2B749 /* CoindarTests.swift */,
6A5E4561219D621000F2B749 /* Info.plist */,
);
path = CoindarTests;
sourceTree = "<group>";
};
DFB31E7AEBE2B257FCAA17C6 /* Frameworks */ = {
isa = PBXGroup;
children = (
D9DF357C208EE7346E6A5EB8 /* Pods_Coindar.framework */,
977A3E16706D2968C9BFE4A8 /* Pods_CoindarFramework.framework */,
789E65145364E213CAFF00F7 /* Pods_App_Coindar.framework */,
CCDF15D63F0D66263A86A62A /* Pods_App_CoindarFramework.framework */,
653739CE513BADA8703E2F1F /* Pods_App_CoindarTests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -249,13 +286,33 @@
productReference = 27E235AD218E7F3000D68920 /* CoindarFramework.framework */;
productType = "com.apple.product-type.framework";
};
6A5E455C219D621000F2B749 /* CoindarTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 6A5E4566219D621000F2B749 /* Build configuration list for PBXNativeTarget "CoindarTests" */;
buildPhases = (
E4D9A2B1CBAD2D0AC7E0D16C /* [CP] Check Pods Manifest.lock */,
6A5E4559219D621000F2B749 /* Sources */,
6A5E455A219D621000F2B749 /* Frameworks */,
6A5E455B219D621000F2B749 /* Resources */,
D936D1663FCB691850590D22 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
6A5E4563219D621000F2B749 /* PBXTargetDependency */,
);
name = CoindarTests;
productName = CoindarTests;
productReference = 6A5E455D219D621000F2B749 /* CoindarTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
27CE9040218E76E500069005 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1000;
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 1000;
ORGANIZATIONNAME = Lalacode;
TargetAttributes = {
Expand All @@ -265,6 +322,10 @@
27E235AC218E7F3000D68920 = {
CreatedOnToolsVersion = 10.0;
};
6A5E455C219D621000F2B749 = {
CreatedOnToolsVersion = 10.1;
TestTargetID = 27CE9047218E76E500069005;
};
};
};
buildConfigurationList = 27CE9043218E76E500069005 /* Build configuration list for PBXProject "Coindar" */;
Expand All @@ -282,6 +343,7 @@
targets = (
27CE9047218E76E500069005 /* Coindar */,
27E235AC218E7F3000D68920 /* CoindarFramework */,
6A5E455C219D621000F2B749 /* CoindarTests */,
);
};
/* End PBXProject section */
Expand All @@ -303,6 +365,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
6A5E455B219D621000F2B749 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -368,6 +437,68 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
D936D1663FCB691850590D22 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-App-CoindarTests/Pods-App-CoindarTests-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework",
"${BUILT_PRODUCTS_DIR}/CoindarAPI/CoindarAPI.framework",
"${BUILT_PRODUCTS_DIR}/Moya/Moya.framework",
"${BUILT_PRODUCTS_DIR}/Overture/Overture.framework",
"${BUILT_PRODUCTS_DIR}/ReSwift/ReSwift.framework",
"${BUILT_PRODUCTS_DIR}/Result/Result.framework",
"${BUILT_PRODUCTS_DIR}/RxAtomic/RxAtomic.framework",
"${BUILT_PRODUCTS_DIR}/RxCocoa/RxCocoa.framework",
"${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework",
"${BUILT_PRODUCTS_DIR}/SnapKit/SnapKit.framework",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CoindarAPI.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Moya.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Overture.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ReSwift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Result.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxAtomic.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxCocoa.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxSwift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SnapKit.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-App-CoindarTests/Pods-App-CoindarTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
E4D9A2B1CBAD2D0AC7E0D16C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-App-CoindarTests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
F4EEF6F234583E99E0CD5C42 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -416,6 +547,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
6A5E4559219D621000F2B749 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6A5E4560219D621000F2B749 /* CoindarTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand All @@ -424,6 +563,11 @@
target = 27E235AC218E7F3000D68920 /* CoindarFramework */;
targetProxy = 27E235B2218E7F3000D68920 /* PBXContainerItemProxy */;
};
6A5E4563219D621000F2B749 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 27CE9047218E76E500069005 /* Coindar */;
targetProxy = 6A5E4562219D621000F2B749 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
Expand Down Expand Up @@ -656,6 +800,48 @@
};
name = Release;
};
6A5E4564219D621000F2B749 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1254AD883D5F1F3D60964B75 /* Pods-App-CoindarTests.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = CoindarTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.lalacode.CoindarTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Coindar.app/Coindar";
};
name = Debug;
};
6A5E4565219D621000F2B749 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 086873086056752FBBBA6E53 /* Pods-App-CoindarTests.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = CoindarTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.lalacode.CoindarTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Coindar.app/Coindar";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -686,6 +872,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
6A5E4566219D621000F2B749 /* Build configuration list for PBXNativeTarget "CoindarTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6A5E4564219D621000F2B749 /* Debug */,
6A5E4565219D621000F2B749 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCVersionGroup section */
Expand Down
27 changes: 27 additions & 0 deletions CoindarTests/CoindarTests.swift
@@ -0,0 +1,27 @@
// Copyright © lalacode.io All rights reserved.

import XCTest

class CoindarTests: XCTestCase {

override func setUp() {
// Put setup code here. This method is called before the invocation of each test method in the class.
}

override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}

func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}

func testPerformanceExample() {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}

}
22 changes: 22 additions & 0 deletions CoindarTests/Info.plist
@@ -0,0 +1,22 @@
<?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>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions Podfile
Expand Up @@ -14,4 +14,6 @@ abstract_target 'App' do

target 'CoindarFramework' do
end

target 'CoindarTests'
end