#pragma once #include // Centralized development/runtime flags helpers usable across runtime sources. // These read from app package.json via Runtime::GetAppConfigValue and other // runtime configuration to determine behavior of dev features. namespace tns { // Returns true when verbose script/module loading logs should be emitted. // Controlled by package.json setting: "logScriptLoading": true|false bool IsScriptLoadingLogEnabled(); // Security config // In debug mode (RuntimeConfig.IsDebug): always returns true. // checks "security.allowRemoteModules" from nativescript.config. bool IsRemoteModulesAllowed(); // "security.remoteModuleAllowlist" array from nativescript.config. // If no allowlist is configured but allowRemoteModules is true, all URLs are allowed. bool IsRemoteUrlAllowed(const std::string& url); // Init security configuration void InitializeSecurityConfig(); } // namespace tns