File tree Expand file tree Collapse file tree
main/java/com/owncloud/android/lib/resources/status
test/java/com/owncloud/android/lib/resources/status Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import androidx .annotation .NonNull ;
2121
2222public class OwnCloudVersion implements Comparable <OwnCloudVersion >, Parcelable {
23- public static final OwnCloudVersion nextcloud_17 = new OwnCloudVersion (0x11000000 ); // 17.0
2423 public static final OwnCloudVersion nextcloud_18 = new OwnCloudVersion (0x12000000 ); // 18.0
2524 public static final OwnCloudVersion nextcloud_19 = new OwnCloudVersion (0x13000000 ); // 19.0
2625 public static final OwnCloudVersion nextcloud_20 = new OwnCloudVersion (0x14000000 ); // 20.0
@@ -115,14 +114,6 @@ static protected int getParsedVersion(String version) throws NumberFormatExcepti
115114 return versionValue ;
116115 }
117116
118- public boolean isShareesOnDavSupported () {
119- return isNewerOrEqual (nextcloud_17 );
120- }
121-
122- public boolean isRemoteWipeSupported () {
123- return isNewerOrEqual (nextcloud_17 );
124- }
125-
126117 /*
127118 * Autogenerated Parcelable
128119 */
Original file line number Diff line number Diff line change 1616public class OwnCloudVersionTest {
1717 @ Test
1818 public void testOwnCloudVersion () {
19- OwnCloudVersion version = new OwnCloudVersion ("17 .0.0" );
19+ OwnCloudVersion version = new OwnCloudVersion ("18 .0.0" );
2020
21- assertEquals (0 , version .compareTo (OwnCloudVersion .nextcloud_17 ));
21+ assertEquals (0 , version .compareTo (OwnCloudVersion .nextcloud_18 ));
2222
23- version = new OwnCloudVersion ("17 .99.99" );
23+ version = new OwnCloudVersion ("18 .99.99" );
2424
25- assertEquals (0 , version .compareTo (new OwnCloudVersion (0x11636300 ))); // 13 .99.99 in hex
25+ assertEquals (0 , version .compareTo (new OwnCloudVersion (0x12636300 ))); // 18 .99.99 in hex
2626 }
2727
2828 @ Test
@@ -49,16 +49,6 @@ public void testOwnCloudVersionFailure() {
4949 assertFalse (version .isVersionValid ());
5050 }
5151
52- @ Test
53- public void testSupportNC17 () {
54- assertTrue (OwnCloudVersion .nextcloud_17 .isShareesOnDavSupported ());
55- }
56-
57- @ Test
58- public void testSupportNC18 () {
59- assertTrue (OwnCloudVersion .nextcloud_18 .isShareesOnDavSupported ());
60- }
61-
6252 @ Test
6353 public void testSupportNC21 () {
6454 OwnCloudVersion version = new OwnCloudVersion ("21.0.0" );
You can’t perform that action at this time.
0 commit comments