pass GBDevice down to ExternalPebbleJSActivity to determine the platform version (aplite,basalt,chalk)

This commit is contained in:
Andreas Shimokawa
2016-03-03 11:52:30 +01:00
parent 089a59168e
commit 63d938559e
6 changed files with 40 additions and 22 deletions
@@ -0,0 +1,15 @@
package nodomain.freeyourgadget.gadgetbridge.util;
public class PebbleUtils {
public static String getPlatformName(String hwRev) {
String platformName;
if (hwRev.startsWith("snowy")) {
platformName = "basalt";
} else if (hwRev.startsWith("spalding")) {
platformName = "chalk";
} else {
platformName = "aplite";
}
return platformName;
}
}