FLUTTER ECOSYSTEM

ci

Detect whether you're running in a CI environment and information about the CI vendor.

Latest version
0.1.0
30-day downloads
813.9K
Likes
7
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The ci package detects if the current environment is a CI (Continuous Integration) system and provides details about the specific CI vendor, such as GitHub Actions, GitLab CI, or CircleCI. It helps developers conditionally execute code based on whether the app is running in a CI pipeline, enabling tailored behavior for builds, tests, or deployments. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, making it ideal for cross-platform Flutter applications that need to adapt to different execution environments.

Use cases
  • Conditional build logic
  • Automated testing workflows
  • Deployment configuration
  • Environment-aware debugging
  • CI-specific logging
  • Secure credential handling
Key features
  • Detects CI environment
  • Identifies CI vendor
  • Cross-platform support
  • Lightweight and simple API
  • No external dependencies
  • Real-time environment detection
Suitable for
  • Flutter apps with CI integration
  • Build automation scripts
  • Test suite customization
  • Multi-platform deployment pipelines
  • Developers needing environment awareness
Considerations
  • Limited to known CI providers
  • Does not support custom CI systems
  • Relies on environment variables
  • May require manual verification in edge cases
  • No runtime configuration options
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add ci

Categories

Source repository

Related projects