- Fix: skip the verify-params bridge call when no verification parameters are provided.
- Feat: add opt-in User Journeys support via
HCaptchaConfig.userJourneyandHCaptchaVerifyParams.userJourneyfor sdk + compose-sdk. - Fix: preserve the hCaptcha logo when vector drawable support is enabled.
- Fix: preserve the Compose dialog dimming behavior without regressing invisible/headless flows.
- Feat: add shared
HCaptchaConfig.renderMode(DIALOG,EMBEDDED,HEADLESS) for sdk + compose-sdk. - Feat: add
HCaptcha.setEmbeddedContainer(...)for embedded render mode in core sdk. - Feat: add
addOnLoadedListener(...)callback support in core sdk task listeners. - Deprecation:
HCaptchaConfig.hideDialogis deprecated in favor ofrenderMode=HEADLESS.
- Feat: add explicit
HCaptcha.destroy()API to fully tear down WebView and related resources. - Fix: handle target="_blank" links by opening in browser app
- Fix: backward compatibility with HCaptchaConfig.rqdata
- Fix: enable incremental builds for HTML-to-Java generation tasks
- Fix: correct nullability annotation to prevent
NullPointerException - Docs: add note about
resetcall for updated HCaptchaVerifyParams on next verify call
- Feature: implement HCaptchaVerifyParams with phone prefix/number support
- Fix: loading dialog background depends on
HCaptchaConfig.theme(#201)
- Fix: java.util.ConcurrentModificationException on multiple hCaptcha verify calls (#198)
- Fix: accept hostname instead of url in host config (#196)
- Fix: Activity memory leak (#195)
- Chore: Restructured example-compose-app (#182)
- Feature: handle
sms:schemas in WebView (#192)
- Fix: java.lang.NullPointerException: during WebView preparation (#189)
- Fix: java.lang.IllegalStateException: The specified child already has a parent for reloadedWebView in compose-sdk
- Fix: double call with CHALLENGE_CLOSED error
- Fix: broken retryPredicate config
- Fix: back button should cancel hCaptcha in compose-sdk
- Feat: preload WebView on
setupcall
- compose-sdk: set minSdk to 21
- Downgrade: jackson-databind to 2.13.* (#170)
- Upgrade: third-party dependencies (lombok, jackson-databind) (#167)
- Fix: passive site keys (hideDialog=true) broken for
compose-sdk
- Feat: release of
compose-sdk
- Feat (breaking change): accept
HCaptcha.getClient(Activity)for passive sitekeys. (#112)
- Fix: handle null
internalConfigin 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.loadUrlon 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.resetto force stop verification and release all resources.
- Feat: new
HCaptchaConfig.orientationto set eitherportraitorlandscapechallenge orientation.
- Feat: new
HCaptcha.removeAllListenerandHCaptcha.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.apiEndpointreplaced withHCaptchaConfig.jsSrcoption
- Feat: new
HCaptchaConfig.retryPredicatewhich allows conditional automatic retry - Deprecated:
HCaptchaConfig.resetOnTimeoutreplaced by more genericHCaptchaConfig.retryPredicateoption
- 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_logodrawable 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.diagnosticLogto 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.htmlasset moved into a variable
- Add
TOKEN_TIMEOUTerror 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,spotbugstools to build system (#40)
- Add new boolean config option
HCaptchaConfig.hideDialog. - (breaking change) Change the behavior of
addOnSuccessListener,addOnFailureListenerandaddOnOpenListenermethods.- 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.setupmethod to improve cold-start time, enable asset caching (#24)
- Add more error codes (see readme for full list)