Skip to content

Commit eacc2f1

Browse files
committed
7.64.0 ota v1
1 parent af858e3 commit eacc2f1

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

app/components/Views/Settings/AppInformation/index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ import {
2424
checkAutomatically,
2525
} from 'expo-updates';
2626
import { connect } from 'react-redux';
27-
import { getFullVersion } from '../../../../constants/ota';
27+
import { getFullVersion, OTA_VERSION } from '../../../../constants/ota';
2828
import { fontStyles } from '../../../../styles/common';
29+
import { captureException } from '@sentry/react-native';
2930
import PropTypes from 'prop-types';
3031
import { strings } from '../../../../../locales/i18n';
3132
import { getNavigationOptionsTitle } from '../../../UI/Navbar';
@@ -192,6 +193,12 @@ class AppInformation extends PureComponent {
192193
this.setState({ showEnvironmentInfo: true });
193194
};
194195

196+
onSendSentryTestError = () => {
197+
captureException(
198+
new Error(`OTA update Sentry test error production ${OTA_VERSION}`),
199+
);
200+
};
201+
195202
render = () => {
196203
const colors = this.context.colors || mockTheme.colors;
197204
const styles = createStyles(colors);
@@ -271,6 +278,11 @@ class AppInformation extends PureComponent {
271278
)}
272279
</View>
273280
<Text style={styles.title}>{strings('app_information.links')}</Text>
281+
<TouchableOpacity onPress={this.onSendSentryTestError}>
282+
<Text style={styles.link}>
283+
Send Sentry test error production {OTA_VERSION}
284+
</Text>
285+
</TouchableOpacity>
274286
<View style={styles.links}>
275287
<TouchableOpacity onPress={this.onPrivacyPolicy}>
276288
<Text style={styles.link}>

app/components/Views/Wallet/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import {
4848
import { WalletViewSelectorsIDs } from './WalletView.testIds';
4949
import { BannerAlertSeverity } from '../../../component-library/components/Banners/Banner';
5050
import BannerAlert from '../../../component-library/components/Banners/Banner/variants/BannerAlert/BannerAlert';
51+
import { OTA_VERSION } from '../../../constants/ota';
5152
import { ButtonVariants } from '../../../component-library/components/Buttons/Button';
5253
import CustomText, {
5354
TextColor,
@@ -1278,6 +1279,10 @@ const Wallet = ({
12781279
}
12791280
/>
12801281
) : null}
1282+
<BannerAlert
1283+
severity={BannerAlertSeverity.Info}
1284+
title={`this is ota update banner prod ${OTA_VERSION}`}
1285+
/>
12811286
<NetworkConnectionBanner />
12821287
</View>
12831288
<>

app/constants/ota.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import otaConfig from '../../ota.config.js';
66
* Reset to v0 when releasing a new native build
77
* We keep this OTA_VERSION here to because changes in ota.config.js will affect the fingerprint and break the workflow in Github Actions
88
*/
9-
export const OTA_VERSION: string = 'v0';
9+
export const OTA_VERSION: string = 'v1';
1010
export const RUNTIME_VERSION = otaConfig.RUNTIME_VERSION;
1111
export const PROJECT_ID = otaConfig.PROJECT_ID;
1212
export const UPDATE_URL = otaConfig.UPDATE_URL;

0 commit comments

Comments
 (0)