diff --git a/.gitignore b/.gitignore index 02c0875..ddbb1e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ .DS_Store /.build /Packages -/*.xcodeproj diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/davidbeck.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/davidbeck.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 9237343..0000000 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/davidbeck.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/MultipartForm.xcodeproj/project.pbxproj b/MultipartForm.xcodeproj/project.pbxproj new file mode 100644 index 0000000..44ecb23 --- /dev/null +++ b/MultipartForm.xcodeproj/project.pbxproj @@ -0,0 +1,344 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 9819A40A2641AD3200295785 /* MultipartForm.h in Headers */ = {isa = PBXBuildFile; fileRef = 9819A4082641AD3200295785 /* MultipartForm.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 98EF183E2641AEF8001AC6B9 /* Data+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98EF183C2641AEF8001AC6B9 /* Data+Helpers.swift */; }; + 98EF183F2641AEF8001AC6B9 /* MultipartForm.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98EF183D2641AEF8001AC6B9 /* MultipartForm.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 9819A4052641AD3200295785 /* MultipartForm.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MultipartForm.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9819A4082641AD3200295785 /* MultipartForm.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MultipartForm.h; sourceTree = ""; }; + 9819A4092641AD3200295785 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 98EF183C2641AEF8001AC6B9 /* Data+Helpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Data+Helpers.swift"; sourceTree = ""; }; + 98EF183D2641AEF8001AC6B9 /* MultipartForm.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MultipartForm.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 9819A4022641AD3200295785 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9819A3FB2641AD3200295785 = { + isa = PBXGroup; + children = ( + 9819A4072641AD3200295785 /* MultipartForm */, + 9819A4062641AD3200295785 /* Products */, + ); + sourceTree = ""; + }; + 9819A4062641AD3200295785 /* Products */ = { + isa = PBXGroup; + children = ( + 9819A4052641AD3200295785 /* MultipartForm.framework */, + ); + name = Products; + sourceTree = ""; + }; + 9819A4072641AD3200295785 /* MultipartForm */ = { + isa = PBXGroup; + children = ( + 9819A4082641AD3200295785 /* MultipartForm.h */, + 9819A4092641AD3200295785 /* Info.plist */, + 98EF183C2641AEF8001AC6B9 /* Data+Helpers.swift */, + 98EF183D2641AEF8001AC6B9 /* MultipartForm.swift */, + ); + path = MultipartForm; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 9819A4002641AD3200295785 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 9819A40A2641AD3200295785 /* MultipartForm.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 9819A4042641AD3200295785 /* MultipartForm */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9819A40D2641AD3200295785 /* Build configuration list for PBXNativeTarget "MultipartForm" */; + buildPhases = ( + 9819A4002641AD3200295785 /* Headers */, + 9819A4012641AD3200295785 /* Sources */, + 9819A4022641AD3200295785 /* Frameworks */, + 9819A4032641AD3200295785 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MultipartForm; + productName = MultipartForm; + productReference = 9819A4052641AD3200295785 /* MultipartForm.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 9819A3FC2641AD3200295785 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1240; + LastUpgradeCheck = 1240; + TargetAttributes = { + 9819A4042641AD3200295785 = { + CreatedOnToolsVersion = 12.4; + LastSwiftMigration = 1240; + }; + }; + }; + buildConfigurationList = 9819A3FF2641AD3200295785 /* Build configuration list for PBXProject "MultipartForm" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 9819A3FB2641AD3200295785; + productRefGroup = 9819A4062641AD3200295785 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 9819A4042641AD3200295785 /* MultipartForm */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 9819A4032641AD3200295785 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 9819A4012641AD3200295785 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 98EF183F2641AEF8001AC6B9 /* MultipartForm.swift in Sources */, + 98EF183E2641AEF8001AC6B9 /* Data+Helpers.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 9819A40B2641AD3200295785 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = 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; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + 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 = 10.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; + }; + 9819A40C2641AD3200295785 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = 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; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + 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 = 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 = 10.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; + }; + 9819A40E2641AD3200295785 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = MultipartForm/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = co.davidbeck.MultipartForm; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 9819A40F2641AD3200295785 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = MultipartForm/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = co.davidbeck.MultipartForm; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 9819A3FF2641AD3200295785 /* Build configuration list for PBXProject "MultipartForm" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9819A40B2641AD3200295785 /* Debug */, + 9819A40C2641AD3200295785 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9819A40D2641AD3200295785 /* Build configuration list for PBXNativeTarget "MultipartForm" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9819A40E2641AD3200295785 /* Debug */, + 9819A40F2641AD3200295785 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 9819A3FC2641AD3200295785 /* Project object */; +} diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/MultipartForm.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata rename to MultipartForm.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/MultipartForm.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/MultipartForm.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/MultipartForm.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/MultipartForm.xcodeproj/project.xcworkspace/xcuserdata/arnold.plakolli.xcuserdatad/UserInterfaceState.xcuserstate b/MultipartForm.xcodeproj/project.xcworkspace/xcuserdata/arnold.plakolli.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..a08ca1e Binary files /dev/null and b/MultipartForm.xcodeproj/project.xcworkspace/xcuserdata/arnold.plakolli.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/MultipartForm.xcodeproj/xcshareddata/xcschemes/MultipartForm.xcscheme b/MultipartForm.xcodeproj/xcshareddata/xcschemes/MultipartForm.xcscheme new file mode 100644 index 0000000..6a5ba00 --- /dev/null +++ b/MultipartForm.xcodeproj/xcshareddata/xcschemes/MultipartForm.xcscheme @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.swiftpm/xcode/xcuserdata/davidbeck.xcuserdatad/xcschemes/xcschememanagement.plist b/MultipartForm.xcodeproj/xcuserdata/arnold.plakolli.xcuserdatad/xcschemes/xcschememanagement.plist similarity index 80% rename from .swiftpm/xcode/xcuserdata/davidbeck.xcuserdatad/xcschemes/xcschememanagement.plist rename to MultipartForm.xcodeproj/xcuserdata/arnold.plakolli.xcuserdatad/xcschemes/xcschememanagement.plist index c7016d7..dacc3d5 100644 --- a/.swiftpm/xcode/xcuserdata/davidbeck.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/MultipartForm.xcodeproj/xcuserdata/arnold.plakolli.xcuserdatad/xcschemes/xcschememanagement.plist @@ -12,12 +12,7 @@ SuppressBuildableAutocreation - MultipartForm - - primary - - - MultipartFormTests + 9819A4042641AD3200295785 primary diff --git a/Sources/MultipartForm/Data+Helpers.swift b/MultipartForm/Data+Helpers.swift similarity index 100% rename from Sources/MultipartForm/Data+Helpers.swift rename to MultipartForm/Data+Helpers.swift diff --git a/MultipartForm/Info.plist b/MultipartForm/Info.plist new file mode 100644 index 0000000..9bcb244 --- /dev/null +++ b/MultipartForm/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + + diff --git a/MultipartForm/MultipartForm.h b/MultipartForm/MultipartForm.h new file mode 100644 index 0000000..467d0a0 --- /dev/null +++ b/MultipartForm/MultipartForm.h @@ -0,0 +1,18 @@ +// +// MultipartForm.h +// MultipartForm +// +// Created by Arnold Plakolli on 4.5.21. +// + +#import + +//! Project version number for MultipartForm. +FOUNDATION_EXPORT double MultipartFormVersionNumber; + +//! Project version string for MultipartForm. +FOUNDATION_EXPORT const unsigned char MultipartFormVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/Sources/MultipartForm/MultipartForm.swift b/MultipartForm/MultipartForm.swift similarity index 100% rename from Sources/MultipartForm/MultipartForm.swift rename to MultipartForm/MultipartForm.swift diff --git a/Package.swift b/Package.swift index 447ea96..cca1181 100644 --- a/Package.swift +++ b/Package.swift @@ -3,27 +3,19 @@ import PackageDescription let package = Package( name: "MultipartForm", + platforms: [ + .iOS(.v10), + ], products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( name: "MultipartForm", targets: ["MultipartForm"] ), ], - 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: "MultipartForm", - dependencies: [] - ), - .testTarget( - name: "MultipartFormTests", - dependencies: ["MultipartForm"] - ), + path: "MultipartForm" + ) ] )