Skip to content

Commit

Permalink
Enable Shadowsocks obfuscation in Release
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Dec 2, 2024
1 parent fb88bcf commit 7614082
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ class SelectableSettingsDetailsCell: SelectableSettingsCell {
}

private func setViewContainer() {
#if DEBUG
setTrailingView { superview in
superview.addConstrainedSubviews([viewContainer]) {
viewContainer.pinEdgesToSuperview()
}
}
#endif
}

// MARK: - Actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,12 @@ final class VPNSettingsCellFactory: CellFactoryProtocol {
comment: ""
)

#if DEBUG
cell.detailTitleLabel.text = String(format: NSLocalizedString(
"WIREGUARD_OBFUSCATION_UDP_TCP_PORT",
tableName: "VPNSettings",
value: "Port: %@",
comment: ""
), viewModel.obfuscationUpdOverTcpPort.description)
#endif

cell.accessibilityIdentifier = item.accessibilityIdentifier
cell.applySubCellStyling()
Expand All @@ -172,14 +170,12 @@ final class VPNSettingsCellFactory: CellFactoryProtocol {
comment: ""
)

#if DEBUG
cell.detailTitleLabel.text = String(format: NSLocalizedString(
"WIREGUARD_OBFUSCATION_SHADOWSOCKS_PORT",
tableName: "VPNSettings",
value: "Port: %@",
comment: ""
), viewModel.obfuscationShadowsocksPort.description)
#endif

cell.accessibilityIdentifier = item.accessibilityIdentifier
cell.applySubCellStyling()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,11 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource<
static var wireGuardObfuscation: [Item] {
var items: [Item] = [
.wireGuardObfuscationAutomatic,
.wireGuardObfuscationShadowsocks,
.wireGuardObfuscationUdpOverTcp,
.wireGuardObfuscationOff,
]

#if DEBUG
items.insert(.wireGuardObfuscationShadowsocks, at: 1)
#endif

return items
}

Expand Down

0 comments on commit 7614082

Please sign in to comment.