Skip to content
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
10 changes: 6 additions & 4 deletions Uplift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,11 @@
897703652BA2028D00F9992F /* ClassesViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClassesViewModel.swift; sourceTree = "<group>"; };
89950D892B992E8400DFB007 /* ClassesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClassesView.swift; sourceTree = "<group>"; };
8996FEDF2BDF351800F13C67 /* NextSessionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NextSessionCell.swift; sourceTree = "<group>"; };
899A597E2EA0BD02000CBC36 /* Uplift-Release.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Uplift-Release.entitlements"; sourceTree = "<group>"; };
899B186C2CA5FAFB00FAC061 /* ProfileView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProfileView.swift; sourceTree = "<group>"; };
89A652F62D02B00000277A16 /* CapacityRemindersView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapacityRemindersView.swift; sourceTree = "<group>"; };
89A652F72D02B00000277A16 /* RemindersView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemindersView.swift; sourceTree = "<group>"; };
89C10D222CCB459F007E753F /* Uplift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Uplift.entitlements; sourceTree = "<group>"; };
89C10D222CCB459F007E753F /* Uplift-Debug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Uplift-Debug.entitlements"; sourceTree = "<group>"; };
89C34AA02CA66E9000C579A5 /* CapacityRemindersViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapacityRemindersViewModel.swift; sourceTree = "<group>"; };
89C8658C2BB4779C00758337 /* ClassCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClassCell.swift; sourceTree = "<group>"; };
89E4FAA92CEFEC3000A952B1 /* CapacitySemiCircleView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CapacitySemiCircleView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -528,7 +529,8 @@
2E8FE38E2B1278B700B3DC6A /* Uplift */ = {
isa = PBXGroup;
children = (
89C10D222CCB459F007E753F /* Uplift.entitlements */,
899A597E2EA0BD02000CBC36 /* Uplift-Release.entitlements */,
89C10D222CCB459F007E753F /* Uplift-Debug.entitlements */,
2E3838402BB7536700AE15DC /* PrivacyInfo.xcprivacy */,
2E3D6C1D2B12840C00B51BB2 /* Info.plist */,
2E090ECF2B13088800BAE982 /* Configs */,
Expand Down Expand Up @@ -1046,7 +1048,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_ENTITLEMENTS = Uplift/Uplift.entitlements;
CODE_SIGN_ENTITLEMENTS = "Uplift/Uplift-Debug.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 40;
Expand Down Expand Up @@ -1091,7 +1093,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CODE_SIGN_ENTITLEMENTS = Uplift/Uplift.entitlements;
CODE_SIGN_ENTITLEMENTS = "Uplift/Uplift-Release.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 40;
Expand Down
2 changes: 1 addition & 1 deletion Uplift.xcodeproj/xcshareddata/xcschemes/Uplift.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions Uplift/Uplift-Release.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>production</string>
</dict>
</plist>
4 changes: 4 additions & 0 deletions Uplift/ViewModels/CapacityRemindersViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ extension CapacityRemindersView {
func createDefaultReminder() {
let daysOfWeekStrings = selectedDays.map { $0.dayOfWeekComplete().uppercased() }

self.saveOriginalValues()

createCapacityReminder(
capacityPercent: Int(capacityThreshold),
daysOfWeek: daysOfWeekStrings,
Expand Down Expand Up @@ -335,6 +337,8 @@ extension CapacityRemindersView {
return
}

self.saveOriginalValues()

errorMessage = nil
isLoading = true
deletingReminder = true
Expand Down