add dependencies including zxing,barcodescanner,etc.
implemented the basic scan.