diff --git a/Package.swift b/Package.swift index 6cc41609a..1e8855c59 100644 --- a/Package.swift +++ b/Package.swift @@ -21,7 +21,6 @@ let package = Package( "Carthage", "CocoaPods", "Crash", - "GRDBCipher", "Performance", "SPM" ]) diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/project.pbxproj b/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/project.pbxproj deleted file mode 100644 index 622f6f77e..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/project.pbxproj +++ /dev/null @@ -1,490 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 56288F841FD4256C0091310B /* GRDBCipher.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 56288F7D1FD424A40091310B /* GRDBCipher.framework */; }; - 56288F851FD4256C0091310B /* GRDBCipher.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 56288F7D1FD424A40091310B /* GRDBCipher.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 56B0372B1E8E31D0003B6DA4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56B0372A1E8E31D0003B6DA4 /* AppDelegate.swift */; }; - 56B0372D1E8E31D0003B6DA4 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56B0372C1E8E31D0003B6DA4 /* ViewController.swift */; }; - 56B037301E8E31D0003B6DA4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 56B0372E1E8E31D0003B6DA4 /* Main.storyboard */; }; - 56B037321E8E31D0003B6DA4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56B037311E8E31D0003B6DA4 /* Assets.xcassets */; }; - 56B037351E8E31D0003B6DA4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 56B037331E8E31D0003B6DA4 /* LaunchScreen.storyboard */; }; - 56B0373D1E8E3219003B6DA4 /* Database.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56B0373C1E8E3219003B6DA4 /* Database.swift */; }; - 56B0377F1E8E32B9003B6DA4 /* Person.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56B0377E1E8E32B9003B6DA4 /* Person.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 56288F761FD424A40091310B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 560FC54D1CB003810014AA8E; - remoteInfo = GRDBCipherOSX; - }; - 56288F781FD424A40091310B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 560FC5B01CB00B880014AA8E; - remoteInfo = GRDBCipherOSXTests; - }; - 56288F7A1FD424A40091310B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 5671566C1CB16729007DC145; - remoteInfo = GRDBCipherOSXEncryptedTests; - }; - 56288F7C1FD424A40091310B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 56AFCA231CB1A8BB00F48B96; - remoteInfo = GRDBCipheriOS; - }; - 56288F7E1FD424A40091310B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 56AFCA7F1CB1AA9900F48B96; - remoteInfo = GRDBCipheriOSTests; - }; - 56288F801FD424A40091310B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 56AFCAD71CB1ABC800F48B96; - remoteInfo = GRDBCipheriOSEncryptedTests; - }; - 56288F821FD424AD0091310B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 56AFC9EE1CB1A8BB00F48B96; - remoteInfo = GRDBCipheriOS; - }; - 56288F861FD4256C0091310B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 56AFC9EE1CB1A8BB00F48B96; - remoteInfo = GRDBCipheriOS; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 56B0377D1E8E328C003B6DA4 /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 56288F851FD4256C0091310B /* GRDBCipher.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 56B037271E8E31D0003B6DA4 /* GRDBiOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GRDBiOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 56B0372A1E8E31D0003B6DA4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 56B0372C1E8E31D0003B6DA4 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 56B0372F1E8E31D0003B6DA4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 56B037311E8E31D0003B6DA4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 56B037341E8E31D0003B6DA4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 56B037361E8E31D0003B6DA4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 56B0373C1E8E3219003B6DA4 /* Database.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Database.swift; sourceTree = ""; }; - 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GRDBCipher.xcodeproj; path = ../../../GRDBCipher.xcodeproj; sourceTree = ""; }; - 56B0377E1E8E32B9003B6DA4 /* Person.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Person.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 56B037241E8E31D0003B6DA4 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 56288F841FD4256C0091310B /* GRDBCipher.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 56288F6E1FD424A40091310B /* Products */ = { - isa = PBXGroup; - children = ( - 56288F771FD424A40091310B /* GRDBCipher.framework */, - 56288F791FD424A40091310B /* GRDBCipherOSXTests.xctest */, - 56288F7B1FD424A40091310B /* GRDBCipherOSXEncryptedTests.xctest */, - 56288F7D1FD424A40091310B /* GRDBCipher.framework */, - 56288F7F1FD424A40091310B /* GRDBCipheriOSTests.xctest */, - 56288F811FD424A40091310B /* GRDBCipheriOSEncryptedTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 56B0371E1E8E31D0003B6DA4 = { - isa = PBXGroup; - children = ( - 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */, - 56B037291E8E31D0003B6DA4 /* GRDBiOS */, - 56B037281E8E31D0003B6DA4 /* Products */, - ); - sourceTree = ""; - }; - 56B037281E8E31D0003B6DA4 /* Products */ = { - isa = PBXGroup; - children = ( - 56B037271E8E31D0003B6DA4 /* GRDBiOS.app */, - ); - name = Products; - sourceTree = ""; - }; - 56B037291E8E31D0003B6DA4 /* GRDBiOS */ = { - isa = PBXGroup; - children = ( - 56B0372A1E8E31D0003B6DA4 /* AppDelegate.swift */, - 56B0373C1E8E3219003B6DA4 /* Database.swift */, - 56B0377E1E8E32B9003B6DA4 /* Person.swift */, - 56B0372C1E8E31D0003B6DA4 /* ViewController.swift */, - 56B0372E1E8E31D0003B6DA4 /* Main.storyboard */, - 56B037311E8E31D0003B6DA4 /* Assets.xcassets */, - 56B037331E8E31D0003B6DA4 /* LaunchScreen.storyboard */, - 56B037361E8E31D0003B6DA4 /* Info.plist */, - ); - path = GRDBiOS; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 56B037261E8E31D0003B6DA4 /* GRDBiOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 56B037391E8E31D0003B6DA4 /* Build configuration list for PBXNativeTarget "GRDBiOS" */; - buildPhases = ( - 56B037231E8E31D0003B6DA4 /* Sources */, - 56B037241E8E31D0003B6DA4 /* Frameworks */, - 56B037251E8E31D0003B6DA4 /* Resources */, - 56B0377D1E8E328C003B6DA4 /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 56288F831FD424AD0091310B /* PBXTargetDependency */, - 56288F871FD4256C0091310B /* PBXTargetDependency */, - ); - name = GRDBiOS; - productName = GRDBiOS; - productReference = 56B037271E8E31D0003B6DA4 /* GRDBiOS.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 56B0371F1E8E31D0003B6DA4 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0830; - LastUpgradeCheck = 0910; - ORGANIZATIONNAME = "Gwendal Roué"; - TargetAttributes = { - 56B037261E8E31D0003B6DA4 = { - CreatedOnToolsVersion = 8.3; - DevelopmentTeam = AMD8W895CT; - ProvisioningStyle = Automatic; - }; - }; - }; - buildConfigurationList = 56B037221E8E31D0003B6DA4 /* Build configuration list for PBXProject "GRDBiOS" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 56B0371E1E8E31D0003B6DA4; - productRefGroup = 56B037281E8E31D0003B6DA4 /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 56288F6E1FD424A40091310B /* Products */; - ProjectRef = 56B0373E1E8E3250003B6DA4 /* GRDBCipher.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - 56B037261E8E31D0003B6DA4 /* GRDBiOS */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 56288F771FD424A40091310B /* GRDBCipher.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = GRDBCipher.framework; - remoteRef = 56288F761FD424A40091310B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 56288F791FD424A40091310B /* GRDBCipherOSXTests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = GRDBCipherOSXTests.xctest; - remoteRef = 56288F781FD424A40091310B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 56288F7B1FD424A40091310B /* GRDBCipherOSXEncryptedTests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = GRDBCipherOSXEncryptedTests.xctest; - remoteRef = 56288F7A1FD424A40091310B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 56288F7D1FD424A40091310B /* GRDBCipher.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = GRDBCipher.framework; - remoteRef = 56288F7C1FD424A40091310B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 56288F7F1FD424A40091310B /* GRDBCipheriOSTests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = GRDBCipheriOSTests.xctest; - remoteRef = 56288F7E1FD424A40091310B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 56288F811FD424A40091310B /* GRDBCipheriOSEncryptedTests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = GRDBCipheriOSEncryptedTests.xctest; - remoteRef = 56288F801FD424A40091310B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 56B037251E8E31D0003B6DA4 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 56B037351E8E31D0003B6DA4 /* LaunchScreen.storyboard in Resources */, - 56B037321E8E31D0003B6DA4 /* Assets.xcassets in Resources */, - 56B037301E8E31D0003B6DA4 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 56B037231E8E31D0003B6DA4 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 56B0373D1E8E3219003B6DA4 /* Database.swift in Sources */, - 56B0372D1E8E31D0003B6DA4 /* ViewController.swift in Sources */, - 56B0377F1E8E32B9003B6DA4 /* Person.swift in Sources */, - 56B0372B1E8E31D0003B6DA4 /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 56288F831FD424AD0091310B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = GRDBCipheriOS; - targetProxy = 56288F821FD424AD0091310B /* PBXContainerItemProxy */; - }; - 56288F871FD4256C0091310B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = GRDBCipheriOS; - targetProxy = 56288F861FD4256C0091310B /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 56B0372E1E8E31D0003B6DA4 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 56B0372F1E8E31D0003B6DA4 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 56B037331E8E31D0003B6DA4 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 56B037341E8E31D0003B6DA4 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 56B037371E8E31D0003B6DA4 /* 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++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_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_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[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - 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; - IPHONEOS_DEPLOYMENT_TARGET = 11.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 56B037381E8E31D0003B6DA4 /* 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++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_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_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[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - 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; - IPHONEOS_DEPLOYMENT_TARGET = 11.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 56B0373A1E8E31D0003B6DA4 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = AMD8W895CT; - INFOPLIST_FILE = GRDBiOS/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBiOS; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.0; - }; - name = Debug; - }; - 56B0373B1E8E31D0003B6DA4 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = AMD8W895CT; - INFOPLIST_FILE = GRDBiOS/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBiOS; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 56B037221E8E31D0003B6DA4 /* Build configuration list for PBXProject "GRDBiOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 56B037371E8E31D0003B6DA4 /* Debug */, - 56B037381E8E31D0003B6DA4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 56B037391E8E31D0003B6DA4 /* Build configuration list for PBXNativeTarget "GRDBiOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 56B0373A1E8E31D0003B6DA4 /* Debug */, - 56B0373B1E8E31D0003B6DA4 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 56B0371F1E8E31D0003B6DA4 /* Project object */; -} diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index e52b6660d..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/xcshareddata/xcschemes/GRDBiOS.xcscheme b/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/xcshareddata/xcschemes/GRDBiOS.xcscheme deleted file mode 100644 index 7a8a721af..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS.xcodeproj/xcshareddata/xcschemes/GRDBiOS.xcscheme +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/AppDelegate.swift b/Tests/GRDBCipher/GRDBiOS/GRDBiOS/AppDelegate.swift deleted file mode 100644 index 48602b7f3..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/AppDelegate.swift +++ /dev/null @@ -1,13 +0,0 @@ -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { - try! setupDatabase(application) - return true - } -} - diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 118c98f74..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Base.lproj/LaunchScreen.storyboard b/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 850202094..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Base.lproj/Main.storyboard b/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Base.lproj/Main.storyboard deleted file mode 100644 index 70db168fd..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Base.lproj/Main.storyboard +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Database.swift b/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Database.swift deleted file mode 100644 index d98d81521..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Database.swift +++ /dev/null @@ -1,55 +0,0 @@ -import GRDBCipher -import UIKit - -// The shared database queue -var dbQueue: DatabaseQueue! - -func setupDatabase(_ application: UIApplication) throws { - - // Connect to the database - // See https://github.com/groue/GRDB.swift/#database-connections - - var configuration = Configuration() - configuration.passphrase = "secret" - let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first! as NSString - let databasePath = documentsPath.appendingPathComponent("db.sqlite") - dbQueue = try DatabaseQueue(path: databasePath, configuration: configuration) - - - // Be a nice iOS citizen, and don't consume too much memory - // See https://github.com/groue/GRDB.swift/#memory-management - - dbQueue.setupMemoryManagement(in: application) - - - // Use DatabaseMigrator to setup the database - // See https://github.com/groue/GRDB.swift/#migrations - - var migrator = DatabaseMigrator() - - migrator.registerMigration("createPersons") { db in - - // Create a table - // See https://github.com/groue/GRDB.swift#create-tables - - try db.create(table: "persons") { t in - // An integer primary key auto-generates unique IDs - t.column("id", .integer).primaryKey() - - // Sort person names in a localized case insensitive fashion by default - // See https://github.com/groue/GRDB.swift/#unicode - t.column("name", .text).notNull().collate(.localizedCaseInsensitiveCompare) - - t.column("score", .integer).notNull() - } - } - - migrator.registerMigration("addPersons") { db in - // Populate the persons table with random data - for _ in 0..<8 { - try Person(name: Person.randomName(), score: Person.randomScore()).insert(db) - } - } - - try migrator.migrate(dbQueue) -} diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Info.plist b/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Info.plist deleted file mode 100644 index 38e98af23..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Info.plist +++ /dev/null @@ -1,38 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Person.swift b/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Person.swift deleted file mode 100644 index fb26a695e..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/Person.swift +++ /dev/null @@ -1,49 +0,0 @@ -import GRDBCipher - -class Person: Record { - var id: Int64? - var name: String - var score: Int - - init(name: String, score: Int) { - self.name = name - self.score = score - super.init() - } - - // MARK: Record overrides - - override class var databaseTableName: String { - return "persons" - } - - required init(row: Row) { - id = row["id"] - name = row["name"] - score = row["score"] - super.init(row: row) - } - - override func encode(to container: inout PersistenceContainer) { - container["id"] = id - container["name"] = name - container["score"] = score - } - - override func didInsert(with rowID: Int64, for column: String?) { - id = rowID - } - - // MARK: Random - - private static let names = ["Arthur", "Anita", "Barbara", "Bernard", "Craig", "Chiara", "David", "Dean", "Éric", "Elena", "Fatima", "Frederik", "Gilbert", "Georgette", "Henriette", "Hassan", "Ignacio", "Irene", "Julie", "Jack", "Karl", "Kristel", "Louis", "Liz", "Masashi", "Mary", "Noam", "Nicole", "Ophelie", "Oleg", "Pascal", "Patricia", "Quentin", "Quinn", "Raoul", "Rachel", "Stephan", "Susie", "Tristan", "Tatiana", "Ursule", "Urbain", "Victor", "Violette", "Wilfried", "Wilhelmina", "Yvon", "Yann", "Zazie", "Zoé"] - - class func randomName() -> String { - return names[Int(arc4random_uniform(UInt32(names.count)))] - } - - class func randomScore() -> Int { - return 10 * Int(arc4random_uniform(101)) - } - -} diff --git a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/ViewController.swift b/Tests/GRDBCipher/GRDBiOS/GRDBiOS/ViewController.swift deleted file mode 100644 index 29fd3aa36..000000000 --- a/Tests/GRDBCipher/GRDBiOS/GRDBiOS/ViewController.swift +++ /dev/null @@ -1,22 +0,0 @@ -import UIKit -import GRDBCipher - -class ViewController: UIViewController { - @IBOutlet weak var SQLiteVersionLabel: UILabel! - @IBOutlet weak var personCountLabel: UILabel! - - override func viewDidLoad() { - super.viewDidLoad() - - let sqliteVersion = String(cString: sqlite3_libversion(), encoding: .utf8)! - SQLiteVersionLabel.text = "SQLite version: \(sqliteVersion)" - - let personCount = try! dbQueue.inDatabase { try Person.fetchCount($0) } - personCountLabel.text = "Number of persons: \(personCount)" - } - - override func didReceiveMemoryWarning() { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } -}