feat(mobile): Siri and Shortcuts intents plus a Control Center button#82
Open
GSTJ wants to merge 4 commits into
Open
feat(mobile): Siri and Shortcuts intents plus a Control Center button#82GSTJ wants to merge 4 commits into
GSTJ wants to merge 4 commits into
Conversation
…ter button Two Swift surfaces, both wired through CNG (nothing committed under ios/): - Main app target: "Start Swiping" and "Open Matches" App Intents plus an AppShortcutsProvider, so both actions show up in the Shortcuts app, Siri and Spotlight. They deep-link via pegada://swipe and pegada://messages. Compiled in by the new plugins/withAppIntents.js config plugin, which also generates <lang>.lproj/AppShortcuts.strings for the Siri phrases. Titles and descriptions localize through native.json's new ios["Localizable.strings"] section (Expo's locales support handles it natively); keys are identifier-style because Expo writes .strings keys unquoted. - targets/controls: iOS 18+ Control Center ControlWidgetButton (pawprint) that opens straight into the swipe deck, built as a WidgetKit extension via @bacons/apple-targets. Extension deployment target is 18.0, so older iOS ignores it while the app keeps supporting 15.1. Strings localized via the target's Localizable.xcstrings (en + pt-BR). The app intents are availability-gated (16.0 for intents, 16.4 for the shortcuts provider) since the app still deploys to iOS 15.1. Skipped the iOS 26 interactive snippet: a matches-count snippet needs an App Group entitlement plus a JS-to-UserDefaults sync bridge, too much surface for this PR relative to the payoff. Version bumped to 1.5.0 (native change).
…nsion target iOS allows one widget extension per app, so targets/controls becomes the shared targets/pegada-widgets target (deploymentTarget 16.2, byte-identical config across feature branches). The control gates itself to iOS 18 with @available / #available inside PegadaWidgetsBundle.swift.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pegada now shows up in Siri, Shortcuts and Spotlight ("Start Swiping", "Open Matches"), and iOS 18+ users can add a Pegada button to Control Center that jumps straight into the swipe deck.
Details
ios.appleTeamIdin the app config so the new extension signs.Testing steps