taler-android

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

commit 447d1f78f17e2c51ef867990d29bbfb12fc06ed7
parent ab1f720236e802fbccce27c2f105c06df1a15b6f
Author: Iván Ávalos <avalos@disroot.org>
Date:   Sat,  2 Aug 2025 00:32:03 +0200

[wallet] fix fileprovider ID conflict between build flavors

Diffstat:
Mwallet/src/main/AndroidManifest.xml | 2+-
Mwallet/src/main/java/net/taler/wallet/compose/ShareButton.kt | 6+++++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/wallet/src/main/AndroidManifest.xml b/wallet/src/main/AndroidManifest.xml @@ -97,7 +97,7 @@ <provider android:name="androidx.core.content.FileProvider" - android:authorities="net.taler.wallet.fileprovider" + android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data diff --git a/wallet/src/main/java/net/taler/wallet/compose/ShareButton.kt b/wallet/src/main/java/net/taler/wallet/compose/ShareButton.kt @@ -36,6 +36,7 @@ import androidx.compose.ui.res.stringResource import androidx.core.content.ContextCompat.startActivity import kotlinx.coroutines.launch import net.taler.common.shareAsQrCode +import net.taler.wallet.BuildConfig import net.taler.wallet.R @Composable @@ -53,7 +54,10 @@ fun ShareButton( colors = colors, onClick = { if (shareAsQrCode) { - scope.launch { content.shareAsQrCode(context, "net.taler.wallet.fileprovider") } + scope.launch { content.shareAsQrCode( + context, + "${BuildConfig.APPLICATION_ID}.fileprovider", + ) } } else { val sendIntent: Intent = Intent().apply { action = ACTION_SEND