diff --git a/README.md b/README.md index ff7e33e..6f18dfe 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This is a Cordova/Phonegap plugin to interact with the BlueBird ruggedized devic ============= This plugin is compatible with plugman. To install, run the following from your project command line: -```$ cordova plugin add https://github.com/BlueFletch/cordova-bluebird-api.git``` +```$ cordova plugin add https://github.com/BlueFletch/cordova-bluebird-api.git --nofetch``` ============== diff --git a/lib/android/com/bluefletch/bluebird/BaseIntentHandler.java b/lib/android/com/bluefletch/bluebird/BaseIntentHandler.java index aff55b8..aba1fa5 100644 --- a/lib/android/com/bluefletch/bluebird/BaseIntentHandler.java +++ b/lib/android/com/bluefletch/bluebird/BaseIntentHandler.java @@ -91,12 +91,12 @@ public void open(ScanCallback openResult) { resultCallbackMap.put(OPEN_REQUEST_ID, openResult); - applicationContext.registerReceiver(dataReceiver, new IntentFilter(getCallbackDataReceivedIntent())); + applicationContext.registerReceiver(dataReceiver, new IntentFilter(getCallbackDataReceivedIntent()), Context.RECEIVER_NOT_EXPORTED); IntentFilter requestFilter = new IntentFilter(); requestFilter.addAction(getCallbackSuccessIntent()); requestFilter.addAction(getCallbackFailedIntent()); - applicationContext.registerReceiver(resultReceiver, requestFilter); + applicationContext.registerReceiver(resultReceiver, requestFilter, Context.RECEIVER_NOT_EXPORTED); Intent openIntent = new Intent(getOpenIntent()); openIntent.putExtra(EXTRA_SEQUENCE_ID, OPEN_REQUEST_ID); diff --git a/package.json b/package.json new file mode 100644 index 0000000..f27064b --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "cordova-bluebird-api", + "version": "1.0.0", + "description": "Cordova Bluebird Plugin\r ============", + "main": "index.js", + "directories": { + "lib": "lib" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/BlueFletch/cordova-bluebird-api.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/BlueFletch/cordova-bluebird-api/issues" + }, + "homepage": "https://github.com/BlueFletch/cordova-bluebird-api#readme" +}