Skip to content

INTER-2686: feat: bump native Fingerprint SDKs to 4.2.x - #210

Merged
JuroUhlar merged 2 commits into
mainfrom
uhlar/wizardly-wright-y6dkbh
Oct 21, 2026
Merged

JuroUhlar merged 2 commits into
mainfrom
uhlar/wizardly-wright-y6dkbh

Conversation

@JuroUhlar

@JuroUhlar JuroUhlar commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Part of INTER-2686. Also covers INTER-2687.

Bumps the native SDK ranges to 4.2.x. Patch releases still float, minors stay opt-in.

Platform Before After
Android (android/fingerprint.gradle) [4.1.0, 4.2.0) [4.2.0, 4.3.0)
iOS (Package.swift, podspec reads it) upToNextMinor(from: "4.1.0") upToNextMinor(from: "4.2.0")
  • Changelogs: Android 4.2.0, iOS 4.2.0. No API changes.
  • The Android 4.2.0 AAR proguard.txt still lacks the gms -dontwarn and Kotlin -keeppackagenames rules, so consumer-rules.pro stays. Only its version note changed.
  • Changeset: minor.

Android unit tests

Creating some SDK error classes on the desktop JVM throws IllegalAccessError (works on ART). The SDK obfuscator breaks their static initializer, and the affected set changes per release:

  • 4.1.0: NetworkError, WrongRegion, PayloadTooLarge, SubscriptionRestricted, …
  • 4.2.0: ApiKeyRequired, ClientTimeout, InvalidProxyIntegration*, InstallationMethodRestricted

Production code only uses is checks, which don't initialize the class, so apps are unaffected. Tests now use ApiKeyNotFound instead of ApiKeyRequired. It loads on both versions.

🤖 Generated with Claude Code

- Android 4.2.0: https://docs.fingerprint.com/docs/changelog-android-sdk#v4-2-0
- iOS 4.2.0: https://docs.fingerprint.com/docs/changelog-ios-sdk#v4-2-0
- No API changes in either SDK.
- Android 4.2.0 AAR still lacks the R8 rules from consumer-rules.pro, so keep the stopgap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018AX93FxN4bzBaCYXfPTEzC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The dependency bounds match the intended policy, existing workarounds remain intact, and no blocking issues were identified.

No open issues 🎉

What changed in this PR

Updates Flutter’s native Fingerprint SDK dependencies to 4.2.x, allowing patch updates while keeping future minor upgrades opt-in.

Changes:

  • Updates Android and iOS dependency ranges.
  • Retains Android consumer rules, updating only their version note.
  • Adds a minor-release changeset describing SDK improvements.
File Description
ios/​fingerprint_flutter/​Package.swift Allows iOS SDK 4.2.x patches.
android/​fingerprint.gradle Allows Android SDK 4.2.x patches.
android/​consumer-rules.pro Extends the workaround comment to cover 4.2.x.
.changeset/​native-sdk-4-2.md Documents the upgrade for a minor release.

Review effort: Balanced

Android SDK 4.2.0 obfuscates static initializers of other error classes
than 4.1.0. Creating ApiKeyRequired on the desktop JVM now throws
IllegalAccessError (works on ART). Production code only uses `is` checks,
which do not initialize the class, so apps are not affected.

Switch tests to ApiKeyNotFound, which loads on both 4.1.0 and 4.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018AX93FxN4bzBaCYXfPTEzC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No blocking issues were identified in the aligned dependency ranges or test updates; builds and tests were not run.

No open issues 🎉

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Following releases will be created using changesets from this PR:

fingerprint_flutter@5.1.0

Minor Changes

  • Android and iOS: use native Fingerprint SDK 4.2.x. It collects new signals and improves performance. On Android, it also returns an error instead of crashing when SDK initialization fails. (c00f2e9)

Supported Native SDK Version Range

  • Fingerprint iOS SDK Version Range: >= 4.2.0 and < 4.3.0
  • Fingerprint Android SDK Version Range: >= 4.2.0 and < 4.3.0

@JuroUhlar
JuroUhlar marked this pull request as ready for review October 21, 2026 14:11
@JuroUhlar
JuroUhlar merged commit ce08314 into main Oct 21, 2026
20 checks passed
@JuroUhlar
JuroUhlar deleted the uhlar/wizardly-wright-y6dkbh branch October 21, 2026 20:16
@JuroUhlar JuroUhlar changed the title feat: bump native Fingerprint SDKs to 4.2.x INTER-2686: feat: bump native Fingerprint SDKs to 4.2.x Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants