Skip to content

Commit 2f3be27

Browse files
committed
stripping away all of the internal jar deps and replacing them with
imports and missing source
1 parent 4acfacb commit 2f3be27

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,10 @@ api 'com.github.kurbatov:firmata4j:2.3.4.1'
302302

303303

304304
testImplementation 'junit:junit:4.10'
305-
api fileTree (dir: 'libs', includes: ['*.jar'])
305+
//api fileTree (dir: 'libs', includes: ['*.jar'])
306+
// https://mvnrepository.com/artifact/com.github.stephengold/jbullet
307+
api group: 'com.github.stephengold', name: 'jbullet', version: '1.0.3'
308+
306309
implementation('de.dfki.mary:voice-cmu-slt-hsmm:5.2.1')
307310
{
308311
exclude group: 'commons-io', module: 'commons-io'
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.neuronrobotics.video;
2+
3+
public class OSUtil {
4+
public static boolean isWindows() {
5+
return System.getProperty("os.name").toLowerCase().contains("windows");
6+
}
7+
8+
public static boolean isLinux() {
9+
return System.getProperty("os.name").toLowerCase().contains("linux");
10+
}
11+
12+
public static boolean isOSX() {
13+
return System.getProperty("os.name").toLowerCase().contains("mac");
14+
}
15+
public static String getOsName() {
16+
return System.getProperty("os.name");
17+
}
18+
//getOsArch
19+
public static String getOsArch() {
20+
return System.getProperty("os.arch");
21+
}
22+
//OSUtil.is64Bit()
23+
public static boolean is64Bit() {
24+
String model = System.getProperty("sun.arch.data.model", System.getProperty("com.ibm.vm.bitmode"));
25+
if (model != null) {
26+
return "64".equals(model);
27+
}
28+
return false;
29+
}
30+
public static boolean isArm() {
31+
return System.getProperty("os.arch").toLowerCase().contains("aarch64")
32+
|| System.getProperty("os.arch").toLowerCase().contains("arm");
33+
}
34+
}

0 commit comments

Comments
 (0)