Robert Munro
06/28/2021, 6:40 AMjvmMain
and an androidMain
source folder in my shared module. It seems like l have to duplicate the actual class declaration in both jvmMain and androidMain as if I just have the jvm version the expected class says something like "there isnt an actual declaration for jvm" (referring to androidMain). If i delete my android source set and gradle declaration the shared library complains about a missing AndroidManifest.xml
.
So just wondering if it is normal that i would have to duplicate androidMain
and jvmMain
Sourabh Rawat
06/28/2021, 7:08 AMRobert Munro
06/28/2021, 7:17 AMsourceSets {
test {
java.srcDir 'src/sharedTest/java'
}
}
but there seems to be no srcDir function for ktsSourabh Rawat
06/28/2021, 7:19 AMdependsOn(jvmMain)
in the androidMain
is how you normally make dependent sourcesets.Robert Munro
06/28/2021, 7:22 AMSourabh Rawat
06/28/2021, 7:23 AMJavier
06/28/2021, 7:54 AMRobert Munro
06/28/2021, 7:55 AM