mirror of
https://github.com/tooot-app/app
synced 2025-03-03 11:07:52 +01:00
Try again
This commit is contained in:
parent
86231fb7b7
commit
8024871a8d
1
.github/workflows/production.yml
vendored
1
.github/workflows/production.yml
vendored
@ -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
|
||||
|
1
.github/workflows/staging.yml
vendored
1
.github/workflows/staging.yml
vendored
@ -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
|
||||
|
1
.github/workflows/testing.yml
vendored
1
.github/workflows/testing.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 => {})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user