Hey all. I was wondering if anybody has ran into i...
# multiplatform
a
Hey all. I was wondering if anybody has ran into issues with test modules not being able to access internal elements in the non test modules? I keep getting "Cannot access 'Blah': it is internal"
g
By "test modules" I presume you've a distinct "gradle module" (with its own build.gradle, etc.). In this case it's normal to have this error,
internal
is only visible in the compilation module. You have to either go public or move your tests in the same compilation module (what I named "gradle module", but I think it's not the proper gradle terminology).
a
We have standard KMM setup
build.gradle has this
g
Mmmh, then it looks weird 🤔 Do you have a public github or an open-source reproducer for that?
a
we have another project that uses internal in the commonMain and we can access them from the test modules
but its using an older version of kmm so the gradle build is all different
got nothing public unfortunately as its an internal company project