diff options
author | Sven Gothel <[email protected]> | 2020-08-25 03:56:10 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-08-25 03:56:10 +0200 |
commit | 2d6c05f88c379f9091d291aad90fc03e4ea10b33 (patch) | |
tree | 530ac76b7a72e48e38f65c8f7bb03964c6f91019 | |
parent | 716fc95e0af147e3d3448cc3fbd291a95cc578fa (diff) |
BluetoothFactory: Disable codepath using OS_AND_ARCH library basename feature for now
Was introduced in commit 70e9b98afce8d9e6f1e7ce5eb477bc8503950cbe
Requires more discussion about clean implementation of platform independent deployment etc.
-rw-r--r-- | java/org/tinyb/BluetoothFactory.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/java/org/tinyb/BluetoothFactory.java b/java/org/tinyb/BluetoothFactory.java index 9b5d98cd..fb1afdca 100644 --- a/java/org/tinyb/BluetoothFactory.java +++ b/java/org/tinyb/BluetoothFactory.java @@ -212,12 +212,18 @@ public class BluetoothFactory { } } } + @SuppressWarnings("unused") private static synchronized void loadLibraries(final ImplementationIdentifier id) { final String os_and_arch; - final String os_name = System.getProperty("os.name").toLowerCase(); - final String os_arch = System.getProperty("os.arch").toLowerCase(); - if( null != os_name && os_name.length() > 0 && null != os_arch && os_arch.length() > 0 ) { - os_and_arch = os_name+"-"+os_arch; + if( false ) { + // disable os_and_arch feature for now... + final String os_name = System.getProperty("os.name").toLowerCase(); + final String os_arch = System.getProperty("os.arch").toLowerCase(); + if( null != os_name && os_name.length() > 0 && null != os_arch && os_arch.length() > 0 ) { + os_and_arch = os_name+"-"+os_arch; + } else { + os_and_arch = null; + } } else { os_and_arch = null; } |