aboutsummaryrefslogtreecommitdiff
path: root/wallet/src
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-07-31 08:35:36 -0300
committerTorsten Grote <t@grobox.de>2020-07-31 08:35:36 -0300
commit8562b15381d99e5c1a5c15a64dd124d04b2fab6a (patch)
treedc623c02c42cd7c039cb53701d97c97a1ab662e4 /wallet/src
parent3ceaeb30c2eb1566f5580923c4965d7c23bd7806 (diff)
downloadtaler-android-8562b15381d99e5c1a5c15a64dd124d04b2fab6a.tar.gz
taler-android-8562b15381d99e5c1a5c15a64dd124d04b2fab6a.tar.bz2
taler-android-8562b15381d99e5c1a5c15a64dd124d04b2fab6a.zip
Remove left-over class from libraryfication
(fixes release builds)
Diffstat (limited to 'wallet/src')
-rw-r--r--wallet/src/main/java/net/taler/wallet/MainViewModel.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/MainViewModel.kt b/wallet/src/main/java/net/taler/wallet/MainViewModel.kt
index ffa2dea..2c5e318 100644
--- a/wallet/src/main/java/net/taler/wallet/MainViewModel.kt
+++ b/wallet/src/main/java/net/taler/wallet/MainViewModel.kt
@@ -24,7 +24,6 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.distinctUntilChanged
import androidx.lifecycle.viewModelScope
-import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.KotlinModule
@@ -32,6 +31,8 @@ import com.fasterxml.jackson.module.kotlin.readValue
import net.taler.common.Amount
import net.taler.common.AmountMixin
import net.taler.common.Event
+import net.taler.common.Timestamp
+import net.taler.common.TimestampMixin
import net.taler.common.assertUiThread
import net.taler.common.toEvent
import net.taler.wallet.backend.WalletBackendApi
@@ -95,7 +96,7 @@ class MainViewModel(val app: Application) : AndroidViewModel(app) {
.registerModule(KotlinModule())
.configure(FAIL_ON_UNKNOWN_PROPERTIES, false)
.addMixIn(Amount::class.java, AmountMixin::class.java)
- .enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)
+ .addMixIn(Timestamp::class.java, TimestampMixin::class.java)
val withdrawManager = WithdrawManager(walletBackendApi, mapper)
val paymentManager = PaymentManager(walletBackendApi, mapper)