chore(ModuleDetailsScreen): switch from versionRange to more flexible versionPredicate
Allows meeting semantic version compatibility without explicitly naming the top end of the range.
@@ -305,7 +305,7 @@ private String getString(DependencyInfo value) {
public void draw(DependencyInfo value, Canvas canvas) {
Module module = moduleManager.getRegistry().getLatestModuleVersion(value.getId());
- if (module == null || !(value.versionRange().contains(module.getVersion()))) {
+ if (module == null || !(value.versionPredicate().test(module.getVersion()))) {
canvas.setMode("invalid");
} else {
canvas.setMode("available");
