Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

feat: Allow single zip bundle to contain multiple app SDK builds #556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nextlevelbeard
Copy link

Use case: A user configures the app capability with a .zip file.
The file contains builds at the same revision for multple SDKs, simulator and device, therefore it contains at the root both an .ipa and .app file.

Previously, If there were multiple tests running, they would all reuse the same cached application file that was first unzipped. This means that if the first test was on a real device and the second test ran on a simulator, the cached application became the unzipped .ipa file, producing a bad app error when testing on the simulator. And vice-versa.

This change first tries to configure the app with the proper supportedAppExtensions (as it was already previously doing) and when it errors detecting the different desired extension, Appium will look inside the .zip archive again for a file with the correct extension.

To fully allow for this is, the XCUITest driver also needs this tiny change appium/appium-xcuitest-driver#1408

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 13, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: nextlevelbeard / name: Ricardo Barbosa (885057a)

@nextlevelbeard nextlevelbeard force-pushed the zip_app_multiple_sdks branch from 885057a to b72e902 Compare May 13, 2022 12:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant