All checks were successful
build-apk / build (push) Successful in 9m55s
Parking without an account showed "Your session expired — please sign in again." repeatedly and kicked the user back to the login screen. The 401 hook on the API client is global: it fires on every unauthorized response whether or not the caller caught the error. Anonymous Mode has no token, so any ParkSmarter call 401s, and two of them run automatically — discoverPaidSession() on open and every foreground, and the map's lastSessionLot() on every mount. Each one flipped the status to signedOut; re-entering anonymous mode ran them again, hence "over and over". Both call sites already caught their errors, which is why this hid: the bounce came from the client hook, not from the catch. - A 401 in Anonymous Mode is no longer treated as a session expiry. There is no session to expire, and bouncing to sign-in makes the mode pointless. This also covers the Sessions/Favorites/Scan tabs, which 401 the same way. - authBus carries the mode to the non-React modules that need it. - discoverPaidSession() and lastSessionLot() are skipped entirely when anonymous rather than fired and discarded. - "Last lot" now says it needs an account instead of silently doing nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
{
|
|
"expo": {
|
|
"name": "BigBrainParking",
|
|
"slug": "bigbrainparking",
|
|
"scheme": "bigbrainparking",
|
|
"version": "0.6.1",
|
|
"orientation": "portrait",
|
|
"userInterfaceStyle": "automatic",
|
|
"newArchEnabled": true,
|
|
"icon": "./assets/icon.png",
|
|
"android": {
|
|
"package": "top.mowden.bigbrainparking",
|
|
"versionCode": 22,
|
|
"edgeToEdgeEnabled": true,
|
|
"adaptiveIcon": {
|
|
"foregroundImage": "./assets/adaptive-icon.png",
|
|
"backgroundColor": "#FFFFFF"
|
|
},
|
|
"permissions": [
|
|
"ACCESS_COARSE_LOCATION",
|
|
"ACCESS_FINE_LOCATION",
|
|
"CAMERA",
|
|
"POST_NOTIFICATIONS",
|
|
"INTERNET",
|
|
"ACCESS_NETWORK_STATE"
|
|
]
|
|
},
|
|
"plugins": [
|
|
"expo-secure-store",
|
|
[
|
|
"expo-location",
|
|
{
|
|
"locationWhenInUsePermission": "Show nearby parking meters on the map."
|
|
}
|
|
],
|
|
"expo-notifications",
|
|
[
|
|
"react-native-vision-camera",
|
|
{
|
|
"cameraPermissionText": "Scan the QR code on a parking kiosk."
|
|
}
|
|
],
|
|
"./plugins/withReleaseSigning"
|
|
],
|
|
"extra": {
|
|
"psEnvironment": "prodv2",
|
|
"zoneLabelsApiUrl": "https://bigbrainparking.mowden.top",
|
|
"mapStyleUrl": "https://tiles.openfreemap.org/styles/liberty",
|
|
"mapStyleUrlDark": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",
|
|
"unifiedPushDefaultDistributor": "io.heckel.ntfy",
|
|
"debugHttp": false
|
|
}
|
|
}
|
|
}
|