Mô phỏng cấu trúc tệp cấu hình tham chiếu cục bộ dành cho phiên bản di động.
JavaScript
// Cau hinh tham chieu cuc bo cho ung dung 12bet
const localAppConfig = {
brand: "12bet",
platform: "android",
environment: "production",
storage: {
cachePrefix: "12bet_cache_",
sessionTimeoutMinutes: 30
},
clientPreferences: {
language: "vi-VN",
notificationsEnabled: false,
autoUpdatePrompt: true
}
};
function validateLocalConfig(config) {
if (!config.brand || config.platform !== "android") {
return false;
}
return true;
}
JSON
{
"brand": "12bet",
"platform": "android",
"environment": "production",
"storage": {
"cachePrefix": "12bet_cache_",
"sessionTimeoutMinutes": 30
},
"clientPreferences": {
"language": "vi-VN",
"notificationsEnabled": false,
"autoUpdatePrompt": true
}
}