How to get build config values
Description
This module is used to get build config values from appSettings, theme and extensions. This settings will never change during the app runtime or when changing settings from dashboard. It only changes when the app updates.
From appSettings
import { getAppSettingsBuildConfig } from '@appmaker-xyz/core';
// in your code
getAppSettingsBuildConfig('app_version_name', '1');
From theme
import { getThemeBuildConfig } from '@appmaker-xyz/core';
// in your code
getThemeBuildConfig('theme_color', '#000000');
From extension
import { getExtensionBuildConfig } from '@appmaker-xyz/core';
// in your code
getExtensionBuildConfig('your-extension-handle', 'my_settings_id', 1234); // 1234 is the default value, my_settings_id is the id of the setting in the extension settings, your-extension-handle is the handle of the extension
note
In development build, you will only get default value of the settings. You will get the actual value on the production build only