Skip to content

Commit ebbd7a7

Browse files
MinSDK 21
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent dd52124 commit ebbd7a7

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Licensed under Apache License, Version 2.0.
116116

117117
## Compatibility
118118

119-
Nextcloud Android library is valid for Android version 3.0 and up (with ```android:minSdkVersion="11"``` and ```android:targetSdkVersion="24"```).
119+
Nextcloud Android library is valid for Android version 5.0 and up (with ```android:minSdkVersion="21"``` and ```android:targetSdkVersion="35"```).
120120

121121
Nextcloud Android library supports Nextcloud server from version 9+.
122122

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ android {
138138
}
139139

140140
defaultConfig {
141-
minSdkVersion 19
141+
minSdkVersion 21
142142
targetSdkVersion 35
143143

144144
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

library/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperationResult.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import android.accounts.Account;
2020
import android.accounts.AccountsException;
2121
import android.content.Context;
22-
import android.os.Build;
2322
import android.system.ErrnoException;
2423
import android.system.OsConstants;
2524

@@ -271,7 +270,7 @@ public RemoteOperationResult(Exception e) {
271270

272271
if (e instanceof OperationCancelledException) {
273272
mCode = ResultCode.CANCELLED;
274-
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && e instanceof ErrnoException && ((ErrnoException) e).errno == OsConstants.ENOTCONN) {
273+
} else if (e instanceof ErrnoException && ((ErrnoException) e).errno == OsConstants.ENOTCONN) {
275274
mCode = ResultCode.NO_NETWORK_CONNECTION;
276275
} else if (e instanceof ConnectException) {
277276
mCode = ResultCode.HOST_NOT_AVAILABLE;

sample_client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ android {
4141
}
4242

4343
defaultConfig {
44-
minSdkVersion 19
44+
minSdkVersion 21
4545
targetSdkVersion 35
4646

4747
multiDexEnabled true

0 commit comments

Comments
 (0)