Skip to content

Commit

Permalink
Merge pull request #1 from wflixu/dev
Browse files Browse the repository at this point in the history
v1.0
  • Loading branch information
wflixu authored Aug 7, 2024
2 parents 6724502 + ff23dcd commit 6a88b26
Show file tree
Hide file tree
Showing 27 changed files with 569 additions and 106 deletions.
Binary file added .DS_Store
Binary file not shown.
70 changes: 58 additions & 12 deletions AIME.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,30 @@

/* Begin PBXBuildFile section */
5CA254EC2C46580200AB9301 /* AIMEApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CA254EB2C46580200AB9301 /* AIMEApp.swift */; };
5CA254EE2C46580200AB9301 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CA254ED2C46580200AB9301 /* ContentView.swift */; };
5CA254F02C46580200AB9301 /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CA254EF2C46580200AB9301 /* Item.swift */; };
5CA254F22C46580300AB9301 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5CA254F12C46580300AB9301 /* Assets.xcassets */; };
5CA254F52C46580300AB9301 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5CA254F42C46580300AB9301 /* Preview Assets.xcassets */; };
5CA254FD2C465B0F00AB9301 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CA254FC2C465B0F00AB9301 /* AppDelegate.swift */; };
5CA255002C467B7300AB9301 /* AppLog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CA254FF2C467B7300AB9301 /* AppLog.swift */; };
5CA255022C46864200AB9301 /* DemoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CA255012C46864200AB9301 /* DemoView.swift */; };
5CA255042C46BAB300AB9301 /* Record.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CA255032C46BAB300AB9301 /* Record.swift */; };
5CA255062C46BCA800AB9301 /* RecordStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CA255052C46BCA800AB9301 /* RecordStore.swift */; };
5CD0B9FC2C4FDB3700B1AF02 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CD0B9FB2C4FDB3700B1AF02 /* SettingsView.swift */; };
5CD0B9FE2C4FDD1E00B1AF02 /* StatusMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CD0B9FD2C4FDD1E00B1AF02 /* StatusMenuView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
5CA254E82C46580200AB9301 /* AIME.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AIME.app; sourceTree = BUILT_PRODUCTS_DIR; };
5CA254EB2C46580200AB9301 /* AIMEApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AIMEApp.swift; sourceTree = "<group>"; };
5CA254ED2C46580200AB9301 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
5CA254EF2C46580200AB9301 /* Item.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Item.swift; sourceTree = "<group>"; };
5CA254F12C46580300AB9301 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5CA254F42C46580300AB9301 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
5CA254F62C46580300AB9301 /* AIME.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = AIME.entitlements; sourceTree = "<group>"; };
5CA254FC2C465B0F00AB9301 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5CA254FF2C467B7300AB9301 /* AppLog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppLog.swift; sourceTree = "<group>"; };
5CA255012C46864200AB9301 /* DemoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoView.swift; sourceTree = "<group>"; };
5CA255032C46BAB300AB9301 /* Record.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Record.swift; sourceTree = "<group>"; };
5CA255052C46BCA800AB9301 /* RecordStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecordStore.swift; sourceTree = "<group>"; };
5CD0B9FB2C4FDB3700B1AF02 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
5CD0B9FD2C4FDD1E00B1AF02 /* StatusMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusMenuView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -54,9 +64,12 @@
5CA254EA2C46580200AB9301 /* AIME */ = {
isa = PBXGroup;
children = (
5CA254FE2C467B5400AB9301 /* shared */,
5CA254EB2C46580200AB9301 /* AIMEApp.swift */,
5CA254ED2C46580200AB9301 /* ContentView.swift */,
5CA254EF2C46580200AB9301 /* Item.swift */,
5CA254FC2C465B0F00AB9301 /* AppDelegate.swift */,
5CD0B9FB2C4FDB3700B1AF02 /* SettingsView.swift */,
5CD0B9FD2C4FDD1E00B1AF02 /* StatusMenuView.swift */,
5CA255012C46864200AB9301 /* DemoView.swift */,
5CA254F12C46580300AB9301 /* Assets.xcassets */,
5CA254F62C46580300AB9301 /* AIME.entitlements */,
5CA254F32C46580300AB9301 /* Preview Content */,
Expand All @@ -72,6 +85,16 @@
path = "Preview Content";
sourceTree = "<group>";
};
5CA254FE2C467B5400AB9301 /* shared */ = {
isa = PBXGroup;
children = (
5CA254FF2C467B7300AB9301 /* AppLog.swift */,
5CA255032C46BAB300AB9301 /* Record.swift */,
5CA255052C46BCA800AB9301 /* RecordStore.swift */,
);
path = shared;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -142,8 +165,13 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5CA254EE2C46580200AB9301 /* ContentView.swift in Sources */,
5CA254F02C46580200AB9301 /* Item.swift in Sources */,
5CA255062C46BCA800AB9301 /* RecordStore.swift in Sources */,
5CD0B9FE2C4FDD1E00B1AF02 /* StatusMenuView.swift in Sources */,
5CA254FD2C465B0F00AB9301 /* AppDelegate.swift in Sources */,
5CD0B9FC2C4FDB3700B1AF02 /* SettingsView.swift in Sources */,
5CA255022C46864200AB9301 /* DemoView.swift in Sources */,
5CA255002C467B7300AB9301 /* AppLog.swift in Sources */,
5CA255042C46BAB300AB9301 /* Record.swift in Sources */,
5CA254EC2C46580200AB9301 /* AIMEApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -185,6 +213,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -204,7 +233,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 14.5;
MACOSX_DEPLOYMENT_TARGET = 14.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -248,6 +277,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -260,10 +290,12 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_KEY_LSUIElement = NO;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MACOSX_DEPLOYMENT_TARGET = 14.5;
MACOSX_DEPLOYMENT_TARGET = 14.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
};
Expand All @@ -274,15 +306,22 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CODE_SIGN_ENTITLEMENTS = AIME/AIME.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 5;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"AIME/Preview Content\"";
DEVELOPMENT_TEAM = 4L3563XCBN;
ENABLE_APP_SANDBOX = NO;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = AIME;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -302,15 +341,22 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CODE_SIGN_ENTITLEMENTS = AIME/AIME.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 5;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"AIME/Preview Content\"";
DEVELOPMENT_TEAM = 4L3563XCBN;
ENABLE_APP_SANDBOX = NO;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = AIME;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
INFOPLIST_KEY_LSUIElement = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
87 changes: 87 additions & 0 deletions AIME.xcodeproj/xcshareddata/xcschemes/AIME.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1540"
version = "2.2">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5CA254E72C46580200AB9301"
BuildableName = "AIME.app"
BlueprintName = "AIME"
ReferencedContainer = "container:AIME.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<AutocreatedTestPlanReference>
</AutocreatedTestPlanReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5CA254E72C46580200AB9301"
BuildableName = "AIME.app"
BlueprintName = "AIME"
ReferencedContainer = "container:AIME.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Debug"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5CA254E72C46580200AB9301"
BuildableName = "AIME.app"
BlueprintName = "AIME"
ReferencedContainer = "container:AIME.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
87 changes: 87 additions & 0 deletions AIME.xcodeproj/xcshareddata/xcschemes/release-AIME.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1540"
version = "2.2">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5CA254E72C46580200AB9301"
BuildableName = "AIME.app"
BlueprintName = "AIME"
ReferencedContainer = "container:AIME.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "YES"
buildForAnalyzing = "NO">
<AutocreatedTestPlanReference>
</AutocreatedTestPlanReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5CA254E72C46580200AB9301"
BuildableName = "AIME.app"
BlueprintName = "AIME"
ReferencedContainer = "container:AIME.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5CA254E72C46580200AB9301"
BuildableName = "AIME.app"
BlueprintName = "AIME"
ReferencedContainer = "container:AIME.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Release">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
29 changes: 12 additions & 17 deletions AIME/AIMEApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,23 @@
// Created by lixu on 2024/7/16.
//


import SwiftUI
import SwiftData

@main
struct AIMEApp: App {
var sharedModelContainer: ModelContainer = {
let schema = Schema([
Item.self,
])
let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false)

do {
return try ModelContainer(for: schema, configurations: [modelConfiguration])
} catch {
fatalError("Could not create ModelContainer: \(error)")
}
}()


@NSApplicationDelegateAdaptor private var appDelegate: AppDelegate

var body: some Scene {
WindowGroup {
ContentView()
Settings {
SettingsView()
}
MenuBarExtra("AIME", systemImage: "keyboard") {
StatusMenuView()
}
.modelContainer(sharedModelContainer)
}
}



Loading

0 comments on commit 6a88b26

Please sign in to comment.