-
After cloning, delete the platforms/android folder. It's convenient to use that folder for now when working on the plugin. We will remove it from the repo after the plugin dev is complete.
-
npm run apply:bitcoincom
-
node_modules/cordova/bin/cordova plugin add ./plugins-bitcoincom/cordova-plugin-qrreader
-
npm run start:android
it will run, but the scanning may not work. -
Add the contents of
plugins-bitcoincom/cordova-plugin-qrreader/src/android/qrreader.gradle
to the end of
platforms/android/build-extras.gradle
Contents presented here for your convenience:
dependencies {
// Important - the CameraSource implementation in this project requires version 8.1 or higher.
compile 'com.google.android.gms:play-services-vision:11.8.0'
}
npm run start:android
Scanning should work now.