Skip to content

Commit 709ef3f

Browse files
committed
Clean live update info
1 parent 2e7de54 commit 709ef3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/components/about-settings.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,16 @@ const WebBuildInfo = (props: {info?: WebBuild}) => {
184184
const AndroidInfo = (props: {info?: Android}) => {
185185
const {info} = props
186186
if (!info) return
187+
const sha = info.liveUpdate?.commitSha
188+
const url = `${githubRepo}/commit/${sha}`
187189
return <Col className={'custom-link'}>
188190
<h3>Android (Capacitor / Capawesome)</h3>
189191
<p>App version (Android): {info.appVersion}</p>
190192
<p>Native build number (Android): {info.buildNumber}</p>
191193
<p>Live update build ID (Capawesome): {info.liveUpdate?.bundleId}</p>
192-
<p>Live update commit (Capawesome): {JSON.stringify(info.liveUpdate)}</p>
194+
<p>Live update commit SHA (Capawesome): <CustomLink href={url}>{sha}</CustomLink></p>
195+
<p>Live update commit message (Capawesome): {info.liveUpdate?.commitMessage}</p>
196+
<p>Live update commit date (Capawesome): {info.liveUpdate?.commitDate}</p>
193197
</Col>
194198
}
195199

0 commit comments

Comments
 (0)