Skip to content

Commit

Permalink
bugs fixed, added Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Feghal committed Sep 28, 2017
1 parent 7a2b08c commit f00c189
Show file tree
Hide file tree
Showing 17 changed files with 609 additions and 169 deletions.
150 changes: 149 additions & 1 deletion Example/FGRoute.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
remoteGlobalIDString = 6003F589195388D20070C39A;
remoteInfo = FGRoute;
};
DEE6B3BF1F7D391900D7834F /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 6003F582195388D10070C39A /* Project object */;
proxyType = 1;
remoteGlobalIDString = 6003F589195388D20070C39A;
remoteInfo = FGRoute_Example;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -66,6 +73,7 @@
7F9050FEC09B7B737C34EB27 /* Pods_FGRoute_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FGRoute_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
B697FE34CC680234DF53B69A /* Pods-FGRoute_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FGRoute_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-FGRoute_Tests/Pods-FGRoute_Tests.release.xcconfig"; sourceTree = "<group>"; };
DEE6B3BA1F7D391900D7834F /* FGRoute_ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FGRoute_ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
E2004C257803021F10A769E1 /* Pods-FGRoute_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FGRoute_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-FGRoute_Example/Pods-FGRoute_Example.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand All @@ -92,6 +100,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
DEE6B3B71F7D391900D7834F /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand Down Expand Up @@ -123,6 +138,7 @@
children = (
6003F58A195388D20070C39A /* FGRoute_Example.app */,
6003F5AE195388D20070C39A /* FGRoute_Tests.xctest */,
DEE6B3BA1F7D391900D7834F /* FGRoute_ExampleTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -145,9 +161,9 @@
children = (
6003F59C195388D20070C39A /* FGAppDelegate.h */,
6003F59D195388D20070C39A /* FGAppDelegate.m */,
873B8AEA1B1F5CCA007FD442 /* Main.storyboard */,
6003F5A5195388D20070C39A /* FGViewController.h */,
6003F5A6195388D20070C39A /* FGViewController.m */,
873B8AEA1B1F5CCA007FD442 /* Main.storyboard */,
71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */,
6003F5A8195388D20070C39A /* Images.xcassets */,
6003F594195388D20070C39A /* Supporting Files */,
Expand Down Expand Up @@ -240,13 +256,32 @@
productReference = 6003F5AE195388D20070C39A /* FGRoute_Tests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
DEE6B3B91F7D391900D7834F /* FGRoute_ExampleTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = DEE6B3C11F7D391900D7834F /* Build configuration list for PBXNativeTarget "FGRoute_ExampleTests" */;
buildPhases = (
DEE6B3B61F7D391900D7834F /* Sources */,
DEE6B3B71F7D391900D7834F /* Frameworks */,
DEE6B3B81F7D391900D7834F /* Resources */,
);
buildRules = (
);
dependencies = (
DEE6B3C01F7D391900D7834F /* PBXTargetDependency */,
);
name = FGRoute_ExampleTests;
productName = FGRoute_ExampleTests;
productReference = DEE6B3BA1F7D391900D7834F /* FGRoute_ExampleTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
6003F582195388D10070C39A /* Project object */ = {
isa = PBXProject;
attributes = {
CLASSPREFIX = FG;
LastSwiftUpdateCheck = 0900;
LastUpgradeCheck = 0720;
ORGANIZATIONNAME = "andranikasil84@gmail.com";
TargetAttributes = {
Expand All @@ -256,6 +291,12 @@
6003F5AD195388D20070C39A = {
TestTargetID = 6003F589195388D20070C39A;
};
DEE6B3B91F7D391900D7834F = {
CreatedOnToolsVersion = 9.0;
DevelopmentTeam = KEL568YDEB;
ProvisioningStyle = Automatic;
TestTargetID = 6003F589195388D20070C39A;
};
};
};
buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "FGRoute" */;
Expand All @@ -273,6 +314,7 @@
targets = (
6003F589195388D20070C39A /* FGRoute_Example */,
6003F5AD195388D20070C39A /* FGRoute_Tests */,
DEE6B3B91F7D391900D7834F /* FGRoute_ExampleTests */,
);
};
/* End PBXProject section */
Expand All @@ -297,6 +339,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
DEE6B3B81F7D391900D7834F /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -411,6 +460,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
DEE6B3B61F7D391900D7834F /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand All @@ -419,6 +475,11 @@
target = 6003F589195388D20070C39A /* FGRoute_Example */;
targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */;
};
DEE6B3C01F7D391900D7834F /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 6003F589195388D20070C39A /* FGRoute_Example */;
targetProxy = DEE6B3BF1F7D391900D7834F /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
Expand Down Expand Up @@ -603,6 +664,84 @@
};
name = Release;
};
DEE6B3C21F7D391900D7834F /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = KEL568YDEB;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = FGRoute_ExampleTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.feghal.FGRoute-ExampleTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FGRoute_Example.app/FGRoute_Example";
};
name = Debug;
};
DEE6B3C31F7D391900D7834F /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = KEL568YDEB;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = FGRoute_ExampleTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = "com.feghal.FGRoute-ExampleTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FGRoute_Example.app/FGRoute_Example";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -633,6 +772,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DEE6B3C11F7D391900D7834F /* Build configuration list for PBXNativeTarget "FGRoute_ExampleTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DEE6B3C21F7D391900D7834F /* Debug */,
DEE6B3C31F7D391900D7834F /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 6003F582195388D10070C39A /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
Expand All @@ -38,6 +39,16 @@
ReferencedContainer = "container:FGRoute.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DEE6B3B91F7D391900D7834F"
BuildableName = "FGRoute_ExampleTests.xctest"
BlueprintName = "FGRoute_ExampleTests"
ReferencedContainer = "container:FGRoute.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
Expand All @@ -55,6 +66,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
1 change: 1 addition & 0 deletions Example/FGRoute/FGAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ @implementation FGAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
return YES;
}

@end
1 change: 1 addition & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ target 'FGRoute_Example' do

target 'FGRoute_Tests' do
inherit! :search_paths
pod 'Reachability'


end
Expand Down
9 changes: 6 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
PODS:
- FGRoute (0.1.0)
- FGRoute (1.0.0)
- Reachability (3.2)

DEPENDENCIES:
- FGRoute (from `../`)
- Reachability

EXTERNAL SOURCES:
FGRoute:
:path: "../"

SPEC CHECKSUMS:
FGRoute: 82d0a55fba73c2e0323cfa5d99b6a8fb04db8c34
FGRoute: c57e30453f5844564d473216044c8b90d56d2209
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96

PODFILE CHECKSUM: 70a1a6c7368f87c148555ea7409afb4c813f28d1
PODFILE CHECKSUM: 0325648794ddb2421c391e66148b1dab116e40b8

COCOAPODS: 1.2.1
6 changes: 3 additions & 3 deletions Example/Pods/Local Podspecs/FGRoute.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f00c189

Please sign in to comment.