From d6d8ccd0a503b025a5fcdc423a890298057bb677 Mon Sep 17 00:00:00 2001 From: Benoit PASQUIER Date: Thu, 21 Feb 2019 21:10:36 +0800 Subject: [PATCH] Fix FileDataService missing reference --- TemplateProject.xcodeproj/project.pbxproj | 2 +- TemplateProject/Service/FileDataService.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TemplateProject.xcodeproj/project.pbxproj b/TemplateProject.xcodeproj/project.pbxproj index bdb9b81..6b7669c 100644 --- a/TemplateProject.xcodeproj/project.pbxproj +++ b/TemplateProject.xcodeproj/project.pbxproj @@ -60,7 +60,7 @@ 142350EC2009668500930F1D /* TemplateProjectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TemplateProjectTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 142350F22009668500930F1D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 1456E4B4200A7F2200DCF2AF /* DynamicValue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DynamicValue.swift; sourceTree = ""; }; - 148CF5E5220A8EEA001DE84B /* FileDataService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FileDataService.swift; path = ../../../../../Desktop/FileDataService.swift; sourceTree = ""; }; + 148CF5E5220A8EEA001DE84B /* FileDataService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FileDataService.swift; sourceTree = ""; }; 14917E0B200A489A00234393 /* Result.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Result.swift; sourceTree = ""; }; 14917E0D200A48AB00234393 /* ErrorResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorResult.swift; sourceTree = ""; }; 14917E10200A491C00234393 /* RequestFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestFactory.swift; sourceTree = ""; }; diff --git a/TemplateProject/Service/FileDataService.swift b/TemplateProject/Service/FileDataService.swift index 80ac30a..122b6df 100644 --- a/TemplateProject/Service/FileDataService.swift +++ b/TemplateProject/Service/FileDataService.swift @@ -10,6 +10,8 @@ import Foundation final class FileDataService : CurrencyServiceProtocol { + static let shared = FileDataService() + func fetchConverter(_ completion: @escaping ((Result) -> Void)) { // giving a sample json file