routis
11/23/2023, 10:37 PMmodule.layout: gradle-kmp) seems not working.
No matter what, ,I cannot have the equivalent of 'commonMain/kotrlin
when working on library with a single platform.Alexander Tsarev
11/29/2023, 5:07 PMgradle-migration-kpm
example and project imported successfully, also commonMain/kotlin
directory was recognized as source set.routis
11/29/2023, 5:20 PMcommonMain
, in multiplatform plugin or in amper , somehow, is restricted to a subset of Kotlin common among any platform.
It seems that this is not the case, since what is content of commonMain depends on the declared targets.
For instance, when targeting only JVM you can use java in commonMain. The same is true if you target both JVM or Android.
BTW, I was not able to locate a description of the above behavior neither for multiplatform plugin nor for amper.
I wish amper had a more "predictable" approach.
That is to,
• reserve src
& test
for common code
• use src@platform for platform specific codeAlexander Tsarev
11/29/2023, 5:29 PMAlexander Tsarev
11/29/2023, 5:30 PMroutis
11/29/2023, 5:33 PMAlexander Tsarev
11/29/2023, 5:37 PM