Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add dev mode setting to add cards to the scanner #3400

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

M123-dev
Copy link
Member

@M123-dev M123-dev commented Dec 2, 2022

What

Adds a new option to the dev mode to add cards to the scanner. This allows better testing when using an emulator. I can't scan on it. In this go I removed the barcode trust check. Correct me if I'm wrong but it had no purpose anymore

+ a lot of generated changes

Copy link
Contributor

@monsieurtanuki monsieurtanuki left a comment

Choose a reason for hiding this comment

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

That's a good idea @M123-dev!
Regarding the unrelated .cc or .swift files I would have put them in a separate "chore" PR, but that's OK I guess.

@@ -321,6 +322,23 @@ class UserPreferencesDevMode extends AbstractUserPreferences {
localDatabase.notifyListeners();
},
),
ListTile(
title: const Text('Add cards to scanner'),
subtitle: const Text('Adds 4 sample products to the scanner'),
Copy link
Contributor

Choose a reason for hiding this comment

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

It's probably 3 instead of 4.

@M123-dev M123-dev merged commit 4a3b1a9 into develop Dec 2, 2022
@M123-dev M123-dev deleted the chore-dev-mode-scan-adder branch December 2, 2022 16:37
@M123-dev
Copy link
Member Author

M123-dev commented Dec 2, 2022

Thanks for the review @monsieurtanuki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants