I'm using kotlin multiplatform for a project that ...
# gradle
z
I'm using kotlin multiplatform for a project that contains several subprojects: •
:complete
- contains api scope for
:avformat
:avformat
- contains api scope for
:avcodec
:avcodec
They all have jvm and linuxX64 targets In
:complete
I have a test that uses some classes from
:avformat
. For whatever reason the commonTest source set is unable to see the multiplatform classes provided by :avformat, more specifically classes marked as
expect
even though they have matching actual definitions for all targets. My source sets for common are setup like this
Copy code
sourceSets {
        commonMain {
            dependencies {
                api(projects.avformat)
            }
        }

        commonTest {
            dependencies {
                implementation(libs.kotlin.test)
            }
        }
    }
I've got no idea what to do