From 459b3f0c29e48ac242bcde9308bd0d9adfe7439f Mon Sep 17 00:00:00 2001
From: poka <poka@p2p.legal>
Date: Fri, 27 May 2022 12:54:25 +0200
Subject: [PATCH] More debug in snackBar

---
 lib/providers/home.dart          | 2 --
 lib/providers/substrate_sdk.dart | 4 ++--
 pubspec.yaml                     | 2 +-
 scripts/build-apk.sh             | 4 ++--
 4 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/lib/providers/home.dart b/lib/providers/home.dart
index 66cd4e1b..56bf97d8 100644
--- a/lib/providers/home.dart
+++ b/lib/providers/home.dart
@@ -58,8 +58,6 @@ class HomeProvider with ChangeNotifier {
   }
 
   Future<List?> getValidEndpoints() async {
-    configBox.delete('endpoint');
-
     List _listEndpoints = [];
     if (!configBox.containsKey('endpoint') ||
         configBox.get('endpoint') == [] ||
diff --git a/lib/providers/substrate_sdk.dart b/lib/providers/substrate_sdk.dart
index c669c1be..7c4d5747 100644
--- a/lib/providers/substrate_sdk.dart
+++ b/lib/providers/substrate_sdk.dart
@@ -506,7 +506,7 @@ void snackNode(BuildContext context, bool isConnected) {
   String _message;
   if (!isConnected) {
     _message =
-        "Aucun noeud Duniter disponible, veuillez réessayer ultérieurement";
+        "Aucun noeud Duniter disponible, veuillez réessayer ultérieurement:\n${configBox.get('endpoint').first}";
   } else {
     SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
 
@@ -516,7 +516,7 @@ void snackNode(BuildContext context, bool isConnected) {
   final snackBar = SnackBar(
       padding: const EdgeInsets.all(20),
       content: Text(_message, style: const TextStyle(fontSize: 16)),
-      duration: const Duration(seconds: 2));
+      duration: const Duration(seconds: 4));
   ScaffoldMessenger.of(context).showSnackBar(snackBar);
 }
 
diff --git a/pubspec.yaml b/pubspec.yaml
index 855c7062..d5d196ac 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -5,7 +5,7 @@ description: Pay with G1.
 # pub.dev using `pub publish`. This is preferred for private packages.
 publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 
-version: 0.0.6+5
+version: 0.0.6+6
 
 environment:
   sdk: '>=2.12.0 <3.0.0'
diff --git a/scripts/build-apk.sh b/scripts/build-apk.sh
index 755a9ba3..9a2fb853 100755
--- a/scripts/build-apk.sh
+++ b/scripts/build-apk.sh
@@ -22,8 +22,8 @@ else
 #	flutter build apk --release --build-name $VERSION --build-number $BUILD
 fi
 
-if [[ -d $HOME/Nextcloud/Gecko-APK ]]; then
-    DL="$HOME/Nextcloud/Gecko-APK"
+if [[ -d $HOME/kDrive/Gecko-APK ]]; then
+    DL="$HOME/kDrive/Gecko-APK"
 elif [[ -d $HOME/Téléchargements ]]; then
     DL="$HOME/Téléchargements"
 elif [[ -d $HOME/Downloads ]]; then
-- 
GitLab