gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-android] branch master updated: [merchant-terminal] Refacto


From: gnunet
Subject: [taler-taler-android] branch master updated: [merchant-terminal] Refactor backend version to BuildConfig and bump to 5:0:1
Date: Fri, 08 Sep 2023 12:00:42 +0200

This is an automated email from the git hooks/post-receive script.

torsten-grote pushed a commit to branch master
in repository taler-android.

The following commit(s) were added to refs/heads/master by this push:
     new 26d8690  [merchant-terminal] Refactor backend version to BuildConfig 
and bump to 5:0:1
26d8690 is described below

commit 26d8690003905822204cfc21d701ceacf15c9482
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Thu Sep 7 12:19:03 2023 -0600

    [merchant-terminal] Refactor backend version to BuildConfig and bump to 
5:0:1
---
 merchant-terminal/build.gradle                                         | 2 ++
 .../src/main/java/net/taler/merchantpos/config/ConfigManager.kt        | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/merchant-terminal/build.gradle b/merchant-terminal/build.gradle
index 2ec9c4e..f55f574 100644
--- a/merchant-terminal/build.gradle
+++ b/merchant-terminal/build.gradle
@@ -18,6 +18,8 @@ android {
         versionCode 5
         versionName "0.2.3"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+        buildConfigField("String", "BACKEND_API_VERSION", "\"5:0:1\"")
     }
 
     buildTypes {
diff --git 
a/merchant-terminal/src/main/java/net/taler/merchantpos/config/ConfigManager.kt 
b/merchant-terminal/src/main/java/net/taler/merchantpos/config/ConfigManager.kt
index 2cc0d8c..70c7b18 100644
--- 
a/merchant-terminal/src/main/java/net/taler/merchantpos/config/ConfigManager.kt
+++ 
b/merchant-terminal/src/main/java/net/taler/merchantpos/config/ConfigManager.kt
@@ -40,6 +40,7 @@ import net.taler.common.getIncompatibleStringOrNull
 import net.taler.merchantlib.ConfigResponse
 import net.taler.merchantlib.MerchantApi
 import net.taler.merchantlib.MerchantConfig
+import net.taler.merchantpos.BuildConfig
 import net.taler.merchantpos.R
 
 private const val SETTINGS_NAME = "taler-merchant-terminal"
@@ -52,7 +53,7 @@ internal const val CONFIG_URL_DEMO = 
"https://docs.taler.net/_static/sample-pos-
 internal const val CONFIG_USERNAME_DEMO = ""
 internal const val CONFIG_PASSWORD_DEMO = ""
 
-private val VERSION = Version(3, 0, 1)
+private val VERSION = Version.parse(BuildConfig.BACKEND_API_VERSION)!!
 
 private val TAG = ConfigManager::class.java.simpleName
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]