serving static method
Whether a release in status is configured to reach the track's
audience.
It says nothing about whether Google has approved it. The Play
Developer API carries no app-review state on any of its resources, so a
completed production release can sit In review for days with this
answering true and nobody able to install it. See completed.
The definition of PlayReleaseEntry.serving, reachable. It was a private function in the encoder while its twin, ProcessingState.needsNewUpload, was a public static — an asymmetry with no argument behind it, and the consumer paid for it immediately: its test fixtures could call one rule and had to restate the other, which is a second copy of a rule this package owns, in a tree this package cannot see. That is the drift the derived field exists to prevent, reappearing one level up.
True for completed and inProgress. False for halted and draft. Null for statusUnspecified, for unknown, and for an absent status — three ways of not being told, and one answer.
Implementation
static bool? serving(PlayReleaseStatus? status) => switch (status) {
completed || inProgress => true,
halted || draft => false,
statusUnspecified || unknown || null => null,
};