Skip to content

feat(android-scan): 読取フローをデンソーのかんばんに対応させる (#110) - #114

Merged
rimtty merged 1 commit into
masterfrom
codex/denso-android-scan
Sep 7, 2026
Merged

rimtty merged 1 commit into
masterfrom
codex/denso-android-scan

Conversation

@rimtty

@rimtty rimtty commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Closes #110 (parent #106). Builds on #113.

変更

  • ScanReducer: 不正 QR の分類を「判定成功 → デンソーロック中は長さ案内なしで INVALID → 既存の 66/61 判定 → JAMA 先頭は INVALID → 既存の未ロック 57–66 判定」の順に。Code 128 の検証は lockedDestination(null 可)を渡し、?: SAWAI の既定を削除。observedQrLength はデンソーでも空白込み。recordedCode は QR の仕向地で整形(デンソーは 6-4)。
  • ScanState: RecordedBox.fromPayloads の整形に仕向地を渡す。moltenResultSummarydestination == MOLTEN ガード。
  • ScanSessionCoordinator: カメラ Code 128 のスタビライザ前検証に state.destination(null 可)を渡す。
  • ScanScreen: 結果カードの品番 2 箇所を仕向地付きで整形。
  • ScanViewModel: デモ用定数 SAMPLE_DENSO_QR_PAYLOAD / SAMPLE_DENSO_BARCODE_PAYLOADrunDemo は澤井のまま)。
  • 澤井製作所・モルテンの既存断言は変更なし(unlockedInvalidQrLengths… / moltenLockedInvalidQrLengths… は無変更で緑)。

テスト

  • ScanReducerTest +8、ScanCheckpointMappingTest +1、ScanSessionCoordinatorTest +1、ScanScreenTest +1、AppFlowInstrumentationTest.fakeScannerDensoFlowCountsBoxesPerPartNumberAndLocksDestinationScanViewModelCheckpointInstrumentationTest.densoDestinationLockSurvivesIsolatedDatabaseReopen
  • lintDebug testDebugUnitTest: 442 tests, 0 failures。:app:assembleRelease 成功。Pixel 7 で :feature:scan:connectedDebugAndroidTest 30 件緑(app の計測は CI エミュレーターで実行)。

🤖 Generated with Claude Code

The reducer classifies an unparseable QR in a Denso-locked session (and
any unlocked JAMA-prefixed payload) as invalid without a length hint,
validates Code 128 against the nullable locked destination instead of
defaulting to Sawai, formats Denso part numbers as 6-4 on the result
card and in the recorded code, and guards the Molten delivery summary
behind the destination lock. Sawai and Molten behaviour is unchanged.

Refs #110
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.

Android: ScanReducer と画面をデンソーに対応させる(可変長 QR の長さ案内・6-4 表示・計測テスト)

1 participant