Skip to content

Commit

Permalink
Lowered min Android version to 21
Browse files Browse the repository at this point in the history
  • Loading branch information
chRyNaN committed May 22, 2023
1 parent 40e8c8d commit 89c27f1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ object LibraryConstants {
object Android {

const val compileSdkVersion = 33
const val minSdkVersion = 23
const val minSdkVersion = 21
const val targetSdkVersion = 33
}
}
8 changes: 7 additions & 1 deletion navigation-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ kotlin {
jvm()

js(IR) {
browser()
browser {
testTask {
useKarma {
useFirefox()
}
}
}
nodejs()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ internal class NavigationContextStacksTest {

assertEquals(expected = 2, actual = stack.size)
assertEquals(expected = TestDestination.CHANNEL_DETAILS, actual = stack.peek())
assertEquals(expected = TestDestination.FAVORITES, actual = stack.first())
assertEquals(expected = TestDestination.CHANNEL_DETAILS, actual = stack.first())
assertEquals(expected = TestDestination.FAVORITES, actual = stack.last())
}

@Test
Expand All @@ -111,14 +112,18 @@ internal class NavigationContextStacksTest {

assertEquals(expected = 2, actual = stack.size)
assertEquals(expected = TestDestination.ITEM_DETAILS, actual = stack.peek())
assertEquals(expected = TestDestination.HOME, actual = stack.first())
assertEquals(expected = TestDestination.ITEM_DETAILS, actual = stack.first())
assertEquals(expected = TestDestination.HOME, actual = stack.last())
}

@Test
fun pushAllAddsItemsToTopOfStack(){
fun pushAllAddsItemsToTopOfStack() {
val stacks = NavigationContextStacks<TestDestination, TestContext>(initialContext = TestContext.Home)

stacks.pushAll(context = TestContext.Home, destinations = stackOf(TestDestination.ITEM_DETAILS, TestDestination.FAVORITES))
stacks.pushAll(
context = TestContext.Home,
destinations = stackOf(TestDestination.ITEM_DETAILS, TestDestination.FAVORITES)
)

val stack = stacks[TestContext.Home].toMutableStack()

Expand Down

0 comments on commit 89c27f1

Please sign in to comment.