getAppBundleId function
Retrieves the application bundle ID (package name) for a given client ID.
This function reads the configuration file for the specified clientId,
parses it, and extracts the packageName field, which represents the
application's bundle ID.
clientId The ID of the client for which to retrieve the bundle ID.
Throws a FileSystemException if the config file for the client is not found. Throws a FormatException if the config file content is not valid JSON.
Returns a Future<String> representing the application's bundle ID.
Implementation
Future<String> getAppBundleId(String clientId) async {
final Map<String, dynamic> configJson = await parseConfigFile(clientId);
return configJson['packageName'] ?? '';
}