readProperties static method
Loads app configuration. On web, fetches from Cloud Functions (secureOpsWeb) so that secrets never reach the client. On mobile, falls back to the local asset file for offline support.
Implementation
static Future<void> readProperties() async {
AppConfig.logger.t("readProperties");
// All platforms: load from local asset (properties.json)
try {
String jsonString = await rootBundle.loadString(DataAssets.propertiesJsonPath);
appProperties = jsonDecode(jsonString);
} catch (e, st) {
NeomErrorLogger.recordError(e, st, module: 'neom_core', operation: 'readProperties');
return;
}
}