update BarcodeScanner plugin for 2.5.0+