Skip to content

Bump qr dependency to v0.0.3#786

Closed
limpbrains wants to merge 12 commits intoteslamotors:masterfrom
BlueWallet:bumpv3
Closed

Bump qr dependency to v0.0.3#786
limpbrains wants to merge 12 commits intoteslamotors:masterfrom
BlueWallet:bumpv3

Conversation

@limpbrains
Copy link
Copy Markdown
Contributor

Updates com.github.limpbrains:qr from v0.0.2 to v0.0.3 in android/build.gradle

limpbrains and others added 12 commits December 29, 2025 14:36
Selectively synced upstream changes while preserving QR-only Android implementation.

Changes auto-synced (Category A - 19 files):
- iOS: All 8 files (stress test support + allowedBarcodeTypes filtering)
- TypeScript: All 7 files (Camera components, props, types, specs)
- Example app: All 3 files (stress test + allowedBarcodeTypes example)
- Config: Moved .nvmrc to root

Changes selectively synced (Category B - 2 files):
- CodeFormat.kt: Added UPC_A("upc-a") enum value (1 hunk applied, 1 skipped)
- README.md: Added allowedBarcodeTypes docs with QR-only note

Changes skipped (Android barcode conflicts):
- CKCamera.kt: All barcode filtering logic (~50+ hunks)
  Reason: Fork uses onBarcodeRead(String), upstream uses onBarcodeRead(List<Barcode>, Size)
- CKCameraManager.kt: setAllowedBarcodeTypes property setter
- package.json: Version bump (fork maintains independent versioning)

Upstream range: 5a709e0..cc6515b (12 commits)
Main feature: allowedBarcodeTypes barcode filtering (iOS synced, Android QR-only preserved)

Fork integrity checks:
✅ No Google ML Kit dependencies
✅ QRDecoder.decode() preserved
✅ limpbrains/qr dependency intact
✅ yarn build && yarn lint passed

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Upgrade from v0.0.1 to v0.0.2 for new features:
- ECI (Extended Channel Interpretation) support for 20+ character encodings
- Inverted QR code detection (white-on-black QR codes)

Build and lint verified passing.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
After syncing TypeScript layer with allowedBarcodeTypes and iOsSleepBeforeStarting props,
the auto-generated CKCameraManagerInterface requires these methods to be implemented.

Added stub implementations in both newarch and oldarch:
- setAllowedBarcodeTypes: No-op (fork is QR-only, doesn't use filtering)
- setIOsSleepBeforeStarting: No-op (iOS-only prop)

Both methods accept the props for API compatibility but have no effect on Android.

Verified: Android build now compiles successfully

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
## What's Changed

### Upstream Sync (teslamotors/react-native-camera-kit@cc6515b)
- iOS: Added allowedBarcodeTypes barcode filtering and mount stress test support
- TypeScript: Added allowedBarcodeTypes prop with type definitions
- Example app: Added stress test and barcode filtering examples
- Config: Moved .nvmrc to root directory
- Docs: Added allowedBarcodeTypes documentation with fork notes

### Android Improvements
- Fixed build error by adding Codegen-required stub implementations
- Updated to limpbrains/qr v0.0.2 (ECI encoding + inverted QR code support)
- Preserved QR-only scanning architecture (no Google ML Kit)

### Fork Integrity
✅ Build and lint tests pass
✅ No Google ML Kit dependencies
✅ QR-only Android barcode scanning preserved

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@limpbrains limpbrains closed this Apr 20, 2026
@limpbrains limpbrains deleted the bumpv3 branch April 20, 2026 12:29
@limpbrains limpbrains restored the bumpv3 branch April 20, 2026 12:32
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.

2 participants