Page MenuHomePhabricator

[native] Add URI scheme to debug Info.plist
ClosedPublic

Authored by bartek on Jan 20 2023, 3:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 26 2024, 9:41 PM
Unknown Object (File)
Oct 26 2024, 9:41 PM
Unknown Object (File)
Oct 26 2024, 9:41 PM
Unknown Object (File)
Oct 26 2024, 9:37 PM
Unknown Object (File)
Oct 18 2024, 4:16 AM
Unknown Object (File)
Oct 8 2024, 11:06 PM
Unknown Object (File)
Sep 26 2024, 8:58 AM
Unknown Object (File)
Sep 26 2024, 8:58 AM
Subscribers

Details

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)
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://

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jan 20 2023, 4:03 AM

Same question about "opting in" as in D6320 – feels like we should make this the default in yarn start

Same question about "opting in" as in D6320 – feels like we should make this the default in yarn start

Answered in https://phab.comm.dev/D6320#189520

This revision is now accepted and ready to land.Jan 20 2023, 5:16 PM