taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

commit 3a6662437dd0a017d6d75ea59eda8524e6fb58e9
parent 6d78928d32595832e5b0cae0e52c2d4a7d3873a0
Author: Torsten Grote <t@grobox.de>
Date:   Tue,  1 Nov 2022 13:51:02 -0300

[wallet] Upgrade more libraries to fix lint checks

Diffstat:
Mcashier/build.gradle | 2+-
Mmerchant-terminal/build.gradle | 3+--
Mtaler-kotlin-android/build.gradle | 9+++------
Mwallet/src/main/java/net/taler/wallet/SendFundsFragment.kt | 12+++++++-----
4 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/cashier/build.gradle b/cashier/build.gradle @@ -22,7 +22,7 @@ plugins { } android { - compileSdkVersion 32 + compileSdkVersion 33 //noinspection GradleDependency buildToolsVersion "$build_tools_version" diff --git a/merchant-terminal/build.gradle b/merchant-terminal/build.gradle @@ -6,7 +6,7 @@ plugins { } android { - compileSdkVersion 32 + compileSdkVersion 33 //noinspection GradleDependency buildToolsVersion "$build_tools_version" @@ -54,7 +54,6 @@ android { } } - lint { abortOnError true ignore 'WrongConstant' diff --git a/taler-kotlin-android/build.gradle b/taler-kotlin-android/build.gradle @@ -57,8 +57,8 @@ android { } dependencies { - implementation 'androidx.appcompat:appcompat:1.5.0' - implementation 'androidx.core:core-ktx:1.8.0' + implementation 'androidx.appcompat:appcompat:1.5.1' + implementation 'androidx.core:core-ktx:1.9.0' implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version" // Navigation @@ -72,10 +72,7 @@ dependencies { implementation 'com.google.zxing:core:3.5.0' // needs minSdkVersion 24+ or desugar // JSON parsing and serialization - api 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3' - - api 'com.github.thirdegg:lint-rules:0.1.0' - + api 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0' testImplementation "junit:junit:$junit_version" testImplementation 'org.json:json:20220320' } diff --git a/wallet/src/main/java/net/taler/wallet/SendFundsFragment.kt b/wallet/src/main/java/net/taler/wallet/SendFundsFragment.kt @@ -59,17 +59,19 @@ class SendFundsFragment : Fragment() { private val peerManager get() = model.peerManager override fun onCreateView( - inflater: LayoutInflater, container: ViewGroup?, + inflater: LayoutInflater, + container: ViewGroup?, savedInstanceState: Bundle?, ): View = ComposeView(requireContext()).apply { setContent { MdcTheme { Surface { SendFundsIntro( - model.transactionManager.selectedCurrency ?: error("No currency selected"), - model::hasSufficientBalance, - this@SendFundsFragment::onDeposit, - this@SendFundsFragment::onPeerPush, + currency = model.transactionManager.selectedCurrency + ?: error("No currency selected"), + hasSufficientBalance = model::hasSufficientBalance, + onDeposit = this@SendFundsFragment::onDeposit, + onPeerPush = this@SendFundsFragment::onPeerPush, ) } }