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

Function kmpBuildTarget

src/resolution/import-resolver.ts:2757–2759  ·  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

2755
2756/** What a source set builds for: `android` of `androidMain` and `androidUnitTest`, `common` of `commonTest`. */
2757function kmpBuildTarget(set: string): string {
2758 return set.replace(/(?:Main|(?:Unit|Instrumented|Device|Host)?Test)$/, '');
2759}
2760
2761/** Kotlin Multiplatform targets that build for the JVM. */
2762const KMP_JVM_TARGET = /^(?:android|jvm|desktop)/;

Callers 2

pickJvmDeclarationFunction · 0.85
targetOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected