Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/components/Views/Settings/AppInformation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
getFeatureFlagAppEnvironment,
} from '../../../../core/Engine/controllers/remote-feature-flag-controller/utils';
import { getPreinstalledSnapsMetadata } from '../../../../selectors/snaps';
import { captureException } from '@sentry/react-native';

const createStyles = (colors) =>
StyleSheet.create({
Expand Down Expand Up @@ -192,6 +193,10 @@ class AppInformation extends PureComponent {
this.setState({ showEnvironmentInfo: true });
};

onSendSentryTestError = () => {
captureException(new Error('OTA update Sentry test error v6'));
};

render = () => {
const colors = this.context.colors || mockTheme.colors;
const styles = createStyles(colors);
Expand Down Expand Up @@ -222,6 +227,9 @@ class AppInformation extends PureComponent {
<Text style={styles.versionInfo}>
{getFullVersion(this.state.appInfo)}
</Text>
<TouchableOpacity onPress={this.onSendSentryTestError}>
<Text style={styles.link}>Send Sentry test error</Text>
</TouchableOpacity>
Comment thread
weitingsun marked this conversation as resolved.
{isQa ? (
<Text style={styles.branchInfo}>
{`Branch: ${process.env['GIT_BRANCH']}`}
Expand Down
4 changes: 4 additions & 0 deletions app/components/Views/Wallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,10 @@ const Wallet = ({
}
/>
) : null}
<BannerAlert
severity={BannerAlertSeverity.Info}
title="this is ota update banner v6"
/>
Comment thread
weitingsun marked this conversation as resolved.
<NetworkConnectionBanner />
</View>
<>
Expand Down
2 changes: 1 addition & 1 deletion app/constants/ota.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import otaConfig from '../../ota.config.js';
* Reset to v0 when releasing a new native build
* We keep this OTA_VERSION here to because changes in ota.config.js will affect the fingerprint and break the workflow in Github Actions
*/
export const OTA_VERSION: string = 'v0';
export const OTA_VERSION: string = 'v6';
export const RUNTIME_VERSION = otaConfig.RUNTIME_VERSION;
export const PROJECT_ID = otaConfig.PROJECT_ID;
export const UPDATE_URL = otaConfig.UPDATE_URL;
Expand Down
Loading