Feature request: for multiplatform deps, only include target platform
See original GitHub issueIf a kotlin multiplatform lib is depended on and has, say, org.jetbrains.compose:runtime
as a common
dependency, it gets included in an android dependency guard classpath even though there is no android platform exposed for that dep.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Configuring a multiplatform app - Apple Developer
Share project settings and code across platforms in a single app target.
Read more >Support cross-platform development · Issue #4 - GitHub
As another sample of the problem I am running the pry gem on Mac, Linux and Windows. The Windows gem dependency includes win32console...
Read more >How to add project dependencies to specific platform targets ...
So, for example, in a Kotlin/JVM single-target project, you can just use a project("...") dependency on a Multiplatform project:
Read more >Eclipse Target Platform - Tutorial - Vogella.com
You can define a target platform based on (p2) update sites and the file system. The Eclipse Maven tooling also add the option...
Read more >Faster Multi-Platform Builds: Dockerfile Cross-Compilation ...
Now when two go build processes run they already have access to the pre-pulled dependencies. We also copied only the go.mod and go.sum...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I looked a little more closely at it and I think this is actually “correct” by the letter of the gradle law. There is an android compose-jb artifact, but it’s just a shim pointing at the real androidx compose dep
☝️ I included a list of configurations that could be depended on. In the example above, you would probably only need the
jvm
configuration to exclude, but with HMPP (https://kotlinlang.org/docs/multiplatform-hierarchy.html) you might be depending on multiple parent configs.The intersection result is I think what you’d be looking for here?