play_metadata library

Classes

PlayImageSpec
An image Play requires of every listing, at one exact size.
PlayLocaleMetadata
One locale's Play listing.
PlayMetadata
A Play listing tree.

Constants

playListingLimits → const Map<String, int>
Play's limits on the listing text, in UTF-16 code units.
playMaxScreenshotEdge → const int
playMaxScreenshots → const int
Play's maximum per screenshot type. Play's own number, enforced at upload.
playMinScreenshotEdge → const int
Play's bounds on a screenshot's edge, in pixels. Play's own numbers.
playPolicyMinScreenshotsPerDeclaredType → const int
This package's policy floor, not Play's rule.
playRequiredImages → const Map<String, PlayImageSpec>
Keyed by the directory name under images/, which is also the name the Play API uses, so a typo fails this lookup rather than being uploaded into the wrong slot.
playScreenshotTypes → const Set<String>
Screenshot directories Play understands, by the name it uses.

Functions

checkPlayTree(String path, {Set<String> requireScreenshotTypes = const {}, Set<String> requireLocales = const {}}) List<ReleaseProblem>
Loads the Play tree at path and reports what Play would refuse.
loadPlayMetadata(String path) PlayMetadata
Loads the Play metadata tree at path.

Exceptions / Errors

MetadataException
Thrown for anything wrong with the tree. Always actionable: it names the file and says what would have to be true instead.