Pub
The Pub package manager for Dart / Flutter.
Configuration
Example
Use the following syntax to configure this plugin globally as part of config.yml
:
ort:
analyzer:
packageManagers:
Pub:
options:
flutterVersion: "3.19.3-stable"
gradleVersion: "7.3"
pubDependenciesOnly: false
Use the following syntax to configure this plugin in a repository's .ort.yml
:
analyzer:
package_managers:
Pub:
options:
flutterVersion: "3.19.3-stable"
gradleVersion: "7.3"
pubDependenciesOnly: false
If the plugin is configured in both locations, the configurations are merged, with options from .ort.yml
taking precedence over those from config.yml
.
Options
flutterVersion
The version to use when bootstrapping Flutter. If Flutter is already on the path, this option is ignored.
gradleVersion
The version of Gradle to use when analyzing Gradle projects.
pubDependenciesOnly
Only scan Pub dependencies and skip native ones for Android (Gradle) and iOS (CocoaPods).