Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Licensed under Apache License, Version 2.0.

## Compatibility

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

Nextcloud Android library supports Nextcloud server from version 9+.

Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ android {
}

defaultConfig {
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 35

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import android.webkit.ClientCertRequest;

import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.core.app.ActivityCompat;
import androidx.core.app.NotificationCompat;
import androidx.core.app.NotificationManagerCompat;
Expand Down Expand Up @@ -455,7 +454,6 @@ public PrivateKey getPrivateKey(@NonNull String alias) {
}

@SuppressWarnings("unused")
@RequiresApi(21)
public void handleWebViewClientCertRequest(@NonNull final ClientCertRequest request) {
Log_OC.d(TAG, "handleWebViewClientCertRequest(keyTypes=" + Arrays.toString(request.getKeyTypes()) +
", issuers=" + Arrays.toString(request.getPrincipals()) + ", hostname=" + request.getHost() +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import android.accounts.Account;
import android.accounts.AccountsException;
import android.content.Context;
import android.os.Build;
import android.system.ErrnoException;
import android.system.OsConstants;

Expand Down Expand Up @@ -271,7 +270,7 @@ public RemoteOperationResult(Exception e) {

if (e instanceof OperationCancelledException) {
mCode = ResultCode.CANCELLED;
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && e instanceof ErrnoException && ((ErrnoException) e).errno == OsConstants.ENOTCONN) {
} else if (e instanceof ErrnoException && ((ErrnoException) e).errno == OsConstants.ENOTCONN) {
mCode = ResultCode.NO_NETWORK_CONNECTION;
} else if (e instanceof ConnectException) {
mCode = ResultCode.HOST_NOT_AVAILABLE;
Expand Down
2 changes: 1 addition & 1 deletion sample_client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {
}

defaultConfig {
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 35

multiDexEnabled true
Expand Down
Loading