Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ShimmerBluetoothManager/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ publishing {

groupId = 'com.shimmerresearch' // Replace with your package's group/organization name
artifactId = 'shimmerbluetoothmanager' // Replace with the name of your package
version = '0.11.2_beta' // Replace with your package version
version = '0.11.3_beta' // Replace with your package version

// Jar publication
//(
Expand Down
2 changes: 1 addition & 1 deletion ShimmerDriver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ publishing {

groupId = 'com.shimmerresearch' // Replace with your package's group/organization name
artifactId = 'shimmerdriver' // Replace with the name of your package
version = '0.11.2_beta' // Replace with your package version
version = '0.11.3_beta' // Replace with your package version

// Jar publication
//(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,10 @@ public static String longToHexString(long number, int numBytes) {
}
return bytesToHexString(bytesArray);
}

public static String convertLongToHexString(long longNumber) {
byte[] bytesArray = convertLongToByteArray(longNumber);
return bytesToHexString(bytesArray);
}
public static String doubleArrayToString(double[][] doubleArray) {
String returnString = "";
for(int x=0;x<doubleArray.length;x++){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ public static int[] parseVersion(String version) {
}
return null; // Return null if the format is invalid
}

public String getVersion() {
return mMajor+"."+mMinor+"."+mInternal;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ public void testRoundTwoDecimalPoints() {
assertTrue(UtilShimmer.round(-5.444, 2) == -5.44);
}

@Test
public void testConvertLongToHexString() {
assertEquals("0000000000000000", UtilShimmer.convertLongToHexString(0L));
assertEquals("0000000000000001", UtilShimmer.convertLongToHexString(1L));
assertEquals("00000000ffffffff".toUpperCase(), UtilShimmer.convertLongToHexString(4294967295L)); // max unsigned int
assertEquals("7fffffffffffffff".toUpperCase(), UtilShimmer.convertLongToHexString(Long.MAX_VALUE));
assertEquals("8000000000000000", UtilShimmer.convertLongToHexString(Long.MIN_VALUE));
assertEquals("00000000075bcd15".toUpperCase(), UtilShimmer.convertLongToHexString(123456789L));
}


@Test
public void testRoundNegativeDecimalPoints() {
try {
Expand Down
2 changes: 1 addition & 1 deletion ShimmerDriverPC/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ publishing {

groupId = 'com.shimmerresearch' // Replace with your package's group/organization name
artifactId = 'shimmerdriverpc' // Replace with the name of your package
version = '0.11.2_beta' // Replace with your package version
version = '0.11.3_beta' // Replace with your package version

// Jar publication
//(
Expand Down
Loading