Skip to content

Commit 64abea4

Browse files
committed
Squashed commit of the following:
commit 804255b Merge: a799fd6 d46eb63 Author: Angelo Stavrow <angelo@droppedbits.com> Date: Sun Dec 18 15:28:10 2022 -0500 Merge branch 'main' into fix-crash-on-launch-tmp-no-nav commit a799fd6 Author: Angelo Stavrow <angelo@droppedbits.com> Date: Sun Dec 18 08:16:34 2022 -0500 Bump build number and update change log commit b81276d Author: Angelo Stavrow <angelo@droppedbits.com> Date: Sun Dec 18 08:16:16 2022 -0500 Only navigate to new/last draft on launch on macOS This is causing the app to crash on launch when there are no existing posts, so we’re going to remove it for now while we investigate.
1 parent 1b75950 commit 64abea4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
- [Mac] Updated the URL and minimum version of the WriteFreely Swift package.
2626
- [Mac] Upgraded the Sparkle package to v2.
2727
- [Mac] The app now prompts you to reach out to our user forums if it detects a crash.
28+
- [iOS] Temporarily removed the new-draft-on-launch feature while investigating a crashing bug.
2829

2930
### Fixed
3031

Shared/WriteFreely_MultiPlatformApp.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,13 @@ struct WriteFreely_MultiPlatformApp: App {
152152
}
153153

154154
private func showLastDraftOrCreateNewLocalPost() {
155+
#if os(macOS)
155156
if model.editor.lastDraftURL != nil {
156157
self.model.selectedPost = model.editor.fetchLastDraftFromAppStorage()
157158
} else {
158159
createNewLocalPost()
159160
}
161+
#endif
160162
}
161163

162164
private func createNewLocalPost() {

WriteFreely-MultiPlatform.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@
10501050
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
10511051
CODE_SIGN_ENTITLEMENTS = "ActionExtension-iOS/ActionExtension-iOS.entitlements";
10521052
CODE_SIGN_STYLE = Automatic;
1053-
CURRENT_PROJECT_VERSION = 691;
1053+
CURRENT_PROJECT_VERSION = 694;
10541054
DEVELOPMENT_TEAM = TPPAB4YBA6;
10551055
GENERATE_INFOPLIST_FILE = YES;
10561056
INFOPLIST_FILE = "ActionExtension-iOS/Info.plist";
@@ -1081,7 +1081,7 @@
10811081
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
10821082
CODE_SIGN_ENTITLEMENTS = "ActionExtension-iOS/ActionExtension-iOS.entitlements";
10831083
CODE_SIGN_STYLE = Automatic;
1084-
CURRENT_PROJECT_VERSION = 691;
1084+
CURRENT_PROJECT_VERSION = 694;
10851085
DEVELOPMENT_TEAM = TPPAB4YBA6;
10861086
GENERATE_INFOPLIST_FILE = YES;
10871087
INFOPLIST_FILE = "ActionExtension-iOS/Info.plist";
@@ -1224,7 +1224,7 @@
12241224
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
12251225
CODE_SIGN_ENTITLEMENTS = "WriteFreely-MultiPlatform (iOS).entitlements";
12261226
CODE_SIGN_STYLE = Automatic;
1227-
CURRENT_PROJECT_VERSION = 691;
1227+
CURRENT_PROJECT_VERSION = 694;
12281228
DEVELOPMENT_TEAM = TPPAB4YBA6;
12291229
ENABLE_PREVIEWS = YES;
12301230
INFOPLIST_FILE = iOS/Info.plist;
@@ -1250,7 +1250,7 @@
12501250
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
12511251
CODE_SIGN_ENTITLEMENTS = "WriteFreely-MultiPlatform (iOS).entitlements";
12521252
CODE_SIGN_STYLE = Automatic;
1253-
CURRENT_PROJECT_VERSION = 691;
1253+
CURRENT_PROJECT_VERSION = 694;
12541254
DEVELOPMENT_TEAM = TPPAB4YBA6;
12551255
ENABLE_PREVIEWS = YES;
12561256
INFOPLIST_FILE = iOS/Info.plist;

0 commit comments

Comments
 (0)