checkConfiguredAppIdentifier function
void
checkConfiguredAppIdentifier(
- FlutterPlatform platform,
- String identifier, {
- required String configFileName,
Checks the app identifier identifier that the project configuration
file configFileName sets for platform.
Throws FailureException if it is Flutter's com.example placeholder,
with a hint to set it to the app's own identifier.
Implementation
void checkConfiguredAppIdentifier(
FlutterPlatform platform,
String identifier, {
required String configFileName,
}) {
if (!_isPlaceholder(identifier)) return;
final name = appIdentifierName(platform);
throw FailureException(
error:
"The $name $identifier is Flutter's placeholder: $configFileName sets "
'project.appIdentifiers.${platform.name} to it.',
hint:
'Set project.appIdentifiers.${platform.name} in $configFileName to the '
"app's own $name.",
);
}