Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55627926e4 | ||
|
|
5c47a2273b |
No files matched your search
@@ -32,10 +32,10 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
if: ${{ always() }}
|
||||
run: scripts/deleteOldComments.sh "test" "Unit" ${{github.event.number}}
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
|
||||
- name: Run unit tests with coverage
|
||||
run: ./gradlew jacocoTestGplayDebugUnitTest
|
||||
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
|
||||
with:
|
||||
arguments: jacocoTestGplayDebugUnitTest
|
||||
- name: Upload failing results
|
||||
if: ${{ failure() }}
|
||||
env:
|
||||
|
||||
+1
-1
@@ -324,7 +324,7 @@ dependencies {
|
||||
qaImplementation project(':appscan')
|
||||
|
||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.13.0'
|
||||
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.6.9'
|
||||
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.6.8'
|
||||
|
||||
implementation "com.google.dagger:dagger:$daggerVersion"
|
||||
implementation "com.google.dagger:dagger-android:$daggerVersion"
|
||||
|
||||
@@ -81,6 +81,7 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.FutureTask;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -524,42 +525,54 @@ public class FileDataStorageManager {
|
||||
* @return the parent file
|
||||
*/
|
||||
public OCFile saveFileWithParent(OCFile ocFile, Context context) {
|
||||
if (ocFile.getParentId() == 0 && !OCFile.ROOT_PATH.equals(ocFile.getRemotePath())) {
|
||||
String remotePath = ocFile.getRemotePath();
|
||||
String parentPath = remotePath.substring(0, remotePath.lastIndexOf(ocFile.getFileName()));
|
||||
try {
|
||||
FutureTask<OCFile> task = new FutureTask<>(() -> {
|
||||
if (ocFile.getParentId() == 0 && !OCFile.ROOT_PATH.equals(ocFile.getRemotePath())) {
|
||||
String remotePath = ocFile.getRemotePath();
|
||||
String parentPath = remotePath.substring(0, remotePath.lastIndexOf(ocFile.getFileName()));
|
||||
|
||||
OCFile parentFile = getFileByPath(parentPath);
|
||||
OCFile returnFile;
|
||||
OCFile parentFile = getFileByPath(parentPath);
|
||||
OCFile returnFile;
|
||||
|
||||
if (parentFile == null) {
|
||||
// remote request
|
||||
ReadFileRemoteOperation operation = new ReadFileRemoteOperation(parentPath);
|
||||
// TODO Deprecated
|
||||
RemoteOperationResult result = operation.execute(getUser(), context);
|
||||
if (result.isSuccess()) {
|
||||
OCFile remoteFolder = FileStorageUtils.fillOCFile((RemoteFile) result.getData().get(0));
|
||||
if (parentFile == null) {
|
||||
// remote request
|
||||
ReadFileRemoteOperation operation = new ReadFileRemoteOperation(parentPath);
|
||||
// TODO Deprecated
|
||||
RemoteOperationResult result = operation.execute(getUser(), context);
|
||||
if (result.isSuccess()) {
|
||||
OCFile remoteFolder = FileStorageUtils.fillOCFile((RemoteFile) result.getData().get(0));
|
||||
|
||||
returnFile = saveFileWithParent(remoteFolder, context);
|
||||
} else {
|
||||
Exception exception = result.getException();
|
||||
String message = "Error during saving file with parents: " + ocFile.getRemotePath() + " / "
|
||||
+ result.getLogMessage();
|
||||
returnFile = saveFileWithParent(remoteFolder, context);
|
||||
} else {
|
||||
Exception exception = result.getException();
|
||||
String message = "Error during saving file with parents: " + ocFile.getRemotePath() + " / "
|
||||
+ result.getLogMessage();
|
||||
|
||||
if (exception != null) {
|
||||
throw new RemoteOperationFailedException(message, exception);
|
||||
if (exception != null) {
|
||||
throw new RemoteOperationFailedException(message, exception);
|
||||
} else {
|
||||
throw new RemoteOperationFailedException(message);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new RemoteOperationFailedException(message);
|
||||
returnFile = saveFileWithParent(parentFile, context);
|
||||
}
|
||||
|
||||
ocFile.setParentId(returnFile.getFileId());
|
||||
saveFile(ocFile);
|
||||
}
|
||||
} else {
|
||||
returnFile = saveFileWithParent(parentFile, context);
|
||||
}
|
||||
|
||||
ocFile.setParentId(returnFile.getFileId());
|
||||
saveFile(ocFile);
|
||||
return ocFile;
|
||||
});
|
||||
|
||||
Thread thread = new Thread(task);
|
||||
thread.start();
|
||||
|
||||
return task.get();
|
||||
} catch (Exception e) {
|
||||
Log_OC.d(TAG,"Exception caught at saveFileWithParent: " + e);
|
||||
return null;
|
||||
}
|
||||
|
||||
return ocFile;
|
||||
}
|
||||
|
||||
public static void clearTempEncryptedFolder(String accountName) {
|
||||
|
||||
@@ -70,7 +70,6 @@ import java.util.List;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.content.res.ResourcesCompat;
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
||||
@@ -1261,11 +1260,9 @@ public final class ThumbnailsCacheManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* adapted from <a href="https://stackoverflow.com/a/8113368">...</a>
|
||||
* adapted from https://stackoverflow.com/a/8113368
|
||||
*/
|
||||
private static Bitmap handlePNG(Bitmap source, int newWidth, int newHeight) {
|
||||
Bitmap softwareBitmap = source.copy(Bitmap.Config.ARGB_8888, false);
|
||||
|
||||
int sourceWidth = source.getWidth();
|
||||
int sourceHeight = source.getHeight();
|
||||
|
||||
@@ -1284,9 +1281,8 @@ public final class ThumbnailsCacheManager {
|
||||
Bitmap dest = Bitmap.createBitmap(newWidth, newHeight, Bitmap.Config.ARGB_8888);
|
||||
|
||||
Canvas canvas = new Canvas(dest);
|
||||
int color = ContextCompat.getColor(MainApp.getAppContext(),R.color.background_color_png);
|
||||
canvas.drawColor(color);
|
||||
canvas.drawBitmap(softwareBitmap, null, targetRect, null);
|
||||
canvas.drawColor(MainApp.getAppContext().getResources().getColor(R.color.background_color_png));
|
||||
canvas.drawBitmap(source, null, targetRect, null);
|
||||
|
||||
return dest;
|
||||
}
|
||||
|
||||
@@ -645,7 +645,6 @@
|
||||
<string name="permission_allow">سماح</string>
|
||||
<string name="permission_deny">رفض</string>
|
||||
<string name="permission_storage_access">الصلاحيات الإضافية المطلوبة لتحميل وتنزيل الملفات.</string>
|
||||
<string name="pick_contact_to_share_with">إختَر جهة اتصال للمشاركة معها</string>
|
||||
<string name="picture_set_as_no_app">لم يتم العثور على تطبيق لتعيين صورة به</string>
|
||||
<string name="pin_home">تثبيت في الشاشة الرئيسية</string>
|
||||
<string name="pin_shortcut_label">فتح %1$s</string>
|
||||
|
||||
@@ -122,7 +122,6 @@
|
||||
<string name="battery_optimization_message">Your device may have battery optimization enabled. AutoUpload works only properly if you exclude this app from it.</string>
|
||||
<string name="battery_optimization_title">Battery optimization</string>
|
||||
<string name="bottom_navigation_menu_assistant_label">Assistant</string>
|
||||
<string name="bottom_navigation_menu_favorites_label">Favourites</string>
|
||||
<string name="bottom_navigation_menu_files_label">All files</string>
|
||||
<string name="bottom_navigation_menu_media_label">Media</string>
|
||||
<string name="brute_force_delay">Delayed due to too many wrong attempts</string>
|
||||
@@ -641,7 +640,6 @@
|
||||
<string name="permission_allow">Allow</string>
|
||||
<string name="permission_deny">Deny</string>
|
||||
<string name="permission_storage_access">Additional permissions required to upload and download files.</string>
|
||||
<string name="pick_contact_to_share_with">Pick contact to share with</string>
|
||||
<string name="picture_set_as_no_app">No app found to set a picture with</string>
|
||||
<string name="pin_home">Pin to Home screen</string>
|
||||
<string name="pin_shortcut_label">Open %1$s</string>
|
||||
|
||||
@@ -641,7 +641,6 @@
|
||||
<string name="permission_allow">Povolit</string>
|
||||
<string name="permission_deny">Odepřít</string>
|
||||
<string name="permission_storage_access">Vyžadována dodatečná oprávnění pro nahrávání a stahování souborů.</string>
|
||||
<string name="pick_contact_to_share_with">Vyberte kontakt kterému nasdílet</string>
|
||||
<string name="picture_set_as_no_app">Nenalezena žádná aplikace pro nastavení obrázku</string>
|
||||
<string name="pin_home">Připnout na domovskou obrazovku</string>
|
||||
<string name="pin_shortcut_label">Otevřít %1$s</string>
|
||||
|
||||
@@ -641,7 +641,6 @@
|
||||
<string name="permission_allow">Zulassen</string>
|
||||
<string name="permission_deny">Ablehnen</string>
|
||||
<string name="permission_storage_access">Sie haben nicht die erforderlichen Rechte, um Dateien hoch- oder herunterzuladen.</string>
|
||||
<string name="pick_contact_to_share_with">Kontakt zum Teilen auswählen</string>
|
||||
<string name="picture_set_as_no_app">Keine App gefunden, mit der ein Bid gesetzt werden könnte</string>
|
||||
<string name="pin_home">An Startbildschirm anheften</string>
|
||||
<string name="pin_shortcut_label">%1$s öffnen</string>
|
||||
|
||||
@@ -85,7 +85,6 @@
|
||||
<string name="battery_optimization_disable">Απενεργοποίηση</string>
|
||||
<string name="battery_optimization_message">Η συσκευή σας ίσως έχει ενεργές ρυθμίσεις εξοικονόμησης ενέργειας. Η αυτόματη μεταφόρτωση δουλεύει μόνο εάν η εφαρμογή εξαιρεθεί από αυτές.</string>
|
||||
<string name="battery_optimization_title">Βελτιστοποίηση μπαταρίας</string>
|
||||
<string name="bottom_navigation_menu_favorites_label">Αγαπημένα</string>
|
||||
<string name="bottom_navigation_menu_files_label">Όλα τα αρχεία</string>
|
||||
<string name="bottom_navigation_menu_media_label">Μέσα ενημέρωσης</string>
|
||||
<string name="brute_force_delay">Καθυστέρηση λόγω πάρα πολλών λανθασμένων προσπαθειών</string>
|
||||
|
||||
@@ -73,7 +73,6 @@
|
||||
<string name="battery_optimization_disable">Malŝalti</string>
|
||||
<string name="battery_optimization_message">Bateria optimumigo estas eble ŝaltita en via aparato. Aŭtomata alŝuto bone funkcias, nur se vi esceptas tiun ĉi aplikaĵon el bateria optimumigo.</string>
|
||||
<string name="battery_optimization_title">Bateria optimumigo</string>
|
||||
<string name="bottom_navigation_menu_favorites_label">Plej ŝatataj</string>
|
||||
<string name="bottom_navigation_menu_files_label">Ĉiuj dosieroj</string>
|
||||
<string name="calendar">Kalendaro</string>
|
||||
<string name="certificate_load_problem">Ekestis problemo dum ŝargo de la atestilo.</string>
|
||||
|
||||
@@ -109,7 +109,6 @@
|
||||
<string name="battery_optimization_message">Su dispositivo puede tener habilitada la optimización de la batería. AutoUpload solo funciona correctamente si excluyes esta aplicación.</string>
|
||||
<string name="battery_optimization_title">Optimización de la batería</string>
|
||||
<string name="bottom_navigation_menu_assistant_label">Asistente</string>
|
||||
<string name="bottom_navigation_menu_favorites_label">Favoritos</string>
|
||||
<string name="bottom_navigation_menu_files_label">Todos los archivos</string>
|
||||
<string name="bottom_navigation_menu_media_label">Media</string>
|
||||
<string name="brute_force_delay">Retrasado debido a demasiados intentos incorrectos</string>
|
||||
|
||||
@@ -110,7 +110,6 @@
|
||||
<string name="battery_optimization_message">Tu dispositivo puede tener activada la optimización de batería. La subida automática solo funciona bien si excluyes de ahí esta app</string>
|
||||
<string name="battery_optimization_title">Optimización de batería</string>
|
||||
<string name="bottom_navigation_menu_assistant_label">Asistente</string>
|
||||
<string name="bottom_navigation_menu_favorites_label">Favoritos</string>
|
||||
<string name="bottom_navigation_menu_files_label">Todos los archivos</string>
|
||||
<string name="bottom_navigation_menu_media_label">Multimedia</string>
|
||||
<string name="brute_force_delay">Retrasado debido a los muchos intentos fallidos</string>
|
||||
|
||||
@@ -641,7 +641,6 @@
|
||||
<string name="permission_allow">Ceadaigh</string>
|
||||
<string name="permission_deny">shéanadh</string>
|
||||
<string name="permission_storage_access">Ceadanna breise a theastaíonn chun comhaid a uaslódáil agus a íoslódáil.</string>
|
||||
<string name="pick_contact_to_share_with">Roghnaigh teagmháil le roinnt leis</string>
|
||||
<string name="picture_set_as_no_app">Níor aimsíodh aon aip chun pictiúr a shocrú leis</string>
|
||||
<string name="pin_home">PIN ar an scáileán Baile</string>
|
||||
<string name="pin_shortcut_label">Oscail %1$s</string>
|
||||
|
||||
@@ -641,7 +641,6 @@
|
||||
<string name="permission_allow">Tillåt</string>
|
||||
<string name="permission_deny">Neka</string>
|
||||
<string name="permission_storage_access">Ytterligare rättigheter krävs för att ladda upp eller hämta filer</string>
|
||||
<string name="pick_contact_to_share_with">Välj kontakt att dela med</string>
|
||||
<string name="picture_set_as_no_app">Ingen app hittades för att ställa in en bild med</string>
|
||||
<string name="pin_home">Fäst upp på hemskärmen</string>
|
||||
<string name="pin_shortcut_label">Öppna %1$s</string>
|
||||
|
||||
@@ -641,7 +641,6 @@
|
||||
<string name="permission_allow">允許</string>
|
||||
<string name="permission_deny">拒絕</string>
|
||||
<string name="permission_storage_access">上傳與下載檔案需要額外的權限。</string>
|
||||
<string name="pick_contact_to_share_with">挑選要分享的聯絡人</string>
|
||||
<string name="picture_set_as_no_app">沒有找到編輯圖片的應用程式</string>
|
||||
<string name="pin_home">釘選至主畫面</string>
|
||||
<string name="pin_shortcut_label">公開 %1$s</string>
|
||||
|
||||
@@ -641,7 +641,6 @@
|
||||
<string name="permission_allow">允許</string>
|
||||
<string name="permission_deny">拒絕</string>
|
||||
<string name="permission_storage_access">上傳與下載檔案需要額外的權能。</string>
|
||||
<string name="pick_contact_to_share_with">挑選要分享的聯絡人</string>
|
||||
<string name="picture_set_as_no_app">沒有找到圖片可設定的應用程式</string>
|
||||
<string name="pin_home">釘選至主畫面</string>
|
||||
<string name="pin_shortcut_label">開啟 %1$s</string>
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ buildscript {
|
||||
markwonVersion = "4.6.2"
|
||||
mockitoVersion = "4.11.0"
|
||||
mockitoKotlinVersion = "4.1.0"
|
||||
mockkVersion = "1.13.14"
|
||||
mockkVersion = "1.13.13"
|
||||
prismVersion = "2.0.0"
|
||||
roomVersion = "2.6.1"
|
||||
workRuntime = "2.10.0"
|
||||
|
||||
@@ -1611,32 +1611,6 @@ bT7DeL2GlUwm61ezo+rDykPQBgHR3QoFJV+rgq6nQHbwVQ==
|
||||
=rVck
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
pub BAC30622339994C4
|
||||
sub FC9BDC25FB378008
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: BCPG v@RELEASE_NAME@
|
||||
|
||||
mQENBFlMExYBCACmdTDSXPwSJeYbfYvHoDl5C7vx/0+LOTunDGJN38pNQHYQAZnv
|
||||
Gyoc9ZmChrhLoim7z4ILqmNo8eegknepQ3dGdUij4NVIhR+m+8irayTbsNHvo3UG
|
||||
9y7eM5tTSjyNYkyk5fAVuT7OhzIzMA+qtc3GRVxNYRKnaHajt+pOSqr+uoDtMG3n
|
||||
6eAMHCAnhgh5Nd+dCFcNT+syl3zCwolA1wrzGxxOaif+xi5wwXjmF/lAt4PDIuDT
|
||||
etA2/AqPM4zAC0BtC0iqVgVypjFV3EAexm/g0LNMiG/M/krzwjPq5gf1DY/57jU0
|
||||
02FpKd79HmR7bHdc4e2olEf9NlHxfbPXDDsHABEBAAG5AQ0EWUwTFgEIANmMpV3N
|
||||
K8aLrLgQTyh5++det8C3D3T5tkEdljHOuN31/qdKNge8H6uKH8zXRZsj5pd8adpW
|
||||
kD4TzIMvzIwzizsGw34O9hf1E2XPoDqvQr39p1sovX3PeDvRJY/7JFNt9DsphVc3
|
||||
xWQfNkC7JdMPa6JRiFHd3ynfbQ+wplf4tfaDVn1JXAWp0NSGgMtXfn5i19hHQWjm
|
||||
RNAKNQLdVn8UczI8XdVM7bS4giDpQMukSyjsjgAo466iRK2+8f8BwIRe1JRvF37B
|
||||
dnbvTg/dzoi1/E4ukwVJD6YE2LlDwzdGno9KxPlRsuY3nnheVgjbrGJ2XKRJkIk8
|
||||
7cMGh41VKw6L4usAEQEAAYkBHwQYAQIACQUCWUwTFgIbDAAKCRC6wwYiM5mUxEiH
|
||||
CACQViGOHi0BoZ78ZJz6L48YNMx8fSdSv3YJ83Ih1n5DWCJgrDV5S3/edYinkoVI
|
||||
0Lusy3MdftRg6OWaYOuOTf6MYcddO/mY363jiMByf9Uh3Dqq4sKqVLRnZbAqgD1o
|
||||
dRoj2NkEQfgEH/H4JRVrxquzAKoWwJh3MhY+kajYJRJyWfc1/Bm3Bj1tcMGlGeIQ
|
||||
fgWheeMg3kxrxJ9TXPqVi6VVPaPKIU5i8l46S+Wg3uvMs8vC3XzOIvhY6cwguJv9
|
||||
UkjZwGDSI952wLqnREMy0gFZ+OAB0qJpYM3nDEekWZP38G80kojnN61tZjRThu9I
|
||||
i8/b+PwSW+nW3EpQZdLqZtOU
|
||||
=2H2i
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
pub BCF4173966770193
|
||||
uid IntelliJ IDEA Sign Key <[email protected]>
|
||||
|
||||
|
||||
+14116
-48
File diff suppressed because it is too large.
Load diff
+8
-8
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:recommended",
|
||||
":gitSignOff"
|
||||
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
||||
extends: [
|
||||
'config:recommended',
|
||||
':gitSignOff',
|
||||
],
|
||||
"timezone": "Europe/Berlin",
|
||||
"labels": [
|
||||
"dependencies",
|
||||
"3. to review"
|
||||
timezone: 'Europe/Berlin',
|
||||
labels: [
|
||||
'dependencies',
|
||||
'3. to review',
|
||||
],
|
||||
}
|
||||
Reference in new issue
Block a user