HomePhabricator
Diffusion Comm c78260547876

[native] Add URI scheme to debug Info.plist

Description

[native] Add URI scheme to debug Info.plist

Summary:
Resolves ENG-2730

Added the comm:// URI cheme to Info.debug.plist.
Didn't patch Expo, the --scheme flag is sufficient for now.

Test Plan:

  • For physical device:
    1. Build app (in Xcode or yarn expo run:ios -d --no-bundler - see D6309) 2.
cd native
yarn dev --scheme comm

Note that the URL has changed to a deep link! see image below

  1. Scan the QR code with the camera app. The Comm app should launch automatically, without the Expo launcher screen
  • For simulator:
    1. Build app - same as above, just select simulator
    2. Same as above
    3. In the Metro console, press the i key on the keyboard (or shift+i for device select screen). The Comm app should launch automatically, without the Expo launcher screen

Screenshot 2023-01-20 at 10.50.59.png (366×633 px, 21 KB)

It is also possible to check if Expo's scheme utility uri-scheme detects the scheme correctly:

$ npx uri-scheme list --info-path ./ios/Comm/Info.debug.plist
› iOS: Schemes for config: ./ios/Comm/Info.debug.plist
› comm://

Reviewers: ashoat, atul

Reviewed By: ashoat, atul

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D6319

Details

Provenance
bartekAuthored on Jan 17 2023, 9:33 AM
Reviewer
ashoat
Differential Revision
D6319: [native] Add URI scheme to debug Info.plist
Parents
rCOMMe58a23478a57: [Direnv] Use nix-direnv if possible
Branches
Unknown
Tags
Unknown