Skip to content

Commit

Permalink
set METAMASK_BUILD_TYPE in build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Nov 21, 2023
1 parent 4b53b37 commit 4e46766
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
8 changes: 1 addition & 7 deletions app/components/UI/Navbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,12 +968,6 @@ export function getWalletNavbarOptions(
trackEvent(MetaMetricsEvents.WALLET_QR_SCANNER);
}

let foxIconName = IconName.Fox;

///: BEGIN:ONLY_INCLUDE_IN(flask)
foxIconName = IconName.Flask;
///: END:ONLY_INCLUDE_IN

return {
headerTitle: () => (
<View style={innerStyles.headerTitle}>
Expand All @@ -987,7 +981,7 @@ export function getWalletNavbarOptions(
),
headerLeft: () => (
<Icon
name={foxIconName}
name={IconName.Fox}
IconSize={IconSize.Xl}
style={styles.fox}
testID="fox-icon"
Expand Down
12 changes: 6 additions & 6 deletions app/components/Views/Settings/AppInformation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ export default class AppInformation extends PureComponent {
updateNavBar = () => {
const { navigation } = this.props;
const colors = this.context.colors || mockTheme.colors;
let aboutMetaMaskTitle = strings('app_settings.info_title');

///: BEGIN:ONLY_INCLUDE_IN(flask)
aboutMetaMaskTitle = strings('app_settings.info_title_flask');
///: END:ONLY_INCLUDE_IN
navigation.setOptions(
getNavigationOptionsTitle(
strings('app_settings.info_title'),
navigation,
false,
colors,
),
getNavigationOptionsTitle(aboutMetaMaskTitle, navigation, false, colors),
);
};

Expand Down
8 changes: 7 additions & 1 deletion app/components/Views/Settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ const Settings = () => {
trackEvent(MetaMetricsEvents.NAVIGATION_TAPS_LOGOUT);
};

let aboutMetaMaskTitle = strings('app_settings.info_title');

///: BEGIN:ONLY_INCLUDE_IN(flask)
aboutMetaMaskTitle = strings('app_settings.info_title_flask');
///: END:ONLY_INCLUDE_IN

return (
<ScrollView style={styles.wrapper}>
<SettingsDrawer
Expand Down Expand Up @@ -213,7 +219,7 @@ const Settings = () => {
testID={EXPERIMENTAL_SETTINGS}
/>
<SettingsDrawer
title={strings('app_settings.info_title')}
title={aboutMetaMaskTitle}
onPress={onPressInfo}
testID={ABOUT_METAMASK_SETTINGS}
/>
Expand Down
1 change: 1 addition & 0 deletions locales/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@
"remove_network": "Remove",
"cancel_remove_network": "Cancel",
"info_title": "About MetaMask",
"info_title_flask": "About MetaMask Flask",
"experimental_title": "Experimental",
"experimental_desc": "WalletConnect & more...",
"legal_title": "Legal",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"start:ios:e2e": "./scripts/build.sh ios debugE2E",
"start:ios:e2e:qa": "./scripts/build.sh ios qadebugE2E",
"start:ios:device": "./scripts/build.sh ios debug --device",
"start:ios:flask": "./scripts/build.sh ios flaskDebug",
"start:ios:flask": "export METAMASK_BUILD_TYPE='flask' && ./scripts/build.sh ios flaskDebug",
"start:android": "./scripts/build.sh android debug",
"start:android:qa": "./scripts/build.sh android qaDebug",
"start:android:e2e": "./scripts/build.sh android debugE2E",
Expand Down

0 comments on commit 4e46766

Please sign in to comment.