From a5b824c8fbcab56a1420b6cafd551286933c73db Mon Sep 17 00:00:00 2001 From: WolFi Date: Sat, 2 Sep 2017 23:29:53 +0200 Subject: [PATCH] ADD more descriptive network errors UPDATE gradle compiler version UPDATE some other things FIX trnsiflex annoyance strings for compile BUMP VERSION --- SetupOpenssl.sh | 2 +- app/build.gradle | 4 ++-- app/src/main/cpp/SJCL.cpp | 2 +- app/src/main/java/es/wolfi/passman/API/Core.java | 8 +++++++- app/src/main/res/values-af/strings.xml | 2 ++ app/src/main/res/values-ast/strings.xml | 2 ++ app/src/main/res/values-el/strings.xml | 3 +++ app/src/main/res/values-hu-rHU/strings.xml | 4 ++++ build.gradle | 2 +- 9 files changed, 23 insertions(+), 6 deletions(-) diff --git a/SetupOpenssl.sh b/SetupOpenssl.sh index 38b0eb594..23810ed50 100755 --- a/SetupOpenssl.sh +++ b/SetupOpenssl.sh @@ -31,7 +31,7 @@ _ANDROID_ARCH=arch-arm # Android 5.0, there will likely be another platform added (android-22?). # This value is always used. # _ANDROID_API="android-14" -_ANDROID_API="android-18" +_ANDROID_API="android-19" # _ANDROID_API="android-19" ##################################################################### diff --git a/app/build.gradle b/app/build.gradle index 80333a379..fc55de583 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,8 +28,8 @@ android { applicationId "es.wolfi.app.passman" minSdkVersion 19 targetSdkVersion 23 - versionCode 4 - versionName "0.12" + versionCode 5 + versionName "0.13" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { diff --git a/app/src/main/cpp/SJCL.cpp b/app/src/main/cpp/SJCL.cpp index 6d4496914..d437d4fad 100644 --- a/app/src/main/cpp/SJCL.cpp +++ b/app/src/main/cpp/SJCL.cpp @@ -20,7 +20,7 @@ * */ -#include "SJCL.h"; +#include "SJCL.h" #include #include #include "base64.h" diff --git a/app/src/main/java/es/wolfi/passman/API/Core.java b/app/src/main/java/es/wolfi/passman/API/Core.java index f31fa0060..61dbf56df 100644 --- a/app/src/main/java/es/wolfi/passman/API/Core.java +++ b/app/src/main/java/es/wolfi/passman/API/Core.java @@ -26,6 +26,7 @@ import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Base64; +import android.util.Log; import android.widget.Toast; import com.koushikdutta.async.future.FutureCallback; @@ -134,6 +135,10 @@ public static void checkLogin(final Context c, final boolean toast, final Future String host = ton.getString(SettingValues.HOST.toString()); String user = ton.getString(SettingValues.USER.toString()); String pass = ton.getString(SettingValues.PASSWORD.toString()); + Toast.makeText(c, host, Toast.LENGTH_LONG).show(); + Log.d(LOG_TAG, "Host: " + host); + Log.d(LOG_TAG, "User: " + user); + Log.d(LOG_TAG, "Pass: " + pass); Vault.setUpAPI(host, user, pass); Vault.getVaults(c, new FutureCallback>() { @@ -151,7 +156,8 @@ else if (e.getMessage().contains("Unable to resolve host") || e.getMessage().con ret = false; } else { - if (toast) Toast.makeText(c, c.getString(R.string.net_error), Toast.LENGTH_LONG).show(); + Log.e(LOG_TAG, "Error: " + e.getMessage(), e); + if (toast) Toast.makeText(c, c.getString(R.string.net_error) + ": " + e.getMessage(), Toast.LENGTH_LONG).show(); ret = false; } } diff --git a/app/src/main/res/values-af/strings.xml b/app/src/main/res/values-af/strings.xml index f1b82f8b2..172502d1c 100644 --- a/app/src/main/res/values-af/strings.xml +++ b/app/src/main/res/values-af/strings.xml @@ -16,6 +16,8 @@ Teks na knipbord gekopieer Kluiswagwoord Bewaar die kluiswagwoord + Transiflex sucks + Transiflex sucks Nog nie geïmplementeer Geskep: diff --git a/app/src/main/res/values-ast/strings.xml b/app/src/main/res/values-ast/strings.xml index 559a191f7..fd1562fdb 100644 --- a/app/src/main/res/values-ast/strings.xml +++ b/app/src/main/res/values-ast/strings.xml @@ -18,4 +18,6 @@ Contraseña del bagul Entá nun s\'implementó Creóse\'l + Last accessed: + Save the vault password diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index db5a4d8d0..d492adf89 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -7,6 +7,8 @@ Σύνδεση Εσφαλμένη διεύθυνσης URL του Nextcloud ή δεν είναι δυνατή η σύνδεση Λανθασμένες ρυθμίσεις + Vault password + Save the vault password Σφάλμα δικτύου Ξεκλείδωμα Λανθασμένος κωδικός πρόσβασης θυσαυροφυλακίου @@ -17,4 +19,5 @@ Κείμενο που αντιγράφηκε στο πρόχειρο Δημιουργήθηκε: Τελευταία προσπέλαση: + Not implemented yet diff --git a/app/src/main/res/values-hu-rHU/strings.xml b/app/src/main/res/values-hu-rHU/strings.xml index b7de9d9b9..ccb3956b8 100644 --- a/app/src/main/res/values-hu-rHU/strings.xml +++ b/app/src/main/res/values-hu-rHU/strings.xml @@ -6,6 +6,10 @@ Jelszó Kapcsolódás Hibás beállítások + Incorrect Nextcloud backend URL or unable to connect + Wrong vault password + Not implemented yet + Save the vault password Hálózati hiba Feloldás Címke diff --git a/build.gradle b/build.gradle index 1ea4bd055..c2eea8e27 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.0' + classpath 'com.android.tools.build:gradle:2.3.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files