PubDevChecker class
Checks whether published versions are visible on pub.flutter-io.cn, backed by
gg_lang's RegistryWaiter over a PubDevRegistry.
This is a thin gg_multi-side adapter: all registry interaction and the
poll/wait logic live in gg_lang. The class is kept (rather than using
RegistryWaiter directly) so the publish flow can inject a mock and
dispatch by project type.
Constructors
-
PubDevChecker({RegistryWaiter? waiter, LanguageCatalog? catalog, Future<
void> delay(Duration duration)?, Duration pollInterval = const Duration(seconds: 15), Duration timeout = const Duration(minutes: 15)}) -
Creates a new checker. Inject
waiterin tests; production resolves aRegistryWaiterover the pub.flutter-io.cn registry from the language catalog.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pollInterval → Duration
-
Delay between poll attempts.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Maximum waiting time for a version to appear on pub.flutter-io.cn.
final
Methods
-
getPackagePublishInfo(
{required String packageName}) → Future< PackagePublishInfo> -
Returns publish info for
packageName(whether dependents must wait for pub.flutter-io.cn availability). -
isVersionAvailable(
{required String packageName, required String version}) → Future< bool> -
Returns whether
versionofpackageNameis already visible on pub.flutter-io.cn. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
waitUntilVersionAvailable(
{required String packageName, required String version, required void ggLog(String message)}) → Future< void> -
Waits until
versionofpackageNameis visible on pub.flutter-io.cn. Progress (including the pub.flutter-io.cn status page url) is reported throughggLog.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited