diff --git a/android/app/build.gradle b/android/app/build.gradle index 76a0e520d55e..1920f4b8e08c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -187,7 +187,7 @@ android { applicationId "io.metamask" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionName "7.67.0" + versionName "7.68.0" versionCode 3607 testBuildType System.getProperty('testBuildType', 'debug') testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/components/Nav/Main/MainNavigator.js b/app/components/Nav/Main/MainNavigator.js index dcb9c527749c..f38190a67857 100644 --- a/app/components/Nav/Main/MainNavigator.js +++ b/app/components/Nav/Main/MainNavigator.js @@ -424,7 +424,7 @@ const SettingsFlow = () => { { - const { colors } = useTheme(); - const styles = createStyles(colors); - - const renderIcon = (type: BiometryType) => { - if (Platform.OS === 'ios') { - if (type === BIOMETRY_TYPE.TOUCH_ID) { - return ( - - ); - } else if (type?.includes(AUTHENTICATION_TYPE.PASSCODE)) { - return ( - - ); - } - return ( - - ); - } - - if (Platform.OS === 'android') { - if (type === BIOMETRY_TYPE.FINGERPRINT) { - return ( - - ); - } else if (type === BIOMETRY_TYPE.FACE) { - return ( - - ); - } else if (type === BIOMETRY_TYPE.IRIS) { - return ( - - ); - } else if (type?.includes(AUTHENTICATION_TYPE.PASSCODE)) { - return ( - - ); - } - } - - return ( - - ); - }; - - if (hidden) return null; - - return ( - - {biometryType ? renderIcon(biometryType) : null} - - ); -}; - -export default BiometryButton; diff --git a/app/components/UI/BiometryButton/index.test.tsx b/app/components/UI/BiometryButton/index.test.tsx deleted file mode 100644 index e4dcc731659e..000000000000 --- a/app/components/UI/BiometryButton/index.test.tsx +++ /dev/null @@ -1,152 +0,0 @@ -import React from 'react'; -import { render } from '@testing-library/react-native'; -import { Platform } from 'react-native'; -import { BIOMETRY_TYPE } from 'react-native-keychain'; -import BiometryButton from './BiometryButton'; -import AUTHENTICATION_TYPE from '../../../constants/userProperties'; -import { LoginViewSelectors } from '../../Views/Login/LoginView.testIds'; - -jest.mock('react-native', () => ({ - ...jest.requireActual('react-native'), - Platform: { OS: 'ios' }, -})); - -const mockOnPress = jest.fn(); - -describe('BiometryButton', () => { - it('should hide when hidden is true', () => { - const { toJSON } = render( -