From 3b61cfc72e4460672669aa49cccfd05a1417dbfb Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 31 Oct 2020 01:32:11 +0100 Subject: [PATCH] Configure Demo for basic CI --- .gitignore | 7 + .travis.yml | 15 + Demo.xcodeproj/project.pbxproj | 547 ++++++++++++++++++ Demo.xcworkspace/contents.xcworkspacedata | 10 + Demo/AppDelegate.swift | 36 ++ .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 98 ++++ Demo/Assets.xcassets/Contents.json | 6 + Demo/Base.lproj/LaunchScreen.storyboard | 25 + Demo/Base.lproj/Main.storyboard | 24 + Demo/Info.plist | 66 +++ Demo/SceneDelegate.swift | 52 ++ Demo/ViewController.swift | 19 + DemoTests/DemoTests.swift | 33 ++ DemoTests/Info.plist | 22 + OpenSSL-Apple.podspec | 25 + Podfile | 7 + Podfile.lock | 16 + 18 files changed, 1019 insertions(+) create mode 100644 .travis.yml create mode 100644 Demo.xcodeproj/project.pbxproj create mode 100644 Demo.xcworkspace/contents.xcworkspacedata create mode 100644 Demo/AppDelegate.swift create mode 100644 Demo/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 Demo/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Demo/Assets.xcassets/Contents.json create mode 100644 Demo/Base.lproj/LaunchScreen.storyboard create mode 100644 Demo/Base.lproj/Main.storyboard create mode 100644 Demo/Info.plist create mode 100644 Demo/SceneDelegate.swift create mode 100644 Demo/ViewController.swift create mode 100644 DemoTests/DemoTests.swift create mode 100644 DemoTests/Info.plist create mode 100755 OpenSSL-Apple.podspec create mode 100644 Podfile create mode 100644 Podfile.lock diff --git a/.gitignore b/.gitignore index 9a83bd9..ab0744a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,10 @@ lib include/openssl *.gz *.framework +*.o +*.pbxuser +*.xcworkspace/xcuserdata +*.xcworkspace/xcshareddata +*.xcodeproj/project.xcworkspace +*.xcodeproj/xcuserdata +Pods diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a66bac4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: objective-c +osx_image: xcode12.2 +xcode_workspace: Demo.xcworkspace +xcode_scheme: Demo +xcode_destination: platform=iOS Simulator,OS=14.2,name=iPhone 11 Pro Max +cache: + - bundler + - cocoapods +branches: + only: + - master +install: + - bundle install --jobs=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle} + - bundle exec pod repo update + - travis_wait 30 bundle exec pod install diff --git a/Demo.xcodeproj/project.pbxproj b/Demo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..beb0d01 --- /dev/null +++ b/Demo.xcodeproj/project.pbxproj @@ -0,0 +1,547 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 51; + objects = { + +/* Begin PBXBuildFile section */ + 0EF4C843254B2DDE0030F3CE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EF4C842254B2DDE0030F3CE /* AppDelegate.swift */; }; + 0EF4C845254B2DDE0030F3CE /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EF4C844254B2DDE0030F3CE /* SceneDelegate.swift */; }; + 0EF4C847254B2DDE0030F3CE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EF4C846254B2DDE0030F3CE /* ViewController.swift */; }; + 0EF4C84A254B2DDE0030F3CE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0EF4C848254B2DDE0030F3CE /* Main.storyboard */; }; + 0EF4C84C254B2DE10030F3CE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0EF4C84B254B2DE10030F3CE /* Assets.xcassets */; }; + 0EF4C84F254B2DE10030F3CE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0EF4C84D254B2DE10030F3CE /* LaunchScreen.storyboard */; }; + 0EF4C85A254B2DE10030F3CE /* DemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EF4C859254B2DE10030F3CE /* DemoTests.swift */; }; + E4C28CA56E5A61E913673DFD /* Pods_Demo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6FF5D706DE62AAFFAD0135B /* Pods_Demo.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 0EF4C856254B2DE10030F3CE /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0EF4C837254B2DDE0030F3CE /* Project object */; + proxyType = 1; + remoteGlobalIDString = 0EF4C83E254B2DDE0030F3CE; + remoteInfo = Demo; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0EF4C83F254B2DDE0030F3CE /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 0EF4C842254B2DDE0030F3CE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 0EF4C844254B2DDE0030F3CE /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 0EF4C846254B2DDE0030F3CE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 0EF4C849254B2DDE0030F3CE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 0EF4C84B254B2DE10030F3CE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 0EF4C84E254B2DE10030F3CE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 0EF4C850254B2DE10030F3CE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 0EF4C855254B2DE10030F3CE /* DemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 0EF4C859254B2DE10030F3CE /* DemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoTests.swift; sourceTree = ""; }; + 0EF4C85B254B2DE10030F3CE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8FB7A198258FAEF9C726F81E /* Pods-Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.debug.xcconfig"; path = "Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig"; sourceTree = ""; }; + C6BF7D134E8E973B8BF8F1F2 /* Pods-Demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.release.xcconfig"; path = "Target Support Files/Pods-Demo/Pods-Demo.release.xcconfig"; sourceTree = ""; }; + F6FF5D706DE62AAFFAD0135B /* Pods_Demo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Demo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 0EF4C83C254B2DDE0030F3CE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + E4C28CA56E5A61E913673DFD /* Pods_Demo.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0EF4C852254B2DE10030F3CE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0EF4C836254B2DDE0030F3CE = { + isa = PBXGroup; + children = ( + 0EF4C841254B2DDE0030F3CE /* Demo */, + 0EF4C858254B2DE10030F3CE /* DemoTests */, + 0EF4C840254B2DDE0030F3CE /* Products */, + D2C3F7AD1184D688DCE9D6B9 /* Pods */, + 50A0D31432E90DF422B9BDBA /* Frameworks */, + ); + sourceTree = ""; + }; + 0EF4C840254B2DDE0030F3CE /* Products */ = { + isa = PBXGroup; + children = ( + 0EF4C83F254B2DDE0030F3CE /* Demo.app */, + 0EF4C855254B2DE10030F3CE /* DemoTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 0EF4C841254B2DDE0030F3CE /* Demo */ = { + isa = PBXGroup; + children = ( + 0EF4C842254B2DDE0030F3CE /* AppDelegate.swift */, + 0EF4C844254B2DDE0030F3CE /* SceneDelegate.swift */, + 0EF4C846254B2DDE0030F3CE /* ViewController.swift */, + 0EF4C848254B2DDE0030F3CE /* Main.storyboard */, + 0EF4C84B254B2DE10030F3CE /* Assets.xcassets */, + 0EF4C84D254B2DE10030F3CE /* LaunchScreen.storyboard */, + 0EF4C850254B2DE10030F3CE /* Info.plist */, + ); + path = Demo; + sourceTree = ""; + }; + 0EF4C858254B2DE10030F3CE /* DemoTests */ = { + isa = PBXGroup; + children = ( + 0EF4C859254B2DE10030F3CE /* DemoTests.swift */, + 0EF4C85B254B2DE10030F3CE /* Info.plist */, + ); + path = DemoTests; + sourceTree = ""; + }; + 50A0D31432E90DF422B9BDBA /* Frameworks */ = { + isa = PBXGroup; + children = ( + F6FF5D706DE62AAFFAD0135B /* Pods_Demo.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + D2C3F7AD1184D688DCE9D6B9 /* Pods */ = { + isa = PBXGroup; + children = ( + 8FB7A198258FAEF9C726F81E /* Pods-Demo.debug.xcconfig */, + C6BF7D134E8E973B8BF8F1F2 /* Pods-Demo.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 0EF4C83E254B2DDE0030F3CE /* Demo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0EF4C869254B2DE10030F3CE /* Build configuration list for PBXNativeTarget "Demo" */; + buildPhases = ( + E779C03A2743FDC34CB79861 /* [CP] Check Pods Manifest.lock */, + 0EF4C83B254B2DDE0030F3CE /* Sources */, + 0EF4C83C254B2DDE0030F3CE /* Frameworks */, + 0EF4C83D254B2DDE0030F3CE /* Resources */, + 3FD7291765A818AED991E6BE /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Demo; + productName = Demo; + productReference = 0EF4C83F254B2DDE0030F3CE /* Demo.app */; + productType = "com.apple.product-type.application"; + }; + 0EF4C854254B2DE10030F3CE /* DemoTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0EF4C86C254B2DE10030F3CE /* Build configuration list for PBXNativeTarget "DemoTests" */; + buildPhases = ( + 0EF4C851254B2DE10030F3CE /* Sources */, + 0EF4C852254B2DE10030F3CE /* Frameworks */, + 0EF4C853254B2DE10030F3CE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 0EF4C857254B2DE10030F3CE /* PBXTargetDependency */, + ); + name = DemoTests; + productName = DemoTests; + productReference = 0EF4C855254B2DE10030F3CE /* DemoTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 0EF4C837254B2DDE0030F3CE /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1210; + LastUpgradeCheck = 1210; + TargetAttributes = { + 0EF4C83E254B2DDE0030F3CE = { + CreatedOnToolsVersion = 12.1; + }; + 0EF4C854254B2DE10030F3CE = { + CreatedOnToolsVersion = 12.1; + TestTargetID = 0EF4C83E254B2DDE0030F3CE; + }; + }; + }; + buildConfigurationList = 0EF4C83A254B2DDE0030F3CE /* Build configuration list for PBXProject "Demo" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 0EF4C836254B2DDE0030F3CE; + productRefGroup = 0EF4C840254B2DDE0030F3CE /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 0EF4C83E254B2DDE0030F3CE /* Demo */, + 0EF4C854254B2DE10030F3CE /* DemoTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 0EF4C83D254B2DDE0030F3CE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0EF4C84F254B2DE10030F3CE /* LaunchScreen.storyboard in Resources */, + 0EF4C84C254B2DE10030F3CE /* Assets.xcassets in Resources */, + 0EF4C84A254B2DDE0030F3CE /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0EF4C853254B2DE10030F3CE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3FD7291765A818AED991E6BE /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + E779C03A2743FDC34CB79861 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Demo-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 0EF4C83B254B2DDE0030F3CE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0EF4C847254B2DDE0030F3CE /* ViewController.swift in Sources */, + 0EF4C843254B2DDE0030F3CE /* AppDelegate.swift in Sources */, + 0EF4C845254B2DDE0030F3CE /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 0EF4C851254B2DE10030F3CE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0EF4C85A254B2DE10030F3CE /* DemoTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 0EF4C857254B2DE10030F3CE /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 0EF4C83E254B2DDE0030F3CE /* Demo */; + targetProxy = 0EF4C856254B2DE10030F3CE /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 0EF4C848254B2DDE0030F3CE /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 0EF4C849254B2DDE0030F3CE /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 0EF4C84D254B2DE10030F3CE /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 0EF4C84E254B2DE10030F3CE /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 0EF4C867254B2DE10030F3CE /* 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; + 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 = 14.1; + 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"; + }; + name = Debug; + }; + 0EF4C868254B2DE10030F3CE /* 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; + 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 = 14.1; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 0EF4C86A254B2DE10030F3CE /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 8FB7A198258FAEF9C726F81E /* Pods-Demo.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = DTDYD63ZX9; + INFOPLIST_FILE = Demo/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.openssl.Demo; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 0EF4C86B254B2DE10030F3CE /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C6BF7D134E8E973B8BF8F1F2 /* Pods-Demo.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = DTDYD63ZX9; + INFOPLIST_FILE = Demo/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.openssl.Demo; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 0EF4C86D254B2DE10030F3CE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = DTDYD63ZX9; + INFOPLIST_FILE = DemoTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.1; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.openssl.DemoTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo"; + }; + name = Debug; + }; + 0EF4C86E254B2DE10030F3CE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = DTDYD63ZX9; + INFOPLIST_FILE = DemoTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.1; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.algoritmico.ios.openssl.DemoTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 0EF4C83A254B2DDE0030F3CE /* Build configuration list for PBXProject "Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0EF4C867254B2DE10030F3CE /* Debug */, + 0EF4C868254B2DE10030F3CE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0EF4C869254B2DE10030F3CE /* Build configuration list for PBXNativeTarget "Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0EF4C86A254B2DE10030F3CE /* Debug */, + 0EF4C86B254B2DE10030F3CE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 0EF4C86C254B2DE10030F3CE /* Build configuration list for PBXNativeTarget "DemoTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0EF4C86D254B2DE10030F3CE /* Debug */, + 0EF4C86E254B2DE10030F3CE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 0EF4C837254B2DDE0030F3CE /* Project object */; +} diff --git a/Demo.xcworkspace/contents.xcworkspacedata b/Demo.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1f14019 --- /dev/null +++ b/Demo.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Demo/AppDelegate.swift b/Demo/AppDelegate.swift new file mode 100644 index 0000000..141e2eb --- /dev/null +++ b/Demo/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// Demo +// +// Created by Davide De Rosa on 10/29/20. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/Demo/Assets.xcassets/AccentColor.colorset/Contents.json b/Demo/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/Demo/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json b/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Assets.xcassets/Contents.json b/Demo/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Demo/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Demo/Base.lproj/LaunchScreen.storyboard b/Demo/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/Demo/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/Base.lproj/Main.storyboard b/Demo/Base.lproj/Main.storyboard new file mode 100644 index 0000000..25a7638 --- /dev/null +++ b/Demo/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/Info.plist b/Demo/Info.plist new file mode 100644 index 0000000..5b531f7 --- /dev/null +++ b/Demo/Info.plist @@ -0,0 +1,66 @@ + + + + + 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 + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UIApplicationSupportsIndirectInputEvents + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Demo/SceneDelegate.swift b/Demo/SceneDelegate.swift new file mode 100644 index 0000000..b140f99 --- /dev/null +++ b/Demo/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// Demo +// +// Created by Davide De Rosa on 10/29/20. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/Demo/ViewController.swift b/Demo/ViewController.swift new file mode 100644 index 0000000..fa62f4e --- /dev/null +++ b/Demo/ViewController.swift @@ -0,0 +1,19 @@ +// +// ViewController.swift +// Demo +// +// Created by Davide De Rosa on 10/29/20. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/DemoTests/DemoTests.swift b/DemoTests/DemoTests.swift new file mode 100644 index 0000000..240dce9 --- /dev/null +++ b/DemoTests/DemoTests.swift @@ -0,0 +1,33 @@ +// +// DemoTests.swift +// DemoTests +// +// Created by Davide De Rosa on 10/29/20. +// + +import XCTest +@testable import Demo + +class DemoTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/DemoTests/Info.plist b/DemoTests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/DemoTests/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 + 1 + + diff --git a/OpenSSL-Apple.podspec b/OpenSSL-Apple.podspec new file mode 100755 index 0000000..fee8f1a --- /dev/null +++ b/OpenSSL-Apple.podspec @@ -0,0 +1,25 @@ +Pod::Spec.new do |s| + openssl_version = "1.1.1g" + openssl_targets = "ios-sim-cross-x86_64 ios64-cross-arm64 macos64-x86_64" + script_version = "6" + + s.name = "OpenSSL-Apple" + s.version = "#{openssl_version}.#{script_version}" + s.summary = "A script for compiling OpenSSL for Apple Devices" + s.authors = "Felix Schulze", "Davide De Rosa", "Ezat Hashim" + + s.homepage = "https://github.com/keeshux/openssl-apple.git" + s.source = { :git => s.homepage.to_s, :tag => "v#{script_version}" } + s.license = { :type => 'Apache', :file => 'LICENSE' } + + s.prepare_command = <<-CMD +./build-libssl.sh --version="#{openssl_version}" --targets="#{openssl_targets}" +./create-openssl-framework.sh dynamic + CMD + + s.ios.deployment_target = "11.0" + s.ios.vendored_frameworks = "frameworks/iPhone/openssl.framework" + s.osx.deployment_target = "10.11" + s.osx.vendored_frameworks = "frameworks/MacOSX/openssl.framework" + s.requires_arc = false +end diff --git a/Podfile b/Podfile new file mode 100644 index 0000000..dc757b0 --- /dev/null +++ b/Podfile @@ -0,0 +1,7 @@ +source 'https://github.com/CocoaPods/Specs.git' +use_frameworks! +platform :ios, '11.0' + +target 'Demo' do + pod 'OpenSSL-Apple', :path => '.' +end diff --git a/Podfile.lock b/Podfile.lock new file mode 100644 index 0000000..d13441b --- /dev/null +++ b/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - OpenSSL-Apple (1.1.1g.6) + +DEPENDENCIES: + - OpenSSL-Apple (from `.`) + +EXTERNAL SOURCES: + OpenSSL-Apple: + :path: "." + +SPEC CHECKSUMS: + OpenSSL-Apple: c9c1b9c5b2b1fc4e1758fc5f0836b58ae7fd8183 + +PODFILE CHECKSUM: f64ec9f1e52d69d845a54464df43fe38c27d486f + +COCOAPODS: 1.9.1