Skip to content

Commit

Permalink
small improvement in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Aug 8, 2023
1 parent a1816d3 commit d0e108d
Show file tree
Hide file tree
Showing 31 changed files with 18 additions and 19 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions defaultAndroidSettings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}

sourceSets {
String sep = File.separator
main.java.srcDirs += "src${sep}main${sep}kotlin"
Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[versions]

kotlin = "1.8.22"
kotlin = "1.9.0"
kotlin-coroutines = "1.7.3"
kotlin-serialization = "1.5.1"
dokka = "1.8.20"

microutils = "0.19.8"
kslog = "1.1.1"
uuid = "0.7.1"
microutils = "0.20.0"
kslog = "1.2.0"
uuid = "0.8.0"

koin = "3.4.2"
koin = "3.4.3"
compose = "1.4.3"

dexcount = "4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion mppProjectWithSerialization.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ kotlin {
implementation libs.kotlin.test.junit
}
}
androidTest {
androidUnitTest {
dependencies {
implementation libs.kotlin.test.junit
implementation libs.android.test.junit
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
package dev.inmo.navigation.sample.ui

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Button
import androidx.compose.material3.IconButton
import androidx.compose.material3.OutlinedButton
import androidx.compose.material3.Text
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowDown
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import dev.inmo.navigation.core.NavigationNodeState
import dev.inmo.navigation.mvvm.NavigationFragmentComposePlace
import dev.inmo.navigation.mvvm.ViewFragment
import dev.inmo.navigation.sample.R
Expand All @@ -26,34 +29,34 @@ class NavigationViewFragment : ViewFragment<NavigationViewModel, NavigationViewC
override fun BoxScope.Content() {
Column {
Row {
Text(config.text, Modifier.align(Alignment.CenterVertically))
Text(config.text, Modifier.align(Alignment.CenterVertically), color = MaterialTheme.colorScheme.primary)
IconButton(
{
viewModel.back()
},
Modifier.align(Alignment.CenterVertically)
) {
Text(stringResource(R.string.back))
Text(stringResource(R.string.back), color = MaterialTheme.colorScheme.primary)
}
IconButton(
{
viewModel.createSubChain()
},
Modifier.align(Alignment.CenterVertically)
) {
Text(stringResource(R.string.subchain))
Text(stringResource(R.string.subchain), color = MaterialTheme.colorScheme.primary)
}
IconButton(
{
viewModel.createNextNode()
},
Modifier.align(Alignment.CenterVertically)
) {
Text(stringResource(R.string.forward))
Text(stringResource(R.string.forward), color = MaterialTheme.colorScheme.primary)
}
}
Column {
viewModel.subnodesIds.forEach {
for (it in viewModel.subnodesIds) {
NavigationFragmentComposePlace(it)
}
}
Expand Down
File renamed without changes.

0 comments on commit d0e108d

Please sign in to comment.