This Dart CLI application helps you identify the platform support of every dependency in a Flutter
project's pubspec.yaml
file. It fetches information from pub.dev
about each package, determines
whether it's a Flutter plugin, and identifies which platforms are supported. The result is a CSV
file that provides an overview of all your dependencies.
Use the following command to globally activate this package:
dart pub global activate package_platform_detector
This CLI application includes the following commands:
This command detects the platform support for each dependency in your pubspec.yaml
file and
generates a CSV file.
package_platform_detector detect
This command displays the current version of package_platform_detector
. Additionally, it checks
for available updates on pub.dev
and prompts the user for an optional update.
package_platform_detector version
Navigate to your Flutter project's root directory where the pubspec.yaml
file is located. Run the
detect command as shown above. This will generate a CSV file named dependencies.csv
in the same
directory.
![image](https://private-user-images.githubusercontent.com/17902030/248517525-f71583d8-7282-49f9-83f8-fe960f2a0510.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDIxMjcsIm5iZiI6MTcyMTMwMTgyNywicGF0aCI6Ii8xNzkwMjAzMC8yNDg1MTc1MjUtZjcxNTgzZDgtNzI4Mi00OWY5LTgzZjgtZmU5NjBmMmEwNTEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDExMjM0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkNDgwMGMzYzhkOThkMzdkZDZmODNhZWVkNTFmZTZiNmQ2MDJlMmQ1ODk1YWJhNmVjODE4ZDQwYjM5ZGU3MzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MlagZjn5EbUKkWyiSEktQ_CmMWNonDI2aw821j7vJNM)
Please see the CHANGELOG.md
file for more information on what has changed recently.
Please see the LICENSE.md
file for more information on the license.
Contributions are always welcome!