appDependencyIssues method
Validates the pubspec.yaml of a package of a customer's Flutter app in order to be deployed to Serverpod Cloud.
If the package is not valid, the returned list will contain the error messages. If it is valid, the list will be empty.
Implementation
List<String> appDependencyIssues() {
if (pubspec.environment['sdk'] == null) {
return ['No sdk constraint found in package ${pubspec.name}'];
}
return const [];
}