Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Fix // Enable daily note notification setting #121

Merged
merged 4 commits into from
Jul 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Features/Setting/Notification/NotificationSettingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,21 @@ private struct NotificationSettingDetailView: View {
Text("setting.notification.expedition.header")
}

Section {
Toggle("setting.notification.daily_training.toggle", isOn: allowDailyTrainingNotification)
if let bindingDate = Binding(dailyTrainingNotificationTime) {
DatePicker(
"setting.notification.daily_training.date_picker",
selection: bindingDate,
displayedComponents: .hourAndMinute
)
}
} header: {
Text("setting.notification.daily_training.header")
} footer: {
Text("setting.notification.daily_training.footer")
}

Section {
Toggle("setting.notification.simulated_universe.toggle", isOn: allowSimulatedUniverseNotification)
if let bindingDate = Binding(simulatedUniverseNotificationTime),
Expand Down
14 changes: 7 additions & 7 deletions HSRPizzaHelper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
BF58D23F2A579D5100CC0DC6 /* WatchAssets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = WatchAssets.xcassets; sourceTree = "<group>"; };
BF58D2422A579D5100CC0DC6 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
BF58D25F2A57A58E00CC0DC6 /* WatchHomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WatchHomeView.swift; sourceTree = "<group>"; };
BF58D2682A57ABCF00CC0DC6 /* HSRPizzaHelperWatch-Watch-App-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "HSRPizzaHelperWatch-Watch-App-Info.plist"; sourceTree = "<group>"; };
BF58D2682A57ABCF00CC0DC6 /* HSRPizzaHelperWatch-Watch-App-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HSRPizzaHelperWatch-Watch-App-Info.plist"; sourceTree = "<group>"; };
BF58D2692A57AD4300CC0DC6 /* WatchConnectivityManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WatchConnectivityManager.swift; sourceTree = "<group>"; };
BF58D26C2A57F19B00CC0DC6 /* HSRPizzaHelperWatch Watch App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "HSRPizzaHelperWatch Watch App.entitlements"; sourceTree = "<group>"; };
BFA4A84A2A0BD0AA00239BB0 /* ImageCroper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageCroper.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -500,6 +500,8 @@
BF58D23A2A579D5000CC0DC6 /* HSRPizzaHelper Watch App */ = {
isa = PBXGroup;
children = (
BF58D26C2A57F19B00CC0DC6 /* HSRPizzaHelperWatch Watch App.entitlements */,
BF58D2682A57ABCF00CC0DC6 /* HSRPizzaHelperWatch-Watch-App-Info.plist */,
BF58D23B2A579D5000CC0DC6 /* HSRPizzaHelperWatchApp.swift */,
BF58D23D2A579D5000CC0DC6 /* WatchContentView.swift */,
BF58D23F2A579D5100CC0DC6 /* WatchAssets.xcassets */,
Expand Down Expand Up @@ -850,8 +852,6 @@
EAE519732A01738600EF23B7 = {
isa = PBXGroup;
children = (
BF58D26C2A57F19B00CC0DC6 /* HSRPizzaHelperWatch Watch App.entitlements */,
BF58D2682A57ABCF00CC0DC6 /* HSRPizzaHelperWatch-Watch-App-Info.plist */,
BFCACD112A04922E009B0B85 /* README.md */,
BFCACD0F2A0491E9009B0B85 /* LICENSE */,
EAE519C82A0178AD00EF23B7 /* Common */,
Expand Down Expand Up @@ -1526,14 +1526,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "HSRPizzaHelperWatch Watch App.entitlements";
CODE_SIGN_ENTITLEMENTS = "HSRPizzaHelper Watch App/HSRPizzaHelperWatch Watch App.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 148;
DEVELOPMENT_ASSET_PATHS = "\"HSRPizzaHelper Watch App/Preview Content\"";
DEVELOPMENT_TEAM = 45Z6V4YD5U;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "HSRPizzaHelperWatch-Watch-App-Info.plist";
INFOPLIST_FILE = "HSRPizzaHelper Watch App/HSRPizzaHelperWatch-Watch-App-Info.plist";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = Canglong.HSRPizzaHelper;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -1557,14 +1557,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "HSRPizzaHelperWatch Watch App.entitlements";
CODE_SIGN_ENTITLEMENTS = "HSRPizzaHelper Watch App/HSRPizzaHelperWatch Watch App.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 148;
DEVELOPMENT_ASSET_PATHS = "\"HSRPizzaHelper Watch App/Preview Content\"";
DEVELOPMENT_TEAM = 45Z6V4YD5U;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "HSRPizzaHelperWatch-Watch-App-Info.plist";
INFOPLIST_FILE = "HSRPizzaHelper Watch App/HSRPizzaHelperWatch-Watch-App-Info.plist";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = Canglong.HSRPizzaHelper;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Scheme
LastUpgradeVersion = "1430"
wasCreatedForAppExtension = "YES"
version = "2.0">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand Down Expand Up @@ -49,24 +49,11 @@
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
askForAppToLaunch = "Yes"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<RemoteRunnable
runnableDebuggingMode = "2"
BundleIdentifier = "com.apple.springboard">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EA1673EE2A063AF300436487"
BuildableName = "HSRPizzaHelperWidgetExtension.appex"
BlueprintName = "HSRPizzaHelperWidgetExtension"
ReferencedContainer = "container:HSRPizzaHelper.xcodeproj">
</BuildableReference>
</RemoteRunnable>
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand Down Expand Up @@ -100,6 +87,7 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Scheme
LastUpgradeVersion = "1430"
wasCreatedForAppExtension = "YES"
version = "2.0">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand Down Expand Up @@ -49,24 +49,11 @@
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
askForAppToLaunch = "Yes"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<RemoteRunnable
runnableDebuggingMode = "2"
BundleIdentifier = "com.apple.springboard">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EA1673EE2A063AF300436487"
BuildableName = "HSRPizzaHelperWidgetExtension.appex"
BlueprintName = "HSRPizzaHelperWidgetExtension"
ReferencedContainer = "container:HSRPizzaHelper.xcodeproj">
</BuildableReference>
</RemoteRunnable>
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand Down Expand Up @@ -100,6 +87,7 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
1 change: 1 addition & 0 deletions Packages/HBMihoyoAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let package = Package(
name: "HBMihoyoAPI",
platforms: [
.iOS(.v15),
.watchOS(.v9),
],
products: [
.library(
Expand Down
1 change: 1 addition & 0 deletions Packages/HBPizzaHelperAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let package = Package(
name: "HBPizzaHelperAPI",
platforms: [
.iOS(.v15),
.watchOS(.v9),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
Expand Down