diff options
author | Torsten Grote <t@grobox.de> | 2022-11-01 13:51:02 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2022-11-01 13:54:10 -0300 |
commit | 6d78928d32595832e5b0cae0e52c2d4a7d3873a0 (patch) | |
tree | c37915111625e6d2cb037c848df1226161cf2175 /wallet | |
parent | 431e326b1b3212bdcb975957306e45958e2e98e5 (diff) | |
download | taler-android-6d78928d32595832e5b0cae0e52c2d4a7d3873a0.tar.gz taler-android-6d78928d32595832e5b0cae0e52c2d4a7d3873a0.tar.bz2 taler-android-6d78928d32595832e5b0cae0e52c2d4a7d3873a0.zip |
[wallet] Upgrade libraries (untested because demo is down again)
Diffstat (limited to 'wallet')
4 files changed, 12 insertions, 22 deletions
diff --git a/wallet/build.gradle b/wallet/build.gradle index 56ae636..bbde001 100644 --- a/wallet/build.gradle +++ b/wallet/build.gradle @@ -20,11 +20,11 @@ plugins { id "com.android.application" id "kotlin-android" id "kotlinx-serialization" - id "de.undercouch.download" + id "de.undercouch.download" version "5.3.0" } -def walletCoreVersion = "v0.9.0-dev.29" -def walletCoreSha256 = "ac613a1624d6a29ff06bd9c8ff1febd341fa63fdd1f5365f6296b2c628c40477" +def walletCoreVersion = "v0.9.0-dev.31" +def walletCoreSha256 = "51ada82946e0676d3e9a8e2352728079c8592d7ac31afc04bf83cc475b071877" static def versionCodeEpoch() { return (new Date().getTime() / 1000).toInteger() @@ -39,7 +39,7 @@ def gitCommit = { -> } android { - compileSdkVersion 32 + compileSdkVersion 33 buildToolsVersion "$build_tools_version" defaultConfig { @@ -91,7 +91,7 @@ android { } composeOptions { - kotlinCompilerExtensionVersion "1.3.0" + kotlinCompilerExtensionVersion "1.3.2" } buildFeatures { @@ -125,13 +125,13 @@ dependencies { implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version" // Compose - implementation 'androidx.activity:activity-compose:1.5.1' + implementation 'androidx.activity:activity-compose:1.6.1' implementation "androidx.compose.material:material:$compose_version" implementation "androidx.compose.animation:animation:$compose_version" implementation "androidx.compose.ui:ui-tooling:$compose_version" implementation "androidx.compose.material:material-icons-extended:$compose_version" implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version" - implementation 'com.google.android.material:compose-theme-adapter:1.1.16' + implementation 'com.google.android.material:compose-theme-adapter:1.1.21' // Lists and Selection implementation "androidx.recyclerview:recyclerview:1.2.1" diff --git a/wallet/src/main/java/net/taler/wallet/MainViewModel.kt b/wallet/src/main/java/net/taler/wallet/MainViewModel.kt index aa9b0f1..e660676 100644 --- a/wallet/src/main/java/net/taler/wallet/MainViewModel.kt +++ b/wallet/src/main/java/net/taler/wallet/MainViewModel.kt @@ -71,7 +71,7 @@ class MainViewModel(val app: Application) : AndroidViewModel(app) { private val api = WalletBackendApi(app) { payload -> if (payload.optString("operation") == "init") { val result = payload.getJSONObject("result") - val versions = result.getJSONObject("supported_protocol_versions") + val versions = result.getJSONObject("versionInfo") exchangeVersion = versions.getString("exchange") merchantVersion = versions.getString("merchant") } else if (payload.getString("type") != "waiting-for-retry") { // ignore ping diff --git a/wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt b/wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt index 74740ca..0af4262 100644 --- a/wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt +++ b/wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt @@ -162,7 +162,7 @@ class PaymentManager( mDepositState.value = DepositState.Error(it.userFacingMsg) }.onSuccess { mDepositState.value = DepositState.FeesChecked( - effectiveDepositAmount = it.effectiveDepositAmount.amount, + effectiveDepositAmount = it.effectiveDepositAmount, ) } } @@ -195,8 +195,8 @@ class PaymentManager( @Serializable data class PrepareDepositResponse( - val totalDepositCost: AmountJson, - val effectiveDepositAmount: AmountJson, + val totalDepositCost: Amount, + val effectiveDepositAmount: Amount, ) @Serializable @@ -204,13 +204,3 @@ data class CreateDepositGroupResponse( val depositGroupId: String, val transactionId: String, ) - -@Serializable -@Deprecated("no idea why this is now in the API") -data class AmountJson( - val currency: String, - val value: Long, - val fraction: Int, -) { - val amount = Amount(currency, value, fraction) -} diff --git a/wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt b/wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt index 50f95c0..0e7ef07 100644 --- a/wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt +++ b/wallet/src/main/java/net/taler/wallet/transactions/TransactionsFragment.kt @@ -161,7 +161,7 @@ class TransactionsFragment : Fragment(), OnTransactionClickListener, ActionMode. // workaround to avoid issues with some emulators and keyboard devices // firing twice if a keyboard enter is used // see https://code.google.com/p/android/issues/detail?id=24599 - item.actionView.clearFocus() + searchView.clearFocus() onSearch(query) return true } |