From 59c52235807e325824ced9483774516dc28d40b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Caetano?= Date: Fri, 28 Sep 2018 11:26:58 -0300 Subject: [PATCH] Updating documentation --- .gitignore | 3 +++ ReCaptcha/Classes/ReCaptcha.swift | 12 ++++++++++-- fastlane/Fastfile | 1 - 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0ac9602..c0149f2 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,6 @@ fastlane/Preview.html fastlane/screenshots fastlane/README.md fastlane/test_output + +## VS Code +.vscode diff --git a/ReCaptcha/Classes/ReCaptcha.swift b/ReCaptcha/Classes/ReCaptcha.swift index 25d4903..c7a3a91 100644 --- a/ReCaptcha/Classes/ReCaptcha.swift +++ b/ReCaptcha/Classes/ReCaptcha.swift @@ -199,14 +199,22 @@ public class ReCaptcha { manager.reset() } + // MARK: - Development + #if DEBUG - /// Forces the challenge to be explicitly displayed. + /// Forces the challenge widget to be explicitly displayed. public var forceVisibleChallenge: Bool { get { return manager.forceVisibleChallenge } set { manager.forceVisibleChallenge = newValue } } - /// Allows validation stubbing for testing + /** + Allows validation stubbing for testing + + When this property is set to `true`, every call to `validate()` will immediately be resolved with `.token("")`. + + Use only when testing your application. + */ public var shouldSkipForTests: Bool { get { return manager.shouldSkipForTests } set { manager.shouldSkipForTests = newValue } diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 11669c3..d95a81d 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -33,7 +33,6 @@ platform :ios do executable: "Example/Pods/Swiftlint/swiftlint", strict: true, reporter: "emoji", - ) # The problem lies in the fact (or rather: serious bug in xcodebuild) that