MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / kmpBuildTarget

Function kmpBuildTarget

src/resolution/import-resolver.ts:3092–3094  ·  view source on GitHub ↗

What a source set builds for: `android` of `androidMain` and `androidUnitTest`, `common` of `commonTest`.

(set: string)

Source from the content-addressed store, hash-verified

3090
3091/** What a source set builds for: `android` of `androidMain` and `androidUnitTest`, `common` of `commonTest`. */
3092function kmpBuildTarget(set: string): string {
3093 return set.replace(/(?:Main|(?:Unit|Instrumented|Device|Host)?Test)$/, '');
3094}
3095
3096/** Kotlin Multiplatform targets that build for the JVM. */
3097const KMP_JVM_TARGET = /^(?:android|jvm|desktop)/;

Callers 2

pickJvmDeclarationFunction · 0.85
targetOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected