Skip to content

Commit c2e7620

Browse files
committed
fix build
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 87e428d commit c2e7620

5 files changed

Lines changed: 19 additions & 10 deletions

File tree

app/src/main/java/com/nextcloud/client/jobs/upload/FileUploadHelper.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,6 @@ class FileUploadHelper {
656656
files: List<OCFile>,
657657
accountName: String
658658
): Pair<List<SyncedFolderEntity>, List<OCFile>> {
659-
660659
val autoUploadFolders = mutableListOf<SyncedFolderEntity>()
661660
val nonAutoUploadFiles = mutableListOf<OCFile>()
662661

app/src/main/java/com/owncloud/android/ui/navigation/NavigatorActivity.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,8 @@ class NavigatorActivity : DrawerActivity() {
105105
this,
106106
object : OnBackPressedCallback(true) {
107107
override fun handleOnBackPressed() {
108-
val onBackPressListener = supportFragmentManager.fragments
109-
.filterIsInstance<NavigatorOnBackPressListener>()
110-
.firstOrNull()
111-
112108
when {
113109
isDrawerOpen -> closeDrawer()
114-
onBackPressListener?.canInterceptBackPress() == true -> onBackPressListener.interceptBackPress()
115110
supportFragmentManager.backStackEntryCount == 1 -> finish()
116111
else -> pop()
117112
}

app/src/main/java/com/owncloud/android/utils/EncryptionUtils.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.google.gson.GsonBuilder;
1818
import com.google.gson.reflect.TypeToken;
1919
import com.nextcloud.client.account.User;
20+
import com.nextcloud.common.SessionTimeOutKt;
2021
import com.nextcloud.utils.e2ee.E2EVersionHelper;
2122
import com.owncloud.android.R;
2223
import com.owncloud.android.datamodel.ArbitraryDataProvider;
@@ -42,7 +43,6 @@
4243
import com.owncloud.android.lib.resources.e2ee.StoreMetadataRemoteOperation;
4344
import com.owncloud.android.lib.resources.e2ee.StoreMetadataV2RemoteOperation;
4445
import com.owncloud.android.lib.resources.e2ee.UnlockFileRemoteOperation;
45-
import com.owncloud.android.lib.resources.e2ee.UnlockFileV1RemoteOperation;
4646
import com.owncloud.android.lib.resources.e2ee.UpdateMetadataRemoteOperation;
4747
import com.owncloud.android.lib.resources.e2ee.UpdateMetadataV2RemoteOperation;
4848
import com.owncloud.android.lib.resources.files.model.ServerFileInterface;
@@ -1166,7 +1166,8 @@ public static boolean verifySHA512(String hashWithSalt, String compareToken) {
11661166
public static String lockFolder(ServerFileInterface parentFile, OwnCloudClient client, long counter) throws UploadException {
11671167
// Lock folder
11681168
LockFileRemoteOperation lockFileOperation = new LockFileRemoteOperation(parentFile.getLocalId(),
1169-
counter);
1169+
counter,
1170+
SessionTimeOutKt.getDefaultSessionTimeOut());
11701171
RemoteOperationResult<String> lockFileOperationResult = lockFileOperation.execute(client);
11711172

11721173
if (lockFileOperationResult.isSuccess() &&
@@ -1366,7 +1367,7 @@ public static RemoteOperationResult<Void> unlockFolder(ServerFileInterface paren
13661367

13671368
public static RemoteOperationResult<Void> unlockFolderV1(ServerFileInterface parentFolder, OwnCloudClient client, String token) {
13681369
if (token != null) {
1369-
return new UnlockFileV1RemoteOperation(parentFolder.getLocalId(), token).execute(client);
1370+
return new UnlockFileRemoteOperation(parentFolder.getLocalId(), token, SessionTimeOutKt.getDefaultSessionTimeOut(), false).execute(client);
13701371
} else {
13711372
return new RemoteOperationResult<>(new Exception("No token available"));
13721373
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
androidCommonLibraryVersion = "0.33.2"
66
androidGifDrawableVersion = "1.2.31"
77
androidImageCropperVersion = "4.7.0"
8-
androidLibraryVersion ="cd6ef9c073cd7c23bd36f9712d1f8c1030cc6804"
8+
androidLibraryVersion ="21d2e1cae1b9d6c6fb472f356c05a215a88e2856"
99
androidPluginVersion = "9.1.0"
1010
androidsvgVersion = "1.4"
1111
androidxMediaVersion = "1.5.1"

gradle/verification-metadata.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
<trusting group="^com[.]android($|([.].*))" regex="true"/>
5858
</trusted-key>
5959
<trusted-key id="0F06FF86BEEAF4E71866EE5232EE5355A6BC6E42">
60+
<trusting group="androidx.annotation"/>
6061
<trusting group="androidx.annotation" name="annotation-experimental" version="1.5.0"/>
6162
<trusting group="androidx.appcompat"/>
6263
<trusting group="androidx.collection"/>
@@ -20909,6 +20910,14 @@
2090920910
<sha256 value="e7ab2429aded8474972439b212bc68e7bd7dd9663abf0cdbd1d448df2476acab" origin="Generated by Gradle" reason="Artifact is not signed"/>
2091020911
</artifact>
2091120912
</component>
20913+
<component group="com.github.nextcloud" name="android-library" version="21d2e1cae1b9d6c6fb472f356c05a215a88e2856">
20914+
<artifact name="android-library-21d2e1cae1b9d6c6fb472f356c05a215a88e2856.aar">
20915+
<sha256 value="2fbe1710b99ab094a4a0c7d1fb6cb32241dfc78188af994fd1ea6e214a754d84" origin="Generated by Gradle" reason="Artifact is not signed"/>
20916+
</artifact>
20917+
<artifact name="android-library-21d2e1cae1b9d6c6fb472f356c05a215a88e2856.module">
20918+
<sha256 value="05ce1ac44f5290dee015ba5df5c0da39baab86eec068c747622057b60a0c52ef" origin="Generated by Gradle" reason="Artifact is not signed"/>
20919+
</artifact>
20920+
</component>
2091220921
<component group="com.github.nextcloud" name="android-library" version="264b979b78f04ed2885c0c06f589fbf4080be932">
2091320922
<artifact name="android-library-264b979b78f04ed2885c0c06f589fbf4080be932.aar">
2091420923
<sha256 value="94784ab20e947be2b8d08cca16a1bc6ea393d1f7513c6df38d04ff6b61ddb846" origin="Generated by Gradle" reason="Artifact is not signed"/>
@@ -26084,6 +26093,11 @@
2608426093
<sha256 value="77ed42c8c8b2cebbb93ac9e07543ff6418aa24bdb8517580cf5324e9a6510956" origin="Generated by Gradle"/>
2608526094
</artifact>
2608626095
</component>
26096+
<component group="com.google.guava" name="guava" version="33.6.0-jre">
26097+
<artifact name="guava-33.6.0-android.jar">
26098+
<sha256 value="9532ca9ba8aceb4cd2067171f981c799988b7f5844e3e274811a3bb757034bc4" origin="Generated by Gradle" reason="Artifact is not signed"/>
26099+
</artifact>
26100+
</component>
2608726101
<component group="com.google.guava" name="guava-parent" version="26.0-android">
2608826102
<artifact name="guava-parent-26.0-android.pom">
2608926103
<sha256 value="f8698ab46ca996ce889c1afc8ca4f25eb8ac6b034dc898d4583742360016cc04" origin="Generated by Gradle"/>

0 commit comments

Comments
 (0)