Gleb Minaev
11/02/2026, 6:29 PMFooCommon, FooJvm, and FooJs in common, JVM, and JS source sets correspondingly, then I would like to generate function barJs in JS source set that accesses FooCommon and FooJs. (In case of more targets, I would like to generate barPlatform for all platforms except for JVM.) I guess, I can determine when the extension is called for some specific target (not for a group of targets or even for common sources) via pluginContext.platform. But I don't understand how I can find all classes of the module (available for specific target).Youssef Shoaib [MOD]
11/02/2026, 7:21 PMseparateCompilation IIUC
What you should do is generate metadata-visible declarations in a known package, and then read it in your IR plugin.
Metro might be good to look at here, since it does this across projects too (i.e. Metro generates some metadata in one project, and reads it in consuming projects). I believe it does so for @ContributesBindingGleb Minaev
11/02/2026, 7:33 PMdmitriy.novozhilov
11/03/2026, 7:56 AMIs there a way to pass information between compilations of source sets of the same module?You can't control which compilation would be actually executed by user and in which order, so IMO it's kinda pointless (imagine CI job, which runs only apple compilations).
Youssef Shoaib [MOD]
11/03/2026, 10:14 AMcommonMain, webMain, etc.
I agree that getting info from jvmMain when you're on jsMain would be a very bad idea