Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android][ios][expo-updates] fix manifest isVerified/id values for ex…
…po-cli-hosted and self-hosted apps (#9919) # Why The current logic for processing the manifest `id` and `isVerified` values for manifests coming from expo-updates breaks down in one case: expo-cli-hosted apps are getting the `id` replaced with `UNVERIFIED-IP.ADDR-app-slug` since they do not pass the check for being hosted on an Expo domain -- this is because we are not checking to see whether or not the manifest was signed & is already verified before replacing this `id` value. # How - Check for the `isVerified` key before replacing the `id` value. - Since anonymous apps hosted from expo-cli are signed with a bad value (UNSIGNED) rather than actually unsigned, we need to pass this information into the manifest in order to distinguish them from anonymous, self-hosted apps (which are actually unsigned, and which we want to treat differently). # Test Plan Test the following cases on both platforms: - anonymous self-hosted app (meaning a self-hosted app with the `@anonymous/` prefix in its id) should get its `id` replaced - anonymous expo-cli-hosted app should NOT get its `id` replaced - signed-in self-hosted app should get its `id` replaced - signed-in self-hosted app should NOT get its `id` replaced and `isVerified` should be `true` in all the above cases.
- Loading branch information
Showing
4 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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