Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
public static final OwnCloudVersion nextcloud_10 = new OwnCloudVersion(0x0A000000); // 10.0
public static final OwnCloudVersion nextcloud_12 = new OwnCloudVersion(0x0C000000); // 12.0
public static final OwnCloudVersion nextcloud_13 = new OwnCloudVersion(0x0D000000); // 13.0
public static final OwnCloudVersion nextcloud_14 = new OwnCloudVersion(0x0E000000); // 14.0

public static final int MINIMUN_VERSION_FOR_CHUNKED_UPLOADS = 0x04050000; // 4.5

Expand All @@ -59,6 +60,8 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
public static final int MINIMUM_VERSION_FOR_SEARCH_API = 0x0C000000;

public static final int MINIMUM_VERSION_FOR_WEB_LOGIN = 0x0C000000;

public static final int MINIMUM_VERSION_FOR_MEDIA_STREAMING = 0x0E000000;

private static final int MAX_DOTS = 3;

Expand Down Expand Up @@ -184,4 +187,8 @@ public boolean isSearchSupported() {
public boolean isWebLoginSupported() {
return mVersion >= MINIMUM_VERSION_FOR_WEB_LOGIN;
}

public boolean isMediaStreamingSupported() {
return mVersion >= MINIMUM_VERSION_FOR_MEDIA_STREAMING;
}
}