feat: add real WeatherV2 Android composite validation
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled

This commit is contained in:
OpenAI Codex
2026-09-05 01:24:18 +08:00
parent da71c8784e
commit 52600cd3be
26 changed files with 903 additions and 64 deletions

View File

@@ -219,7 +219,7 @@ RasterArraySource::RasterArraySource(std::string id,
std::string nextFixtureID,
std::string nextMetadataURL,
std::string nextFieldURL,
std::vector<RasterArrayRuntimeFieldDescriptor> runtimeFields)
std::vector<RasterArrayRuntimeFieldDescriptor> runtimeFieldDescriptors)
: Source(makeMutable<Impl>(std::move(id),
std::move(fixtureID),
std::move(metadataURL),
@@ -227,10 +227,10 @@ RasterArraySource::RasterArraySource(std::string id,
std::move(nextFixtureID),
std::move(nextMetadataURL),
std::move(nextFieldURL),
std::move(runtimeFields))) {}
std::move(runtimeFieldDescriptors))) {}
RasterArraySource::RasterArraySource(std::string id, std::vector<RasterArrayLocalFieldDescriptor> localFields)
: Source(makeMutable<Impl>(std::move(id), std::move(localFields))) {}
RasterArraySource::RasterArraySource(std::string id, std::vector<RasterArrayLocalFieldDescriptor> localFieldDescriptors)
: Source(makeMutable<Impl>(std::move(id), std::move(localFieldDescriptors))) {}
RasterArraySource::RasterArraySource(std::string id)
: Source(makeMutable<Impl>(std::move(id))) {}
@@ -786,7 +786,12 @@ bool RasterArraySource::controlRuntimeTimeline(const int command, const float va
}
bool RasterArraySource::supportsLayerType(const LayerTypeInfo* info) const {
return info && std::string(info->type) == "raster-particle";
if (!info) return false;
const std::string type{info->type};
// Both displays consume the exact same canonical Source-owned snapshots.
// WeatherColorLayer is intentionally a separate renderer, not a second
// source, cache, timeline or field normalizer.
return type == "raster-particle" || type == "weather-color";
}
Mutable<Source::Impl> RasterArraySource::createMutable() const noexcept {