File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
{
4
4
'target_name' : 'binding' ,
5
5
'conditions' : [
6
- ['OS=="linux"' , {
6
+ ['OS=="linux" or OS=="android" ' , {
7
7
'sources' : [
8
8
'src/BluetoothHciSocket.cpp'
9
9
]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var platform = os.platform();
4
4
5
5
if ( process . env . BLUETOOTH_HCI_SOCKET_FORCE_USB || platform === 'win32' ) {
6
6
module . exports = require ( './lib/usb.js' ) ;
7
- } else if ( platform === 'linux' ) {
7
+ } else if ( platform === 'linux' || platform === 'android' ) {
8
8
module . exports = require ( './lib/native' ) ;
9
9
} else {
10
10
throw new Error ( 'Unsupported platform' ) ;
Original file line number Diff line number Diff line change 24
24
"homepage" : " https://github.com/sandeepmistry/node-bluetooth-hci-socket" ,
25
25
"os" : [
26
26
" linux" ,
27
+ " android" ,
27
28
" win32"
28
29
],
29
30
"dependencies" : {
You can’t perform that action at this time.
0 commit comments