mirror of
https://github.com/tooot-app/app
synced 2025-03-03 19:20:11 +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-version: 4.x
|
||||||
expo-username: ${{ secrets.EXPO_USERNAME }}
|
expo-username: ${{ secrets.EXPO_USERNAME }}
|
||||||
expo-token: ${{ secrets.EXPO_TOKEN }}
|
expo-token: ${{ secrets.EXPO_TOKEN }}
|
||||||
expo-cache: true
|
|
||||||
- name: -- Step 4 -- Install dependencies
|
- name: -- Step 4 -- Install dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: -- Step 5 -- Publish
|
- 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-version: 4.x
|
||||||
expo-username: ${{ secrets.EXPO_USERNAME }}
|
expo-username: ${{ secrets.EXPO_USERNAME }}
|
||||||
expo-token: ${{ secrets.EXPO_TOKEN }}
|
expo-token: ${{ secrets.EXPO_TOKEN }}
|
||||||
expo-cache: true
|
|
||||||
- name: -- Step 4 -- Install dependencies
|
- name: -- Step 4 -- Install dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: -- Step 5 -- Publish
|
- 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-version: 4.x
|
||||||
expo-username: ${{ secrets.EXPO_USERNAME }}
|
expo-username: ${{ secrets.EXPO_USERNAME }}
|
||||||
expo-token: ${{ secrets.EXPO_TOKEN }}
|
expo-token: ${{ secrets.EXPO_TOKEN }}
|
||||||
expo-cache: true
|
|
||||||
- name: -- Step 4 -- Install dependencies
|
- name: -- Step 4 -- Install dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: -- Step 5 -- Publish
|
- name: -- Step 5 -- Publish
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
import * as Analytics from 'expo-firebase-analytics'
|
import * as Analytics from 'expo-firebase-analytics'
|
||||||
|
|
||||||
const analytics = (event: string, params?: { [key: string]: string }) => {
|
const analytics = (event: string, params?: { [key: string]: string }) => {
|
||||||
Analytics.logEvent(event, params).catch(
|
Analytics.logEvent(event, params)
|
||||||
error => {}
|
|
||||||
// Sentry.Native.captureException(error)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default analytics
|
export default analytics
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
import * as Haptics from 'expo-haptics'
|
import * as Haptics from 'expo-haptics'
|
||||||
import { Platform } from 'react-native'
|
import { Platform } from 'react-native'
|
||||||
import * as Sentry from 'sentry-expo'
|
|
||||||
|
|
||||||
const haptics = (
|
const haptics = (
|
||||||
type: 'Success' | 'Warning' | 'Error' | 'Light' | 'Medium' | 'Heavy'
|
type: 'Success' | 'Warning' | 'Error' | 'Light' | 'Medium' | 'Heavy'
|
||||||
) => {
|
) => {
|
||||||
if (Platform.OS === 'android') {
|
if (Platform.OS === 'android') {
|
||||||
Haptics.impactAsync(Haptics.ImpactFeedbackStyle['Light']).catch(error => {
|
Haptics.impactAsync(Haptics.ImpactFeedbackStyle['Light']).catch(error => {})
|
||||||
// Sentry.Native.captureException(error)
|
|
||||||
})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,17 +14,13 @@ const haptics = (
|
|||||||
case 'Warning':
|
case 'Warning':
|
||||||
case 'Error':
|
case 'Error':
|
||||||
Haptics.notificationAsync(Haptics.NotificationFeedbackType[type]).catch(
|
Haptics.notificationAsync(Haptics.NotificationFeedbackType[type]).catch(
|
||||||
error => {
|
error => {}
|
||||||
// Sentry.Native.captureException(error)
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
break
|
break
|
||||||
case 'Light':
|
case 'Light':
|
||||||
case 'Medium':
|
case 'Medium':
|
||||||
case 'Heavy':
|
case 'Heavy':
|
||||||
Haptics.impactAsync(Haptics.ImpactFeedbackStyle[type]).catch(error => {
|
Haptics.impactAsync(Haptics.ImpactFeedbackStyle[type]).catch(error => {})
|
||||||
// Sentry.Native.captureException(error)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ import React from 'react'
|
|||||||
import { Platform, StyleSheet, Text, ToastAndroid, View } from 'react-native'
|
import { Platform, StyleSheet, Text, ToastAndroid, View } from 'react-native'
|
||||||
import { SafeAreaView } from 'react-native-safe-area-context'
|
import { SafeAreaView } from 'react-native-safe-area-context'
|
||||||
import Toast from 'react-native-toast-message'
|
import Toast from 'react-native-toast-message'
|
||||||
import * as Sentry from 'sentry-expo'
|
|
||||||
|
|
||||||
export interface Params {
|
export interface Params {
|
||||||
type: 'success' | 'error' | 'warning'
|
type: 'success' | 'error' | 'warning'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user