Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13b4cf34 authored by desperateCoder's avatar desperateCoder
Browse files

Merge branch 'nextcloud-master'

parents 33b52f22 c531ed26
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ buildscript {
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
        classpath 'gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.6'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.2.2"
        classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.5.1"
    }
}

@@ -133,14 +133,14 @@ dependencies {
    implementation "androidx.appcompat:appcompat:1.1.0"
    implementation 'androidx.annotation:annotation:1.1.0'
    implementation 'androidx.core:core:1.1.0'
    implementation 'androidx.fragment:fragment:1.1.0'
    implementation 'androidx.fragment:fragment:1.2.1'

    compileOnly "org.projectlombok:lombok:1.18.10"
    annotationProcessor "org.projectlombok:lombok:1.18.10"

    api 'com.google.code.gson:gson:2.8.6'

    implementation 'io.reactivex.rxjava2:rxjava:2.2.16'
    implementation 'io.reactivex.rxjava2:rxjava:2.2.17'

    implementation 'commons-io:commons-io:2.6'

@@ -153,7 +153,7 @@ dependencies {
    ktlint "com.pinterest:ktlint:0.36.0"

    // Required for local unit tests (JUnit 4 framework)
    testImplementation 'junit:junit:4.12'
    testImplementation 'junit:junit:4.13'
    // required if you want to use Mockito for unit tests
    testImplementation 'org.mockito:mockito-core:3.2.4'
}
+3 −2
Original line number Diff line number Diff line
package com.nextcloud.android.sso.helper;

import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.util.Log;
@@ -32,8 +33,8 @@ public final class VersionCheckHelper {
        return true;
    }

    public static int getNextcloudFilesVersionCode(Activity activity) throws PackageManager.NameNotFoundException {
        PackageInfo pInfo = activity.getPackageManager().getPackageInfo("com.nextcloud.client", 0);
    public static int getNextcloudFilesVersionCode(Context context) throws PackageManager.NameNotFoundException {
        PackageInfo pInfo = context.getPackageManager().getPackageInfo("com.nextcloud.client", 0);
        int verCode = pInfo.versionCode;
        Log.e("VersionCheckHelper", "Version Code: " + verCode);
        return verCode;
+3 −3
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
    <string name="no_current_account_selected_exception_message">Zatím nebyl vybrán žádný účet</string>

    <string name="android_get_accounts_permission_not_granted_exception_title">Chyba</string>
    <string name="android_get_accounts_permission_not_granted_exception_message">Pro používání Nextcloud sjednoceného přihlašování (sso) na tomto zařízení je třeba udělit oprávnění pro přístup k vašim účtům</string>
    <string name="android_get_accounts_permission_not_granted_exception_message">Abyste na tomto zařízení mohli využívat Nextcloud sjednoceného přihlašování (sso), je třeba udělit oprávnění pro přístup k vašim účtům</string>

    <string name="current_account_not_found_exception_title">Varování</string>
    <string name="current_account_not_found_exception_message">Vybraný účet nebyl nalezen. Něco se pokazilo…</string>
@@ -19,13 +19,13 @@
    <string name="nextcloud_files_app_account_not_found_message">Účet nebyl v aplikaci Nextcloud Soubory nalezen</string>

    <string name="nextcloud_files_app_account_permission_not_granted_title">Chyba</string>
    <string name="nextcloud_files_app_account_permission_not_granted_message">Pro používání funkce jednotného přihlašování je třeba přijmout požadovaná oprávnění.</string>
    <string name="nextcloud_files_app_account_permission_not_granted_message">Abyste mohli využívat funkci sjednoceného přihlašování, je třeba přijmout požadovaná oprávnění.</string>

    <string name="nextcloud_http_request_failed_title">Chyba</string>
    <string name="nextcloud_http_request_failed_message" formatted="true">HTTP požadavek se nezdařil se stavovým kódem: %1$d</string>

    <string name="nextcloud_files_app_not_supported_title">Chyba</string>
    <string name="nextcloud_files_app_not_supported_message" formatted="true">Vámi používaná verze aplikace Nextcloud Soubory nepodporuje sdružené přihlašování. Aktualizujte ji: %1$s</string>
    <string name="nextcloud_files_app_not_supported_message" formatted="true">Vámi používaná verze aplikace Nextcloud Soubory nepodporuje sjednocené přihlašování. Aktualizujte ji: %1$s</string>


    <string name="nextcloud_files_api_not_responsing_title">Chyba</string>
+38 −0
Original line number Diff line number Diff line
<resources>

    <string name="no_current_account_selected_exception_title">هشدار</string>
    <string name="no_current_account_selected_exception_message">هنوز حساب کاربری انتخاب نشده است</string>

    <string name="android_get_accounts_permission_not_granted_exception_title">خطا</string>
    <string name="android_get_accounts_permission_not_granted_exception_message">برای استفاده از Single-Sign-On نکست کلود در این دستگاه ، باید دسترسی داشته باشید تا به حساب های خود دسترسی پیدا کنید</string>

    <string name="current_account_not_found_exception_title">هشدار</string>
    <string name="current_account_not_found_exception_message">حساب انتخاب شده یافت نشد. مشکلی پیش آمد ..</string>

    <string name="token_mismatch_title">خطا</string>
    <string name="token_mismatch_message">مشروط به تأیید اعتبار ، مطابقت ندارد یا نام بسته برای انجام این کار مجاز نیست</string>

    <string name="nextcloud_files_app_not_installed_title">خطا</string>
    <string name="nextcloud_files_app_not_installed_message" formatted="true">برنامه Nextcloud Files نصب نشده است. لطفاً آن را نصب کنید:%1$s</string>

    <string name="nextcloud_files_app_account_not_found_title">خطا</string>
    <string name="nextcloud_files_app_account_not_found_message">حساب در برنامه فایلهای نکست کلود یافت نشد</string>

    <string name="nextcloud_files_app_account_permission_not_granted_title">خطا</string>
    <string name="nextcloud_files_app_account_permission_not_granted_message">برای استفاده از ویژگی ورود به سیستم مجبورید مجوزهای درخواستی را بپذیرید.</string>

    <string name="nextcloud_http_request_failed_title">خطا</string>
    <string name="nextcloud_http_request_failed_message" formatted="true">درخواست HTTP با کد وضعیت HTTP انجام نشد: %1$d</string>

    <string name="nextcloud_files_app_not_supported_title">خطا</string>
    <string name="nextcloud_files_app_not_supported_message" formatted="true">برنامه پرونده های نکست کلود شما در حال حاضر از ویژگی یک نشانه پشتیبانی نمی کند. لطفا آن را به روز کنید: %1$s</string>


    <string name="nextcloud_files_api_not_responsing_title">خطا</string>
    <string name="nextcloud_files_api_not_responsing_message">api برنامه فایلهای نکست کلود پاسخ نمی دهد. لطفا این مسئله را گزارش کنید</string>

    <string name="select_account_unknown_error_toast">اشتباهی رخ داده لطفا دوباره تلاش کنید</string>
    <string name="sso_canceled">واردکردن SSO لغو شد</string>
    <string name="sso_canceled_message">واردکردن SSO توسط کاربر لغو شد</string>

</resources>
+38 −0
Original line number Diff line number Diff line
<resources>

    <string name="no_current_account_selected_exception_title">Upozorenje</string>
    <string name="no_current_account_selected_exception_message">Još nije odabran nalog</string>

    <string name="android_get_accounts_permission_not_granted_exception_title">Greška</string>
    <string name="android_get_accounts_permission_not_granted_exception_message">Da biste koristili Nekstklaud jednokratnu prijavu na ovom uređaju, morate dati dozvole za pristup nalozima</string>

    <string name="current_account_not_found_exception_title">Upozorenje</string>
    <string name="current_account_not_found_exception_message">Odabrani nalog nije nađen. Nešto je pošlo naopako.</string>

    <string name="token_mismatch_title">Greška</string>
    <string name="token_mismatch_message">Token za proveru identiteta se ne poklapa ili imenu ovog paketa nije dozvoljeno da izvrši ovu radnju</string>

    <string name="nextcloud_files_app_not_installed_title">Greška</string>
    <string name="nextcloud_files_app_not_installed_message" formatted="true">Nekstklaud aplikacija za fajlove nije instalirana. Instalirajte je sa: %1$s</string>

    <string name="nextcloud_files_app_account_not_found_title">Greška</string>
    <string name="nextcloud_files_app_account_not_found_message">Nalog nije nađen u Nekstklaud aplikaciji fajlova</string>

    <string name="nextcloud_files_app_account_permission_not_granted_title">Greška</string>
    <string name="nextcloud_files_app_account_permission_not_granted_message">Morate da prihvatite zahtevane dozvole da biste mogli da koristite mogućnost jednokratne prijave.</string>

    <string name="nextcloud_http_request_failed_title">Error</string>
    <string name="nextcloud_http_request_failed_message" formatted="true">HTTP zahtev nije uspeo sa statusom greške: %1$d</string>

    <string name="nextcloud_files_app_not_supported_title">Error</string>
    <string name="nextcloud_files_app_not_supported_message" formatted="true">Vaša Nekstklaud aplikacija za Fajlove trenutno ne podržava mogućnost jednokratnog prijavljivanja. Ažurirajte je: %1$s</string>


    <string name="nextcloud_files_api_not_responsing_title">Greška</string>
    <string name="nextcloud_files_api_not_responsing_message">API Nekstklaud aplikacije za fajlove se ne odaziva. Prijavite ovu grešku.</string>

    <string name="select_account_unknown_error_toast">Nešto je pošlo naopako... pokušajte ponovo</string>
    <string name="sso_canceled">SSO uvoz je prekinut</string>
    <string name="sso_canceled_message">SSO pristup je prekinut od strane korisnika</string>

</resources>
Loading