demo: update multiple dependencies

This commit is contained in:
Oscar Mira 2023-10-25 18:39:33 +02:00
parent 5852add98e
commit 845b556150
5 changed files with 16 additions and 20 deletions

View File

@ -3,21 +3,21 @@ apply plugin: 'org.jetbrains.kotlin.android'
apply plugin: 'com.google.devtools.ksp'
ext {
composeVersion = '1.4.0-alpha04'
composeVersion = '1.6.0-alpha08'
composeCompilerVersion = '1.5.3'
lifecycleVersion = '2.6.0-alpha04'
roomVersion = '2.5.0'
lifecycleVersion = '2.6.2'
roomVersion = '2.6.0'
}
android {
namespace = "im.molly.monero.demo"
compileSdk 33
compileSdk 34
defaultConfig {
applicationId "im.molly.monero.demo"
minSdk 26
targetSdk 33
targetSdk 34
versionCode 1
versionName "1.0"
@ -65,20 +65,20 @@ android {
dependencies {
implementation "androidx.core:core-ktx:1.9.0"
implementation "androidx.compose.ui:ui:$composeVersion"
implementation "androidx.compose.material3:material3:1.1.0-alpha04"
implementation "androidx.compose.material3:material3:1.2.0-alpha10"
implementation "androidx.compose.ui:ui-tooling-preview:$composeVersion"
implementation "com.google.accompanist:accompanist-systemuicontroller:0.28.0"
implementation "com.google.accompanist:accompanist-systemuicontroller:0.32.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime-compose:$lifecycleVersion"
implementation "androidx.activity:activity-compose:1.6.1"
implementation "androidx.activity:activity-compose:1.8.0"
implementation "androidx.datastore:datastore-preferences:1.0.0"
implementation "androidx.room:room-runtime:$roomVersion"
implementation "androidx.room:room-ktx:$roomVersion"
implementation "androidx.navigation:navigation-runtime-ktx:2.5.3"
implementation "androidx.navigation:navigation-compose:2.5.3"
implementation 'androidx.lifecycle:lifecycle-service:2.5.1'
implementation 'androidx.lifecycle:lifecycle-process:2.5.1'
implementation "androidx.navigation:navigation-runtime-ktx:2.7.4"
implementation "androidx.navigation:navigation-compose:2.7.4"
implementation 'androidx.lifecycle:lifecycle-service:2.6.2'
implementation 'androidx.lifecycle:lifecycle-process:2.6.2'
ksp "androidx.room:room-compiler:$roomVersion"
implementation project(':lib')

View File

@ -9,7 +9,6 @@ import androidx.navigation.NavDestination
import androidx.navigation.NavDestination.Companion.hierarchy
import im.molly.monero.demo.ui.navigation.*
@OptIn(ExperimentalMaterial3Api::class, ExperimentalLayoutApi::class)
@Composable
fun DemoApp(
appState: DemoAppState = rememberDemoAppState(),

View File

@ -47,7 +47,6 @@ fun EditRemoteNodeRoute(
)
}
@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun EditRemoteNodeDialog(
remoteNode: RemoteNode,

View File

@ -57,7 +57,6 @@ fun RemoteNodeEditableList(
}
}
@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun RemoteNodeItem(
remoteNode: RemoteNode,
@ -69,8 +68,8 @@ private fun RemoteNodeItem(
onDeleteClick: (RemoteNode) -> Unit = {},
) {
ListItem(
headlineText = { Text(remoteNode.uri.toString()) },
overlineText = { Text(remoteNode.network.name.uppercase()) },
headlineContent = { Text(remoteNode.uri.toString()) },
overlineContent = { Text(remoteNode.network.name.uppercase()) },
trailingContent = {
if (showCheckbox) {
Checkbox(

View File

@ -126,7 +126,6 @@ private fun SettingsSectionTitle(title: String) {
)
}
@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun EditTextSettingsItem(
title: String,
@ -140,8 +139,8 @@ private fun EditTextSettingsItem(
var showDialog by remember { mutableStateOf(false) }
ListItem(
headlineText = { Text(title) },
supportingText = { Text(summary) },
headlineContent = { Text(title) },
supportingContent = { Text(summary) },
trailingContent = { Text(value) },
modifier = Modifier
.clickable(onClick = { showDialog = true }),