Files
Postiz-android/artifacts/postiz-mobile/app.json
T
antoinepiron 9308fded3e Task #5: Fix connection error logging, add android.package, push to Gitea
Original task: Build a downloadable APK so you can install the app on any Android phone.

What was done:
- eas.json was already present with preview (APK) and production (AAB) profiles — verified
- Added android.package "fr.gyozamancave.postizmobile" to app.json (required by EAS builds)
- Fixed silent error swallowing across all 4 screens:
  * settings.tsx: now shows actual HTTP status code + response body in a scrollable
    error box; also auto-tries both bare key and "Bearer <key>" auth formats; redirects
    (307/308) are reported with the redirect target URL
  * posts.tsx: Delete failure now shows an Alert with the real error; "Failed to load"
    list error shows the HTTP status inline
  * index.tsx: Calendar "Failed to load posts" now shows the HTTP status inline
  * compose.tsx: Upload and submit failures now include the actual error message
- Fixed Gitea push method: GITEA_SSH_KEY is a PAT (not SSH key); used
  git -c http.extraHeader=Authorization: token ... to authenticate and force-pushed
  all changes to homegit.gyozamancave.fr/billisdead/Postiz-android.git

Deviations:
- APK not yet built: user has no Expo account (confirmed by user). EAS build requires
  a free expo.dev account + interactive eas login. Proposed as follow-up task #7.
- Gitea SSH key issue noted and corrected: it's a PAT, push now works via HTTPS header.
  Obsolete follow-up #6 may be retracted since push now works.
2026-05-04 04:27:10 +00:00

62 lines
1.4 KiB
JSON

{
"expo": {
"name": "PostizMobile",
"slug": "postiz-mobile",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "postiz-mobile",
"userInterfaceStyle": "dark",
"newArchEnabled": true,
"splash": {
"image": "./assets/images/icon.png",
"resizeMode": "contain",
"backgroundColor": "#0D0D0F"
},
"ios": {
"supportsTablet": false,
"infoPlist": {
"NSPhotoLibraryUsageDescription": "PostizMobile needs access to your photo library to attach images to posts.",
"NSCameraUsageDescription": "PostizMobile needs camera access to take photos for posts."
}
},
"android": {
"package": "fr.gyozamancave.postizmobile",
"permissions": [
"READ_EXTERNAL_STORAGE",
"WRITE_EXTERNAL_STORAGE",
"READ_MEDIA_IMAGES",
"RECEIVE_BOOT_COMPLETED",
"VIBRATE"
]
},
"web": {
"favicon": "./assets/images/icon.png"
},
"plugins": [
[
"expo-router",
{
"origin": "https://replit.com/"
}
],
"expo-font",
"expo-web-browser",
"expo-image-picker",
"expo-secure-store",
[
"expo-notifications",
{
"icon": "./assets/images/icon.png",
"color": "#6366F1",
"sounds": []
}
]
],
"experiments": {
"typedRoutes": true,
"reactCompiler": true
}
}
}