-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
92 lines (69 loc) · 2.9 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { generateDeploymentConfig, loadEncryptedConfig } from "scripts";
import { SKINS } from "./skins";
const config = generateDeploymentConfig("debug");
config.api.db_name = "debug"
config.google_drive = {
sheets_folder_ids: ["1YcG0GDJME1Ds1UzwXcEmo97Ckb5tnUWc"],
assets_folder_ids: ["1bnGPB70wPp9hzVOpT4LkPX9h3FwIrqfs"],
};
config.web.favicon_asset = "images/icons/favicon.svg";
config.git = {
content_repo: "https://github.com/IDEMSInternational/app-debug-content.git",
content_tag_latest: "1.3.5",
};
config.app_config.ASSET_PACKS = {
enabled: true,
bucketName: "debug",
folderName: "asset_packs",
};
// set supabase config if decrypted values available
// TODO - should supabase match general config and additional settings
const supabaseConfig = loadEncryptedConfig("supabaseConfig.json");
config.supabase = { ...supabaseConfig, enabled: supabaseConfig ? true : false };
config.firebase = {
config: loadEncryptedConfig('firebase.json'),
auth: { enabled: true },
crashlytics: { enabled: true }
}
config.error_logging = {
dsn: "https://[email protected]/2438",
};
config.android = {
app_id: 'international.idems.debug_app',
app_name: 'Debug App',
splash_asset_path: "./app_data/assets/android/splash.png",
icon_asset_path: "./app_data/assets/android/icon.png",
icon_asset_foreground_path: "./app_data/assets/android/icon-foreground.png",
icon_asset_background_path: "./app_data/assets/android/icon-background.png",
zoom_enabled: true
}
config.analytics={
enabled:true,
provider:'matomo',
siteId: 2,
endpoint: "https://apps-server.idems.international/analytics"
}
config.ios = {
app_id: "international.idems.debug-app",
app_name: "Debug App",
zoom_enabled: true
}
// Override any app constants here
config.app_config.APP_HEADER_DEFAULTS.title = "Debug App";
config.app_config.APP_HEADER_DEFAULTS.collapse = true;
config.app_config.APP_HEADER_DEFAULTS.colour = "primary";
config.app_config.APP_HEADER_DEFAULTS.variant = "default";
config.app_config.APP_FOOTER_DEFAULTS.templateName = "feat_footer"
config.app_config.APP_SIDEMENU_DEFAULTS.title = "Debug App";
config.app_config.APP_SKINS.defaultSkinName = SKINS.defaultSkin.name
config.app_config.APP_SKINS.available = [SKINS.defaultSkin, SKINS.debug]
config.app_config.APP_THEMES.available = ["default", "professional", "pfr", "plh_facilitator_mx", "early_family_math", "plh_kids_kw"]
config.app_config.APP_THEMES.defaultThemeName = "default"
config.app_config.TASKS.enabled = true
config.app_config.TASKS.taskGroupsListName = "feat_task_groups"
config.app_config.APP_UPDATES.enabled = true
config.app_config.APP_UPDATES.completeUpdateTemplate = "app_update_complete"
config.app_config.APP_AUTHENTICATION_DEFAULTS.enforceLogin = false
config.app_config.APP_AUTHENTICATION_DEFAULTS.signInTemplate = "example_google_auth"
config.app_config.APP_LANGUAGES_META = { en_rtl: { rtl: true } }
export default config;