feat: commit id
This commit is contained in:
@@ -49,13 +49,14 @@ const SETTINGS = [
|
||||
|
||||
const getVersionLabel = () => {
|
||||
const appVersion = Constants.expoConfig?.version || 'inconnue'
|
||||
const updateId = typeof Updates.updateId === 'string' ? Updates.updateId.slice(0, 8) : null
|
||||
const commitId = Constants.expoConfig?.extra?.commitId
|
||||
const source = __DEV__ ? 'développement' : Updates.isEmbeddedLaunch ? 'intégrée' : 'OTA'
|
||||
|
||||
if (updateId) {
|
||||
return `Version ${appVersion} · mise à jour ${updateId}`
|
||||
if (typeof commitId === 'string' && commitId) {
|
||||
return `Version ${appVersion} · ${source} · commit ${commitId}`
|
||||
}
|
||||
|
||||
return `Version ${appVersion} · ${__DEV__ ? 'développement' : 'intégrée'}`
|
||||
return `Version ${appVersion} · ${source}`
|
||||
}
|
||||
|
||||
const Settings = () => {
|
||||
|
||||
Reference in New Issue
Block a user