Aligning barcode config format with barcode generator.

Broke up tests
What are your thoughts on using an `AndroidPreferences` instead of a raw SharedPrefs?