Skip to content

Commit 3ec18f0

Browse files
committed
Merge pull request #26 from robertchiras/android_support
Add support for Android OS
2 parents 9f9c72a + 1bd4906 commit 3ec18f0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

binding.gyp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
'target_name': 'binding',
55
'conditions': [
6-
['OS=="linux"', {
6+
['OS=="linux" or OS=="android"', {
77
'sources': [
88
'src/BluetoothHciSocket.cpp'
99
]

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var platform = os.platform();
44

55
if (process.env.BLUETOOTH_HCI_SOCKET_FORCE_USB || platform === 'win32') {
66
module.exports = require('./lib/usb.js');
7-
} else if (platform === 'linux') {
7+
} else if (platform === 'linux' || platform === 'android') {
88
module.exports = require('./lib/native');
99
} else {
1010
throw new Error('Unsupported platform');

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"homepage": "https://github.com/sandeepmistry/node-bluetooth-hci-socket",
2525
"os": [
2626
"linux",
27+
"android",
2728
"win32"
2829
],
2930
"dependencies": {

0 commit comments

Comments
 (0)