Skip to content

Commit

Permalink
v1.1.6 - closes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
twodayslate committed Mar 4, 2021
1 parent 1e2403d commit 1d4ad01
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
24 changes: 12 additions & 12 deletions claw.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -810,15 +810,15 @@
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_ENTITLEMENTS = hottest.widgetExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = C6L3992RFB;
INFOPLIST_FILE = hottest.widget/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.1.5;
MARKETING_VERSION = 1.1.6;
PRODUCT_BUNDLE_IDENTIFIER = "com.twodayslate.claw.hottest-widget";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -834,15 +834,15 @@
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_ENTITLEMENTS = hottest.widgetExtension.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = C6L3992RFB;
INFOPLIST_FILE = hottest.widget/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.1.5;
MARKETING_VERSION = 1.1.6;
PRODUCT_BUNDLE_IDENTIFIER = "com.twodayslate.claw.hottest-widget";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -975,7 +975,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = claw/claw.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"claw/Preview Content\"";
DEVELOPMENT_TEAM = C6L3992RFB;
ENABLE_PREVIEWS = YES;
Expand All @@ -985,7 +985,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.5;
MARKETING_VERSION = 1.1.6;
PRODUCT_BUNDLE_IDENTIFIER = com.twodayslate.claw;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = NO;
Expand All @@ -1003,7 +1003,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = claw/claw.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"claw/Preview Content\"";
DEVELOPMENT_TEAM = C6L3992RFB;
ENABLE_PREVIEWS = YES;
Expand All @@ -1013,7 +1013,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.5;
MARKETING_VERSION = 1.1.6;
PRODUCT_BUNDLE_IDENTIFIER = com.twodayslate.claw;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = NO;
Expand Down Expand Up @@ -1113,7 +1113,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "opener-action/opener-action.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = C6L3992RFB;
INFOPLIST_FILE = "opener-action/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 14.1;
Expand All @@ -1122,7 +1122,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.1.5;
MARKETING_VERSION = 1.1.6;
PRODUCT_BUNDLE_IDENTIFIER = "com.twodayslate.claw.opener-action";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -1137,7 +1137,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "opener-action/opener-action.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = C6L3992RFB;
INFOPLIST_FILE = "opener-action/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 14.1;
Expand All @@ -1146,7 +1146,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.1.5;
MARKETING_VERSION = 1.1.6;
PRODUCT_BUNDLE_IDENTIFIER = "com.twodayslate.claw.opener-action";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
4 changes: 4 additions & 0 deletions claw/Stories/Hottest/HottestFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class HottestFetcher: ObservableObject {
@Published var isLoadingMore = false
@Published var isReloading = false

// we need a shared object as a not singleton will be deinitialized after about 2
// navigation views deep
static var shared = HottestFetcher()

init() {
load()
}
Expand Down
2 changes: 1 addition & 1 deletion claw/Stories/Hottest/HottestView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import SwiftUI

struct HottestView: View {
@ObservedObject var hottest = HottestFetcher()
@ObservedObject var hottest = HottestFetcher.shared
@EnvironmentObject var settings: Settings
@Environment(\.didReselect) var didReselect
@State var isVisible = false
Expand Down
2 changes: 2 additions & 0 deletions claw/Stories/Newest/NewestFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class NewestFetcher: ObservableObject {
load()
}

static var shared = NewestFetcher()

deinit {
self.session?.cancel()
self.moreSession?.cancel()
Expand Down
2 changes: 1 addition & 1 deletion claw/Stories/Newest/NewestView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import SwiftUI


struct NewestView: View {
@ObservedObject var newest = NewestFetcher()
@ObservedObject var newest = NewestFetcher.shared
@EnvironmentObject var settings: Settings
@Environment(\.didReselect) var didReselect
@State var isVisible = false
Expand Down

0 comments on commit 1d4ad01

Please sign in to comment.