BuildInfo class

A utility class for extracting build information from Flutter project files.

The BuildInfo class automatically detects and extracts package names, bundle identifiers, and app names from various platform-specific configuration files. This information is used throughout the distribution process to identify applications across different platforms.

Constructors

BuildInfo()

Properties

buildInfo Map<String, String?>
Gets the current build information as a map.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

androidPackageName String?
The Android application ID extracted from android/app/build.gradle
getter/setter pair
iosBundleId String?
The iOS bundle identifier extracted from ios/Runner.xcodeproj/project.pbxproj
getter/setter pair
linuxPackageName String?
The Linux package name extracted from linux/CMakeLists.txt
getter/setter pair
macOSBundleId String?
The macOS bundle identifier extracted from macos/Runner.xcodeproj/project.pbxproj
getter/setter pair
webAppName String?
The web application name extracted from web/index.html title tag
getter/setter pair
windowsPackageName String?
The Windows package name extracted from windows/runner/Runner.rc
getter/setter pair

Static Methods

applyBuildInfo() Future<Map<String, dynamic>>
Extracts build information from all supported Flutter platforms.