mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
ci: cache Robolectric SDK jars to prevent flaky SocketException failures (#5045)
This commit is contained in:
parent
93e0b9ca57
commit
1390a3cd4f
34 changed files with 374 additions and 426 deletions
|
|
@ -32,7 +32,7 @@ import co.touchlab.kermit.Logger
|
|||
import org.koin.compose.viewmodel.koinViewModel
|
||||
import org.meshtastic.app.BuildConfig
|
||||
import org.meshtastic.core.model.ConnectionState
|
||||
import org.meshtastic.core.navigation.NodesRoutes
|
||||
import org.meshtastic.core.navigation.NodesRoute
|
||||
import org.meshtastic.core.navigation.rememberMultiBackstack
|
||||
import org.meshtastic.core.resources.Res
|
||||
import org.meshtastic.core.resources.app_too_old
|
||||
|
|
@ -53,7 +53,7 @@ import org.meshtastic.feature.wifiprovision.navigation.wifiProvisionGraph
|
|||
@Composable
|
||||
fun MainScreen() {
|
||||
val viewModel: UIViewModel = koinViewModel()
|
||||
val multiBackstack = rememberMultiBackstack(NodesRoutes.NodesGraph)
|
||||
val multiBackstack = rememberMultiBackstack(NodesRoute.NodesGraph)
|
||||
val backStack = multiBackstack.activeBackStack
|
||||
|
||||
AndroidAppVersionCheck(viewModel)
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import kotlinx.coroutines.flow.emptyFlow
|
|||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.meshtastic.core.navigation.NodesRoutes
|
||||
import org.meshtastic.core.navigation.NodesRoute
|
||||
import org.meshtastic.feature.connections.navigation.connectionsGraph
|
||||
import org.meshtastic.feature.firmware.navigation.firmwareGraph
|
||||
import org.meshtastic.feature.map.navigation.mapGraph
|
||||
|
|
@ -44,7 +44,7 @@ class NavigationAssemblyTest {
|
|||
@Test
|
||||
fun verifyNavigationGraphsAssembleWithoutCrashing() {
|
||||
composeTestRule.setContent {
|
||||
val backStack = rememberNavBackStack(NodesRoutes.NodesGraph)
|
||||
val backStack = rememberNavBackStack(NodesRoute.NodesGraph)
|
||||
entryProvider<NavKey> {
|
||||
contactsGraph(backStack, emptyFlow())
|
||||
nodesGraph(backStack = backStack, scrollToTopEvents = emptyFlow())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue