isPidBasedLockingEnabled function
Whether PID-based locking is enabled. Controlled by environment variable or feature gate.
Implementation
bool isPidBasedLockingEnabled() {
final envVar = Platform.environment['ENABLE_PID_BASED_VERSION_LOCKING'];
if (envVar != null) {
final lower = envVar.toLowerCase();
if (lower == 'true' || lower == '1' || lower == 'yes') return true;
if (lower == 'false' || lower == '0' || lower == 'no') return false;
}
// Default: disabled for external users (would be GrowthBook-controlled in prod)
return false;
}