From 41b44c9ef352ca62e4fb318c800fd6c2dd1ee8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eimantas=20Vaic=CC=8Ciu=CC=84nas?= Date: Mon, 16 Nov 2020 11:12:06 +0200 Subject: [PATCH] Transition to SPM --- .gitignore | 2 +- Cartfile | 1 - Cartfile.resolved | 1 - Info.plist | 22 - NimbleFeedback.xcodeproj/project.pbxproj | 568 ------------------ .../contents.xcworkspacedata | 7 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../xcschemes/NimbleFeedback.xcscheme | 111 ---- .../xcschemes/xcschememanagement.plist | 14 - NimbleFeedbackTests/Info.plist | 22 - Package.resolved | 34 ++ Package.swift | 23 + .../NimbleFeedback}/NimbleFeedback.h | 0 .../NimbleFeedback}/NimbleFeedback.swift | 0 .../NimbleFeedbackTests}/DummyState.swift | 0 .../DummyStateTests.swift | 0 .../NimbleFeedbackTests.swift | 0 17 files changed, 58 insertions(+), 755 deletions(-) delete mode 100644 Cartfile delete mode 100644 Cartfile.resolved delete mode 100644 Info.plist delete mode 100644 NimbleFeedback.xcodeproj/project.pbxproj delete mode 100644 NimbleFeedback.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 NimbleFeedback.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 NimbleFeedback.xcodeproj/xcshareddata/xcschemes/NimbleFeedback.xcscheme delete mode 100644 NimbleFeedback.xcodeproj/xcuserdata/eimantas.xcuserdatad/xcschemes/xcschememanagement.plist delete mode 100644 NimbleFeedbackTests/Info.plist create mode 100644 Package.resolved create mode 100644 Package.swift rename {NimbleFeedback => Sources/NimbleFeedback}/NimbleFeedback.h (100%) rename {NimbleFeedback => Sources/NimbleFeedback}/NimbleFeedback.swift (100%) rename {NimbleFeedbackTests => Tests/NimbleFeedbackTests}/DummyState.swift (100%) rename {NimbleFeedbackTests => Tests/NimbleFeedbackTests}/DummyStateTests.swift (100%) rename {NimbleFeedbackTests => Tests/NimbleFeedbackTests}/NimbleFeedbackTests.swift (100%) diff --git a/.gitignore b/.gitignore index 990fd7c..191419d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ - +.swiftpm # Created by https://www.gitignore.io/api/xcode,macos,carthage,cocoapods # Edit at https://www.gitignore.io/?templates=xcode,macos,carthage,cocoapods diff --git a/Cartfile b/Cartfile deleted file mode 100644 index 6a43d61..0000000 --- a/Cartfile +++ /dev/null @@ -1 +0,0 @@ -github "Quick/Nimble" ~> 8.0 diff --git a/Cartfile.resolved b/Cartfile.resolved deleted file mode 100644 index 42fe155..0000000 --- a/Cartfile.resolved +++ /dev/null @@ -1 +0,0 @@ -github "Quick/Nimble" "v8.0.2" diff --git a/Info.plist b/Info.plist deleted file mode 100644 index e1fe4cf..0000000 --- a/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - - diff --git a/NimbleFeedback.xcodeproj/project.pbxproj b/NimbleFeedback.xcodeproj/project.pbxproj deleted file mode 100644 index a7a4bd1..0000000 --- a/NimbleFeedback.xcodeproj/project.pbxproj +++ /dev/null @@ -1,568 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 53121E3123042C8800148925 /* Nimble.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53121E1A23042C6400148925 /* Nimble.framework */; }; - 53121E39230431C500148925 /* NimbleFeedbackTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53121E38230431C500148925 /* NimbleFeedbackTests.swift */; }; - 53121E3B230431C500148925 /* NimbleFeedback.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53121D3E23042AE100148925 /* NimbleFeedback.framework */; }; - 53121E422304330C00148925 /* Nimble.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 53121E1A23042C6400148925 /* Nimble.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 53121E432304330C00148925 /* NimbleFeedback.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 53121D3E23042AE100148925 /* NimbleFeedback.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 53121E452304332300148925 /* DummyState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53121E442304332300148925 /* DummyState.swift */; }; - 5315F6B82456C07D00C28B30 /* NimbleFeedback.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5315F6B62456C07D00C28B30 /* NimbleFeedback.swift */; }; - 5325160F244DED4D0028FDB1 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5327DE5624470BE8007325B5 /* XCTest.framework */; }; - 53251610244DED4D0028FDB1 /* XCTest.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5327DE5624470BE8007325B5 /* XCTest.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 538D47C82304494400F356B0 /* DummyStateTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 538D47C72304494400F356B0 /* DummyStateTests.swift */; }; - 538D47C923044A2900F356B0 /* Nimble.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53121E1A23042C6400148925 /* Nimble.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 53121E3C230431C500148925 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 53121D3523042AE100148925 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 53121D3D23042AE100148925; - remoteInfo = NimbleFeedback; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 53121E412304330100148925 /* Copy Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 53121E422304330C00148925 /* Nimble.framework in Copy Frameworks */, - 53121E432304330C00148925 /* NimbleFeedback.framework in Copy Frameworks */, - ); - name = "Copy Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; - 53251611244DED4D0028FDB1 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 53251610244DED4D0028FDB1 /* XCTest.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 53121D3E23042AE100148925 /* NimbleFeedback.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = NimbleFeedback.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 53121D4223042AE100148925 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 53121E1A23042C6400148925 /* Nimble.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Nimble.framework; sourceTree = ""; }; - 53121E36230431C500148925 /* NimbleFeedbackTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NimbleFeedbackTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 53121E38230431C500148925 /* NimbleFeedbackTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NimbleFeedbackTests.swift; sourceTree = ""; }; - 53121E3A230431C500148925 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 53121E442304332300148925 /* DummyState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DummyState.swift; sourceTree = ""; }; - 5315F6B52456C07D00C28B30 /* NimbleFeedback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NimbleFeedback.h; sourceTree = ""; }; - 5315F6B62456C07D00C28B30 /* NimbleFeedback.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NimbleFeedback.swift; sourceTree = ""; }; - 5327DE5624470BE8007325B5 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - 538D47C72304494400F356B0 /* DummyStateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DummyStateTests.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 53121D3B23042AE100148925 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 53121E3123042C8800148925 /* Nimble.framework in Frameworks */, - 5325160F244DED4D0028FDB1 /* XCTest.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 53121E33230431C500148925 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 53121E3B230431C500148925 /* NimbleFeedback.framework in Frameworks */, - 538D47C923044A2900F356B0 /* Nimble.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 53121D3423042AE100148925 = { - isa = PBXGroup; - children = ( - 5315F6B42456C07D00C28B30 /* NimbleFeedback */, - 53121D4223042AE100148925 /* Info.plist */, - 53121D4B23042C6400148925 /* Carthage */, - 53121E37230431C500148925 /* NimbleFeedbackTests */, - 53121D3F23042AE100148925 /* Products */, - 53121E3023042C8800148925 /* Frameworks */, - ); - sourceTree = ""; - }; - 53121D3F23042AE100148925 /* Products */ = { - isa = PBXGroup; - children = ( - 53121D3E23042AE100148925 /* NimbleFeedback.framework */, - 53121E36230431C500148925 /* NimbleFeedbackTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 53121D4B23042C6400148925 /* Carthage */ = { - isa = PBXGroup; - children = ( - 53121E1823042C6400148925 /* Build */, - ); - path = Carthage; - sourceTree = ""; - }; - 53121E1823042C6400148925 /* Build */ = { - isa = PBXGroup; - children = ( - 53121E1923042C6400148925 /* iOS */, - ); - path = Build; - sourceTree = ""; - }; - 53121E1923042C6400148925 /* iOS */ = { - isa = PBXGroup; - children = ( - 53121E1A23042C6400148925 /* Nimble.framework */, - ); - path = iOS; - sourceTree = ""; - }; - 53121E3023042C8800148925 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 5327DE5624470BE8007325B5 /* XCTest.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 53121E37230431C500148925 /* NimbleFeedbackTests */ = { - isa = PBXGroup; - children = ( - 53121E38230431C500148925 /* NimbleFeedbackTests.swift */, - 53121E3A230431C500148925 /* Info.plist */, - 53121E442304332300148925 /* DummyState.swift */, - 538D47C72304494400F356B0 /* DummyStateTests.swift */, - ); - path = NimbleFeedbackTests; - sourceTree = ""; - }; - 5315F6B42456C07D00C28B30 /* NimbleFeedback */ = { - isa = PBXGroup; - children = ( - 5315F6B52456C07D00C28B30 /* NimbleFeedback.h */, - 5315F6B62456C07D00C28B30 /* NimbleFeedback.swift */, - ); - path = NimbleFeedback; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 53121D3923042AE100148925 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 53121D3D23042AE100148925 /* NimbleFeedback */ = { - isa = PBXNativeTarget; - buildConfigurationList = 53121D4623042AE100148925 /* Build configuration list for PBXNativeTarget "NimbleFeedback" */; - buildPhases = ( - 53121D3923042AE100148925 /* Headers */, - 53121D3A23042AE100148925 /* Sources */, - 53121D3B23042AE100148925 /* Frameworks */, - 53121D3C23042AE100148925 /* Resources */, - 53251611244DED4D0028FDB1 /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = NimbleFeedback; - productName = NimbleFeedback; - productReference = 53121D3E23042AE100148925 /* NimbleFeedback.framework */; - productType = "com.apple.product-type.framework"; - }; - 53121E35230431C500148925 /* NimbleFeedbackTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 53121E3E230431C500148925 /* Build configuration list for PBXNativeTarget "NimbleFeedbackTests" */; - buildPhases = ( - 53121E32230431C500148925 /* Sources */, - 53121E33230431C500148925 /* Frameworks */, - 53121E34230431C500148925 /* Resources */, - 53121E412304330100148925 /* Copy Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 53121E3D230431C500148925 /* PBXTargetDependency */, - ); - name = NimbleFeedbackTests; - productName = NimbleFeedbackTests; - productReference = 53121E36230431C500148925 /* NimbleFeedbackTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 53121D3523042AE100148925 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1030; - LastUpgradeCheck = 1030; - ORGANIZATIONNAME = Trafi; - TargetAttributes = { - 53121D3D23042AE100148925 = { - CreatedOnToolsVersion = 10.3; - LastSwiftMigration = 1030; - }; - 53121E35230431C500148925 = { - CreatedOnToolsVersion = 10.3; - }; - }; - }; - buildConfigurationList = 53121D3823042AE100148925 /* Build configuration list for PBXProject "NimbleFeedback" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 53121D3423042AE100148925; - productRefGroup = 53121D3F23042AE100148925 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 53121D3D23042AE100148925 /* NimbleFeedback */, - 53121E35230431C500148925 /* NimbleFeedbackTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 53121D3C23042AE100148925 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 53121E34230431C500148925 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 53121D3A23042AE100148925 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5315F6B82456C07D00C28B30 /* NimbleFeedback.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 53121E32230431C500148925 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 538D47C82304494400F356B0 /* DummyStateTests.swift in Sources */, - 53121E452304332300148925 /* DummyState.swift in Sources */, - 53121E39230431C500148925 /* NimbleFeedbackTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 53121E3D230431C500148925 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 53121D3D23042AE100148925 /* NimbleFeedback */; - targetProxy = 53121E3C230431C500148925 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 53121D4423042AE100148925 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - 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; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_BITCODE = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 53121D4523042AE100148925 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - 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; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_BITCODE = NO; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 53121D4723042AE100148925 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = ""; - CODE_SIGN_STYLE = Automatic; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 2NLF64332K; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - INFOPLIST_FILE = "$(SRCROOT)/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.trafi.NimbleFeedback; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 53121D4823042AE100148925 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = ""; - CODE_SIGN_STYLE = Automatic; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 2NLF64332K; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - INFOPLIST_FILE = "$(SRCROOT)/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.trafi.NimbleFeedback; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; - 53121E3F230431C500148925 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 2NLF64332K; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - INFOPLIST_FILE = NimbleFeedbackTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.trafi.NimbleFeedbackTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 53121E40230431C500148925 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 2NLF64332K; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - INFOPLIST_FILE = NimbleFeedbackTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.trafi.NimbleFeedbackTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 53121D3823042AE100148925 /* Build configuration list for PBXProject "NimbleFeedback" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 53121D4423042AE100148925 /* Debug */, - 53121D4523042AE100148925 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 53121D4623042AE100148925 /* Build configuration list for PBXNativeTarget "NimbleFeedback" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 53121D4723042AE100148925 /* Debug */, - 53121D4823042AE100148925 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 53121E3E230431C500148925 /* Build configuration list for PBXNativeTarget "NimbleFeedbackTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 53121E3F230431C500148925 /* Debug */, - 53121E40230431C500148925 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 53121D3523042AE100148925 /* Project object */; -} diff --git a/NimbleFeedback.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/NimbleFeedback.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 386df4d..0000000 --- a/NimbleFeedback.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/NimbleFeedback.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/NimbleFeedback.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/NimbleFeedback.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/NimbleFeedback.xcodeproj/xcshareddata/xcschemes/NimbleFeedback.xcscheme b/NimbleFeedback.xcodeproj/xcshareddata/xcschemes/NimbleFeedback.xcscheme deleted file mode 100644 index 6231574..0000000 --- a/NimbleFeedback.xcodeproj/xcshareddata/xcschemes/NimbleFeedback.xcscheme +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/NimbleFeedback.xcodeproj/xcuserdata/eimantas.xcuserdatad/xcschemes/xcschememanagement.plist b/NimbleFeedback.xcodeproj/xcuserdata/eimantas.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 7f4a76f..0000000 --- a/NimbleFeedback.xcodeproj/xcuserdata/eimantas.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,14 +0,0 @@ - - - - - SchemeUserState - - NimbleFeedback.xcscheme_^#shared#^_ - - orderHint - 0 - - - - diff --git a/NimbleFeedbackTests/Info.plist b/NimbleFeedbackTests/Info.plist deleted file mode 100644 index 6c40a6c..0000000 --- a/NimbleFeedbackTests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..2c7cca5 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,34 @@ +{ + "object": { + "pins": [ + { + "package": "CwlCatchException", + "repositoryURL": "https://github.com/mattgallagher/CwlCatchException.git", + "state": { + "branch": null, + "revision": "f809deb30dc5c9d9b78c872e553261a61177721a", + "version": "2.0.0" + } + }, + { + "package": "CwlPreconditionTesting", + "repositoryURL": "https://github.com/mattgallagher/CwlPreconditionTesting.git", + "state": { + "branch": null, + "revision": "02b7a39a99c4da27abe03cab2053a9034379639f", + "version": "2.0.0" + } + }, + { + "package": "Nimble", + "repositoryURL": "https://github.com/quick/nimble.git", + "state": { + "branch": null, + "revision": "e491a6731307bb23783bf664d003be9b2fa59ab5", + "version": "9.0.0" + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..6a095da --- /dev/null +++ b/Package.swift @@ -0,0 +1,23 @@ +// swift-tools-version:5.3 + +import PackageDescription + +let package = Package( + name: "NimbleFeedback", + products: [ + .library(name: "NimbleFeedback", targets: ["NimbleFeedback"]) + ], + dependencies: [ + .package(name: "Nimble", url: "https://github.com/quick/nimble.git", .upToNextMajor(from: "9.0.0")) + ], + targets: [ + .target( + name: "NimbleFeedback", + dependencies: ["Nimble"] + ), + .testTarget( + name: "NimbleFeedbackTests", + dependencies: ["NimbleFeedback"] + ) + ] +) diff --git a/NimbleFeedback/NimbleFeedback.h b/Sources/NimbleFeedback/NimbleFeedback.h similarity index 100% rename from NimbleFeedback/NimbleFeedback.h rename to Sources/NimbleFeedback/NimbleFeedback.h diff --git a/NimbleFeedback/NimbleFeedback.swift b/Sources/NimbleFeedback/NimbleFeedback.swift similarity index 100% rename from NimbleFeedback/NimbleFeedback.swift rename to Sources/NimbleFeedback/NimbleFeedback.swift diff --git a/NimbleFeedbackTests/DummyState.swift b/Tests/NimbleFeedbackTests/DummyState.swift similarity index 100% rename from NimbleFeedbackTests/DummyState.swift rename to Tests/NimbleFeedbackTests/DummyState.swift diff --git a/NimbleFeedbackTests/DummyStateTests.swift b/Tests/NimbleFeedbackTests/DummyStateTests.swift similarity index 100% rename from NimbleFeedbackTests/DummyStateTests.swift rename to Tests/NimbleFeedbackTests/DummyStateTests.swift diff --git a/NimbleFeedbackTests/NimbleFeedbackTests.swift b/Tests/NimbleFeedbackTests/NimbleFeedbackTests.swift similarity index 100% rename from NimbleFeedbackTests/NimbleFeedbackTests.swift rename to Tests/NimbleFeedbackTests/NimbleFeedbackTests.swift