From 4b08a6d0819599e745d87b16b29b4aff2b68d5d4 Mon Sep 17 00:00:00 2001 From: Riccardo Pallaoro <95774148+pallaoro@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:46:03 +0000 Subject: [PATCH 1/2] Ateam Go: swipe a task to archive or delete it, and a + for a new task in the sidebar A task row on Home and a card on the Board slide left to uncover Archive (Restore on an archived one) and Delete, one open at a time. Delete is the desktop's: confirmed, the worktree and branch removed, and asked again when the box refuses because work would be lost. The phone now drops a task when its box says it was removed, from here or anywhere else. The wide-window sidebar gets a + beside Tasks that opens the board and hands the composer the keyboard, set to Task. --- apps/mobile/App.tsx | 94 ++++++++++++-- apps/mobile/src/Composer.tsx | 17 +++ apps/mobile/src/HomeScreen.tsx | 92 ++++++++++--- apps/mobile/src/SwipeActions.tsx | 177 ++++++++++++++++++++++++++ apps/mobile/src/task-actions.ts | 83 ++++++++++++ apps/mobile/src/task-refusals.test.ts | 14 ++ apps/mobile/src/task-refusals.ts | 16 +++ 7 files changed, 464 insertions(+), 29 deletions(-) create mode 100644 apps/mobile/src/SwipeActions.tsx create mode 100644 apps/mobile/src/task-actions.ts create mode 100644 apps/mobile/src/task-refusals.test.ts create mode 100644 apps/mobile/src/task-refusals.ts diff --git a/apps/mobile/App.tsx b/apps/mobile/App.tsx index bd48fa01..7116b51c 100644 --- a/apps/mobile/App.tsx +++ b/apps/mobile/App.tsx @@ -118,6 +118,7 @@ import type { SSHSetup } from "./src/provider-setup"; import { ScanQrIcon } from "./src/ScanQrIcon"; import { emptySSHForm, SSHFields, type SSHForm, savedSSHForm, saveSSHForm } from "./src/SSHFields"; import { SSHPreview } from "./src/SSHPreview"; +import { type SwipeAction, SwipeActions, swipeAccessibility } from "./src/SwipeActions"; import { useScrollFade } from "./src/scroll-fade"; import { prepareSSH } from "./src/ssh"; import { parseSSHLink } from "./src/ssh-link"; @@ -152,6 +153,7 @@ import { import { type Tab, TabStrip } from "./src/TabStrip"; import { TerminalScreen } from "./src/TerminalScreen"; import { STATUS_BAR, TopFade } from "./src/TopFade"; +import { taskSwipeActions } from "./src/task-actions"; import { sortTasks } from "./src/task-order"; import { useBoxCreation } from "./src/useBoxCreation"; import { useLeadBadge } from "./src/useLeadBadge"; @@ -261,16 +263,29 @@ function TaskCard({ tint, place, onOpen, + actions, }: { task: TaskDTO; tint: string; /** Where it runs (src/HomeScreen.tsx TaskPlace). */ place: TaskPlace; onOpen: () => void; + /** Its swipe actions, offered to VoiceOver here (the swipe itself wraps the card). */ + actions: SwipeAction[]; }) { const where = placeText(place); + const a11y = swipeAccessibility(actions); return ( - + a11y.onAccessibilityAction(e, onOpen) : undefined + } + > @@ -830,6 +845,9 @@ function Shell({ onTab, loops, onNewLoop, + onNewTask, + newTaskSeq, + onTaskGone, onEditLoop, onLoopsChanged, openTask, @@ -868,6 +886,12 @@ function Shell({ agents: AgentDTO[]; /** Every task on every box. */ tasks: TaskDTO[]; + /** The sidebar's + beside Tasks: the composer is asked to take the keyboard. */ + onNewTask: () => void; + /** Counts those asks (Composer `newTaskSeq`). */ + newTaskSeq: number; + /** A task was deleted or archived from its swipe: it leaves the board now. */ + onTaskGone: (id: string) => void; /** The selected project's tasks, from every box it's on. */ shown: TaskDTO[]; /** Where a task runs: its box when it isn't the Lead's, and whether that box is away. */ @@ -945,6 +969,8 @@ function Shell({ onLead(false); }; const [sidebarOrder, setSidebarOrder] = useState([]); + // The Board card swiped open, if any: one at a time. + const [swipedCard, setSwipedCard] = useState(null); const [missionSession, setMissionSession] = useState(); useEffect(() => { if (!openTask) setMissionSession(undefined); @@ -1042,6 +1068,13 @@ function Shell({ onTab("loops"); }} onNewLoop={onNewLoop} + onNewTask={() => { + // The composer lives under the board: go there and hand it the keyboard. + leaveDetail(); + onTab("board"); + onNewTask(); + }} + onTaskGone={onTaskGone} /> )} @@ -1189,6 +1222,10 @@ function Shell({ showsVerticalScrollIndicator={false} keyboardShouldPersistTaps="handled" {...scrollProps} + onScrollBeginDrag={(e) => { + setSwipedCard(null); + scrollProps.onScrollBeginDrag?.(e); + }} > {loading && shown.length === 0 ? ( @@ -1211,15 +1248,31 @@ function Shell({ {col.label} {inCol.length} - {inCol.map((t) => ( - onOpenTask(t)} - /> - ))} + {inCol.map((t) => { + const place = placeOf(t); + // A task whose box is asleep or not answering can't be + // changed from here. + const actions = place.away + ? [] + : taskSwipeActions(api, t, { gone: onTaskGone }); + return ( + setSwipedCard(open ? t.id : null)} + > + onOpenTask(t)} + actions={actions} + /> + + ); + })} ); }) @@ -1237,6 +1290,7 @@ function Shell({ onSelectProject={onSelectProject} placeOf={placeOf} onAddProject={onAddProject} + onTaskGone={onTaskGone} tasks={shown} loops={loops} loading={loading} @@ -1321,6 +1375,7 @@ function Shell({ onOpenSnack={onOpenSnack} onDismissSnack={onDismissSnack} runOn={runOn} + newTaskSeq={newTaskSeq} /> )} @@ -1603,6 +1658,14 @@ export default function App() { if (next) setLoops(next); }, [board]); + // A task left the board: its row and card go, and its terminal if it was open. + const dropTask = useCallback((id: string) => { + setTasks((prev) => (prev.some((t) => t.id === id) ? prev.filter((t) => t.id !== id) : prev)); + setOpenTask((t) => (t?.id === id ? null : t)); + }, []); + // The sidebar's + beside Tasks asks the composer to take the keyboard (Composer `newTaskSeq`). + const [newTaskSeq, setNewTaskSeq] = useState(0); + // Live updates: merge each pushed task in place (replace by id, or prepend if new). // The board's RPC fans in every live box and survives their reconnects (src/fleet.ts). useEffect(() => { @@ -1619,12 +1682,15 @@ export default function App() { return next; }); }); + // Deleted, or archived (a box says both this way), from here or anywhere else. + const offRemoved = board.events.onTaskRemoved(dropTask); const offLoops = board.loops.onUpdated(() => void refreshLoops()); return () => { off(); + offRemoved(); offLoops(); }; - }, [view, board, fleet, boxByKey, refreshLoops]); + }, [view, board, fleet, boxByKey, refreshLoops, dropTask]); // Consent state. A ref (not state) because connects read it synchronously and must // not be re-created when it flips, which would retrigger the effects that depend on it. @@ -3068,6 +3134,9 @@ export default function App() { placeOf={placeOf} loading={loading} creating={creating} + onNewTask={() => setNewTaskSeq((n) => n + 1)} + newTaskSeq={newTaskSeq} + onTaskGone={dropTask} snack={startedTask ? `Started ${startedTask.name}` : leadSent ? "Sent to the Lead" : asked} onOpenSnack={() => { // The list copy has the launch's newer status, if it has arrived. @@ -3565,8 +3634,9 @@ const styles = StyleSheet.create({ borderColor: C.line, borderRadius: 8, padding: 12, - marginBottom: 8, }, + // Around a card: clips what its swipe uncovers to the card's corners. + cardSwipe: { borderRadius: 8, marginBottom: 8 }, // From a box that's asleep or not answering: its board as last seen. cardAway: { opacity: 0.55 }, cardTop: { flexDirection: "row", alignItems: "flex-start", gap: 9 }, diff --git a/apps/mobile/src/Composer.tsx b/apps/mobile/src/Composer.tsx index ae0ad0ea..d5542daa 100644 --- a/apps/mobile/src/Composer.tsx +++ b/apps/mobile/src/Composer.tsx @@ -47,6 +47,9 @@ import { useKeyboardVisible } from "./useKeyboardVisible"; // that remounts (a tab switch) starts on it with no flicker. let lastTarget: ComposerTarget | null = null; +// The newest "new task" ask a composer has answered (its `newTaskSeq` prop). +let answeredNewTask = 0; + const C = { surface: "#141418", sunken: "#1c1c22", @@ -99,6 +102,7 @@ export function Composer({ onOpenSnack, onDismissSnack, runOn, + newTaskSeq = 0, }: { agents: AgentDTO[]; busy: boolean; @@ -116,6 +120,9 @@ export function Composer({ onDismissSnack: () => void; /** The Run on choice; absent when the project is on one box. */ runOn?: RunOn; + /** Counts asks for a new task from elsewhere (the sidebar's +): each one turns + * the switch to Task and takes the keyboard. */ + newTaskSeq?: number; }) { // Prefer an installed agent; fall back to claude so the picker is never empty // even when the box's availability probe came back empty (non-login daemon). @@ -157,6 +164,15 @@ export function Composer({ void saveComposerTarget(t); }; const toLead = target === "lead" && lead !== undefined; + // The composer may only be mounting now (the ask came from over a terminal), so + // what was already answered is kept outside it. Not saved as the remembered target. + const inputRef = useRef(null); + useEffect(() => { + if (newTaskSeq <= answeredNewTask) return; + answeredNewTask = newTaskSeq; + setTargetState("task"); + inputRef.current?.focus(); + }, [newTaskSeq]); const switchOpacity = useRef(new Animated.Value(1)).current; useEffect(() => { Animated.timing(switchOpacity, { @@ -345,6 +361,7 @@ export function Composer({ the field becomes an explicit task-name input (clearly labelled). */} {agentMode && !toLead ? TASK NAME : null} void; onLongPress?: () => void; + /** Its swipe actions, offered to VoiceOver here (the swipe itself wraps the row). */ + actions?: SwipeAction[]; sidebar?: boolean; /** Desktop-style icon-only navigation; only used in the sidebar. */ rail?: boolean; @@ -104,6 +109,7 @@ function TaskRow({ }) { const tags = tagsFor(task); const where = placeText(place); + const a11y = swipeAccessibility(actions); return ( a11y.onAccessibilityAction(e, onPress) : undefined + } > {task.agentId ? ( @@ -225,6 +235,8 @@ export function HomeScreen({ onOpenTask, onOpenLoops, onNewLoop, + onNewTask, + onTaskGone, scrollProps, topInset = 0, sidebar = false, @@ -246,6 +258,11 @@ export function HomeScreen({ onOpenTask: (task: TaskDTO) => void; onOpenLoops: () => void; onNewLoop: () => void; + /** The way to the composer, for the sidebar: a + beside Tasks. Absent on the + * phone's Home, where the composer sits right under the list. */ + onNewTask?: () => void; + /** A task was deleted or archived from its swipe: it leaves the board now. */ + onTaskGone: (id: string) => void; /** The list's scrolling, for what floats over it (scroll-fade.ts). */ scrollProps?: ScrollFadeProps; /** The floating top bar's height: the list scrolls under it and starts below it. */ @@ -267,6 +284,10 @@ export function HomeScreen({ const [loopsOpen, setLoopsOpen] = useState(true); const [archived, setArchived] = useState([]); const [archiveError, setArchiveError] = useState(null); + // Bumped when a swipe archives or restores a task, to read the archived list again. + const [archiveTick, setArchiveTick] = useState(0); + // The task row swiped open, if any: one at a time. + const [swiped, setSwiped] = useState(null); const [readError, setReadError] = useState(null); const [marking, setMarking] = useState(false); const [readAt, setReadAt] = useState>({}); @@ -306,6 +327,7 @@ export function HomeScreen({ .map((m) => m.id) .sort() .join(" "); + // biome-ignore lint/correctness/useExhaustiveDependencies: archiveTick asks for another read useEffect(() => { if (!view.showArchived) { setArchived([]); @@ -332,7 +354,7 @@ export function HomeScreen({ cancelled = true; off(); }; - }, [api, projectIds, view.showArchived]); + }, [api, projectIds, view.showArchived, archiveTick]); const loopTaskIds = useMemo(() => new Set(loops.map((l) => l.taskId).filter(Boolean)), [loops]); const ordered = useMemo(() => { const all = [ @@ -420,6 +442,10 @@ export function HomeScreen({ contentContainerStyle={[styles.content, { paddingTop: topInset + 6 }]} scrollIndicatorInsets={{ top: topInset }} {...scrollProps} + onScrollBeginDrag={(e) => { + setSwiped(null); + scrollProps?.onScrollBeginDrag?.(e); + }} > @@ -522,6 +548,17 @@ export function HomeScreen({ marking={marking} error={archiveError ?? readError} /> + {onNewTask && !rail && ( + + + + )} {(archiveError || readError) && !rail && ( {archiveError ?? readError} @@ -560,22 +597,43 @@ export function HomeScreen({ )} {(rail || !view.collapsed.includes(group.key)) && - group.tasks.map((t) => ( - onOpenTask(t)} - onLongPress={ - sort === "custom" && group.tasks.length > 1 - ? () => moveTask(t, group.tasks) - : undefined - } - sidebar={sidebar} - rail={rail} - selected={t.id === selectedTaskId} - /> - ))} + group.tasks.map((t) => { + // The rail's rows are icons, too narrow to slide; a task whose box + // is asleep or not answering can't be changed from here. + const actions = + rail || placeOf(t).away + ? [] + : taskSwipeActions(api, t, { + gone: (id) => { + setArchived((prev) => prev.filter((x) => x.id !== id)); + onTaskGone(id); + }, + changed: () => setArchiveTick((n) => n + 1), + }); + return ( + setSwiped(open ? t.id : null)} + > + onOpenTask(t)} + onLongPress={ + sort === "custom" && group.tasks.length > 1 + ? () => moveTask(t, group.tasks) + : undefined + } + sidebar={sidebar} + rail={rail} + selected={t.id === selectedTaskId} + actions={actions} + /> + + ); + })} )) ))} diff --git a/apps/mobile/src/SwipeActions.tsx b/apps/mobile/src/SwipeActions.tsx new file mode 100644 index 00000000..588a7d49 --- /dev/null +++ b/apps/mobile/src/SwipeActions.tsx @@ -0,0 +1,177 @@ +// A row that slides left to uncover its actions, as a box's card does in Boxes +// (BoxesScreen.tsx has its own copy, with a tray this one has no use for). Used +// for tasks on Home and the Board. One row open at a time: the list holds which, +// and closes it when it scrolls. +import Feather from "@expo/vector-icons/Feather"; +import { type ComponentProps, type ReactNode, useEffect, useRef } from "react"; +import { + Animated, + PanResponder, + Pressable, + type StyleProp, + StyleSheet, + Text, + View, + type ViewStyle, +} from "react-native"; +import { C } from "./theme"; + +export interface SwipeAction { + key: string; + label: string; + icon: ComponentProps["name"]; + /** Said to VoiceOver, on the button and as the row's action. */ + hint: string; + /** Permanent: drawn red. */ + danger?: boolean; + onPress: () => void; +} + +const ACTION_WIDTH = 76; +const DANGER_INK = "#15151a"; + +/** What a row hands VoiceOver so its swipe actions are reachable without the swipe. */ +export function swipeAccessibility(actions: SwipeAction[]) { + return { + accessibilityActions: [ + { name: "activate" }, + ...actions.map((a) => ({ name: a.key, label: a.hint })), + ], + onAccessibilityAction: ( + e: { nativeEvent: { actionName: string } }, + activate: () => void, + ): void => { + const name = e.nativeEvent.actionName; + if (name === "activate") activate(); + else actions.find((a) => a.key === name)?.onPress(); + }, + }; +} + +export function SwipeActions({ + actions, + open, + onOpenChange, + children, + style, + frontStyle, +}: { + /** None: the row doesn't slide. */ + actions: SwipeAction[]; + open: boolean; + onOpenChange: (open: boolean) => void; + children: ReactNode; + /** The clip around the row (its radius, its margins). */ + style?: StyleProp; + /** The sliding front: it needs an opaque background to cover the actions. */ + frontStyle?: StyleProp; +}) { + // The responder below is made once, so it reads what changes through refs. + const width = useRef(0); + width.current = actions.length * ACTION_WIDTH; + const openChange = useRef(onOpenChange); + openChange.current = onOpenChange; + const x = useRef(new Animated.Value(0)).current; + // Where the row rests (0 closed, -width open), so a drag starts from there. + const rest = useRef(0); + + const snap = (toOpen: boolean) => { + rest.current = toOpen ? -width.current : 0; + Animated.spring(x, { + toValue: rest.current, + useNativeDriver: true, + bounciness: 0, + speed: 22, + }).start(); + }; + + // The list closes this row when another opens, or when it scrolls. + // biome-ignore lint/correctness/useExhaustiveDependencies: snap is stable in effect + useEffect(() => { + if (!open && rest.current !== 0) snap(false); + }, [open]); + + const pan = useRef( + PanResponder.create({ + // Only a clearly horizontal drag is a swipe; anything else stays the list's scroll. + onMoveShouldSetPanResponder: (_, g) => + width.current > 0 && Math.abs(g.dx) > 10 && Math.abs(g.dx) > Math.abs(g.dy) * 1.5, + onPanResponderMove: (_, g) => { + x.setValue(Math.max(-width.current, Math.min(0, rest.current + g.dx))); + }, + onPanResponderRelease: (e, g) => { + // Judged by where the finger lifted, not by the last move: a quick flick can + // lift well past the last move event the row was sent (x0 is the grant point). + const at = rest.current + (e.nativeEvent.pageX - g.x0); + const toOpen = g.vx < -0.4 || (g.vx <= 0.4 && at < -width.current / 2); + snap(toOpen); + openChange.current(toOpen); + }, + onPanResponderTerminationRequest: () => false, + onPanResponderTerminate: () => { + snap(false); + openChange.current(false); + }, + }), + ).current; + + if (actions.length === 0) return {children}; + return ( + + {/* Behind the row, uncovered by the swipe. Hidden from VoiceOver while + covered: the row offers the same ones as its actions. */} + + {actions.map((a) => ( + { + onOpenChange(false); + a.onPress(); + }} + accessibilityRole="button" + accessibilityLabel={a.hint} + > + + {a.label} + + ))} + + + {children} + {/* An open row's tap closes it rather than opening what it shows. */} + {open && ( + onOpenChange(false)} + accessibilityLabel="Close actions" + accessibilityRole="button" + /> + )} + + + ); +} + +const styles = StyleSheet.create({ + clip: { overflow: "hidden" }, + actions: { position: "absolute", top: 0, right: 0, bottom: 0, flexDirection: "row" }, + action: { + flex: 1, + alignItems: "center", + justifyContent: "center", + gap: 3, + backgroundColor: C.sunken, + }, + danger: { backgroundColor: C.red }, + label: { color: C.ink, fontSize: 11, fontWeight: "700" }, + dangerLabel: { color: DANGER_INK }, + front: { backgroundColor: C.bg }, +}); diff --git a/apps/mobile/src/task-actions.ts b/apps/mobile/src/task-actions.ts new file mode 100644 index 00000000..259974cb --- /dev/null +++ b/apps/mobile/src/task-actions.ts @@ -0,0 +1,83 @@ +// What a task's swipe offers on Home and the Board (SwipeActions.tsx): Archive +// (or Restore, on an archived one) and Delete. Delete is the desktop's: the +// agent stopped, the worktree and the branch removed, after a confirmation; a +// task with unsaved or unmerged work is refused by its box and asked about again. +import type { AteamApi, TaskDTO } from "@ateam/protocol"; +import { Alert } from "react-native"; +import type { SwipeAction } from "./SwipeActions"; +import { archiveError, needsForce, said } from "./task-refusals"; + +type Api = Pick; + +async function remove(api: Api, task: TaskDTO, gone: (id: string) => void, force = false) { + try { + await api.tasks.remove({ id: task.id, deleteBranch: true, ...(force ? { force } : {}) }); + gone(task.id); + } catch (e) { + const message = said(e); + if (force || !needsForce(message)) return Alert.alert("Couldn't delete the task", message); + Alert.alert( + "Delete anyway?", + `"${task.name}" has uncommitted or untracked changes, or a branch that isn't merged. They will be lost.`, + [ + { text: "Cancel", style: "cancel" }, + { + text: "Delete anyway", + style: "destructive", + onPress: () => void remove(api, task, gone, true), + }, + ], + ); + } +} + +/** `gone`: the task left the board (deleted or archived). `changed`: it was + * archived or restored, for a list that shows archived tasks. */ +export function taskSwipeActions( + api: Api, + task: TaskDTO, + on: { gone: (id: string) => void; changed?: () => void }, +): SwipeAction[] { + const archived = task.archivedAt != null; + const setArchived = async () => { + try { + await api.tasks.setArchived(task.id, !archived); + if (!archived) on.gone(task.id); + on.changed?.(); + } catch (e) { + Alert.alert( + archived ? "Couldn't restore the task" : "Couldn't archive the task", + archiveError(said(e)), + ); + } + }; + return [ + { + key: "archive", + label: archived ? "Restore" : "Archive", + icon: archived ? "corner-up-left" : "archive", + hint: archived ? `Restore ${task.name} to the board` : `Archive ${task.name}`, + onPress: () => void setArchived(), + }, + { + key: "delete", + label: "Delete", + icon: "trash-2", + hint: `Delete ${task.name}`, + danger: true, + onPress: () => + Alert.alert( + "Delete this task?", + `"${task.name}": its agent is stopped, and its worktree and branch are removed. This can't be undone.`, + [ + { text: "Cancel", style: "cancel" }, + { + text: "Delete", + style: "destructive", + onPress: () => void remove(api, task, on.gone), + }, + ], + ), + }, + ]; +} diff --git a/apps/mobile/src/task-refusals.test.ts b/apps/mobile/src/task-refusals.test.ts new file mode 100644 index 00000000..565bb51d --- /dev/null +++ b/apps/mobile/src/task-refusals.test.ts @@ -0,0 +1,14 @@ +import { expect, test } from "bun:test"; +import { archiveError, needsForce } from "./task-refusals"; + +test("git refusing to drop work asks again; any other failure is just said", () => { + expect(needsForce("fatal: 'wt' contains modified or untracked files, use --force")).toBe(true); + expect(needsForce("error: The branch 'fix-login' is not fully merged.")).toBe(true); + expect(needsForce("Task not found")).toBe(false); + expect(needsForce("RPC timeout")).toBe(false); +}); + +test("a box with no archive says to update, other errors pass through", () => { + expect(archiveError("Unknown method tasks:setArchived")).toMatch(/older Ateam/); + expect(archiveError("Task not found")).toBe("Task not found"); +}); diff --git a/apps/mobile/src/task-refusals.ts b/apps/mobile/src/task-refusals.ts new file mode 100644 index 00000000..50a2ac7e --- /dev/null +++ b/apps/mobile/src/task-refusals.ts @@ -0,0 +1,16 @@ +// How a box's refusal to delete or archive a task reads (task-actions.ts). Pure +// TS, no React Native imports, so it runs under bun test. + +/** The box refused a plain delete because work would be lost (git's own words). */ +export function needsForce(message: string): boolean { + return /modified or untracked|not fully merged|use --force/i.test(message); +} + +export const said = (e: unknown) => (e instanceof Error ? e.message : String(e)); + +/** An older box has no archive: say that, not "Unknown method". */ +export function archiveError(message: string): string { + return /unknown method/i.test(message) + ? "This box runs an older Ateam with no archive. Update it from Boxes." + : message; +} From 146235c4c040ef65aa81cb969a629e9e65ff6670 Mon Sep 17 00:00:00 2001 From: Riccardo Pallaoro <95774148+pallaoro@users.noreply.github.com> Date: Wed, 18 Nov 2026 11:45:36 +0000 Subject: [PATCH 2/2] chore: Ateam Go 1.4.5 (39) --- apps/mobile/app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/app.json b/apps/mobile/app.json index ba4b2461..3b0298c8 100644 --- a/apps/mobile/app.json +++ b/apps/mobile/app.json @@ -29,7 +29,7 @@ "ios": { "supportsTablet": true, "bundleIdentifier": "com.clawnify.ateam", - "buildNumber": "38", + "buildNumber": "39", "infoPlist": { "ITSAppUsesNonExemptEncryption": false, "UISupportedInterfaceOrientations~ipad": [