Foss Vs Proprietary Module Pairs

Ship one codebase in two forms — a full build carrying a proprietary or credentialed integration and an open build carrying a no-op stub — using twin modules with an identical public API selected by a Gradle property rather than product flavors, which do not exist for non-Android multiplatform targets. Reach for it when a tracking, casting, or paid-service dependency must be absent from an open-source build, when call sites are littered with build-flavor branches, or when the "clean" build still pulls the proprietary artifact through a transitive path.

maxrave-dev a33e5ab 7.4 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/foss-vs-proprietary-module-pairs commit a33e5ab388

Frequently asked questions

npx skillmds@latest add maxrave-dev/foss-vs-proprietary-module-pairs