-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Add support for pre-publish hooks for publishing first party Flutter packages #150210
Copy link
Copy link
Closed
flutter/packages
#7156Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: devtoolsDevTools related - suite of performance and debugging toolsDevTools related - suite of performance and debugging toolsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: devtoolsDevTools related - suite of performance and debugging toolsDevTools related - suite of performance and debugging toolsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem team
Background
A DevTools extension for
package:shared_preferencesis being added in flutter/packages#6749. The pre-built Flutter web assets of this DevTools extension must be included in theshared_preferencespackage 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_preferencespackage, the pre-publish hook would run and build theshared_preferencesDevTools 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.