readAppId function

String? readAppId()

Reads the persisted app bundle id / package name from .fdb/app_id.txt.

Returns null if the file does not exist or is empty.

Implementation

String? readAppId() {
  final file = File(appIdFile);
  if (!file.existsSync()) return null;
  final content = file.readAsStringSync().trim();
  return content.isEmpty ? null : content;
}