Skip to content

refact: [QR] Remove connectWithQrCode, the QR code only holds the IP address - #758

Merged
florent37 merged 1 commit into
mainfrom
fix/qr-code-address-only
Nov 1, 2026
Merged

florent37 merged 1 commit into
mainfrom
fix/qr-code-address-only

Conversation

@florent37

Copy link
Copy Markdown
Contributor

Description

Follows the review of the Swift version (FloconSwift#24): the QR code of Flocon Desktop holds only the IP address, so a second connect method is not needed.

SDK (flocon-qr-scanner and its -no-op)

  • Removes Flocon.connectWithQrCode(content) and the URL parsing (addressFromQrCode) with its test. Flocon.scanQrCodeAndConnect now calls Flocon.connect(address) with the scanned text (already trimmed there). An app with its own camera screen calls Flocon.connect(address).
  • scanQrCodeAndConnect checks Google Play Services first: without it (AOSP emulator, Huawei...) it returns Failed("Google Play Services is required to scan a QR code: connect with the IP address instead") without opening the scanner.

Docs: docs/setup.md, "Connecting with a QR code" documents the scanner module, the Play Services requirement and the fallback.

Checked locally: :qrscanner:qrscanner:jvmTest, :sample:android:assembleDebug and assembleRelease. mkdocs build --strict not run (mkdocs not installed here).

/gemini review

@florent37
florent37 marked this pull request as ready for review November 1, 2026 18:34
@florent37
florent37 merged commit 646f5a8 into main Nov 1, 2026
2 of 3 checks passed
@florent37
florent37 deleted the fix/qr-code-address-only branch November 1, 2026 18:34
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.

1 participant