Add SQLite to save tasks

This commit is contained in:
2023-07-19 13:01:33 +02:00
parent 0ff3803059
commit 3cdad5a4d7
10 changed files with 319 additions and 20 deletions

View File

@ -17,6 +17,9 @@
682D06C22A5487D600EA4745 /* LutoUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 682D06C12A5487D600EA4745 /* LutoUITests.swift */; };
682D06C42A5487D600EA4745 /* LutoUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 682D06C32A5487D600EA4745 /* LutoUITestsLaunchTests.swift */; };
6838051A2A57356700CEF29C /* TextFieldExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 683805192A57356700CEF29C /* TextFieldExtensions.swift */; };
684640A72A65569D00D5A369 /* TaskDataStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 684640A62A65569D00D5A369 /* TaskDataStore.swift */; };
684640AA2A6566B300D5A369 /* SQLite in Frameworks */ = {isa = PBXBuildFile; productRef = 684640A92A6566B300D5A369 /* SQLite */; };
68A773762A66F9A1000887A3 /* TaskViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68A773752A66F9A1000887A3 /* TaskViewModel.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -51,6 +54,8 @@
682D06C12A5487D600EA4745 /* LutoUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LutoUITests.swift; sourceTree = "<group>"; };
682D06C32A5487D600EA4745 /* LutoUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LutoUITestsLaunchTests.swift; sourceTree = "<group>"; };
683805192A57356700CEF29C /* TextFieldExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextFieldExtensions.swift; sourceTree = "<group>"; };
684640A62A65569D00D5A369 /* TaskDataStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TaskDataStore.swift; sourceTree = "<group>"; };
68A773752A66F9A1000887A3 /* TaskViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TaskViewModel.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -58,6 +63,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
684640AA2A6566B300D5A369 /* SQLite in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -118,6 +124,8 @@
682D06A42A5487D200EA4745 /* Luto */ = {
isa = PBXGroup;
children = (
68A773742A66F984000887A3 /* ViewModels */,
684640A52A65568A00D5A369 /* Store */,
680A62162A600F75004C21A4 /* Models */,
683805182A57354900CEF29C /* UI */,
682D06A52A5487D200EA4745 /* LutoApp.swift */,
@ -162,6 +170,22 @@
path = UI;
sourceTree = "<group>";
};
684640A52A65568A00D5A369 /* Store */ = {
isa = PBXGroup;
children = (
684640A62A65569D00D5A369 /* TaskDataStore.swift */,
);
path = Store;
sourceTree = "<group>";
};
68A773742A66F984000887A3 /* ViewModels */ = {
isa = PBXGroup;
children = (
68A773752A66F9A1000887A3 /* TaskViewModel.swift */,
);
path = ViewModels;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@ -178,6 +202,9 @@
dependencies = (
);
name = Luto;
packageProductDependencies = (
684640A92A6566B300D5A369 /* SQLite */,
);
productName = Luto;
productReference = 682D06A22A5487D200EA4745 /* Luto.app */;
productType = "com.apple.product-type.application";
@ -250,6 +277,9 @@
Base,
);
mainGroup = 682D06992A5487D200EA4745;
packageReferences = (
684640A82A6566B300D5A369 /* XCRemoteSwiftPackageReference "SQLite.swift" */,
);
productRefGroup = 682D06A32A5487D200EA4745 /* Products */;
projectDirPath = "";
projectRoot = "";
@ -292,6 +322,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
684640A72A65569D00D5A369 /* TaskDataStore.swift in Sources */,
68A773762A66F9A1000887A3 /* TaskViewModel.swift in Sources */,
682D06A82A5487D200EA4745 /* MainView.swift in Sources */,
6838051A2A57356700CEF29C /* TextFieldExtensions.swift in Sources */,
680A62182A600F81004C21A4 /* Task.swift in Sources */,
@ -383,7 +415,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 13.3;
MACOSX_DEPLOYMENT_TARGET = 13.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
@ -437,7 +469,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 13.3;
MACOSX_DEPLOYMENT_TARGET = 13.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
@ -460,6 +492,7 @@
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -487,6 +520,7 @@
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
@ -612,6 +646,25 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */
684640A82A6566B300D5A369 /* XCRemoteSwiftPackageReference "SQLite.swift" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/stephencelis/SQLite.swift.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 0.14.1;
};
};
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
684640A92A6566B300D5A369 /* SQLite */ = {
isa = XCSwiftPackageProductDependency;
package = 684640A82A6566B300D5A369 /* XCRemoteSwiftPackageReference "SQLite.swift" */;
productName = SQLite;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 682D069A2A5487D200EA4745 /* Project object */;
}

View File

@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "sqlite.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stephencelis/SQLite.swift.git",
"state" : {
"revision" : "7a2e3cd27de56f6d396e84f63beefd0267b55ccb",
"version" : "0.14.1"
}
}
],
"version" : 2
}

View File

@ -9,6 +9,27 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>SQLite (Playground) 1.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>2</integer>
</dict>
<key>SQLite (Playground) 2.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>3</integer>
</dict>
<key>SQLite (Playground).xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>