MR3Y
06/16/2024, 1:53 PMproject.extensions.getByType(KotlinMultiplatformExtension::class.java).targets
but the problem is only common/metadata target is available at this point and other targets are populated later on. I can get targets I want if I queried the targets in afterEvaluate{ ... }
but I know that this a bad solution, so I'm asking if there is a better way. for example, Android gradle plugin provide something similar with onVariants{ ... }
callback that one can hook into and read variants available for that android project.Albert Chang
06/16/2024, 2:47 PMtargets.configureEach {}
enough? The action will be called for all targets added before and after the call.MR3Y
06/16/2024, 3:08 PM