From 6f15a85a8ac42dc98ba481facdaf266fa99e680b Mon Sep 17 00:00:00 2001 From: VaultIt Dev Date: Mon, 11 May 2020 07:41:38 -0600 Subject: [PATCH] [master] - Everything works, just gotta convince cocoapods of that - TT --- DynamicWorkflow.podspec | 3 ++- Workflow/DebugOnly/WorkflowNotifications.swift | 2 +- Workflow/TestOnly/MockPresenter.swift | 2 ++ Workflow/TestOnly/WorkflowListener.swift | 2 ++ fastlane/Fastfile | 4 ---- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/DynamicWorkflow.podspec b/DynamicWorkflow.podspec index a418a7f1e..cb7d7a867 100644 --- a/DynamicWorkflow.podspec +++ b/DynamicWorkflow.podspec @@ -19,11 +19,12 @@ iOS has a linear paradigm for navigation that doesn't support a lot of flexibili s.subspec 'Swinject' do |ss| ss.source_files = ['Workflow/**/*.{swift,h,m}', 'DependencyInjection/**/*.{swift,h}'] + ss.exclude_files = 'Workflow/TestOnly/**/*.{swift}' ss.dependency 'Swinject' end s.subspec 'XCTest' do |ss| - ss.source_files = ['Workflow/TestOnly/**/*.{swift}'] + ss.source_files = ['Workflow/**/*.{swift}'] ss.framework = "XCTest" ss.pod_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '$(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks"', diff --git a/Workflow/DebugOnly/WorkflowNotifications.swift b/Workflow/DebugOnly/WorkflowNotifications.swift index 519a9274e..64bc4cc22 100644 --- a/Workflow/DebugOnly/WorkflowNotifications.swift +++ b/Workflow/DebugOnly/WorkflowNotifications.swift @@ -6,9 +6,9 @@ // Copyright © 2019 Tyler Thompson. All rights reserved. // +#if DEBUG import Foundation -#if DEBUG extension Notification.Name { static var workflowLaunched:Notification.Name { return Notification.Name(rawValue: "WorkflowLaunched") diff --git a/Workflow/TestOnly/MockPresenter.swift b/Workflow/TestOnly/MockPresenter.swift index 02e0876cc..4d03baaf8 100644 --- a/Workflow/TestOnly/MockPresenter.swift +++ b/Workflow/TestOnly/MockPresenter.swift @@ -6,6 +6,7 @@ // Copyright © 2020 Tyler Thompson. All rights reserved. // +#if DEBUG import Foundation public class MockPresenter: Presenter { public var launchCalled = 0 @@ -34,3 +35,4 @@ public class MockPresenter: Presenter { required public init() { } } +#endif diff --git a/Workflow/TestOnly/WorkflowListener.swift b/Workflow/TestOnly/WorkflowListener.swift index a78ad4e08..dc8408977 100644 --- a/Workflow/TestOnly/WorkflowListener.swift +++ b/Workflow/TestOnly/WorkflowListener.swift @@ -6,6 +6,7 @@ // Copyright © 2020 Tyler Thompson. All rights reserved. // +#if DEBUG import Foundation import XCTest @@ -43,3 +44,4 @@ public class WorkflowListener { args = dict?["args"] as Any? } } +#endif diff --git a/fastlane/Fastfile b/fastlane/Fastfile index cb19c9afd..ba01d8f64 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -8,10 +8,6 @@ platform :ios do end lane :unit_test do - cocoapods( - clean: true, - repo_update: true, - ) scan( code_coverage: true, scheme: 'Workflow',