james
voben
every {} returns something
every {} answers {something}
Luis Alonso Ato Neyra
Pablo
NavHost(startDestination = "profile/{userId}") { composable("profile/{userId}") }
NavHost(startDestination = Screen.HomeScreen.name) { composable(Screen.HomeScreen.name) }
Oluwafemi Ogundipe
KotlinSourceSet with name 'androidUnitTest' not found.
plugins { kotlin(Plugins.multiplatform) kotlin(Plugins.nativeCocoapods) id(Plugins.androidLibrary) version Versions.androidGradlePlugin id(Plugins.ktlint) version Versions.ktlintVersion id(Plugins.kotlinx_serialization) id("io.kotest.multiplatform") version "5.0.2" } kotlin { android { compilations.all { kotlinOptions { jvmTarget = "1.8" } } } targets { jvm { compilations.all { kotlinOptions { jvmTarget = "1.8" } } } android { compilations.all { kotlinOptions { jvmTarget = "1.8" } } } iosX64() } android() iosX64() iosArm64() iosSimulatorArm64() cocoapods { summary = "Some description for the Shared Module" homepage = "Link to the Shared Module homepage" version = "1.0" ios.deploymentTarget = "14.1" framework { baseName = "magicsdk" } } sourceSets { val commonMain by getting { dependencies { implementation(Google.gson) // ktor implementation(Ktor.clientSerialization) implementation(Ktor.serialization_kotlinx) implementation(Ktor.ktor_json_serialization) implementation(Ktor.content_negotiation) implementation(Ktor.core) implementation(Ktor.kmmLogging) } } val commonTest by getting { dependencies { implementation(kotlin("test")) implementation(kotlin("test-common")) implementation(kotlin("test-annotations-common")) implementation("io.kotest:kotest-framework-engine:5.0.2") // implementation("io.kotest:kotest-assertions-core:5.0.2") } } val androidMain by getting { dependencies { implementation(Ktor.android) implementation(Ktor.ktor_client_android_okhttp) implementation(SQLDelight.androidDriver) implementation(Ktor.logging) } } val androidUnitTest by getting { dependencies { implementation(kotlin("test-junit")) implementation("junit:junit:4.13.2") } } val iosX64Main by getting val iosArm64Main by getting val iosSimulatorArm64Main by getting val iosMain by creating { dependsOn(commonMain) iosX64Main.dependsOn(this) iosArm64Main.dependsOn(this) iosSimulatorArm64Main.dependsOn(this) dependencies { implementation(Ktor.ktor_darwin) implementation(Ktor.ios) implementation(SQLDelight.nativeDriver) } } val iosX64Test by getting val iosArm64Test by getting val iosSimulatorArm64Test by getting val iosTest by creating { dependsOn(commonTest) iosX64Test.dependsOn(this) iosArm64Test.dependsOn(this) iosSimulatorArm64Test.dependsOn(this) } } } android { namespace = "com.tilbury.magic" compileSdk = Application.compileSdk defaultConfig { minSdk = Application.minSdk targetSdk = Application.targetSdk } }
dave08
Beta Tech
David Glasser
Emmanuel Mtera
jean
Polymorphic serializer was not found for class discriminator 'batteryPercentage', JSON input: {"name":"batteryPercentage","value":70}
@JsonClassDiscriminator("name") interface DeviceAttribute @Serializable data class Device( val id: String, val name: String, val icon: String, val iconOptions: List<String>, val attributes: List<DeviceAttribute> = emptyList(), val profiles: List<ActiveProfileMode>?, ) @Serializable @SerialName("batteryPercentage") data class BatteryPercentage(val value: Int) : DeviceAttribute
A modern programming language that makes developers happier.