Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,9 @@ class KotlinMultiplatformLibraryConventionPlugin : Plugin<Project> {
}
}

// extensions.configure<LibraryExtension> {
// namespace = getAndroidNameSpaceFromPath(PACKAGE, path)
// configureKotlinAndroid(this)
// }

extensions.configure<KotlinMultiplatformExtension> {
sourceSets.getByName("commonTest").dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-annotations-common"))
implementation(kotlin("test-common"))
implementation(libs.findLibrary("test.coroutines").get())
implementation(libs.findLibrary("test-turbine").get())
}
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ kover {
"*.R",
"*.mock",
"*.mocks",
"*.generated*"
)
annotatedBy("*Generated", "*Composable")
}
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
androidGradlePluginVersion = "9.0.1"
kotlin = "2.3.10"
coroutineVersion = "1.10.2"
kotlinDatetime = "0.7.1-0.6.x-compat"
kotlin = "2.4.0"
coroutineVersion = "1.11.0"
kotlinDatetime = "0.8.0-0.6.x-compat"
koin = "4.1.1"
koinCompose = "4.1.1"
koinCore = "4.1.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ class CryptoDetailsViewModelTest {
awaitItem().apply {
assertNotNull(cryptoDetails)
assertIs<DataStatus.Success>(status)
cryptoDetails?.let {
assertEquals("bitcoin", it.base.id)
assertEquals("crypto bitcoin", it.base.name)
assertEquals("CR-BITCOIN", it.base.symbol)
assertEquals("SHA-256", it.hashingAlgorithm)
assertEquals("http://home-bitcoin.com", it.homePageUrl)
}
assertEquals("bitcoin", cryptoDetails.base.id)
assertEquals("crypto bitcoin", cryptoDetails.base.name)
assertEquals("CR-BITCOIN", cryptoDetails.base.symbol)
assertEquals("SHA-256", cryptoDetails.hashingAlgorithm)
assertEquals("http://home-bitcoin.com", cryptoDetails.homePageUrl)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import dev.ohoussein.cryptoapp.crypto.domain.model.HistoricalPrice
import dev.ohoussein.cryptoapp.crypto.domain.model.defaultLocale
import dev.ohoussein.cryptoapp.crypto.presentation.fake.FakePriceFormatter
import dev.ohoussein.cryptoapp.crypto.presentation.model.GraphInterval
import kotlinx.datetime.Instant
import kotlinx.datetime.TimeZone
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.time.Instant

class GraphGridGeneratorTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class CryptoListViewModelTest {
viewModel.state.test {
awaitItem().apply {
assertNotNull(cryptoList)
assertEquals(5, cryptoList!!.size)
assertEquals(5, cryptoList.size)
assertIs<DataStatus.Success>(status)
val firstCrypto = cryptoList!!.first()
val firstCrypto = cryptoList.first()
assertEquals("70 USD", firstCrypto.price.labelValue.label)
assertEquals(70.0, firstCrypto.price.labelValue.value)
assertEquals(-2.0, firstCrypto.priceChangePercentIn24h?.value)
Expand Down Expand Up @@ -77,7 +77,7 @@ class CryptoListViewModelTest {
awaitItem().apply {
assertIs<DataStatus.Success>(status)
assertNotNull(cryptoList)
assertEquals(5, cryptoList!!.size)
assertEquals(5, cryptoList.size)
}
}
}
Expand Down
Loading