Fix some more warnings for web (#8316)
* export correct stub for web * use default import for package.json
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {Image} from 'expo-image'
|
import {Image} from 'expo-image'
|
||||||
import {requestMediaLibraryPermissionsAsync} from 'expo-image-picker'
|
import {requestMediaLibraryPermissionsAsync} from 'expo-image-picker'
|
||||||
import {AppBskyGraphDefs} from '@atproto/api'
|
import {type AppBskyGraphDefs} from '@atproto/api'
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ import {isNative, isWeb} from '#/platform/detection'
|
|||||||
import * as Toast from '#/view/com/util/Toast'
|
import * as Toast from '#/view/com/util/Toast'
|
||||||
import {atoms as a, useTheme} from '#/alf'
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
import {Button, ButtonText} from '#/components/Button'
|
import {Button, ButtonText} from '#/components/Button'
|
||||||
import {DialogControlProps} from '#/components/Dialog'
|
import {type DialogControlProps} from '#/components/Dialog'
|
||||||
import * as Dialog from '#/components/Dialog'
|
import * as Dialog from '#/components/Dialog'
|
||||||
import {Loader} from '#/components/Loader'
|
import {Loader} from '#/components/Loader'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export async function shareImageModal(_opts: {uri: string}) {
|
|||||||
throw new Error('TODO')
|
throw new Error('TODO')
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function saveImageToAlbum(_opts: {uri: string; album: string}) {
|
export async function saveImageToMediaLibrary(_opts: {uri: string}) {
|
||||||
// TODO
|
// TODO
|
||||||
throw new Error('TODO')
|
throw new Error('TODO')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,14 +5,14 @@
|
|||||||
|
|
||||||
import {init} from '@sentry/react-native'
|
import {init} from '@sentry/react-native'
|
||||||
|
|
||||||
import {version} from '#/../package.json'
|
import pkgJson from '#/../package.json'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Examples:
|
* Examples:
|
||||||
* - `dev`
|
* - `dev`
|
||||||
* - `1.99.0`
|
* - `1.99.0`
|
||||||
*/
|
*/
|
||||||
const release = process.env.SENTRY_RELEASE || version
|
const release = process.env.SENTRY_RELEASE || pkgJson.version
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The latest deployed commit hash
|
* The latest deployed commit hash
|
||||||
|
|||||||
Reference in New Issue
Block a user