Commit b18292e1 authored by T Dev. D's avatar T Dev. D 😎
Browse files

Merge branch 'dojo' into staging

parents e0436492 c3d53e7d
......@@ -143,6 +143,31 @@ public class DojoUtil {
}
public boolean isP2TR() {
if(dojoParams == null || dojoVersion == null) {
return false;
}
// version 1.13.x
String[] s = dojoVersion.split(".");
try {
if(s.length >= 1 && Integer.parseInt(s[0]) > 1) {
return true;
}
else if(s.length >= 2 && Integer.parseInt(s[0]) == 1 && Integer.parseInt(s[1]) >= 13){
return true;
}
else {
return false;
}
}
catch(NumberFormatException nfe) {
return false;
}
}
public String getVersion(String data) {
if(!isValidPairingPayload(data)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment