tvtan
11/27/2020, 10:26 AMmultiplatform
module using wire 3.5.1-SNAPSHOT
(also with 3.6.0-SNAPSHOT) but get this error:
Unresolved reference: ByteStringSerializer
my build.gradle.kts:
import dependencies.Dependencies
import dependencies.TestDependencies
plugins {
id(BuildPlugins.KOTLIN_MULTIPLATFORM)
id(BuildPlugins.KOTLIN_PLUGIN_SERIALIZATION)
id(BuildPlugins.WIRE)
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
}
ios {
binaries {
framework {
baseName = "domain"
}
}
}
sourceSets {
val commonMain by getting {
kotlin.srcDir("$buildDir/generated/source/wire")
dependencies {
api(Dependencies.Domain.KOTLIN_SERIALIZATION)
api(Dependencies.Domain.WIRE)
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
val jvmMain by getting
val jvmTest by getting {
dependencies {
implementation(kotlin("test-junit"))
}
}
val iosMain by getting
val iosTest by getting
}
}
wire {
sourcePath {
srcDir("src/commonMain/proto")
}
kotlin {
emitKotlinSerialization = "UNSUPPORTED"
}
}
In the IDEA, it shows the generated source set as iosArm64Main
and gradle dependencies contains only wire-runtime for ios targets: