diff --git a/GRDB.xcodeproj/project.pbxproj b/GRDB.xcodeproj/project.pbxproj index d85fd0dcc..2e62adbfe 100755 --- a/GRDB.xcodeproj/project.pbxproj +++ b/GRDB.xcodeproj/project.pbxproj @@ -285,6 +285,56 @@ 565049051CE32543000A97D8 /* FetchedRecordsControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 565049041CE32543000A97D8 /* FetchedRecordsControllerTests.swift */; }; 565049061CE32543000A97D8 /* FetchedRecordsControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 565049041CE32543000A97D8 /* FetchedRecordsControllerTests.swift */; }; 565049071CE32543000A97D8 /* FetchedRecordsControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 565049041CE32543000A97D8 /* FetchedRecordsControllerTests.swift */; }; + 565490B41D5A4820005622CB /* GRDB.h in Headers */ = {isa = PBXBuildFile; fileRef = DC3773F819C8CBB3004FCF85 /* GRDB.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 565490B51D5A4827005622CB /* GRDB-Bridging.h in Headers */ = {isa = PBXBuildFile; fileRef = DC2393C61ABE35F8003FF113 /* GRDB-Bridging.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 565490B61D5AE236005622CB /* Configuration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238701B9C75030082EB20 /* Configuration.swift */; }; + 565490B71D5AE236005622CB /* Database.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238711B9C75030082EB20 /* Database.swift */; }; + 565490B81D5AE236005622CB /* DatabaseError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238731B9C75030082EB20 /* DatabaseError.swift */; }; + 565490B91D5AE236005622CB /* DatabasePool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560A37A31C8F625000949E71 /* DatabasePool.swift */; }; + 565490BA1D5AE236005622CB /* DatabaseQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238741B9C75030082EB20 /* DatabaseQueue.swift */; }; + 565490BB1D5AE236005622CB /* DatabaseReader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 563363BF1C942C04000BE133 /* DatabaseReader.swift */; }; + 565490BC1D5AE236005622CB /* DatabaseSchemaCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5695311E1C907A8C00CF1A2B /* DatabaseSchemaCache.swift */; }; + 565490BD1D5AE236005622CB /* DatabaseStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 563363D71C95787F000BE133 /* DatabaseStore.swift */; }; + 565490BE1D5AE236005622CB /* DatabaseValue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238751B9C75030082EB20 /* DatabaseValue.swift */; }; + 565490BF1D5AE236005622CB /* DatabaseValueConvertible.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560D923E1C672C3E00F4F92B /* DatabaseValueConvertible.swift */; }; + 565490C01D5AE236005622CB /* DatabaseWriter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 563363C31C942C37000BE133 /* DatabaseWriter.swift */; }; + 565490C11D5AE236005622CB /* FetchRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5636E9BB1D22574100B9B05F /* FetchRequest.swift */; }; + 565490C21D5AE236005622CB /* Row.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238761B9C75030082EB20 /* Row.swift */; }; + 565490C31D5AE236005622CB /* RowAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 567404871CEF84C8003ED5CC /* RowAdapter.swift */; }; + 565490C41D5AE236005622CB /* SchedulingWatchdog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56BB6EA81D3009B100A1CA52 /* SchedulingWatchdog.swift */; }; + 565490C51D5AE236005622CB /* SerializedDatabase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560A37A61C8FF6E500949E71 /* SerializedDatabase.swift */; }; + 565490C61D5AE236005622CB /* Statement.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238781B9C75030082EB20 /* Statement.swift */; }; + 565490C71D5AE236005622CB /* StatementColumnConvertible.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560D923F1C672C3E00F4F92B /* StatementColumnConvertible.swift */; }; + 565490C81D5AE252005622CB /* CGFloat.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1491C672E4000235C62 /* CGFloat.swift */; }; + 565490C91D5AE252005622CB /* DatabaseCoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F14B1C672E4000235C62 /* DatabaseCoder.swift */; }; + 565490CA1D5AE252005622CB /* DatabaseDateComponents.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F14C1C672E4000235C62 /* DatabaseDateComponents.swift */; }; + 565490CB1D5AE252005622CB /* DatabaseValue+Foundation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F14D1C672E4000235C62 /* DatabaseValue+Foundation.swift */; }; + 565490CC1D5AE252005622CB /* NSData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F14E1C672E4000235C62 /* NSData.swift */; }; + 565490CD1D5AE252005622CB /* NSDate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F14F1C672E4000235C62 /* NSDate.swift */; }; + 565490CE1D5AE252005622CB /* NSNull.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1501C672E4000235C62 /* NSNull.swift */; }; + 565490CF1D5AE252005622CB /* NSNumber.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1511C672E4000235C62 /* NSNumber.swift */; }; + 565490D01D5AE252005622CB /* NSString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1521C672E4000235C62 /* NSString.swift */; }; + 565490D11D5AE252005622CB /* NSURL.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1531C672E4000235C62 /* NSURL.swift */; }; + 565490D21D5AE252005622CB /* NSUUID.swift in Sources */ = {isa = PBXBuildFile; fileRef = 563ABAF61D18824F003B37F3 /* NSUUID.swift */; }; + 565490D31D5AE252005622CB /* Row+Foundation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1541C672E4000235C62 /* Row+Foundation.swift */; }; + 565490D41D5AE252005622CB /* StatementArguments+Foundation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1551C672E4000235C62 /* StatementArguments+Foundation.swift */; }; + 565490D51D5AE252005622CB /* RawRepresentable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1571C672E4000235C62 /* RawRepresentable.swift */; }; + 565490D61D5AE252005622CB /* StandardLibrary.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1581C672E4000235C62 /* StandardLibrary.swift */; }; + 565490D71D5AE252005622CB /* Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 563445041C4A7FD7003D3DC6 /* Utils.swift */; }; + 565490D81D5AE252005622CB /* DatabaseMigrator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238921B9C750B0082EB20 /* DatabaseMigrator.swift */; }; + 565490D91D5AE252005622CB /* Migration.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56B7F4391BEB42D500E39BBF /* Migration.swift */; }; + 565490DA1D5AE252005622CB /* QueryInterfaceRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56300B6F1C53F592005A543B /* QueryInterfaceRequest.swift */; }; + 565490DB1D5AE252005622CB /* SQLCollation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F1891C6B1A8700235C62 /* SQLCollation.swift */; }; + 565490DC1D5AE252005622CB /* SQLFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F18A1C6B1A8700235C62 /* SQLFunction.swift */; }; + 565490DD1D5AE252005622CB /* SQLOperator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F18B1C6B1A8700235C62 /* SQLOperator.swift */; }; + 565490DE1D5AE252005622CB /* SQLSelectQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5605F18C1C6B1A8700235C62 /* SQLSelectQuery.swift */; }; + 565490DF1D5AE252005622CB /* SQLTableBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 566AD8B11D5318F4002EC1A8 /* SQLTableBuilder.swift */; }; + 565490E01D5AE252005622CB /* FetchedRecordsController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31A7787C1C6A4DD600F507F6 /* FetchedRecordsController.swift */; }; + 565490E11D5AE252005622CB /* Persistable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560D92441C672C4B00F4F92B /* Persistable.swift */; }; + 565490E21D5AE252005622CB /* Record.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A238A11B9C753B0082EB20 /* Record.swift */; }; + 565490E31D5AE252005622CB /* RowConvertible.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560D92451C672C4B00F4F92B /* RowConvertible.swift */; }; + 565490E41D5AE252005622CB /* TableMapping.swift in Sources */ = {isa = PBXBuildFile; fileRef = 560D92461C672C4B00F4F92B /* TableMapping.swift */; }; + 565490E61D5AE282005622CB /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 565490E51D5AE282005622CB /* libsqlite3.tbd */; }; 56553C101C3E906C00522B5C /* GRDBTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5623E0901B4AFACC00B20B7F /* GRDBTestCase.swift */; }; 56553C121C3E906C00522B5C /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 56BB86301BA98AB0001F9168 /* libsqlite3.tbd */; }; 56553C131C3E906C00522B5C /* GRDB.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC3773F319C8CBB3004FCF85 /* GRDB.framework */; }; @@ -1391,6 +1441,8 @@ 56494C211D422BAE00529CB4 /* SQLExpressionLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLExpressionLiteralTests.swift; sourceTree = ""; }; 564A50C61BFF4B7F00B3A3A2 /* CollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollationTests.swift; sourceTree = ""; }; 565049041CE32543000A97D8 /* FetchedRecordsControllerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FetchedRecordsControllerTests.swift; sourceTree = ""; }; + 565490A01D5A4798005622CB /* GRDB.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GRDB.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 565490E51D5AE282005622CB /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS2.2.sdk/usr/lib/libsqlite3.tbd; sourceTree = DEVELOPER_DIR; }; 56553C181C3E906C00522B5C /* GRDBOSXCrashTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GRDBOSXCrashTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 565B0FEE1BBC7D980098DE03 /* RowConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowConvertibleTests.swift; sourceTree = ""; }; 565D5D701BBC694D00DC9BD4 /* Row+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Row+FoundationTests.swift"; sourceTree = ""; }; @@ -1580,6 +1632,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5654909C1D5A4798005622CB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 565490E61D5AE282005622CB /* libsqlite3.tbd in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 56553C111C3E906C00522B5C /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -2260,6 +2320,7 @@ DC3773E919C8CBB3004FCF85 = { isa = PBXGroup; children = ( + 565490E51D5AE282005622CB /* libsqlite3.tbd */, 56DBEC341C19A0020093A2EE /* CHANGELOG.md */, DC37744719C8F50B004FCF85 /* README.md */, 56E1524B1B43FD5B00EE27AA /* TODO.md */, @@ -2293,6 +2354,7 @@ F3BA80411CFB2AD7003DC1BA /* GRDBCustomSQLiteiOSTests.xctest */, F3BA805A1CFB2BB2003DC1BA /* GRDBCustomSQLite.framework */, F3BA809B1CFB2F6F003DC1BA /* GRDBCustomSQLiteOSXTests.xctest */, + 565490A01D5A4798005622CB /* GRDB.framework */, ); name = Products; sourceTree = ""; @@ -2378,6 +2440,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5654909D1D5A4798005622CB /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 565490B41D5A4820005622CB /* GRDB.h in Headers */, + 565490B51D5A4827005622CB /* GRDB-Bridging.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 56AFCA1C1CB1A8BB00F48B96 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -2488,6 +2559,24 @@ productReference = 560FC5B01CB00B880014AA8E /* GRDBTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; + 5654909F1D5A4798005622CB /* GRDBWatchOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 565490B31D5A4798005622CB /* Build configuration list for PBXNativeTarget "GRDBWatchOS" */; + buildPhases = ( + 5654909B1D5A4798005622CB /* Sources */, + 5654909C1D5A4798005622CB /* Frameworks */, + 5654909D1D5A4798005622CB /* Headers */, + 5654909E1D5A4798005622CB /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = GRDBWatchOS; + productName = GRDBWatchOS; + productReference = 565490A01D5A4798005622CB /* GRDB.framework */; + productType = "com.apple.product-type.framework"; + }; 56553BDA1C3E906C00522B5C /* GRDBOSXCrashTests */ = { isa = PBXNativeTarget; buildConfigurationList = 56553C151C3E906C00522B5C /* Build configuration list for PBXNativeTarget "GRDBOSXCrashTests" */; @@ -2737,6 +2826,9 @@ LastUpgradeCheck = 0710; ORGANIZATIONNAME = "Gwendal Roué"; TargetAttributes = { + 5654909F1D5A4798005622CB = { + CreatedOnToolsVersion = 7.3.1; + }; 56E5D7C91B4D3FED00430942 = { CreatedOnToolsVersion = 7.0; }; @@ -2806,6 +2898,7 @@ 56AFCA841CB1ABC800F48B96 /* GRDBCipheriOSEncryptedTests */, F3BA7FFD1CFB25E4003DC1BA /* GRDBCustomSQLiteiOS */, F3BA80401CFB2AD7003DC1BA /* GRDBCustomSQLiteiOSTests */, + 5654909F1D5A4798005622CB /* GRDBWatchOS */, ); }; /* End PBXProject section */ @@ -2930,6 +3023,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5654909E1D5A4798005622CB /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 56553C141C3E906C00522B5C /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -3242,6 +3342,60 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5654909B1D5A4798005622CB /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 565490CE1D5AE252005622CB /* NSNull.swift in Sources */, + 565490E41D5AE252005622CB /* TableMapping.swift in Sources */, + 565490CF1D5AE252005622CB /* NSNumber.swift in Sources */, + 565490E21D5AE252005622CB /* Record.swift in Sources */, + 565490C11D5AE236005622CB /* FetchRequest.swift in Sources */, + 565490BD1D5AE236005622CB /* DatabaseStore.swift in Sources */, + 565490B91D5AE236005622CB /* DatabasePool.swift in Sources */, + 565490D81D5AE252005622CB /* DatabaseMigrator.swift in Sources */, + 565490C21D5AE236005622CB /* Row.swift in Sources */, + 565490C71D5AE236005622CB /* StatementColumnConvertible.swift in Sources */, + 565490D91D5AE252005622CB /* Migration.swift in Sources */, + 565490D51D5AE252005622CB /* RawRepresentable.swift in Sources */, + 565490C51D5AE236005622CB /* SerializedDatabase.swift in Sources */, + 565490D71D5AE252005622CB /* Utils.swift in Sources */, + 565490BF1D5AE236005622CB /* DatabaseValueConvertible.swift in Sources */, + 565490BB1D5AE236005622CB /* DatabaseReader.swift in Sources */, + 565490C91D5AE252005622CB /* DatabaseCoder.swift in Sources */, + 565490C31D5AE236005622CB /* RowAdapter.swift in Sources */, + 565490DD1D5AE252005622CB /* SQLOperator.swift in Sources */, + 565490DA1D5AE252005622CB /* QueryInterfaceRequest.swift in Sources */, + 565490CA1D5AE252005622CB /* DatabaseDateComponents.swift in Sources */, + 565490D01D5AE252005622CB /* NSString.swift in Sources */, + 565490D11D5AE252005622CB /* NSURL.swift in Sources */, + 565490E31D5AE252005622CB /* RowConvertible.swift in Sources */, + 565490DF1D5AE252005622CB /* SQLTableBuilder.swift in Sources */, + 565490B71D5AE236005622CB /* Database.swift in Sources */, + 565490C01D5AE236005622CB /* DatabaseWriter.swift in Sources */, + 565490C41D5AE236005622CB /* SchedulingWatchdog.swift in Sources */, + 565490CC1D5AE252005622CB /* NSData.swift in Sources */, + 565490DB1D5AE252005622CB /* SQLCollation.swift in Sources */, + 565490C61D5AE236005622CB /* Statement.swift in Sources */, + 565490D41D5AE252005622CB /* StatementArguments+Foundation.swift in Sources */, + 565490B61D5AE236005622CB /* Configuration.swift in Sources */, + 565490E11D5AE252005622CB /* Persistable.swift in Sources */, + 565490E01D5AE252005622CB /* FetchedRecordsController.swift in Sources */, + 565490C81D5AE252005622CB /* CGFloat.swift in Sources */, + 565490D21D5AE252005622CB /* NSUUID.swift in Sources */, + 565490DC1D5AE252005622CB /* SQLFunction.swift in Sources */, + 565490D31D5AE252005622CB /* Row+Foundation.swift in Sources */, + 565490DE1D5AE252005622CB /* SQLSelectQuery.swift in Sources */, + 565490CB1D5AE252005622CB /* DatabaseValue+Foundation.swift in Sources */, + 565490D61D5AE252005622CB /* StandardLibrary.swift in Sources */, + 565490B81D5AE236005622CB /* DatabaseError.swift in Sources */, + 565490BC1D5AE236005622CB /* DatabaseSchemaCache.swift in Sources */, + 565490BA1D5AE236005622CB /* DatabaseQueue.swift in Sources */, + 565490CD1D5AE252005622CB /* NSDate.swift in Sources */, + 565490BE1D5AE236005622CB /* DatabaseValue.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 56553BDD1C3E906C00522B5C /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -4416,6 +4570,49 @@ }; name = Release; }; + 565490A51D5A4798005622CB /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 56B8F49A1B4E2F3600C24296 /* GRDB.xcconfig */; + buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; + CLANG_ANALYZER_NONNULL = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_NO_COMMON_BLOCKS = YES; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 2.2; + }; + name = Debug; + }; + 565490A61D5A4798005622CB /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 56B8F49A1B4E2F3600C24296 /* GRDB.xcconfig */; + buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; + CLANG_ANALYZER_NONNULL = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_NO_COMMON_BLOCKS = YES; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = 4; + WATCHOS_DEPLOYMENT_TARGET = 2.2; + }; + name = Release; + }; 56553C161C3E906C00522B5C /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -4994,6 +5191,14 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 565490B31D5A4798005622CB /* Build configuration list for PBXNativeTarget "GRDBWatchOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 565490A51D5A4798005622CB /* Debug */, + 565490A61D5A4798005622CB /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; 56553C151C3E906C00522B5C /* Build configuration list for PBXNativeTarget "GRDBOSXCrashTests" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/GRDB.xcodeproj/xcshareddata/xcschemes/GRDBWatchOS.xcscheme b/GRDB.xcodeproj/xcshareddata/xcschemes/GRDBWatchOS.xcscheme new file mode 100644 index 000000000..72ee9f5dd --- /dev/null +++ b/GRDB.xcodeproj/xcshareddata/xcschemes/GRDBWatchOS.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GRDB/Core/Configuration.swift b/GRDB/Core/Configuration.swift index a0958a945..5008a1ec1 100644 --- a/GRDB/Core/Configuration.swift +++ b/GRDB/Core/Configuration.swift @@ -9,6 +9,12 @@ import Foundation #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index e5aeaa564..6ea9a91c0 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -9,6 +9,12 @@ import Foundation #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/DatabaseError.swift b/GRDB/Core/DatabaseError.swift index dc066ee64..b2605ba77 100644 --- a/GRDB/Core/DatabaseError.swift +++ b/GRDB/Core/DatabaseError.swift @@ -7,6 +7,12 @@ #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/DatabasePool.swift b/GRDB/Core/DatabasePool.swift index 654315735..a425e2205 100644 --- a/GRDB/Core/DatabasePool.swift +++ b/GRDB/Core/DatabasePool.swift @@ -9,6 +9,12 @@ import Foundation #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/DatabaseReader.swift b/GRDB/Core/DatabaseReader.swift index 61e0c3d14..00896538f 100644 --- a/GRDB/Core/DatabaseReader.swift +++ b/GRDB/Core/DatabaseReader.swift @@ -7,6 +7,12 @@ #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/DatabaseValue.swift b/GRDB/Core/DatabaseValue.swift index 1bac1aca1..a3c2f6a34 100644 --- a/GRDB/Core/DatabaseValue.swift +++ b/GRDB/Core/DatabaseValue.swift @@ -9,6 +9,12 @@ import Foundation #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/Row.swift b/GRDB/Core/Row.swift index 2c2820c57..5c7857ccc 100644 --- a/GRDB/Core/Row.swift +++ b/GRDB/Core/Row.swift @@ -9,6 +9,12 @@ import Foundation #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/RowAdapter.swift b/GRDB/Core/RowAdapter.swift index d793a1ae7..26c347d61 100644 --- a/GRDB/Core/RowAdapter.swift +++ b/GRDB/Core/RowAdapter.swift @@ -7,6 +7,12 @@ #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/Statement.swift b/GRDB/Core/Statement.swift index 26984e492..62ad27c64 100644 --- a/GRDB/Core/Statement.swift +++ b/GRDB/Core/Statement.swift @@ -9,6 +9,12 @@ import Foundation #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/StatementColumnConvertible.swift b/GRDB/Core/StatementColumnConvertible.swift index 04383bc02..ffc0d163b 100644 --- a/GRDB/Core/StatementColumnConvertible.swift +++ b/GRDB/Core/StatementColumnConvertible.swift @@ -7,6 +7,12 @@ #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/Support/StandardLibrary/StandardLibrary.swift b/GRDB/Core/Support/StandardLibrary/StandardLibrary.swift index da31cb58a..9def357aa 100644 --- a/GRDB/Core/Support/StandardLibrary/StandardLibrary.swift +++ b/GRDB/Core/Support/StandardLibrary/StandardLibrary.swift @@ -7,6 +7,12 @@ #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Core/Utils.swift b/GRDB/Core/Utils.swift index 6448d30b4..178746e8a 100644 --- a/GRDB/Core/Utils.swift +++ b/GRDB/Core/Utils.swift @@ -9,6 +9,12 @@ import Foundation #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Migrations/Migration.swift b/GRDB/Migrations/Migration.swift index 980d726fd..cef751d16 100644 --- a/GRDB/Migrations/Migration.swift +++ b/GRDB/Migrations/Migration.swift @@ -7,6 +7,12 @@ #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/QueryInterface/SQLSelectQuery.swift b/GRDB/QueryInterface/SQLSelectQuery.swift index c655dc59b..c062fb4b7 100644 --- a/GRDB/QueryInterface/SQLSelectQuery.swift +++ b/GRDB/QueryInterface/SQLSelectQuery.swift @@ -7,6 +7,12 @@ #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/GRDB/Record/TableMapping.swift b/GRDB/Record/TableMapping.swift index b81459464..34cc58339 100644 --- a/GRDB/Record/TableMapping.swift +++ b/GRDB/Record/TableMapping.swift @@ -7,6 +7,12 @@ #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/Support/module.modulemap b/Support/module.modulemap index 57256af46..d15a4c976 100644 --- a/Support/module.modulemap +++ b/Support/module.modulemap @@ -19,3 +19,13 @@ module SQLiteiPhoneSimulator { header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h" export * } + +module SQLiteWatchOS { + header "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/usr/includesqlite3.h" + export * +} + +module SQLiteWatchSimulator { + header "/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/sqlite3.h" + export * +} diff --git a/Tests/Private/NSDataMemoryTests.swift b/Tests/Private/NSDataMemoryTests.swift index fa0a44f88..209b05e1a 100644 --- a/Tests/Private/NSDataMemoryTests.swift +++ b/Tests/Private/NSDataMemoryTests.swift @@ -9,6 +9,12 @@ import XCTest #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif diff --git a/Tests/Public/Core/StatementColumnConvertible/StatementColumnConvertibleFetchTests.swift b/Tests/Public/Core/StatementColumnConvertible/StatementColumnConvertibleFetchTests.swift index a32f5f2c4..96664cc1e 100644 --- a/Tests/Public/Core/StatementColumnConvertible/StatementColumnConvertibleFetchTests.swift +++ b/Tests/Public/Core/StatementColumnConvertible/StatementColumnConvertibleFetchTests.swift @@ -16,6 +16,12 @@ import XCTest #else import SQLiteiPhoneOS #endif + #elseif os(watchOS) + #if (arch(i386) || arch(x86_64)) + import SQLiteWatchSimulator + #else + import SQLiteWatchOS + #endif #endif #endif