Skip to content

Commit

Permalink
chore: remove QR code feature
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrisch authored and saulmc committed May 23, 2024
2 parents 8c3e054 + 0069a0f commit 725669a
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 121 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- uses: actions/setup-node@v3
- name: Create .env file
run: |
echo XMTP_ENV=${{ env.XMTP_ENV }} >> .env
echo THRID_WEB_CLIENT_ID=${{ secrets.THRID_WEB_CLIENT_ID }} >> .env
echo AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} >> .env
echo AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} >> .env
echo AWS_REGION=${{ secrets.AWS_REGION }} >> .env
echo AWS_S3_BUCKET=${{ secrets.AWS_S3_BUCKET }} >> .env
echo AWS_S3_FOLDER=${{ secrets.AWS_S3_FOLDER }} >> .env
echo AWS_S3_REGION=${{ env.AWS_S3_REGION }} >> .env
echo PUSH_SERVER=${{ env.PUSH_SERVER }} >> .env
echo THRID_WEB_CLIENT_ID=${{ secrets.THRID_WEB_CLIENT_ID }} >> .env
echo XMTP_ENV=${{ env.XMTP_ENV }} >> .env
- run: yarn
- run: cd android && ./gradlew assembleRelease
- name: Archive code coverage results
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"react-native-localize": "^3.0.4",
"react-native-mmkv": "^2.11.0",
"react-native-modal": "^13.0.1",
"react-native-qrcode-svg": "^6.2.0",
"react-native-randombytes": "^3.6.1",
"react-native-reanimated": "^3.6.1",
"react-native-safe-area-context": "4.5.0",
Expand Down Expand Up @@ -89,4 +88,4 @@
"engines": {
"node": ">=18"
}
}
}
8 changes: 0 additions & 8 deletions src/navigation/AppNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {LoadingScreen} from '../screens/LoadingScreen';
import {NewConversationScreen} from '../screens/NewConversationScreen';
import {OnboardingConnectWalletScreen} from '../screens/OnboardingConnectWalletScreen';
import {OnboardingEnableIdentityScreen} from '../screens/OnboardingEnableIdentityScreen';
import {QrCodeScreen} from '../screens/QrCodeScreen';
import {SearchScreen} from '../screens/SearchScreen';
import {UserProfilesScreen} from '../screens/UserProfilesScreen';
import {ScreenNames} from './ScreenNames';
Expand Down Expand Up @@ -93,13 +92,6 @@ export const AppNavigation = () => {
presentation: 'modal',
}}
/>
<AuthenticatedStack.Screen
name={ScreenNames.QRCode}
component={QrCodeScreen}
options={{
presentation: 'modal',
}}
/>
<AuthenticatedStack.Screen
name={ScreenNames.UserProfiles}
component={UserProfilesScreen}
Expand Down
1 change: 0 additions & 1 deletion src/navigation/ScreenNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export enum ScreenNames {
Group = 'group',
NewConversation = 'new_conversation',
Search = 'search',
QRCode = 'qr_code',
UserProfiles = 'user_profiles',
Dev = 'dev',
}
1 change: 0 additions & 1 deletion src/navigation/StackParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export type AuthenticatedStackParams = {
[ScreenNames.Group]: {id: string};
[ScreenNames.NewConversation]: {addresses: string[]};
[ScreenNames.Search]: undefined;
[ScreenNames.QRCode]: undefined;
[ScreenNames.UserProfiles]: {address: string};
[ScreenNames.Dev]: undefined;
};
Expand Down
1 change: 0 additions & 1 deletion src/navigation/linkingDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const linkingDefinition: LinkingOptions<RootStackParams> = {
},
},
[ScreenNames.Search]: 'search',
[ScreenNames.QRCode]: 'qr_code',
[ScreenNames.UserProfiles]: 'user_profiles',
},
},
Expand Down
7 changes: 1 addition & 6 deletions src/screens/AccountSettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {AppConfig} from '../consts/AppConfig';
import {useClientContext} from '../context/ClientContext';
import {useTypedNavigation} from '../hooks/useTypedNavigation';
import {translate} from '../i18n';
import {ScreenNames} from '../navigation/ScreenNames';
import {clearClientKeys} from '../services/encryptedStorage';
import {mmkvStorage} from '../services/mmkvStorage';
import {colors, greens, reds} from '../theme/colors';
Expand Down Expand Up @@ -263,11 +262,7 @@ export const AccountSettingsScreen = () => {
{translate('you')}
</Text>
}
left={
<Pressable onPress={() => navigate(ScreenNames.QRCode)}>
<Icon name="qr-code" />
</Pressable>
}
left={< Box />}

Check failure on line 265 in src/screens/AccountSettingsScreen.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
right={
<Pressable onPress={goBack}>
<Icon name="x-circle" />
Expand Down
93 changes: 0 additions & 93 deletions src/screens/QrCodeScreen.tsx

This file was deleted.

6 changes: 1 addition & 5 deletions src/screens/SearchScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,7 @@ export const SearchScreen = () => {
{translate('search')}
</Text>
}
left={
<Pressable onPress={() => navigate(ScreenNames.QRCode)}>
<Icon name="qr-code" />
</Pressable>
}
left={<Box />}
right={
<Pressable onPress={goBack}>
<Icon name="x-circle" />
Expand Down

0 comments on commit 725669a

Please sign in to comment.