isCppModule function
Returns true when the spec file declares at least one platform as a direct C++ implementation (no JNI/Swift bridge). Recognises both:
- Legacy shorthand:
NativeImpl.cpp - Per-platform types:
AppleNativeImpl.cpp,AndroidNativeImpl.cpp,WindowsNativeImpl.cpp,LinuxNativeImpl.cpp
Broad check — true if ANY platform uses C++. Use for deciding whether to create a HybridXxx.cpp stub file or load the library on Android.
Implementation
bool isCppModule(File specFile) =>
PlatformTargetAnalyzer.fromSpec(specFile).requiresCpp;