mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +00:00
feat(native): a capability handshake between the app binary and the server's UI
The UI ships with the server and the binary through the stores, so the two drift. TrekShell.getCapabilities now reports the binary's shell API, version and native features by name (iOS and Android), and the UI turns each native feature on only where the binary has it; a binary from before the handshake counts as shell API 1 with none. The other way round, the server names the oldest binary its UI works with (minNativeShellApi), and an app below it is asked to update with a link to its store.
This commit is contained in:
@@ -72,6 +72,9 @@ const native: TranslationStrings = {
|
||||
'native.provisioning.failedTitle': 'Gairebé a punt',
|
||||
'native.provisioning.failedSub': 'El teu TREK està en camí. Torna-ho a provar en un moment o obre l’app més tard.',
|
||||
'native.provisioning.retry': 'Prova-ho ara',
|
||||
'native.update.title': 'Actualitza l’app TREK',
|
||||
'native.update.body': 'Aquest servidor necessita una versió més nova de l’app perquè tot funcioni.',
|
||||
'native.update.open': 'Actualitza',
|
||||
};
|
||||
|
||||
export default native;
|
||||
|
||||
Reference in New Issue
Block a user