getCurrentVersion method

ProjectVersion getCurrentVersion(
  1. String projectPath
)

Reads current version from pubspec.yaml inside projectPath.

Implementation

ProjectVersion getCurrentVersion(String projectPath) {
  final pubspecFile = File('$projectPath/pubspec.yaml');
  return _pubspecHandler.readVersion(pubspecFile);
}