- Feat (breaking change): accept
HCaptcha.getClient(Activity)
for passive sitekeys. (#112)
- Fix: handle null
internalConfig
in args for HCaptchaDialogFragment (#140) - Feature: drop diagnostic logs from production code (#139)
- Fix: wrong language used in
values-be/strings.xml
(#138) - Fix: misleading exception on missing
siteKey
(#137) - Fix: calling
webView.loadUrl
on destroyedWebView
(#136)
- Fix: crash on insecure HTTP request handling
- Feat: new error code
INSECURE_HTTP_REQUEST_ERROR
- Fix: add missing ProGuard rules for enums
- Feature: add config to control WebView hardware acceleration
HCaptchaConfig.disableHardwareAcceleration
- Fix: removed unsafe cast with improved public api
- Bugfix: handle BadParcelableException when hCaptcha fragment needs to be recreated due to app resume
- Bugfix: report error when missing WebView provider
- Feat: new
HCaptcha.reset
to force stop verification and release all resources.
- Feat: new
HCaptchaConfig.orientation
to set eitherportrait
orlandscape
challenge orientation.
- Feat: new
HCaptcha.removeAllListener
andHCaptcha.removeOn[Success|Failure|Open]Listener(listener)
to remove all or specific listener.
- Bugfix: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState, on
verifyWithHCaptcha
- Bugfix: Parcelable encountered IOException writing serializable object (name = com.hcaptcha.sdk.HCaptchaConfig) (#94)
- Deprecated:
HCaptchaConfig.apiEndpoint
replaced withHCaptchaConfig.jsSrc
option
- Feat: new
HCaptchaConfig.retryPredicate
which allows conditional automatic retry - Deprecated:
HCaptchaConfig.resetOnTimeout
replaced by more genericHCaptchaConfig.retryPredicate
option
- Bugfix: handle Failed to load WebView provider: No WebView installed
- Bugfix: always dim background if checkbox is visible (#72)
- Show loading screen until the challenge is open when size is
HCaptchaSize.INVISIBLE
- Rename
ic_logo
drawable to avoid possible collisions with a host app's drawables - Prevent closing hCaptcha view on loading container click
- Fix Android 10 WebView crash on onCheckIsTextEditor call
- Add
HCaptchaConfig.diagnosticLog
to log diagnostics that are helpful during troubleshooting
- Fix dialog dismiss crash in specific scenario
- Disabled cleartext traffic (
android:usesCleartextTraffic="false"
added toAndroidManifest.xml
) hcaptcha-form.html
asset moved into a variable
- Add
TOKEN_TIMEOUT
error triggered after a certain configured number of seconds elapsed from the token issuance.
- Fix checkbox view not dismissible
- Fix double close error reporting
- Add
pmd
,checkstyle
,spotbugs
tools to build system (#40)
- Add new boolean config option
HCaptchaConfig.hideDialog
. - (breaking change) Change the behavior of
addOnSuccessListener
,addOnFailureListener
andaddOnOpenListener
methods.- previously: the callbacks were removed after utilization
- currently: the callbacks are persisted to be reused for future calls on the same client. This allows multiple human verifications using the same client and the same callback.
- Add new callback
addOnOpenListener
.
- Add
HCaptcha.setup
method to improve cold-start time, enable asset caching (#24)
- Add more error codes (see readme for full list)