Skip to content

Commit

Permalink
version: Bump supported version to 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed Feb 14, 2021
1 parent e4f88ea commit a4781f0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,18 @@ public class VersionHandler {
public static final int VERSION_1_14 = 1_14_00;
public static final int VERSION_1_15 = 1_15_00;
public static final int VERSION_1_16 = 1_16_00;
public static final int VERSION_1_17 = 1_17_00;

private static final Pattern pattern = Pattern.compile("(?<version>\\d\\.\\d{1,2}(\\.\\d)?)-.*");

private static int versionCode = -1;

public static boolean isNotSupportedVersion() {
return getVersionCode() < VERSION_1_14 || getVersionCode() >= VERSION_1_16;
return getVersionCode() < VERSION_1_14 || getVersionCode() >= VERSION_1_17;
}

public static boolean isExperimentalSupport() {
return getVersionCode() >= VERSION_1_16;
return false;
}

public static boolean isLegacy() {
Expand Down

0 comments on commit a4781f0

Please sign in to comment.