mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 15:07:51 -05:00
Bump the app-dependencies group with 4 updates (#1867)
* Bump the app-dependencies group with 4 updates Bumps the app-dependencies group with 4 updates: androidx.activity:activity-compose, androidx.compose:compose-bom, [io.mockk:mockk](https://github.com/mockk/mockk) and [io.mockk:mockk-android](https://github.com/mockk/mockk). Updates `androidx.activity:activity-compose` from 1.12.0 to 1.12.1 Updates `androidx.compose:compose-bom` from 2025.11.01 to 2025.12.00 Updates `io.mockk:mockk` from 1.14.5 to 1.14.7 - [Release notes](https://github.com/mockk/mockk/releases) - [Commits](https://github.com/mockk/mockk/compare/1.14.5...1.14.7) Updates `io.mockk:mockk-android` from 1.14.5 to 1.14.7 - [Release notes](https://github.com/mockk/mockk/releases) - [Commits](https://github.com/mockk/mockk/compare/1.14.5...1.14.7) Updates `io.mockk:mockk-android` from 1.14.5 to 1.14.7 - [Release notes](https://github.com/mockk/mockk/releases) - [Commits](https://github.com/mockk/mockk/compare/1.14.5...1.14.7) --- updated-dependencies: - dependency-name: androidx.activity:activity-compose dependency-version: 1.12.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: app-dependencies - dependency-name: androidx.compose:compose-bom dependency-version: 2025.12.00 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: app-dependencies - dependency-name: io.mockk:mockk dependency-version: 1.14.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: app-dependencies - dependency-name: io.mockk:mockk-android dependency-version: 1.14.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: app-dependencies - dependency-name: io.mockk:mockk-android dependency-version: 1.14.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: app-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Override SDK level * Suppress lint warnings for LaunchedEffect / Context.getString * Suppress lint warnings for other Context.getStrings (or replace by stringResource if possible) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Arnau Mora Gras <arnyminerz@proton.me> Co-authored-by: Ricki Hirner <hirner@bitfire.at>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:installLocation="internalOnly">
|
||||
|
||||
<!-- account management permissions not required for own accounts since API level 22 -->
|
||||
@@ -7,4 +8,9 @@
|
||||
<uses-permission android:name="android.permission.GET_ACCOUNTS" android:maxSdkVersion="22"/>
|
||||
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" android:maxSdkVersion="22"/>
|
||||
|
||||
<!--
|
||||
Since Mockk 1.14.7 it's required to use minSdk 26. We use 24, so override for tests.
|
||||
-->
|
||||
<uses-sdk tools:overrideLibrary="io.mockk.android,io.mockk.proxy.android" />
|
||||
|
||||
</manifest>
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
package at.bitfire.davdroid.ui
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import androidx.compose.foundation.clickable
|
||||
@@ -118,6 +119,7 @@ fun TasksCard(
|
||||
context.startActivity(intent)
|
||||
else
|
||||
coroutineScope.launch {
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
snackbarHostState.showSnackbar(
|
||||
message = context.getString(R.string.intro_tasks_no_app_store),
|
||||
duration = SnackbarDuration.Long
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
import android.Manifest
|
||||
import android.accounts.Account
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.widget.Toast
|
||||
import androidx.compose.animation.AnimatedContent
|
||||
@@ -420,6 +421,7 @@ fun AccountScreen(
|
||||
}
|
||||
|
||||
idxWebcal -> {
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
LaunchedEffect(showNoWebcalApp) {
|
||||
if (showNoWebcalApp) {
|
||||
if (snackbarHostState.showSnackbar(
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package at.bitfire.davdroid.ui.account
|
||||
|
||||
import android.accounts.Account
|
||||
import android.annotation.SuppressLint
|
||||
import android.app.Activity
|
||||
import android.security.KeyChain
|
||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||
@@ -609,6 +610,7 @@ fun AuthenticationSettings(
|
||||
onUpdateCredentials(credentials.copy(certificateAlias = newAlias))
|
||||
else
|
||||
scope.launch {
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
if (snackbarHostState.showSnackbar(
|
||||
context.getString(R.string.settings_certificate_alias_empty),
|
||||
actionLabel = context.getString(R.string.settings_certificate_install)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
package at.bitfire.davdroid.ui.account
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
@@ -189,6 +190,7 @@ fun CollectionsList_Item_Standard(
|
||||
modifier = Modifier
|
||||
.padding(start = 4.dp, top = 4.dp, bottom = 4.dp)
|
||||
.semantics {
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
contentDescription = context.getString(R.string.account_synchronize_this_collection)
|
||||
}
|
||||
)
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package at.bitfire.davdroid.ui.account
|
||||
|
||||
import android.accounts.Account
|
||||
import android.annotation.SuppressLint
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.IntrinsicSize
|
||||
@@ -210,6 +211,7 @@ fun CreateCalendarScreen(
|
||||
.fillMaxHeight()
|
||||
.aspectRatio(1f)
|
||||
.semantics {
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
contentDescription = context.getString(R.string.create_collection_color)
|
||||
}
|
||||
) { /* no content */ }
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package at.bitfire.davdroid.ui.composable
|
||||
|
||||
import android.accounts.Account
|
||||
import android.annotation.SuppressLint
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.rounded.Error
|
||||
import androidx.compose.material3.AlertDialog
|
||||
@@ -48,6 +49,7 @@ fun ExceptionInfoDialog(
|
||||
Icon(Icons.Rounded.Error, null)
|
||||
},
|
||||
text = {
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
val message = if (exception is HttpException) {
|
||||
when (exception.statusCode) {
|
||||
403 -> context.getString(R.string.debug_info_http_403_description)
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
package at.bitfire.davdroid.ui.setup
|
||||
|
||||
import android.accounts.Account
|
||||
import android.annotation.SuppressLint
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
@@ -57,6 +58,7 @@ fun AccountDetailsPage(
|
||||
uiState.createdAccount?.let(onAccountCreated)
|
||||
|
||||
val context = LocalContext.current
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
LaunchedEffect(uiState.couldNotCreateAccount) {
|
||||
if (uiState.couldNotCreateAccount) {
|
||||
snackbarHostState.showSnackbar(context.getString(R.string.login_account_not_added))
|
||||
|
||||
@@ -213,7 +213,7 @@ fun GoogleLoginScreen(
|
||||
val privacyPolicyNote = HtmlCompat.fromHtml(
|
||||
stringResource(
|
||||
R.string.login_google_client_privacy_policy,
|
||||
context.getString(R.string.app_name),
|
||||
stringResource(R.string.app_name),
|
||||
privacyPolicyUrl.toString()
|
||||
), 0
|
||||
).toAnnotatedString()
|
||||
@@ -223,7 +223,11 @@ fun GoogleLoginScreen(
|
||||
)
|
||||
|
||||
val limitedUseNote = HtmlCompat.fromHtml(
|
||||
stringResource(R.string.login_google_client_limited_use, context.getString(R.string.app_name), GOOGLE_POLICY_URL), 0
|
||||
stringResource(
|
||||
R.string.login_google_client_limited_use,
|
||||
stringResource(R.string.app_name),
|
||||
GOOGLE_POLICY_URL
|
||||
), 0
|
||||
).toAnnotatedString()
|
||||
Text(
|
||||
text = limitedUseNote,
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
package at.bitfire.davdroid.ui.setup
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.provider.Browser
|
||||
@@ -104,6 +105,7 @@ object NextcloudLogin : LoginType {
|
||||
checkResultCallback.launch(browser)
|
||||
} else
|
||||
this@LaunchedEffect.launch {
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
snackbarHostState.showSnackbar(context.getString(R.string.install_browser))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
package at.bitfire.davdroid.ui.webdav
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
@@ -107,6 +108,7 @@ fun WebdavMountsScreen(
|
||||
val uriHandler = LocalUriHandler.current
|
||||
|
||||
var isRefreshing by remember { mutableStateOf(false) }
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
LaunchedEffect(isRefreshing) {
|
||||
if (isRefreshing) {
|
||||
delay(300)
|
||||
@@ -324,7 +326,11 @@ fun WebdavMountsItem(
|
||||
addCategory(Intent.CATEGORY_OPENABLE)
|
||||
type = "*/*"
|
||||
}
|
||||
val uri = DocumentsContract.buildRootUri(context.getString(R.string.webdav_authority), info.mount.id.toString())
|
||||
@SuppressLint("LocalContextGetResourceValueCall")
|
||||
val uri = DocumentsContract.buildRootUri(
|
||||
context.getString(R.string.webdav_authority),
|
||||
info.mount.id.toString()
|
||||
)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, uri)
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
[versions]
|
||||
android-agp = "8.13.1"
|
||||
android-desugaring = "2.1.5"
|
||||
androidx-activityCompose = "1.12.0"
|
||||
androidx-activityCompose = "1.12.1"
|
||||
androidx-appcompat = "1.7.1"
|
||||
androidx-arch = "2.2.0"
|
||||
androidx-browser = "1.9.0"
|
||||
@@ -22,7 +22,7 @@ bitfire-cert4android = "42d883e958"
|
||||
bitfire-dav4jvm = "de16b12343"
|
||||
bitfire-synctools = "de78892b5c"
|
||||
compose-accompanist = "0.37.3"
|
||||
compose-bom = "2025.11.01"
|
||||
compose-bom = "2025.12.00"
|
||||
conscrypt = "2.5.3"
|
||||
dnsjava = "3.6.3"
|
||||
glance = "1.1.1"
|
||||
@@ -34,7 +34,7 @@ kotlinx-coroutines = "1.10.2"
|
||||
ksp = "2.3.3"
|
||||
ktor = "3.3.3"
|
||||
mikepenz-aboutLibraries = "13.1.0"
|
||||
mockk = "1.14.5"
|
||||
mockk = "1.14.7"
|
||||
okhttp = "5.3.2"
|
||||
openid-appauth = "0.11.1"
|
||||
robolectric = "4.16"
|
||||
|
||||
Reference in New Issue
Block a user