-
-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathDevFlags.h
More file actions
24 lines (16 loc) · 617 Bytes
/
DevFlags.h
File metadata and controls
24 lines (16 loc) · 617 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// DevFlags.h
#pragma once
#include <string>
namespace tns {
// Fast cached flag: whether to log script loading diagnostics.
// First call queries Java once; subsequent calls are atomic loads only.
bool IsScriptLoadingLogEnabled();
// Security config
// "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();
}