diff --git a/.travis.yml b/.travis.yml index c2933f724..65c652e9e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -143,7 +143,7 @@ jobs: install: - gem install cocoapods # Since Travis is not always on latest version env: - - TID=`CocoaPods GRDB (Xcode 9.4) + - TID=CocoaPods GRDB (Xcode 9.4) script: make test_install_GRDB_CocoaPods # CocoaPods Install (Xcode 9.4) @@ -152,7 +152,16 @@ jobs: install: - gem install cocoapods # Since Travis is not always on latest version env: - - TID=`CocoaPods GRDBCipher (Xcode 9.4) + - TID=CocoaPods GRDB+FTS5 (Xcode 9.4) + script: make test_install_GRDBFTS5_CocoaPods + + # CocoaPods Install (Xcode 9.4) + - stage: Test Installation + osx_image: xcode9.4 + install: + - gem install cocoapods # Since Travis is not always on latest version + env: + - TID=CocoaPods GRDBCipher (Xcode 9.4) script: make test_install_GRDBCipher_CocoaPods # SPM Install (Xcode 9.4) diff --git a/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..94b2795e2 --- /dev/null +++ b/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,4 @@ + + + diff --git a/Makefile b/Makefile index 7780e6bfb..2fa36eb4f 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ test_framework_darwin: test_framework_GRDB test_framework_GRDBCustom test_framew test_framework_GRDB: test_framework_GRDBOSX test_framework_GRDBWatchOS test_framework_GRDBiOS test_framework_GRDBCustom: test_framework_GRDBCustomSQLiteOSX test_framework_GRDBCustomSQLiteiOS test_framework_GRDBCipher: test_framework_GRDBCipherOSX test_framework_GRDBCipheriOS -test_install: test_install_manual test_install_GRDBCipher test_install_SPM test_install_GRDB_CocoaPods test_install_GRDBCipher_CocoaPods test_CocoaPodsLint +test_install: test_install_manual test_install_GRDBCipher test_install_SPM test_install_GRDB_CocoaPods test_install_GRDBFTS5_CocoaPods test_install_GRDBCipher_CocoaPods test_CocoaPodsLint test_framework_GRDBOSX: $(XCODEBUILD) \ @@ -232,6 +232,24 @@ else @exit 1 endif +test_install_GRDBFTS5_CocoaPods: +ifdef POD + cd Tests/CocoaPods/GRDBFTS5MacOS && \ + rm -rf GRDBFTS5MacOS.xcworkspace && \ + rm -rf Pods && \ + rm -rf Podfile.lock && \ + $(POD) install && \ + $(XCODEBUILD) \ + -workspace GRDBFTS5MacOS.xcworkspace \ + -scheme GRDBFTS5MacOS \ + -configuration Release \ + clean build \ + $(XCPRETTY) +else + @echo CocoaPods must be installed for test_install_GRDBFTS5_CocoaPods + @exit 1 +endif + test_install_GRDBCipher_CocoaPods: ifdef POD cd Tests/CocoaPods/GRDBCipherMacOS && \ diff --git a/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.pbxproj b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.pbxproj new file mode 100644 index 000000000..51cea4233 --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.pbxproj @@ -0,0 +1,393 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 562697B521107C130066800A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 562697B421107C130066800A /* AppDelegate.swift */; }; + 562697B721107C140066800A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 562697B621107C140066800A /* Assets.xcassets */; }; + 562697BA21107C140066800A /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 562697B821107C140066800A /* MainMenu.xib */; }; + CFA022B8C32840D0B6DEE0F0 /* Pods_GRDBFTS5MacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CD0FDB86C1C7C5D392EEDC0 /* Pods_GRDBFTS5MacOS.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 562697B121107C130066800A /* GRDBFTS5MacOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GRDBFTS5MacOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 562697B421107C130066800A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 562697B621107C140066800A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 562697B921107C140066800A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 562697BB21107C140066800A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 562697BC21107C140066800A /* GRDBFTS5MacOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = GRDBFTS5MacOS.entitlements; sourceTree = ""; }; + 6CD0FDB86C1C7C5D392EEDC0 /* Pods_GRDBFTS5MacOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GRDBFTS5MacOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 966036335047A35A92E51A77 /* Pods-GRDBFTS5MacOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBFTS5MacOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-GRDBFTS5MacOS/Pods-GRDBFTS5MacOS.release.xcconfig"; sourceTree = ""; }; + EC2C210DD2F8C1485D2B51F8 /* Pods-GRDBFTS5MacOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBFTS5MacOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-GRDBFTS5MacOS/Pods-GRDBFTS5MacOS.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 562697AE21107C130066800A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CFA022B8C32840D0B6DEE0F0 /* Pods_GRDBFTS5MacOS.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 562697A821107C130066800A = { + isa = PBXGroup; + children = ( + 562697B321107C130066800A /* GRDBFTS5MacOS */, + 562697B221107C130066800A /* Products */, + BC88EA1E9BA0651EB954E368 /* Pods */, + A3A77F69118F72CFF483B37C /* Frameworks */, + ); + sourceTree = ""; + }; + 562697B221107C130066800A /* Products */ = { + isa = PBXGroup; + children = ( + 562697B121107C130066800A /* GRDBFTS5MacOS.app */, + ); + name = Products; + sourceTree = ""; + }; + 562697B321107C130066800A /* GRDBFTS5MacOS */ = { + isa = PBXGroup; + children = ( + 562697B421107C130066800A /* AppDelegate.swift */, + 562697B621107C140066800A /* Assets.xcassets */, + 562697B821107C140066800A /* MainMenu.xib */, + 562697BB21107C140066800A /* Info.plist */, + 562697BC21107C140066800A /* GRDBFTS5MacOS.entitlements */, + ); + path = GRDBFTS5MacOS; + sourceTree = ""; + }; + A3A77F69118F72CFF483B37C /* Frameworks */ = { + isa = PBXGroup; + children = ( + 6CD0FDB86C1C7C5D392EEDC0 /* Pods_GRDBFTS5MacOS.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + BC88EA1E9BA0651EB954E368 /* Pods */ = { + isa = PBXGroup; + children = ( + EC2C210DD2F8C1485D2B51F8 /* Pods-GRDBFTS5MacOS.debug.xcconfig */, + 966036335047A35A92E51A77 /* Pods-GRDBFTS5MacOS.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 562697B021107C130066800A /* GRDBFTS5MacOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 562697BF21107C140066800A /* Build configuration list for PBXNativeTarget "GRDBFTS5MacOS" */; + buildPhases = ( + 686592AFA9220CAC4B74492A /* [CP] Check Pods Manifest.lock */, + 562697AD21107C130066800A /* Sources */, + 562697AE21107C130066800A /* Frameworks */, + 562697AF21107C130066800A /* Resources */, + D7E14FB39185BF47C54C6643 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = GRDBFTS5MacOS; + productName = GRDBFTS5MacOS; + productReference = 562697B121107C130066800A /* GRDBFTS5MacOS.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 562697A921107C130066800A /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0940; + LastUpgradeCheck = 0940; + ORGANIZATIONNAME = "Gwendal Roué"; + TargetAttributes = { + 562697B021107C130066800A = { + CreatedOnToolsVersion = 9.4.1; + }; + }; + }; + buildConfigurationList = 562697AC21107C130066800A /* Build configuration list for PBXProject "GRDBFTS5MacOS" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 562697A821107C130066800A; + productRefGroup = 562697B221107C130066800A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 562697B021107C130066800A /* GRDBFTS5MacOS */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 562697AF21107C130066800A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 562697B721107C140066800A /* Assets.xcassets in Resources */, + 562697BA21107C140066800A /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 686592AFA9220CAC4B74492A /* [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-GRDBFTS5MacOS-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; + }; + D7E14FB39185BF47C54C6643 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-GRDBFTS5MacOS/Pods-GRDBFTS5MacOS-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/GRDB.swift/GRDB.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GRDB.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GRDBFTS5MacOS/Pods-GRDBFTS5MacOS-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 562697AD21107C130066800A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 562697B521107C130066800A /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 562697B821107C140066800A /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 562697B921107C140066800A /* Base */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 562697BD21107C140066800A /* 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; + }; + 562697BE21107C140066800A /* 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; + }; + 562697C021107C140066800A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EC2C210DD2F8C1485D2B51F8 /* Pods-GRDBFTS5MacOS.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = GRDBFTS5MacOS/GRDBFTS5MacOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = AMD8W895CT; + INFOPLIST_FILE = GRDBFTS5MacOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBFTS5MacOS; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + }; + name = Debug; + }; + 562697C121107C140066800A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 966036335047A35A92E51A77 /* Pods-GRDBFTS5MacOS.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = GRDBFTS5MacOS/GRDBFTS5MacOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = AMD8W895CT; + INFOPLIST_FILE = GRDBFTS5MacOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBFTS5MacOS; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 562697AC21107C130066800A /* Build configuration list for PBXProject "GRDBFTS5MacOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 562697BD21107C140066800A /* Debug */, + 562697BE21107C140066800A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 562697BF21107C140066800A /* Build configuration list for PBXNativeTarget "GRDBFTS5MacOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 562697C021107C140066800A /* Debug */, + 562697C121107C140066800A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 562697A921107C130066800A /* Project object */; +} diff --git a/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..fd8686896 --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/AppDelegate.swift b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/AppDelegate.swift new file mode 100644 index 000000000..d010e0e4b --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/AppDelegate.swift @@ -0,0 +1,21 @@ +import Cocoa +import GRDB + +@NSApplicationMain +class AppDelegate: NSObject, NSApplicationDelegate { + @IBOutlet weak var window: NSWindow! + + func applicationDidFinishLaunching(_ aNotification: Notification) { + let dbQueue = DatabaseQueue() + try! dbQueue.write { db in + // Test access to FTS5 C API + _ = try db.makeTokenizer(.unicode61()) + + // Test creation of FTS5 table + try db.create(virtualTable: "document", using: FTS5()) { t in + t.column("content") + } + } + } +} + diff --git a/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..2db2b1c7c --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/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/GRDBFTS5MacOS/GRDBFTS5MacOS/Assets.xcassets/Contents.json b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/Assets.xcassets/Contents.json new file mode 100644 index 000000000..da4a164c9 --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/Base.lproj/MainMenu.xib b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/Base.lproj/MainMenu.xib new file mode 100644 index 000000000..623f91d00 --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/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/GRDBFTS5MacOS/GRDBFTS5MacOS/GRDBFTS5MacOS.entitlements b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/GRDBFTS5MacOS.entitlements new file mode 100644 index 000000000..f2ef3ae02 --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/GRDBFTS5MacOS.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/Info.plist b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/Info.plist new file mode 100644 index 000000000..cfde06cd5 --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/GRDBFTS5MacOS/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/GRDBFTS5MacOS/Podfile b/Tests/CocoaPods/GRDBFTS5MacOS/Podfile new file mode 100644 index 000000000..decf33b0c --- /dev/null +++ b/Tests/CocoaPods/GRDBFTS5MacOS/Podfile @@ -0,0 +1,5 @@ +use_frameworks! + +target 'GRDBFTS5MacOS' +platform :macos, '10.13' +pod 'GRDB.swift/FTS5', :path => '../../..'