ReleasePacker class

Constructors

ReleasePacker(String name, Version version, List<ReleasePackerFile> files, {List<ReleasePackerCommand>? prepareCommands, List<ReleasePackerCommand>? finalizeCommands, Map<String, String>? properties, Directory? configDirectory})
ReleasePacker.fromFile(File file, {Map<String, String>? properties, Directory? rootDirectory, bool allowPropertiesFromEnv = false})
factory
ReleasePacker.fromFilePath(String filePath, {Map<String, String>? properties, Directory? rootDirectory, bool allowPropertiesFromEnv = false})
factory
ReleasePacker.fromJson(Map<String, Object?> json, {Map<String, String>? properties, Directory? rootDirectory, bool allowPropertiesFromEnv = false})
factory

Properties

configDirectory → Directory?
final
files → List<ReleasePackerFile>
final
finalizeCommands → List<ReleasePackerCommand>?
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
prepareCommands → List<ReleasePackerCommand>?
final
properties → Map<String, String>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → Version
final

Methods

allCommands({String? platform}) → List<ReleasePackerCommand>
All the commands of this packer for platform: prepare, files and finalize.
buildFromDirectory({Directory? rootDirectory, String? sourcePath, String? platform}) → Future<ReleaseBundleZip>
checkBuildHooks(Directory rootDirectory, {String? platform, bool warnings = true}) → void
Checks that the commands for platform support the build hooks of the packages of rootDirectory.
finalize(Directory rootDirectory, {ReleaseBundle? releaseBundle, String? platform}) → Future<Map<ReleasePackerCommand, ReleasePackerCommandStatus>>
Runs the finalizeCommands.
getFile(String filePath, {String? platform}) → ReleasePackerFile?
getFileMatching(RegExp filePathRegexp) → ReleasePackerFile?
getFiles({String? platform}) → List<ReleasePackerFile>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare(Directory rootDirectory, {String? platform}) → Future<Map<ReleasePackerCommand, ReleasePackerCommandStatus>>
Runs the prepareCommands.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

isPackageResolutionUpToDate(Directory rootDirectory) → bool
Returns true if the .dart_tool/package_config.json of rootDirectory exists and is NOT older than its pubspec.yaml and pubspec.lock: a stale resolution (like one restored from a cache) may NOT reflect the current dependencies.
mergeDuplicatedFiles(List<ReleaseFile> files) → Future<List<ReleaseFile>>
Merges the files with the same path, like the lib/ of two dart build cli bundles of the same project.
packagesWithBuildHooks(Directory rootDirectory) → List<String>?
The packages with build hooks (hook/build.dart) in the .dart_tool/package_config.json of rootDirectory.