This commit is contained in:
shafi54 2026-11-18 22:42:11 +05:30
parent 48f18fc2ee
commit 5cf454274c
2 changed files with 52 additions and 0 deletions

View file

@ -64,6 +64,10 @@
}
},
"android": {
"blockedPermissions": [
"android.permission.READ_MEDIA_IMAGES",
"android.permission.READ_MEDIA_VIDEO"
],
"softwareKeyboardLayoutMode": "resize",
"adaptiveIcon": {
"foregroundImage": "./assets/images/freshyo-logo.png",

View file

@ -1963,3 +1963,51 @@ Screens: 01-home, 02-one-hour-delivery, 03-stores, 04-my-account
Status bar was overridden to 9:41 / full wifi / charged for both devices
(xcrun simctl status_bar override --time 9:41 ...).
[2026-11-18 17:01 IST] store-screenshots: strip alpha so App Store Connect accepts them.
xcrun simctl screenshots are 8-bit RGBA. App Store Connect rejects PNGs with an
alpha channel (the validator reports it as a dimensions/size error even though
1320x2868 and 1242x2688 were already exact).
Re-encoded all 9 PNGs in place (CoreGraphics, sRGB, 72 dpi, alpha dropped,
pixels otherwise untouched):
- apps/user-ui/store-screenshots/iphone-6.9-inch/*.png -> 8-bit/color RGB, hasAlpha: no
- apps/user-ui/store-screenshots/iphone-6.5-inch/*.png -> 8-bit/color RGB, hasAlpha: no
Also removed the stray .DS_Store files from those folders.
[2026-11-18 17:04 IST] store-screenshots: add the 6.3" (medium display) set.
App Store Connect 2026 names the screenshot tabs by device class and sizes are
not interchangeable: the tab you land on is "iPhone with Dynamic Island (medium
display)" and it only accepts 1179x2556 or 1206x2622, so 1320x2868 / 1242x2688
files fail there with a dimensions error even though they are valid elsewhere.
New: apps/user-ui/store-screenshots/iphone-6.3-inch-medium/*.png
Scaled from the 6.9" set with CoreGraphics (high interpolation, sRGB, 72 dpi,
no alpha): 1206 x 2622, 8-bit/color RGB, hasAlpha: no.
The 6.9" (1320x2868) and 6.5" (1242x2688) sets are unchanged and still valid
for the "large display" / "Face ID (large display)" tabs.
[2026-11-18 18:59:28 IST] user-ui (android): strip the media-read permissions nothing uses.
READ_MEDIA_IMAGES ships only because expo-screen-capture is installed (its
AndroidManifest declares it for API 33); no code imports that module.
READ_MEDIA_VIDEO is declared by nothing in node_modules today - blocking it is
a guard against a transitive AAR merging it back in.
Photos are picked with ImagePicker.launchImageLibraryAsync({mediaTypes:['images']}),
which uses the Android Photo Picker (no storage permission on 13+), and defect
photos come from CameraView (CAMERA only). The legacy READ/WRITE_EXTERNAL_STORAGE
pair (maxSdkVersion=32) stays so picking still works on Android <= 12.
--- apps/user-ui/app.json
"android": {
+ "blockedPermissions": [
+ "android.permission.READ_MEDIA_IMAGES",
+ "android.permission.READ_MEDIA_VIDEO"
+ ],
"softwareKeyboardLayoutMode": "resize",
...
Native change: needs a rebuild; cannot ship over OTA.