From 4ed033885c14df2a0dcb959babd84dbeae6a3cbd Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Fri, 19 Jun 2020 10:10:17 +0200 Subject: [PATCH] Remove gate for dodo codes notifications --- .../ACHNBrowserUI.xcodeproj/project.pbxproj | 8 +++--- .../views/dodocode/DodoCodeListView.swift | 25 ------------------- 2 files changed, 4 insertions(+), 29 deletions(-) diff --git a/ACHNBrowserUI/ACHNBrowserUI.xcodeproj/project.pbxproj b/ACHNBrowserUI/ACHNBrowserUI.xcodeproj/project.pbxproj index 35a248ef..153410ee 100644 --- a/ACHNBrowserUI/ACHNBrowserUI.xcodeproj/project.pbxproj +++ b/ACHNBrowserUI/ACHNBrowserUI.xcodeproj/project.pbxproj @@ -1390,7 +1390,7 @@ CODE_SIGN_ENTITLEMENTS = ACHNBrowserUI/ACHNBrowserUI.entitlements; CODE_SIGN_IDENTITY = "Apple Development: Thomas Ricouard (7MB55D6BJ5)"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 061712020; + CURRENT_PROJECT_VERSION = 061912020; DEVELOPMENT_ASSET_PATHS = "\"ACHNBrowserUI/Preview Content\""; DEVELOPMENT_TEAM = Z6P74P6T99; ENABLE_PREVIEWS = YES; @@ -1400,7 +1400,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.7.7; + MARKETING_VERSION = 1.7.8; PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.ACNH; PRODUCT_NAME = "AC Helper"; PROVISIONING_PROFILE_SPECIFIER = "AC Dev"; @@ -1421,7 +1421,7 @@ CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 061712020; + CURRENT_PROJECT_VERSION = 061912020; DEVELOPMENT_ASSET_PATHS = "\"ACHNBrowserUI/Preview Content\""; DEVELOPMENT_TEAM = Z6P74P6T99; ENABLE_PREVIEWS = YES; @@ -1431,7 +1431,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.7.7; + MARKETING_VERSION = 1.7.8; PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.ACNH; PRODUCT_NAME = "AC Helper"; PROVISIONING_PROFILE_SPECIFIER = "AC Dev"; diff --git a/ACHNBrowserUI/ACHNBrowserUI/views/dodocode/DodoCodeListView.swift b/ACHNBrowserUI/ACHNBrowserUI/views/dodocode/DodoCodeListView.swift index 3df1b3e8..246b17bd 100644 --- a/ACHNBrowserUI/ACHNBrowserUI/views/dodocode/DodoCodeListView.swift +++ b/ACHNBrowserUI/ACHNBrowserUI/views/dodocode/DodoCodeListView.swift @@ -13,7 +13,6 @@ import SwiftUIKit struct DodoCodeListView: View { @EnvironmentObject private var service: DodoCodeService - @EnvironmentObject private var subscription: SubscriptionManager @State private var sheet: Sheet.SheetType? @State private var showiCloudAlert = false @@ -34,30 +33,6 @@ struct DodoCodeListView: View { Text("Get notified of new Dodo codes") .foregroundColor(.acText) } - .disabled(subscription.subscriptionStatus != .subscribed) - if subscription.subscriptionStatus != .subscribed { - VStack(spacing: 8) { - Button(action: { - self.sheet = .subscription(source: .dodo, subManager: self.subscription) - }) { - Text("To help us support the application and get notifications when a new Dodo code is posted, you can try out AC Helper+") - .foregroundColor(.acSecondaryText) - .lineLimit(nil) - .fixedSize(horizontal: false, vertical: true) - .padding(.top, 8) - } - Button(action: { - self.sheet = .subscription(source: .dodo, subManager: self.subscription) - }) { - Text("Learn more...") - .font(.headline) - .fontWeight(.bold) - .foregroundColor(.white) - }.buttonStyle(PlainRoundedButton()) - .accentColor(.acHeaderBackground) - .padding(.bottom, 8) - } - } } if service.isSynching && service.codes.isEmpty {