Files
offscale-mobile/package.json
T
pastilhasandClaude Opus 5 e3024a7818 fix(settings): read the build number from expo-application
The row said '1.0.0 (dev)' on a build stamped 2026081502.

Constants.nativeBuildVersion is deprecated in SDK 57 and returns nothing — not an
error, not a throw, just undefined, so the fallback fired and the screen reported the
opposite of the truth with complete confidence. A deprecation that quietly returns
undefined is the worst kind: everything looks like it is working.

expo-application is the documented replacement and reads the value from the bundle at
runtime, which is the number OAS stamps before signing.

Also removes the last use of expo-constants here, and with it the '1.0.0' half — the
marketing string that has never changed and cannot tell two builds apart.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-15 00:21:12 +01:00

54 lines
1.4 KiB
JSON

{
"name": "offscale-mobile",
"version": "1.0.0",
"license": "MIT",
"private": true,
"workspaces": [
"modules/*"
],
"main": "src/index.tsx",
"scripts": {
"start": "expo start",
"ios": "expo run:ios",
"android": "expo run:android",
"prebuild": "./scripts/gen-adaptive-icon.sh && expo prebuild",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@expo/vector-icons": "15.1.1",
"@react-native-async-storage/async-storage": "2.2.0",
"expo": "57.0.8",
"expo-application": "^57.0.2",
"expo-clipboard": "57.0.1",
"expo-constants": "57.0.7",
"expo-dev-client": "57.0.9",
"expo-modules-core": "57.0.7",
"expo-status-bar": "57.0.1",
"expo-system-ui": "57.0.1",
"nativewind": "4.2.6",
"officer-net": "workspace:*",
"react": "19.2.3",
"react-native": "0.86.0",
"react-native-reanimated": "4.5.3",
"react-native-safe-area-context": "5.7.0",
"react-native-svg": "15.15.4",
"react-native-worklets": "0.11.3"
},
"devDependencies": {
"@babel/core": "7.29.7",
"@babel/plugin-transform-react-jsx": "7.29.7",
"@types/react": "19.2.17",
"babel-preset-expo": "57.0.4",
"tailwindcss": "3.4.19",
"typescript": "6.0.3"
},
"overrides": {
"expo-asset": "57.0.7",
"expo-dev-launcher": "57.0.9",
"expo-dev-menu": "57.0.9",
"expo-file-system": "57.0.1",
"expo-modules-autolinking": "57.0.9",
"expo-server": "57.0.1"
}
}