Skip to content

Commit

Permalink
[SHARED] Update libs, fix applications layout
Browse files Browse the repository at this point in the history
  • Loading branch information
kamgurgul committed Jan 30, 2025
1 parent 29d9ab7 commit 41e863f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ androidxDatastorePreferences = "1.1.2"
androidxEspresso = "3.6.1"
androidxLifecycle = "2.8.4"
androidxNavigation = "2.8.0-alpha12"
androidxNavigationAndroid = "2.8.5"
androidxNavigationAndroid = "2.8.6"
androidxOrchestrator = "1.5.1"
androidxTestCore = "1.6.1"
androidxTestExt = "1.2.1"
Expand All @@ -19,7 +19,7 @@ baselineprofile = "1.3.3"
benchmarkMacroJunit4 = "1.3.3"
coil = "3.0.4"
composeAdaptive = "1.0.1"
composeUiTest = "1.7.6"
composeUiTest = "1.7.7"
composeMultiplatform = "1.7.3"
dependencyUpdate = "0.52.0"
horologist = "0.7.8-alpha"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ private val previewAppData1 = ExtendedApplicationData(
)

private val previewAppData2 = ExtendedApplicationData(
name = "Cpu Info1",
packageName = "com.kgurgul.cpuinfo1",
name = "Cpu Info1 Cpu Info1 Cpu Info1 Cpu Info1",
packageName = "com.kgurgul.cpuinfo1com.kgurgul.cpuinfo1com.kgurgul.cpuinfo1",
sourceDir = "/testDir",
nativeLibs = emptyList(),
hasNativeLibs = false,
hasNativeLibs = true,
appIconUri = "https://avatars.githubusercontent.com/u/6407041?s=32&v=4",
)
Original file line number Diff line number Diff line change
Expand Up @@ -336,24 +336,27 @@ private fun ApplicationItem(
contentDescription = appData.name,
modifier = Modifier.size(50.dp),
)
SelectionContainer {
Column(
modifier = Modifier.padding(horizontal = spacingXSmall),
) {
Text(
text = appData.name,
style = MaterialTheme.typography.titleMedium,
color = MaterialTheme.colorScheme.onBackground,
)
Text(
text = appData.packageName,
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onBackground,
)
Box(
modifier = Modifier.weight(1f)
) {
SelectionContainer {
Column(
modifier = Modifier.padding(horizontal = spacingXSmall),
) {
Text(
text = appData.name,
style = MaterialTheme.typography.titleMedium,
color = MaterialTheme.colorScheme.onBackground,
)
Text(
text = appData.packageName,
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onBackground,
)
}
}
}
if (appData.hasNativeLibs) {
Spacer(modifier = Modifier.weight(1f))
Spacer(modifier = Modifier.size(spacingXSmall))
IconButton(
onClick = { onNativeLibsClicked(appData.nativeLibs) },
Expand Down

0 comments on commit 41e863f

Please sign in to comment.