From eeb97e9c41b6939b29fd42402aa5c4d3f97663e9 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Fri, 05 Jun 2026 01:42:07 +0800
Subject: [PATCH] Add 7.8.14 App Store candidate package

---
 Apptag/AppDefaults.swift |   30 ++++++++++++++++++++++++++----
 1 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/Apptag/AppDefaults.swift b/Apptag/AppDefaults.swift
index 973798e..0484a60 100644
--- a/Apptag/AppDefaults.swift
+++ b/Apptag/AppDefaults.swift
@@ -2,16 +2,17 @@
 
 enum AppDefaults {
     static let schemaVersionKey = "initialDefaultsSchemaVersion"
-    static let currentSchemaVersion = 1
+    static let currentSchemaVersion = 3
 
     static let tagFontSize: Double = 22
-    static let iconSize: Double = 80
+    static let iconSize: Double = 64
     static let tagPosition = "right"
     static let displayMode = "coloredGridContainer"
     static let hideAppNames = true
     static let showDockIcon = true
     static let launchAtLogin = true
     static let showUncommonAppBubbles = false
+    static let useAppKitTagNavigation = true
 
     static func register() {
         UserDefaults.standard.register(defaults: [
@@ -22,12 +23,33 @@
             "hideAppNames": hideAppNames,
             "showDockIcon": showDockIcon,
             "launchAtLogin": launchAtLogin,
-            "showUncommonAppBubbles": showUncommonAppBubbles
+            "showUncommonAppBubbles": showUncommonAppBubbles,
+            "useAppKitTagNavigation": useAppKitTagNavigation,
+            "skipTagRemovalDropConfirm": false,
+            "skipUncategorizedDropConfirm": false,
+            LauncherHotkeyRegistrationStore.mainStateKey: LauncherHotkeyRegistrationState.active.rawValue,
+            LauncherHotkeyRegistrationStore.quickSearchStateKey: LauncherHotkeyRegistrationState.active.rawValue
         ])
+        removeShortcutCustomizationDefaults()
     }
 
     static func hasStoredValue(for key: String) -> Bool {
-        let domain = Bundle.main.bundleIdentifier ?? "com.apptag.launcher"
+        let domain = Bundle.main.bundleIdentifier ?? AppIdentity.bundleIdentifier
         return UserDefaults.standard.persistentDomain(forName: domain)?[key] != nil
     }
+
+    private static func removeShortcutCustomizationDefaults() {
+        let defaults = UserDefaults.standard
+        [
+            "mainHotkey",
+            "quickSearchHotkey",
+            "mainHotkeyPending",
+            "quickSearchHotkeyPending",
+            "mainHotkeyStatus",
+            "quickSearchHotkeyStatus",
+            "mainHotkeyConflictMessage",
+            "quickSearchHotkeyConflictMessage"
+        ].forEach { defaults.removeObject(forKey: $0) }
+        defaults.set(currentSchemaVersion, forKey: schemaVersionKey)
+    }
 }

--
Gitblit v1.9.3