mirror of https://gitlab.com/m3f_usm/SmartStopAPK
feat: default values for remote config
parent
a7a565ceb6
commit
a5a57f8110
|
@ -14,14 +14,14 @@ const useRemoteConfig = () => {
|
||||||
minimumFetchIntervalMillis: ONE_HOUR,
|
minimumFetchIntervalMillis: ONE_HOUR,
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: Add default values for remote config
|
|
||||||
await remoteConfig().setDefaults({
|
await remoteConfig().setDefaults({
|
||||||
BASE_URL: '',
|
BASE_URL: 'https://transporte.hz.kursor.cl',
|
||||||
HEADER_IMAGE_URL: '',
|
HEADER_IMAGE_URL:
|
||||||
USER: '',
|
'https://cdn-icons-png.flaticon.com/512/8371/8371047.png',
|
||||||
PASS: '',
|
USER: 'usuario1',
|
||||||
CHANGE_PAGE_INTERVAL: 0, // in miliseconds
|
PASS: 'usuario1',
|
||||||
UPDATE_BUSES_LIST_INTERVAL: 0, // in miliseconds
|
CHANGE_PAGE_INTERVAL: 20000, // in miliseconds
|
||||||
|
UPDATE_BUSES_LIST_INTERVAL: 600000, // in miliseconds
|
||||||
});
|
});
|
||||||
|
|
||||||
await remoteConfig().fetchAndActivate();
|
await remoteConfig().fetchAndActivate();
|
||||||
|
|
Loading…
Reference in New Issue