From 66b3b375fa0df8531d02e0697282362c113783b6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 11 Jul 2021 07:29:04 -0400 Subject: [PATCH] Remove preference for universal build as that will now be the default --- .../App/Classes/Controllers/TXMasterController.m | 6 +----- .../App/Classes/Headers/TPCPreferencesLocal.h | 1 - .../Classes/Preferences/TPCPreferencesLocal.m | 5 ----- .../Classes/Preferences/TPCPreferencesReload.m | 4 +--- .../3rdPartyStaticStoreSparkleFramework.plist | 2 -- .../RegisteredUserDefaultsInContainer.plist | 2 -- .../User Interface/en.lproj/TDCPreferences.xib | 16 +--------------- 7 files changed, 3 insertions(+), 33 deletions(-) diff --git a/Sources/App/Classes/Controllers/TXMasterController.m b/Sources/App/Classes/Controllers/TXMasterController.m index ed5bb00e30..219558b049 100644 --- a/Sources/App/Classes/Controllers/TXMasterController.m +++ b/Sources/App/Classes/Controllers/TXMasterController.m @@ -281,11 +281,7 @@ - (void)prepareThirdPartyServiceSparkleFramework BOOL receiveBetaUpdates = [TPCPreferences receiveBetaUpdates]; if (receiveBetaUpdates) { - if ([TPCPreferences receiveUniversalBetaUpdates]) { - [RZUserDefaults() setObject:sparkleData[@"SUFeedURL-beta-universal"] forKey:@"SUFeedURL"]; - } else { - [RZUserDefaults() setObject:sparkleData[@"SUFeedURL-beta"] forKey:@"SUFeedURL"]; - } + [RZUserDefaults() setObject:sparkleData[@"SUFeedURL-beta"] forKey:@"SUFeedURL"]; } else { // beta [RZUserDefaults() setObject:sparkleData[@"SUFeedURL"] forKey:@"SUFeedURL"]; } diff --git a/Sources/App/Classes/Headers/TPCPreferencesLocal.h b/Sources/App/Classes/Headers/TPCPreferencesLocal.h index 4f6c537fcb..51d15e14e7 100755 --- a/Sources/App/Classes/Headers/TPCPreferencesLocal.h +++ b/Sources/App/Classes/Headers/TPCPreferencesLocal.h @@ -129,7 +129,6 @@ typedef NS_ENUM(NSUInteger, TXPreferredAppearance) { #if TEXTUAL_BUILT_WITH_SPARKLE_ENABLED == 1 + (BOOL)receiveBetaUpdates; -+ (BOOL)receiveUniversalBetaUpdates; #endif + (BOOL)channelNavigationIsServerSpecific; diff --git a/Sources/App/Classes/Preferences/TPCPreferencesLocal.m b/Sources/App/Classes/Preferences/TPCPreferencesLocal.m index 4552d4eae6..8406d72af4 100755 --- a/Sources/App/Classes/Preferences/TPCPreferencesLocal.m +++ b/Sources/App/Classes/Preferences/TPCPreferencesLocal.m @@ -529,11 +529,6 @@ + (BOOL)receiveBetaUpdates { return [RZUserDefaults() boolForKey:@"ReceiveBetaUpdates"]; } - -+ (BOOL)receiveUniversalBetaUpdates -{ - return [RZUserDefaults() boolForKey:@"ReceiveUniversalBetaUpdates"]; -} #endif #pragma mark - diff --git a/Sources/App/Classes/Preferences/TPCPreferencesReload.m b/Sources/App/Classes/Preferences/TPCPreferencesReload.m index 2c806cf9af..f0c5f757a0 100644 --- a/Sources/App/Classes/Preferences/TPCPreferencesReload.m +++ b/Sources/App/Classes/Preferences/TPCPreferencesReload.m @@ -163,9 +163,7 @@ + (void)performReloadActionForKeys:(NSArray *)keys /* Sparkle framework update feed URL */ #if TEXTUAL_BUILT_WITH_SPARKLE_ENABLED == 1 - if ([keys containsObject:@"ReceiveBetaUpdates"] || - [keys containsObject:@"ReceiveUniversalBetaUpdates"]) - { + if ([keys containsObject:@"ReceiveBetaUpdates"]) { reloadAction |= TPCPreferencesReloadActionSparkleFrameworkFeedURL; } #endif diff --git a/Sources/App/Resources/Property Lists/3rdPartyStaticStoreSparkleFramework.plist b/Sources/App/Resources/Property Lists/3rdPartyStaticStoreSparkleFramework.plist index 26e1641258..80fcd5b543 100644 --- a/Sources/App/Resources/Property Lists/3rdPartyStaticStoreSparkleFramework.plist +++ b/Sources/App/Resources/Property Lists/3rdPartyStaticStoreSparkleFramework.plist @@ -6,8 +6,6 @@ https://textual-updates-backend.codeux.com/sparkle/feeds/v7/feed-one.xml SUFeedURL-beta https://textual-updates-backend.codeux.com/sparkle/feeds/v7/feed-one-beta.xml - SUFeedURL-beta-universal - https://textual-updates-backend.codeux.com/sparkle/feeds/v7/feed-one-beta-universal.xml SUScheduledCheckInterval 345600 SUScheduledCheckInterval-beta diff --git a/Sources/App/Resources/Property Lists/RegisteredUserDefaultsInContainer.plist b/Sources/App/Resources/Property Lists/RegisteredUserDefaultsInContainer.plist index 669127ac52..88b8bdb79d 100644 --- a/Sources/App/Resources/Property Lists/RegisteredUserDefaultsInContainer.plist +++ b/Sources/App/Resources/Property Lists/RegisteredUserDefaultsInContainer.plist @@ -208,8 +208,6 @@ ReceiveBetaUpdates - ReceiveUniversalBetaUpdates - RejoinChannelOnLocalKick ReloadScrollbackOnLaunch diff --git a/Sources/App/Resources/User Interface/en.lproj/TDCPreferences.xib b/Sources/App/Resources/User Interface/en.lproj/TDCPreferences.xib index b8831c3e34..ff87dc9ef4 100755 --- a/Sources/App/Resources/User Interface/en.lproj/TDCPreferences.xib +++ b/Sources/App/Resources/User Interface/en.lproj/TDCPreferences.xib @@ -405,30 +405,16 @@ - - - - +