From d9ee2c7b3952e6af7f922b8acc0aaa2f7beacedb Mon Sep 17 00:00:00 2001 From: Toby O'Connell Date: Tue, 6 Nov 2018 11:01:12 +0000 Subject: [PATCH 1/2] Move Sources and Tests and remove xcodeproj --- FlatBuffersSwift.xcodeproj/project.pbxproj | 494 ------------------ .../contents.xcworkspacedata | 7 - .../xcschemes/FlatBuffersSwift.xcscheme | 100 ---- .../xcschemes/xcschememanagement.plist | 42 -- Package.swift | 28 + .../FlatBuffersBuilder.swift | 0 .../FlatBuffersSwift}/FlatBuffersReader.swift | 0 .../FlatBuffersSwift}/FlatBuffersSwift.h | 0 .../FlatBuffersSwift}/Info.plist | 0 .../FlatBuffersSwiftTests}/BuilderTest.swift | 0 .../FlatBuffersSwiftTests}/ContactsTest.swift | 0 .../FlatBuffersSwiftTests}/FBReaderTest.swift | 0 .../FlatBuffersSwiftTests}/FriendsTest.swift | 0 .../FlatBuffersSwiftTests}/Info.plist | 0 .../FlatBuffersSwiftTests}/contacts.fbs | 0 .../FlatBuffersSwiftTests}/contacts_fb.swift | 0 .../FlatBuffersSwiftTests}/friends.fbs | 0 .../FlatBuffersSwiftTests}/friends_fb.swift | 0 18 files changed, 28 insertions(+), 643 deletions(-) delete mode 100644 FlatBuffersSwift.xcodeproj/project.pbxproj delete mode 100644 FlatBuffersSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 FlatBuffersSwift.xcodeproj/xcshareddata/xcschemes/FlatBuffersSwift.xcscheme delete mode 100644 FlatBuffersSwift.xcodeproj/xcuserdata/mzaks.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 Package.swift rename {FlatBuffersSwift => Sources/FlatBuffersSwift}/FlatBuffersBuilder.swift (100%) rename {FlatBuffersSwift => Sources/FlatBuffersSwift}/FlatBuffersReader.swift (100%) rename {FlatBuffersSwift => Sources/FlatBuffersSwift}/FlatBuffersSwift.h (100%) rename {FlatBuffersSwift => Sources/FlatBuffersSwift}/Info.plist (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/BuilderTest.swift (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/ContactsTest.swift (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/FBReaderTest.swift (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/FriendsTest.swift (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/Info.plist (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/contacts.fbs (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/contacts_fb.swift (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/friends.fbs (100%) rename {FlatBuffersSwiftTests => Tests/FlatBuffersSwiftTests}/friends_fb.swift (100%) diff --git a/FlatBuffersSwift.xcodeproj/project.pbxproj b/FlatBuffersSwift.xcodeproj/project.pbxproj deleted file mode 100644 index a2b9f0a..0000000 --- a/FlatBuffersSwift.xcodeproj/project.pbxproj +++ /dev/null @@ -1,494 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 0B145ECC1E3503690063A471 /* contacts_fb.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B57C1321DCE9C490074EE0E /* contacts_fb.swift */; }; - 0B57C1291DCE98F00074EE0E /* FlatBuffersReader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0BA0E86A1C32B6AD00B896B7 /* FlatBuffersReader.swift */; }; - 0B57C12B1DCE99650074EE0E /* BuilderTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B57C12A1DCE99650074EE0E /* BuilderTest.swift */; }; - 0B57C12D1DCE9A2D0074EE0E /* FBReaderTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B57C12C1DCE9A2D0074EE0E /* FBReaderTest.swift */; }; - 0B57C12F1DCE9AA80074EE0E /* contacts.fbs in Resources */ = {isa = PBXBuildFile; fileRef = 0B57C12E1DCE9AA80074EE0E /* contacts.fbs */; }; - 0B57C1311DCE9B080074EE0E /* friends.fbs in Resources */ = {isa = PBXBuildFile; fileRef = 0B57C1301DCE9B080074EE0E /* friends.fbs */; }; - 0B57C1351DCE9C490074EE0E /* friends_fb.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B57C1331DCE9C490074EE0E /* friends_fb.swift */; }; - 0B57C1371DCE9C970074EE0E /* ContactsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B57C1361DCE9C970074EE0E /* ContactsTest.swift */; }; - 0B57C1391DCE9CF80074EE0E /* FriendsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B57C1381DCE9CF80074EE0E /* FriendsTest.swift */; }; - 0B62C1F31C43F6A2002500FE /* FlatBuffersBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B62C1F01C43F1CD002500FE /* FlatBuffersBuilder.swift */; }; - 0BA0E8491C32B62200B896B7 /* FlatBuffersSwift.h in Headers */ = {isa = PBXBuildFile; fileRef = 0BA0E8481C32B62200B896B7 /* FlatBuffersSwift.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 0BE327781CD69BA00067DAC8 /* FlatBuffersSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0BA0E8451C32B62200B896B7 /* FlatBuffersSwift.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 0BA0E8511C32B62200B896B7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0BA0E83C1C32B62200B896B7 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 0BA0E8441C32B62200B896B7; - remoteInfo = FlatBuffersSwift; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 0B57C12A1DCE99650074EE0E /* BuilderTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BuilderTest.swift; sourceTree = ""; }; - 0B57C12C1DCE9A2D0074EE0E /* FBReaderTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FBReaderTest.swift; sourceTree = ""; }; - 0B57C12E1DCE9AA80074EE0E /* contacts.fbs */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = contacts.fbs; sourceTree = ""; }; - 0B57C1301DCE9B080074EE0E /* friends.fbs */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = friends.fbs; sourceTree = ""; }; - 0B57C1321DCE9C490074EE0E /* contacts_fb.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = contacts_fb.swift; sourceTree = ""; }; - 0B57C1331DCE9C490074EE0E /* friends_fb.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = friends_fb.swift; sourceTree = ""; }; - 0B57C1361DCE9C970074EE0E /* ContactsTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContactsTest.swift; sourceTree = ""; }; - 0B57C1381DCE9CF80074EE0E /* FriendsTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FriendsTest.swift; sourceTree = ""; }; - 0B62C1F01C43F1CD002500FE /* FlatBuffersBuilder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlatBuffersBuilder.swift; sourceTree = ""; }; - 0BA0E8451C32B62200B896B7 /* FlatBuffersSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FlatBuffersSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 0BA0E8481C32B62200B896B7 /* FlatBuffersSwift.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FlatBuffersSwift.h; sourceTree = ""; }; - 0BA0E84A1C32B62200B896B7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 0BA0E84F1C32B62200B896B7 /* FlatBuffersSwiftTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FlatBuffersSwiftTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 0BA0E8561C32B62200B896B7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 0BA0E86A1C32B6AD00B896B7 /* FlatBuffersReader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlatBuffersReader.swift; sourceTree = ""; }; - 85EE88611CDE83E00030231F /* generate.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = generate.sh; sourceTree = SOURCE_ROOT; }; - 85EE88621CDE84640030231F /* .travis.yml */ = {isa = PBXFileReference; lastKnownFileType = text; name = .travis.yml; path = ../.travis.yml; sourceTree = ""; }; - 85EE887C1CE5128E0030231F /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; }; - 85EE887E1CE512980030231F /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = SOURCE_ROOT; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 0BA0E8411C32B62200B896B7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0BA0E84C1C32B62200B896B7 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0BE327781CD69BA00067DAC8 /* FlatBuffersSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 0BA0E83B1C32B62200B896B7 = { - isa = PBXGroup; - children = ( - 0BA0E8471C32B62200B896B7 /* FlatBuffersSwift */, - 0BA0E8531C32B62200B896B7 /* FlatBuffersSwiftTests */, - 85EE885C1CDE830A0030231F /* Resources */, - 0BA0E8461C32B62200B896B7 /* Products */, - ); - sourceTree = ""; - }; - 0BA0E8461C32B62200B896B7 /* Products */ = { - isa = PBXGroup; - children = ( - 0BA0E8451C32B62200B896B7 /* FlatBuffersSwift.framework */, - 0BA0E84F1C32B62200B896B7 /* FlatBuffersSwiftTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 0BA0E8471C32B62200B896B7 /* FlatBuffersSwift */ = { - isa = PBXGroup; - children = ( - 0B62C1F01C43F1CD002500FE /* FlatBuffersBuilder.swift */, - 0BA0E86A1C32B6AD00B896B7 /* FlatBuffersReader.swift */, - 0BA0E8481C32B62200B896B7 /* FlatBuffersSwift.h */, - 0BA0E84A1C32B62200B896B7 /* Info.plist */, - ); - path = FlatBuffersSwift; - sourceTree = ""; - }; - 0BA0E8531C32B62200B896B7 /* FlatBuffersSwiftTests */ = { - isa = PBXGroup; - children = ( - 0B57C12E1DCE9AA80074EE0E /* contacts.fbs */, - 0B57C1321DCE9C490074EE0E /* contacts_fb.swift */, - 0B57C1301DCE9B080074EE0E /* friends.fbs */, - 0B57C1331DCE9C490074EE0E /* friends_fb.swift */, - 0BA0E8561C32B62200B896B7 /* Info.plist */, - 0B57C12A1DCE99650074EE0E /* BuilderTest.swift */, - 0B57C12C1DCE9A2D0074EE0E /* FBReaderTest.swift */, - 0B57C1361DCE9C970074EE0E /* ContactsTest.swift */, - 0B57C1381DCE9CF80074EE0E /* FriendsTest.swift */, - ); - path = FlatBuffersSwiftTests; - sourceTree = ""; - }; - 85EE885C1CDE830A0030231F /* Resources */ = { - isa = PBXGroup; - children = ( - 85EE887E1CE512980030231F /* LICENSE */, - 85EE887C1CE5128E0030231F /* README.md */, - 85EE88611CDE83E00030231F /* generate.sh */, - 85EE88621CDE84640030231F /* .travis.yml */, - ); - name = Resources; - path = Example; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 0BA0E8421C32B62200B896B7 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0BA0E8491C32B62200B896B7 /* FlatBuffersSwift.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 0BA0E8441C32B62200B896B7 /* FlatBuffersSwift */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0BA0E8591C32B62200B896B7 /* Build configuration list for PBXNativeTarget "FlatBuffersSwift" */; - buildPhases = ( - 0BA0E8401C32B62200B896B7 /* Sources */, - 0BA0E8411C32B62200B896B7 /* Frameworks */, - 0BA0E8421C32B62200B896B7 /* Headers */, - 0BA0E8431C32B62200B896B7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = FlatBuffersSwift; - productName = FlatBuffersSwift; - productReference = 0BA0E8451C32B62200B896B7 /* FlatBuffersSwift.framework */; - productType = "com.apple.product-type.framework"; - }; - 0BA0E84E1C32B62200B896B7 /* FlatBuffersSwiftTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 0BA0E85C1C32B62200B896B7 /* Build configuration list for PBXNativeTarget "FlatBuffersSwiftTests" */; - buildPhases = ( - 0BA0E84B1C32B62200B896B7 /* Sources */, - 0BA0E84C1C32B62200B896B7 /* Frameworks */, - 0BA0E84D1C32B62200B896B7 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 0BA0E8521C32B62200B896B7 /* PBXTargetDependency */, - ); - name = FlatBuffersSwiftTests; - productName = FlatBuffersSwiftTests; - productReference = 0BA0E84F1C32B62200B896B7 /* FlatBuffersSwiftTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 0BA0E83C1C32B62200B896B7 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0730; - LastUpgradeCheck = 0940; - ORGANIZATIONNAME = maxim.zaks; - TargetAttributes = { - 0BA0E8441C32B62200B896B7 = { - CreatedOnToolsVersion = 7.2; - LastSwiftMigration = 0940; - }; - 0BA0E84E1C32B62200B896B7 = { - CreatedOnToolsVersion = 7.2; - LastSwiftMigration = 0940; - }; - }; - }; - buildConfigurationList = 0BA0E83F1C32B62200B896B7 /* Build configuration list for PBXProject "FlatBuffersSwift" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 0BA0E83B1C32B62200B896B7; - productRefGroup = 0BA0E8461C32B62200B896B7 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 0BA0E8441C32B62200B896B7 /* FlatBuffersSwift */, - 0BA0E84E1C32B62200B896B7 /* FlatBuffersSwiftTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 0BA0E8431C32B62200B896B7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0BA0E84D1C32B62200B896B7 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0B57C12F1DCE9AA80074EE0E /* contacts.fbs in Resources */, - 0B57C1311DCE9B080074EE0E /* friends.fbs in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 0BA0E8401C32B62200B896B7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0B57C1291DCE98F00074EE0E /* FlatBuffersReader.swift in Sources */, - 0B62C1F31C43F6A2002500FE /* FlatBuffersBuilder.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 0BA0E84B1C32B62200B896B7 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0B145ECC1E3503690063A471 /* contacts_fb.swift in Sources */, - 0B57C1391DCE9CF80074EE0E /* FriendsTest.swift in Sources */, - 0B57C1351DCE9C490074EE0E /* friends_fb.swift in Sources */, - 0B57C12D1DCE9A2D0074EE0E /* FBReaderTest.swift in Sources */, - 0B57C1371DCE9C970074EE0E /* ContactsTest.swift in Sources */, - 0B57C12B1DCE99650074EE0E /* BuilderTest.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 0BA0E8521C32B62200B896B7 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 0BA0E8441C32B62200B896B7 /* FlatBuffersSwift */; - targetProxy = 0BA0E8511C32B62200B896B7 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 0BA0E8571C32B62200B896B7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = 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_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_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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; - MACOSX_DEPLOYMENT_TARGET = 10.11; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 0BA0E8581C32B62200B896B7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = 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_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_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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; - MACOSX_DEPLOYMENT_TARGET = 10.11; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 0BA0E85A1C32B62200B896B7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CLANG_ENABLE_MODULES = YES; - CLANG_USE_OPTIMIZATION_PROFILE = NO; - CODE_SIGN_IDENTITY = ""; - COMBINE_HIDPI_IMAGES = YES; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_VERSION = A; - INFOPLIST_FILE = FlatBuffersSwift/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = maxim.zaks.FlatBuffersSwift; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; - }; - name = Debug; - }; - 0BA0E85B1C32B62200B896B7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CLANG_ENABLE_MODULES = YES; - CLANG_USE_OPTIMIZATION_PROFILE = NO; - CODE_SIGN_IDENTITY = ""; - COMBINE_HIDPI_IMAGES = YES; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_VERSION = A; - GCC_OPTIMIZATION_LEVEL = s; - INFOPLIST_FILE = FlatBuffersSwift/Info.plist; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = maxim.zaks.FlatBuffersSwift; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; - }; - name = Release; - }; - 0BA0E85D1C32B62200B896B7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = FlatBuffersSwiftTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = maxim.zaks.FlatBuffersSwiftTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; - }; - name = Debug; - }; - 0BA0E85E1C32B62200B896B7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = FlatBuffersSwiftTests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = maxim.zaks.FlatBuffersSwiftTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 0BA0E83F1C32B62200B896B7 /* Build configuration list for PBXProject "FlatBuffersSwift" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0BA0E8571C32B62200B896B7 /* Debug */, - 0BA0E8581C32B62200B896B7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0BA0E8591C32B62200B896B7 /* Build configuration list for PBXNativeTarget "FlatBuffersSwift" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0BA0E85A1C32B62200B896B7 /* Debug */, - 0BA0E85B1C32B62200B896B7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 0BA0E85C1C32B62200B896B7 /* Build configuration list for PBXNativeTarget "FlatBuffersSwiftTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 0BA0E85D1C32B62200B896B7 /* Debug */, - 0BA0E85E1C32B62200B896B7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 0BA0E83C1C32B62200B896B7 /* Project object */; -} diff --git a/FlatBuffersSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/FlatBuffersSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index a913229..0000000 --- a/FlatBuffersSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/FlatBuffersSwift.xcodeproj/xcshareddata/xcschemes/FlatBuffersSwift.xcscheme b/FlatBuffersSwift.xcodeproj/xcshareddata/xcschemes/FlatBuffersSwift.xcscheme deleted file mode 100644 index e70c165..0000000 --- a/FlatBuffersSwift.xcodeproj/xcshareddata/xcschemes/FlatBuffersSwift.xcscheme +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FlatBuffersSwift.xcodeproj/xcuserdata/mzaks.xcuserdatad/xcschemes/xcschememanagement.plist b/FlatBuffersSwift.xcodeproj/xcuserdata/mzaks.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 554f0e7..0000000 --- a/FlatBuffersSwift.xcodeproj/xcuserdata/mzaks.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,42 +0,0 @@ - - - - - SchemeUserState - - FlatBuffersSwift.xcscheme_^#shared#^_ - - orderHint - 0 - - - SuppressBuildableAutocreation - - 0BA0E8441C32B62200B896B7 - - primary - - - 0BA0E84E1C32B62200B896B7 - - primary - - - 0BA0E8781C3AC27800B896B7 - - primary - - - 0BE327621CD422E90067DAC8 - - primary - - - 85EE88671CE484900030231F - - primary - - - - - diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..c526cc3 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:4.0 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "FlatBuffersSwift", + products: [ + // Products define the executables and libraries produced by a package, and make them visible to other packages. + .library( + name: "FlatBuffersSwift", + targets: ["FlatBuffersSwift"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages which this package depends on. + .target( + name: "FlatBuffersSwift", + dependencies: []), + .testTarget( + name: "FlatBuffersSwiftTests", + dependencies: ["FlatBuffersSwift"]), + ] +) diff --git a/FlatBuffersSwift/FlatBuffersBuilder.swift b/Sources/FlatBuffersSwift/FlatBuffersBuilder.swift similarity index 100% rename from FlatBuffersSwift/FlatBuffersBuilder.swift rename to Sources/FlatBuffersSwift/FlatBuffersBuilder.swift diff --git a/FlatBuffersSwift/FlatBuffersReader.swift b/Sources/FlatBuffersSwift/FlatBuffersReader.swift similarity index 100% rename from FlatBuffersSwift/FlatBuffersReader.swift rename to Sources/FlatBuffersSwift/FlatBuffersReader.swift diff --git a/FlatBuffersSwift/FlatBuffersSwift.h b/Sources/FlatBuffersSwift/FlatBuffersSwift.h similarity index 100% rename from FlatBuffersSwift/FlatBuffersSwift.h rename to Sources/FlatBuffersSwift/FlatBuffersSwift.h diff --git a/FlatBuffersSwift/Info.plist b/Sources/FlatBuffersSwift/Info.plist similarity index 100% rename from FlatBuffersSwift/Info.plist rename to Sources/FlatBuffersSwift/Info.plist diff --git a/FlatBuffersSwiftTests/BuilderTest.swift b/Tests/FlatBuffersSwiftTests/BuilderTest.swift similarity index 100% rename from FlatBuffersSwiftTests/BuilderTest.swift rename to Tests/FlatBuffersSwiftTests/BuilderTest.swift diff --git a/FlatBuffersSwiftTests/ContactsTest.swift b/Tests/FlatBuffersSwiftTests/ContactsTest.swift similarity index 100% rename from FlatBuffersSwiftTests/ContactsTest.swift rename to Tests/FlatBuffersSwiftTests/ContactsTest.swift diff --git a/FlatBuffersSwiftTests/FBReaderTest.swift b/Tests/FlatBuffersSwiftTests/FBReaderTest.swift similarity index 100% rename from FlatBuffersSwiftTests/FBReaderTest.swift rename to Tests/FlatBuffersSwiftTests/FBReaderTest.swift diff --git a/FlatBuffersSwiftTests/FriendsTest.swift b/Tests/FlatBuffersSwiftTests/FriendsTest.swift similarity index 100% rename from FlatBuffersSwiftTests/FriendsTest.swift rename to Tests/FlatBuffersSwiftTests/FriendsTest.swift diff --git a/FlatBuffersSwiftTests/Info.plist b/Tests/FlatBuffersSwiftTests/Info.plist similarity index 100% rename from FlatBuffersSwiftTests/Info.plist rename to Tests/FlatBuffersSwiftTests/Info.plist diff --git a/FlatBuffersSwiftTests/contacts.fbs b/Tests/FlatBuffersSwiftTests/contacts.fbs similarity index 100% rename from FlatBuffersSwiftTests/contacts.fbs rename to Tests/FlatBuffersSwiftTests/contacts.fbs diff --git a/FlatBuffersSwiftTests/contacts_fb.swift b/Tests/FlatBuffersSwiftTests/contacts_fb.swift similarity index 100% rename from FlatBuffersSwiftTests/contacts_fb.swift rename to Tests/FlatBuffersSwiftTests/contacts_fb.swift diff --git a/FlatBuffersSwiftTests/friends.fbs b/Tests/FlatBuffersSwiftTests/friends.fbs similarity index 100% rename from FlatBuffersSwiftTests/friends.fbs rename to Tests/FlatBuffersSwiftTests/friends.fbs diff --git a/FlatBuffersSwiftTests/friends_fb.swift b/Tests/FlatBuffersSwiftTests/friends_fb.swift similarity index 100% rename from FlatBuffersSwiftTests/friends_fb.swift rename to Tests/FlatBuffersSwiftTests/friends_fb.swift From 271fd05c96d6467529a71e703de5d3b9551d8796 Mon Sep 17 00:00:00 2001 From: Toby O'Connell Date: Mon, 3 Dec 2018 08:49:34 +0000 Subject: [PATCH 2/2] Add "*.xcodeproj" and "*.build" to gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index a12c25b..24a4189 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,8 @@ DerivedData *.hmap *.ipa *.xcuserstate +*.xcodeproj +*.build # CocoaPods #