Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

migrate to `expo-application` (#3417)

* migrate to `expo-application`

* replace additional usage

authored by

Hailey and committed by
GitHub
cddbbc4b 0433f8ad

+15 -21
+1 -2
package.json
··· 106 106 "emoji-mart": "^5.5.2", 107 107 "eventemitter3": "^5.0.1", 108 108 "expo": "^50.0.8", 109 - "expo-application": "~5.8.3", 109 + "expo-application": "^5.8.3", 110 110 "expo-build-properties": "^0.11.1", 111 111 "expo-camera": "~14.0.4", 112 112 "expo-clipboard": "^5.0.1", ··· 174 174 "react-native-uitextview": "^1.1.6", 175 175 "react-native-url-polyfill": "^1.3.0", 176 176 "react-native-uuid": "^2.0.1", 177 - "react-native-version-number": "^0.3.6", 178 177 "react-native-web": "~0.19.6", 179 178 "react-native-web-linear-gradient": "^1.1.2", 180 179 "react-native-web-webview": "^1.0.2",
+4 -4
src/lib/app-info.ts
··· 1 - import VersionNumber from 'react-native-version-number' 1 + import {nativeApplicationVersion, nativeBuildVersion} from 'expo-application' 2 2 3 3 export const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development' 4 4 export const IS_TESTFLIGHT = process.env.EXPO_PUBLIC_ENV === 'testflight' 5 5 6 6 const UPDATES_CHANNEL = IS_TESTFLIGHT ? 'testflight' : 'production' 7 - export const appVersion = `${VersionNumber.appVersion} (${ 8 - VersionNumber.buildVersion 9 - }, ${IS_DEV ? 'development' : UPDATES_CHANNEL})` 7 + export const appVersion = `${nativeApplicationVersion} (${nativeBuildVersion}, ${ 8 + IS_DEV ? 'development' : UPDATES_CHANNEL 9 + })`
+2 -2
src/lib/hooks/useOTAUpdates.ts
··· 1 1 import React from 'react' 2 2 import {Alert, AppState, AppStateStatus} from 'react-native' 3 - import app from 'react-native-version-number' 3 + import {nativeBuildVersion} from 'expo-application' 4 4 import { 5 5 checkForUpdateAsync, 6 6 fetchUpdateAsync, ··· 21 21 isIOS ? 'ios-build-number' : 'android-build-number', 22 22 // Hilariously, `buildVersion` is not actually a string on Android even though the TS type says it is. 23 23 // This just ensures it gets passed as a string 24 - `${app.buildVersion}`, 24 + `${nativeBuildVersion}`, 25 25 ) 26 26 await setExtraParamAsync( 27 27 'channel',
+3 -3
src/lib/sentry.ts
··· 4 4 */ 5 5 6 6 import {Platform} from 'react-native' 7 - import app from 'react-native-version-number' 7 + import {nativeApplicationVersion, nativeBuildVersion} from 'expo-application' 8 8 import * as info from 'expo-updates' 9 9 import {init} from 'sentry-expo' 10 10 ··· 21 21 * - `dev` 22 22 * - `1.57.0` 23 23 */ 24 - const release = app.appVersion ?? 'dev' 24 + const release = nativeApplicationVersion ?? 'dev' 25 25 26 26 /** 27 27 * Examples: ··· 33 33 * - `android.1.57.0.46` 34 34 */ 35 35 const dist = `${Platform.OS}.${release}${ 36 - app.buildVersion ? `.${app.buildVersion}` : '' 36 + nativeBuildVersion ? `.${nativeBuildVersion}` : '' 37 37 }` 38 38 39 39 init({
+5 -10
yarn.lock
··· 11735 11735 jest-message-util "^29.7.0" 11736 11736 jest-util "^29.7.0" 11737 11737 11738 + expo-application@^5.8.3: 11739 + version "5.8.3" 11740 + resolved "https://registry.yarnpkg.com/expo-application/-/expo-application-5.8.3.tgz#43991bd81d05c987b07b2f430c036cda1572bc62" 11741 + integrity sha512-IISxzpPX+Xe4ynnwX8yY52T6dm1g9sME1GCj4lvUlrdc5xeTPM6U35x7Wj82V7lLWBaVGe+/Tg9EeKqfylCEwA== 11742 + 11738 11743 expo-application@~5.8.0: 11739 11744 version "5.8.0" 11740 11745 resolved "https://registry.yarnpkg.com/expo-application/-/expo-application-5.8.0.tgz#b82cb98a08f91d61f047f6578e883e0deb9661f2" 11741 11746 integrity sha512-nNQ/ayC4P1ue0ZQSmUlG/K2ZHTPwHyYGsb0QtEmCFUCitsjPKIx4coNvAreZMuELvY7pD1zKr+pdtN/ULnljBA== 11742 - 11743 - expo-application@~5.8.3: 11744 - version "5.8.3" 11745 - resolved "https://registry.yarnpkg.com/expo-application/-/expo-application-5.8.3.tgz#43991bd81d05c987b07b2f430c036cda1572bc62" 11746 - integrity sha512-IISxzpPX+Xe4ynnwX8yY52T6dm1g9sME1GCj4lvUlrdc5xeTPM6U35x7Wj82V7lLWBaVGe+/Tg9EeKqfylCEwA== 11747 11747 11748 11748 expo-asset@~9.0.2: 11749 11749 version "9.0.2" ··· 18696 18696 version "2.0.1" 18697 18697 resolved "https://registry.yarnpkg.com/react-native-uuid/-/react-native-uuid-2.0.1.tgz#ed4e2dfb1683eddb66967eb5dca140dfe1abddb9" 18698 18698 integrity sha512-cptnoIbL53GTCrWlb/+jrDC6tvb7ypIyzbXNJcpR3Vab0mkeaaVd5qnB3f0whXYzS+SMoSQLcUUB0gEWqkPC0g== 18699 - 18700 - react-native-version-number@^0.3.6: 18701 - version "0.3.6" 18702 - resolved "https://registry.yarnpkg.com/react-native-version-number/-/react-native-version-number-0.3.6.tgz#dd8b1435fc217df0a166d7e4a61fdc993f3e7437" 18703 - integrity sha512-TdyXiK90NiwmSbmAUlUBOV6WI1QGoqtvZZzI5zQY4fKl67B3ZrZn/h+Wy/OYIKKFMfePSiyfeIs8LtHGOZ/NgA== 18704 18699 18705 18700 react-native-web-linear-gradient@^1.1.2: 18706 18701 version "1.1.2"