Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/comments_loading' into fix/c…
Browse files Browse the repository at this point in the history
…omments_loading
  • Loading branch information
tobiasKaminsky committed Feb 7, 2024
2 parents abda273 + b3d80cb commit 97e0ef1
Show file tree
Hide file tree
Showing 20 changed files with 221 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autoApproveDependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
pull-requests: write

steps:
- uses: hmarr/auto-approve-action@44888193675f29a83e04faf4002fa8c0b537b1e4 # v3.2.1
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/autoApproveSync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
steps:
- uses: hmarr/auto-approve-action@44888193675f29a83e04faf4002fa8c0b537b1e4 # v3.2.1
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
swap-size-gb: 10
- name: Initialize CodeQL
uses: github/codeql-action/init@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
uses: github/codeql-action/init@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
with:
languages: ${{ matrix.language }}
- name: Set up JDK 17
Expand All @@ -46,4 +46,4 @@ jobs:
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
./gradlew assembleDebug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
uses: github/codeql-action/analyze@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1.1.0
- uses: gradle/wrapper-validation-action@27152f6fa06a6b8062ef7195c795692e51fc2c81 # v2.0.0
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@b7bf0a3ed3ecfa44160715d7c442788f65f0f923 # v3.23.2
uses: github/codeql-action/upload-sarif@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
with:
sarif_file: results.sarif
4 changes: 2 additions & 2 deletions .github/workflows/screenShotTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@99a4aac18b4df9b3af66c4a1f04c1f23fa10c270 # v2.29.0
uses: reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2.30.1
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
Expand All @@ -73,7 +73,7 @@ jobs:
run: scripts/deleteOldComments.sh "${{ matrix.color }}-${{ matrix.scheme }}" "Screenshot" ${{github.event.number}}

- name: Run screenshot tests
uses: reactivecircus/android-emulator-runner@99a4aac18b4df9b3af66c4a1f04c1f23fa10c270 # v2.29.0
uses: reactivecircus/android-emulator-runner@6b0df4b0efb23bb0ec63d881db79aefbc976e4b2 # v2.30.1
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
if: ${{ always() }}
run: scripts/deleteOldComments.sh "test" "Unit" ${{github.event.number}}
- name: Run unit tests with coverage
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
uses: gradle/gradle-build-action@3b1b3b9a2104c2b47fbae53f3938079c00c9bb87 # v3.0.0
with:
arguments: jacocoTestGplayDebugUnitTest
- name: Upload failing results
Expand All @@ -39,7 +39,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "test" "Unit" ${{github.event.number}}
- name: Upload coverage to codecov
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
Expand Down
28 changes: 14 additions & 14 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
classpath "com.android.tools.build:gradle:$androidPluginVersion"
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.7'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.4"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.5"
classpath "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
classpath 'com.karumi:shot:5.14.1'
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
Expand All @@ -19,7 +19,7 @@ buildscript {

plugins {
id "com.diffplug.spotless" version "6.20.0"
id 'com.google.devtools.ksp' version '1.8.22-1.0.11' apply false
id 'com.google.devtools.ksp' version '1.9.22-1.0.17' apply false
}

apply plugin: 'com.android.application'
Expand Down Expand Up @@ -255,19 +255,19 @@ dependencies {
implementation 'com.google.android.material:material:1.11.0'
implementation 'com.jakewharton:disklrucache:2.0.2'
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation 'androidx.webkit:webkit:1.7.0'
implementation 'androidx.webkit:webkit:1.10.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.3.7'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0"
implementation "androidx.work:work-runtime:$workRuntime"
implementation "androidx.work:work-runtime-ktx:$workRuntime"
implementation "androidx.fragment:fragment-ktx:1.6.1"
implementation "androidx.fragment:fragment-ktx:1.6.2"
implementation 'com.github.albfernandez:juniversalchardet:2.0.3' // need this version for Android <7
compileOnly 'com.google.code.findbugs:annotations:3.0.1u2'
implementation 'commons-io:commons-io:2.13.0'
implementation 'commons-io:commons-io:2.15.1'
implementation 'org.greenrobot:eventbus:3.3.1'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.12.0'
implementation 'org.lukhnos:nnio:0.2'
implementation 'org.lukhnos:nnio:0.3'
implementation 'org.bouncycastle:bcpkix-jdk18on:1.75'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.github.nextcloud-deps:sectioned-recyclerview:0.6.1'
Expand All @@ -279,8 +279,8 @@ dependencies {
exclude group: "com.android.support"
}
implementation 'com.caverock:androidsvg:1.4'
implementation 'androidx.annotation:annotation:1.6.0'
implementation 'com.vanniktech:emoji-google:0.17.0'
implementation 'androidx.annotation:annotation:1.7.1'
implementation 'com.vanniktech:emoji-google:0.18.0'

implementation "com.github.nextcloud-deps.hwsecurity:hwsecurity-fido:$fidoVersion"
implementation "com.github.nextcloud-deps.hwsecurity:hwsecurity-fido2:$fidoVersion"
Expand Down Expand Up @@ -333,7 +333,7 @@ dependencies {
}

if (perfAnalysis) {
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.13'
}

// dependencies for local unit tests
Expand All @@ -351,8 +351,8 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation "androidx.test:rules:$androidxTestVersion"
// Android JUnit Runner
androidTestImplementation "androidx.test:runner:$androidxTestVersion"
androidTestUtil "androidx.test:orchestrator:$androidxTestVersion"
androidTestImplementation "androidx.test:runner:1.5.2"
androidTestUtil "androidx.test:orchestrator:1.4.2"
androidTestImplementation "androidx.test:core-ktx:$androidxTestVersion"

// Espresso
Expand Down Expand Up @@ -390,7 +390,7 @@ dependencies {
ksp "androidx.room:room-compiler:$roomVersion"
androidTestImplementation "androidx.room:room-testing:$roomVersion"

implementation "io.coil-kt:coil:2.4.0"
implementation "io.coil-kt:coil:2.5.0"

// splash screen dependency ref: https://developer.android.com/develop/ui/views/launch/splash-screen/migrate
implementation 'androidx.core:core-splashscreen:1.0.1'
Expand All @@ -399,7 +399,7 @@ dependencies {
configurations.configureEach {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
force 'org.objenesis:objenesis:2.6'
force 'org.objenesis:objenesis:3.3'
eachDependency { details ->
if ('org.jacoco' == details.requested.group) {
details.useVersion "$jacoco_version"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@
<string name="prefs_recommend">Recomendar a un amigo</string>
<string name="prefs_remove_e2e">Eliminar cifrado localmente</string>
<string name="prefs_setup_e2e">Configurar el cifrado de extremo a extremo</string>
<string name="prefs_show_ecosystem_apps">Mostrar conmutador de la app</string>
<string name="prefs_show_ecosystem_apps">Mostrar conmutador de apps</string>
<string name="prefs_show_ecosystem_apps_summary">Sugerencias de Nextcloud app en encabezado de navegación</string>
<string name="prefs_show_hidden_files">Mostrar archivos ocultos</string>
<string name="prefs_sourcecode">Obtener el código fuente</string>
Expand Down Expand Up @@ -934,6 +934,7 @@
<string name="uploads_view_upload_status_fetching_server_version">Obteniendo la versión del servidor…</string>
<string name="uploads_view_upload_status_service_interrupted">La aplicación se ha interrumpido</string>
<string name="uploads_view_upload_status_succeeded">Completado</string>
<string name="uploads_view_upload_status_succeeded_same_file">Se encontró el mismo archivo en el remoto, omitiendo subida</string>
<string name="uploads_view_upload_status_unknown_fail">Error desconocido</string>
<string name="uploads_view_upload_status_virus_detected">Virus detectado. ¡No se ha podido subir!</string>
<string name="uploads_view_upload_status_waiting_exit_power_save_mode">Esperando a salir del modo de ahorro de batería</string>
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/values-eu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<string name="autoupload_custom_folder">Konfiguratu karpeta berria</string>
<string name="autoupload_disable_power_save_check">Desgaitu energia aurrezteko kontrola</string>
<string name="autoupload_hide_folder">Ezkutatu karpeta</string>
<string name="autoupload_worker_foreground_info">Igoera automatikoa prestatzen</string>
<string name="avatar">Abatarra</string>
<string name="away">Kanpoan</string>
<string name="backup_settings">Babeskopiaren ezarpenak</string>
Expand Down Expand Up @@ -220,11 +221,15 @@
<string name="downloader_download_failed_credentials_error">Deskargak huts egin du, hasi saioa berriz</string>
<string name="downloader_download_failed_ticker">Deskargak huts egin du</string>
<string name="downloader_download_file_not_found">Fitxategia jadanik ez dago eskuragarri zerbitzarian</string>
<string name="downloader_download_in_progress">%1$d%% %2$s</string>
<string name="downloader_download_in_progress_content">%1$d%% Deskargatzen %2$s</string>
<string name="downloader_download_in_progress_ticker">Deskargatzen…</string>
<string name="downloader_download_succeeded_content">%1$s deskargatuta</string>
<string name="downloader_download_succeeded_ticker">Deskargatuta</string>
<string name="downloader_file_download_cancelled">Erabiltzaileak fitxategi batzuen deskarga bertan behera utzi ditu</string>
<string name="downloader_file_download_failed">Errore bat gertatu da fitxategiak deskargatzean</string>
<string name="downloader_not_downloaded_yet">Oraindik deskargatu gabe</string>
<string name="downloader_unexpected_error">Ustekabeko errorea gertatu da fitxategiak deskargatzean</string>
<string name="drawer_close">Itxi alboko barra</string>
<string name="drawer_community">Komunitatea</string>
<string name="drawer_header_background">Goiburuko kutxaren atzeko planoaren irudia</string>
Expand Down Expand Up @@ -678,6 +683,8 @@
<string name="screenshot_06_davdroid_heading">Egutegia eta kontaktuak</string>
<string name="screenshot_06_davdroid_subline">Sinkronizatu DAVx5ekin</string>
<string name="search_error">Errorea bilaketaren emaitzak lortzean</string>
<string name="secure_share_not_set_up">Partekatze segurua ez dago konfiguratuta erabiltzaile honentzat</string>
<string name="secure_share_search">Partekatze segurua...</string>
<string name="select_all">Hautatu dena</string>
<string name="select_media_folder">Ezarri multimedia karpeta</string>
<string name="select_one_template">Hautatu txantiloi bat</string>
Expand Down Expand Up @@ -882,7 +889,10 @@
<string name="uploader_error_message_source_file_not_found">Kargatzeko hautatutako fitxategia ez da aurkitu. Mesedez, egiaztatu fitxategia existitzen dela.</string>
<string name="uploader_error_title_file_cannot_be_uploaded">Fitxategi hau ezin da igo</string>
<string name="uploader_error_title_no_file_to_upload">Ez dago fitxategirik kargatzeko</string>
<string name="uploader_file_not_found_message">Fitxategia ez da aurkitu. Ziur al zaude fitxategi hau badagoela edo aurretik konpondu gabeko gatazka bat duela?</string>
<string name="uploader_file_not_found_on_server_message">Ezin izan dugu fitxategia zerbitzarian kokatu. Baliteke beste erabiltzaile batek fitxategia ezabatu izana</string>
<string name="uploader_info_dirname">Karpetaren izena</string>
<string name="uploader_local_files_uploaded">Saiatu berriro huts egin duten tokiko fitxategiak kargatzen</string>
<string name="uploader_top_message">Aukeratu karga-karpeta</string>
<string name="uploader_upload_failed_content_single">Ezin da %1$s igo</string>
<string name="uploader_upload_failed_credentials_error">Kargatzeak huts egin du, hasi saioa berriz</string>
Expand All @@ -895,6 +905,7 @@
<string name="uploader_upload_files_behaviour_only_upload">Mantendu fitxategia jatorrizko karpetan</string>
<string name="uploader_upload_files_behaviour_upload_and_delete_from_source">Ezabatu fitxategia jatorrizko karpetatik</string>
<string name="uploader_upload_forbidden_permissions">kargatzeko karpeta honetara</string>
<string name="uploader_upload_in_progress">%1$d%% %2$s</string>
<string name="uploader_upload_in_progress_content">%1$d%% Igotzen %2$s</string>
<string name="uploader_upload_in_progress_ticker">Kargatzen…</string>
<string name="uploader_upload_succeeded_content_single">%1$s igota</string>
Expand All @@ -919,6 +930,7 @@
<string name="uploads_view_upload_status_fetching_server_version">Zerbitzariko bertsioa ekartzen...</string>
<string name="uploads_view_upload_status_service_interrupted">App-ak bukatu du</string>
<string name="uploads_view_upload_status_succeeded">Betea</string>
<string name="uploads_view_upload_status_succeeded_same_file">Fitxategi bera aurkitu da zerbitzarian, igoera saltatu da</string>
<string name="uploads_view_upload_status_unknown_fail">Errore ezezaguna</string>
<string name="uploads_view_upload_status_virus_detected">Birusa detektatuta. Igoera ezin da osatu!</string>
<string name="uploads_view_upload_status_waiting_exit_power_save_mode">Itxaron irteteko energia aurrezteko modutik</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-nb-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@
<string name="uploads_view_upload_status_fetching_server_version">Henter serverversjon...</string>
<string name="uploads_view_upload_status_service_interrupted">Appen ble avsluttet</string>
<string name="uploads_view_upload_status_succeeded">Ferdig</string>
<string name="uploads_view_upload_status_succeeded_same_file">Samme fil funnet på ekstern, dropper opplasting</string>
<string name="uploads_view_upload_status_unknown_fail">Ukjent feil</string>
<string name="uploads_view_upload_status_virus_detected">Virus oppdaget. Opplasting kan ikke fullføres.</string>
<string name="uploads_view_upload_status_waiting_exit_power_save_mode">Venter på å gå ut av strømsparingsmodus</string>
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values-sv/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
<string name="downloader_download_failed_credentials_error">Hämtningen misslyckades, logga in igen</string>
<string name="downloader_download_failed_ticker">Hämtning misslyckades</string>
<string name="downloader_download_file_not_found">Filen är inte längre tillgänglig på servern</string>
<string name="downloader_download_in_progress">%1$d%%%2$s</string>
<string name="downloader_download_in_progress_content">%1$d%% Hämtar %2$s</string>
<string name="downloader_download_in_progress_ticker">Hämtar…</string>
<string name="downloader_download_succeeded_content">%1$s hämtad</string>
Expand Down Expand Up @@ -908,6 +909,7 @@
<string name="uploader_upload_files_behaviour_only_upload">Behåll fil i källmappen</string>
<string name="uploader_upload_files_behaviour_upload_and_delete_from_source">Ta bort fil från källmappen</string>
<string name="uploader_upload_forbidden_permissions">att ladda upp denna mapp</string>
<string name="uploader_upload_in_progress">%1$d%%%2$s</string>
<string name="uploader_upload_in_progress_content">%1$d%% Laddar upp %2$s</string>
<string name="uploader_upload_in_progress_ticker">Laddar upp…</string>
<string name="uploader_upload_succeeded_content_single">%1$s uppladdad</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-tr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@
<string name="uploads_view_upload_status_fetching_server_version">Sunucu sürümü alınıyor…</string>
<string name="uploads_view_upload_status_service_interrupted">Uygulama sonlandırıldı</string>
<string name="uploads_view_upload_status_succeeded">Tamamlandı</string>
<string name="uploads_view_upload_status_succeeded_same_file">Uzakta aynı dosya var olduğundan yüklenmedi</string>
<string name="uploads_view_upload_status_unknown_fail">Bilinmeyen sorun</string>
<string name="uploads_view_upload_status_virus_detected">Virus bulundu. Yükleme tamamlanamadı!</string>
<string name="uploads_view_upload_status_waiting_exit_power_save_mode">Güç tasarrufu kipinden çıkılması bekleniyor</string>
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ buildscript {
androidPluginVersion = '8.2.2'
appCompatVersion = '1.6.1'
jacoco_version = '0.8.11'
kotlin_version = '1.8.22'
androidxTestVersion = "1.4.0"
kotlin_version = '1.9.22'
androidxTestVersion = "1.5.0"
daggerVersion = "2.50"
markwonVersion = "4.6.2"
prismVersion = "2.0.0"
androidLibraryVersion = "master-SNAPSHOT"
androidLibraryVersion = "9bfb850257"
mockitoVersion = "4.11.0"
mockitoKotlinVersion = "4.1.0"
mockkVersion = "1.13.9"
Expand All @@ -18,7 +18,7 @@ buildscript {
checkerVersion = "3.21.2"
exoplayerVersion = "2.19.1"
documentScannerVersion = "1.1.1"
roomVersion = "2.5.2"
roomVersion = "2.6.1"

ciBuild = System.getenv("CI") == "true"
}
Expand Down
Loading

0 comments on commit 97e0ef1

Please sign in to comment.