Skip to content

Commit

Permalink
ADD more descriptive network errors
Browse files Browse the repository at this point in the history
UPDATE gradle compiler version
UPDATE some other things
FIX trnsiflex annoyance strings for compile
BUMP VERSION
  • Loading branch information
animalillo committed Sep 2, 2017
1 parent 50c030b commit a5b824c
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SetupOpenssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

#####################################################################
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/SJCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

#include "SJCL.h";
#include "SJCL.h"
#include <openssl/evp.h>
#include <JSON.h>
#include "base64.h"
Expand Down
8 changes: 7 additions & 1 deletion app/src/main/java/es/wolfi/passman/API/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<HashMap<String, Vault>>() {
Expand All @@ -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;
}
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values-af/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<string name="copied_to_clipboard">Teks na knipbord gekopieer</string>
<string name="vault_password">Kluiswagwoord</string>
<string name="vault_password_save">Bewaar die kluiswagwoord</string>
<string name="wrongNCUrl">Transiflex sucks</string>
<string name="last_accessed">Transiflex sucks</string>
<string name="not_implemented_yet">Nog nie geïmplementeer</string>
<string name="created">Geskep:</string>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values-ast/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@
<string name="vault_password">Contraseña del bagul</string>
<string name="not_implemented_yet">Entá nun s\'implementó</string>
<string name="created">Creóse\'l</string>
<string name="last_accessed">Last accessed:</string>
<string name="vault_password_save">Save the vault password</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<string name="connect">Σύνδεση</string>
<string name="wrongNCUrl">Εσφαλμένη διεύθυνσης URL του Nextcloud ή δεν είναι δυνατή η σύνδεση</string>
<string name="wrongNCSettings">Λανθασμένες ρυθμίσεις</string>
<string name="vault_password">Vault password</string>
<string name="vault_password_save">Save the vault password</string>
<string name="net_error">Σφάλμα δικτύου</string>
<string name="unlock">Ξεκλείδωμα</string>
<string name="wrong_vault_pw">Λανθασμένος κωδικός πρόσβασης θυσαυροφυλακίου </string>
Expand All @@ -17,4 +19,5 @@
<string name="copied_to_clipboard">Κείμενο που αντιγράφηκε στο πρόχειρο</string>
<string name="created">Δημιουργήθηκε:</string>
<string name="last_accessed">Τελευταία προσπέλαση:</string>
<string name="not_implemented_yet">Not implemented yet</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-hu-rHU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<string name="password">Jelszó</string>
<string name="connect">Kapcsolódás</string>
<string name="wrongNCSettings">Hibás beállítások</string>
<string name="wrongNCUrl">Incorrect Nextcloud backend URL or unable to connect</string>
<string name="wrong_vault_pw">Wrong vault password</string>
<string name="not_implemented_yet">Not implemented yet</string>
<string name="vault_password_save">Save the vault password</string>
<string name="net_error">Hálózati hiba</string>
<string name="unlock">Feloldás</string>
<string name="label">Címke</string>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5b824c

Please sign in to comment.