diff --git a/GRDBCipher.podspec b/GRDBCipher.podspec index 717e4bc68..773a5af8b 100644 --- a/GRDBCipher.podspec +++ b/GRDBCipher.podspec @@ -16,9 +16,9 @@ Pod::Spec.new do |s| s.source_files = 'GRDB/**/*.swift', 'SQLCipher/*.h', 'Support/grdb_config.h' s.module_map = 'SQLCipher/module.modulemap' s.xcconfig = { - 'OTHER_SWIFT_FLAGS' => '$(inherited) -D SQLITE_HAS_CODEC -D GRDBCIPHER', - 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC -DGRDBCIPHER', - 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_HAS_CODEC=1 GRDBCIPHER=1' + 'OTHER_SWIFT_FLAGS' => '$(inherited) -D SQLITE_HAS_CODEC -D GRDBCIPHER -D SQLITE_ENABLE_FTS5', + 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC -DGRDBCIPHER -DSQLITE_ENABLE_FTS5', + 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_HAS_CODEC=1 GRDBCIPHER=1 SQLITE_ENABLE_FTS5=1' } s.framework = 'Foundation' s.dependency 'SQLCipher', '~> 3.4.1' diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.pbxproj b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.pbxproj new file mode 100644 index 000000000..41e1bdc85 --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.pbxproj @@ -0,0 +1,395 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 56269776211036C10066800A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56269775211036C10066800A /* AppDelegate.swift */; }; + 56269778211036C30066800A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56269777211036C30066800A /* Assets.xcassets */; }; + 5626977B211036C30066800A /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 56269779211036C30066800A /* MainMenu.xib */; }; + A32FEE3772DAB0501EE4369C /* Pods_GRDBCipherMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7FC038F3B5C9412A5DFDB72 /* Pods_GRDBCipherMacOS.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2AB57EA4305B77469C9A4267 /* Pods-GRDBCipherMacOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBCipherMacOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-GRDBCipherMacOS/Pods-GRDBCipherMacOS.release.xcconfig"; sourceTree = ""; }; + 56269772211036C10066800A /* GRDBCipherMacOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GRDBCipherMacOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 56269775211036C10066800A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 56269777211036C30066800A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 5626977A211036C30066800A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 5626977C211036C30066800A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 5626977D211036C30066800A /* GRDBCipherMacOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = GRDBCipherMacOS.entitlements; sourceTree = ""; }; + A3F8791E6F512575865AC37C /* Pods-GRDBCipherMacOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBCipherMacOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-GRDBCipherMacOS/Pods-GRDBCipherMacOS.debug.xcconfig"; sourceTree = ""; }; + E7FC038F3B5C9412A5DFDB72 /* Pods_GRDBCipherMacOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GRDBCipherMacOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 5626976F211036C10066800A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A32FEE3772DAB0501EE4369C /* Pods_GRDBCipherMacOS.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 37312FDE6F3590F7D4DA75E3 /* Pods */ = { + isa = PBXGroup; + children = ( + A3F8791E6F512575865AC37C /* Pods-GRDBCipherMacOS.debug.xcconfig */, + 2AB57EA4305B77469C9A4267 /* Pods-GRDBCipherMacOS.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 56269769211036C10066800A = { + isa = PBXGroup; + children = ( + 56269774211036C10066800A /* GRDBCipherMacOS */, + 56269773211036C10066800A /* Products */, + 37312FDE6F3590F7D4DA75E3 /* Pods */, + 86105FE752FB45E05465BA44 /* Frameworks */, + ); + sourceTree = ""; + }; + 56269773211036C10066800A /* Products */ = { + isa = PBXGroup; + children = ( + 56269772211036C10066800A /* GRDBCipherMacOS.app */, + ); + name = Products; + sourceTree = ""; + }; + 56269774211036C10066800A /* GRDBCipherMacOS */ = { + isa = PBXGroup; + children = ( + 56269775211036C10066800A /* AppDelegate.swift */, + 56269777211036C30066800A /* Assets.xcassets */, + 56269779211036C30066800A /* MainMenu.xib */, + 5626977C211036C30066800A /* Info.plist */, + 5626977D211036C30066800A /* GRDBCipherMacOS.entitlements */, + ); + path = GRDBCipherMacOS; + sourceTree = ""; + }; + 86105FE752FB45E05465BA44 /* Frameworks */ = { + isa = PBXGroup; + children = ( + E7FC038F3B5C9412A5DFDB72 /* Pods_GRDBCipherMacOS.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 56269771211036C10066800A /* GRDBCipherMacOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 56269780211036C30066800A /* Build configuration list for PBXNativeTarget "GRDBCipherMacOS" */; + buildPhases = ( + 7B68FB6434FA20203C21B0A7 /* [CP] Check Pods Manifest.lock */, + 5626976E211036C10066800A /* Sources */, + 5626976F211036C10066800A /* Frameworks */, + 56269770211036C10066800A /* Resources */, + D151C0BABC336CE195E1761D /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = GRDBCipherMacOS; + productName = GRDBCipherMacOS; + productReference = 56269772211036C10066800A /* GRDBCipherMacOS.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 5626976A211036C10066800A /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0940; + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = "Gwendal Roué"; + TargetAttributes = { + 56269771211036C10066800A = { + CreatedOnToolsVersion = 9.4.1; + }; + }; + }; + buildConfigurationList = 5626976D211036C10066800A /* Build configuration list for PBXProject "GRDBCipherMacOS" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 56269769211036C10066800A; + productRefGroup = 56269773211036C10066800A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 56269771211036C10066800A /* GRDBCipherMacOS */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 56269770211036C10066800A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 56269778211036C30066800A /* Assets.xcassets in Resources */, + 5626977B211036C30066800A /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 7B68FB6434FA20203C21B0A7 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-GRDBCipherMacOS-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; + }; + D151C0BABC336CE195E1761D /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-GRDBCipherMacOS/Pods-GRDBCipherMacOS-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/GRDBCipher/GRDBCipher.framework", + "${BUILT_PRODUCTS_DIR}/SQLCipher/SQLCipher.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GRDBCipher.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SQLCipher.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GRDBCipherMacOS/Pods-GRDBCipherMacOS-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 5626976E211036C10066800A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 56269776211036C10066800A /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 56269779211036C30066800A /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 5626977A211036C30066800A /* Base */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 5626977E211036C30066800A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "Mac Developer"; + 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; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 5626977F211036C30066800A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "Mac Developer"; + 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; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 56269781211036C30066800A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A3F8791E6F512575865AC37C /* Pods-GRDBCipherMacOS.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = GRDBCipherMacOS/GRDBCipherMacOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = AMD8W895CT; + INFOPLIST_FILE = GRDBCipherMacOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBCipherMacOS; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + }; + name = Debug; + }; + 56269782211036C30066800A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2AB57EA4305B77469C9A4267 /* Pods-GRDBCipherMacOS.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = GRDBCipherMacOS/GRDBCipherMacOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = AMD8W895CT; + INFOPLIST_FILE = GRDBCipherMacOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBCipherMacOS; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 5626976D211036C10066800A /* Build configuration list for PBXProject "GRDBCipherMacOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5626977E211036C30066800A /* Debug */, + 5626977F211036C30066800A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 56269780211036C30066800A /* Build configuration list for PBXNativeTarget "GRDBCipherMacOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 56269781211036C30066800A /* Debug */, + 56269782211036C30066800A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 5626976A211036C10066800A /* Project object */; +} diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..946b0d62f --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/AppDelegate.swift b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/AppDelegate.swift new file mode 100644 index 000000000..f8f8ff94c --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/AppDelegate.swift @@ -0,0 +1,18 @@ +import Cocoa +import GRDBCipher + +@NSApplicationMain +class AppDelegate: NSObject, NSApplicationDelegate { + @IBOutlet weak var window: NSWindow! + + func applicationDidFinishLaunching(_ aNotification: Notification) { + let dbQueue = DatabaseQueue() + + // Make sure FTS5 is enabled + try! dbQueue.write { db in + try db.create(virtualTable: "document", using: FTS5()) { t in + t.column("content") + } + } + } +} diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..2db2b1c7c --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,58 @@ +{ + "images" : [ + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Assets.xcassets/Contents.json b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Assets.xcassets/Contents.json new file mode 100644 index 000000000..da4a164c9 --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Base.lproj/MainMenu.xib b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Base.lproj/MainMenu.xib new file mode 100644 index 000000000..1d819d508 --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Base.lproj/MainMenu.xib @@ -0,0 +1,692 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/GRDBCipherMacOS.entitlements b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/GRDBCipherMacOS.entitlements new file mode 100644 index 000000000..f2ef3ae02 --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/GRDBCipherMacOS.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Info.plist b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Info.plist new file mode 100644 index 000000000..cfde06cd5 --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/GRDBCipherMacOS/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + Copyright © 2018 Gwendal Roué. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/Tests/CocoaPods/GRDBCipherMacOS/Podfile b/Tests/CocoaPods/GRDBCipherMacOS/Podfile new file mode 100644 index 000000000..e13cee895 --- /dev/null +++ b/Tests/CocoaPods/GRDBCipherMacOS/Podfile @@ -0,0 +1,4 @@ +target 'GRDBCipherMacOS' +platform :macos, '10.13' +use_frameworks! +pod 'GRDBCipher', :path => '../../..'