Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WordPressAuthenticator.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WordPressAuthenticator"
s.version = "1.31.0-beta.3"
s.version = "1.31.0-beta.4"
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."

s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public protocol WordPressAuthenticatorDelegate: class {
///
var supportActionEnabled: Bool { get }

/// Indicates if the WordPress.com's Terms of Service should be enabled, or not.
///
var wpcomTermsOfServiceEnabled: Bool { get }

/// Indicates if the Support notification indicator should be displayed.
///
var showSupportNotificationIndicator: Bool { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ private extension GetStartedViewController {
/// Describes how the tableView rows should be rendered.
///
func loadRows() {
rows = [.instructions, .email, .tos]
rows = [.instructions, .email]

if let authenticationDelegate = WordPressAuthenticator.shared.delegate, authenticationDelegate.wpcomTermsOfServiceEnabled {
rows.append(.tos)
}

if let errorText = errorMessage, !errorText.isEmpty {
rows.append(.errorMessage)
Expand Down