From 8024871a8dd8ec14c65a98d33279d0dcc3a4959c Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Sat, 23 Jan 2021 03:15:15 +0100 Subject: [PATCH] Try again --- .github/workflows/production.yml | 1 - .github/workflows/staging.yml | 1 - .github/workflows/testing.yml | 1 - src/components/analytics.ts | 5 +---- src/components/haptics.ts | 13 +++---------- src/components/toast.tsx | 1 - 6 files changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index dc21be1c..436cfbd7 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -19,7 +19,6 @@ jobs: expo-version: 4.x expo-username: ${{ secrets.EXPO_USERNAME }} expo-token: ${{ secrets.EXPO_TOKEN }} - expo-cache: true - name: -- Step 4 -- Install dependencies run: yarn install - name: -- Step 5 -- Publish diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 6ac384a2..02ade3b7 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -19,7 +19,6 @@ jobs: expo-version: 4.x expo-username: ${{ secrets.EXPO_USERNAME }} expo-token: ${{ secrets.EXPO_TOKEN }} - expo-cache: true - name: -- Step 4 -- Install dependencies run: yarn install - name: -- Step 5 -- Publish diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 6572cb50..3d65f38e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -19,7 +19,6 @@ jobs: expo-version: 4.x expo-username: ${{ secrets.EXPO_USERNAME }} expo-token: ${{ secrets.EXPO_TOKEN }} - expo-cache: true - name: -- Step 4 -- Install dependencies run: yarn install - name: -- Step 5 -- Publish diff --git a/src/components/analytics.ts b/src/components/analytics.ts index 0610add7..db6a7ade 100644 --- a/src/components/analytics.ts +++ b/src/components/analytics.ts @@ -1,10 +1,7 @@ import * as Analytics from 'expo-firebase-analytics' const analytics = (event: string, params?: { [key: string]: string }) => { - Analytics.logEvent(event, params).catch( - error => {} - // Sentry.Native.captureException(error) - ) + Analytics.logEvent(event, params) } export default analytics diff --git a/src/components/haptics.ts b/src/components/haptics.ts index 0f2b6bff..6bc9d9e1 100644 --- a/src/components/haptics.ts +++ b/src/components/haptics.ts @@ -1,14 +1,11 @@ import * as Haptics from 'expo-haptics' import { Platform } from 'react-native' -import * as Sentry from 'sentry-expo' const haptics = ( type: 'Success' | 'Warning' | 'Error' | 'Light' | 'Medium' | 'Heavy' ) => { if (Platform.OS === 'android') { - Haptics.impactAsync(Haptics.ImpactFeedbackStyle['Light']).catch(error => { - // Sentry.Native.captureException(error) - }) + Haptics.impactAsync(Haptics.ImpactFeedbackStyle['Light']).catch(error => {}) return } @@ -17,17 +14,13 @@ const haptics = ( case 'Warning': case 'Error': Haptics.notificationAsync(Haptics.NotificationFeedbackType[type]).catch( - error => { - // Sentry.Native.captureException(error) - } + error => {} ) break case 'Light': case 'Medium': case 'Heavy': - Haptics.impactAsync(Haptics.ImpactFeedbackStyle[type]).catch(error => { - // Sentry.Native.captureException(error) - }) + Haptics.impactAsync(Haptics.ImpactFeedbackStyle[type]).catch(error => {}) } } diff --git a/src/components/toast.tsx b/src/components/toast.tsx index c8075d4b..4616a125 100644 --- a/src/components/toast.tsx +++ b/src/components/toast.tsx @@ -5,7 +5,6 @@ import React from 'react' import { Platform, StyleSheet, Text, ToastAndroid, View } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import Toast from 'react-native-toast-message' -import * as Sentry from 'sentry-expo' export interface Params { type: 'success' | 'error' | 'warning'