Try again

This commit is contained in:
Zhiyuan Zheng 2021-01-23 03:15:15 +01:00
parent 86231fb7b7
commit 8024871a8d
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
6 changed files with 4 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 => {})
}
}

View File

@ -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'