Skip to content

Add support for pre-publish hooks for publishing first party Flutter packages #150210

Closed
flutter/packages
#7156
@kenzieschmoll

Description

@kenzieschmoll

Background
A DevTools extension for package:shared_preferences is being added in flutter/packages#6749. The pre-built Flutter web assets of this DevTools extension must be included in the shared_preferences package prior to publishing. However, we do not want an uncontrolled machine to build the extension and check in the output, which means we need a way for this to be done on a controlled machine as a pre-publish step.

Feature request
Add support for a pre-publish hook so that we can support use cases like the one described above. Upon publishing the shared_preferences package, the pre-publish hook would run and build the shared_preferences DevTools extension when needed.

@stuartmorgan please feel free to add any context I may have missed or add suggestions on how you believe this should be implemented.

Metadata

Metadata

Labels

P2Important issues not at the top of the work lista: devtoolsDevTools related - suite of performance and debugging toolsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions