-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[menu-bar][cli] Automatically select correct iOS device depending on …
…app type (#200) * [menu-bar][cli] Automatically select correct iOS device depending on app type * Add changelog entry
- Loading branch information
1 parent
db2cf0b
commit a7054c1
Showing
7 changed files
with
98 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { extractAppFromLocalArchiveAsync, detectIOSAppType } from 'eas-shared'; | ||
|
||
export async function detectIOSAppTypeAsync(appPath: string) { | ||
if (!appPath.endsWith('.app') && !appPath.endsWith('.ipa')) { | ||
appPath = await extractAppFromLocalArchiveAsync(appPath); | ||
} | ||
|
||
const appType = await detectIOSAppType(appPath); | ||
|
||
return appType; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Device } from 'common-types/build/devices'; | ||
|
||
import MenuBarModule from '../modules/MenuBarModule'; | ||
|
||
export const detectIOSAppTypeAsync = async (appPath: string) => { | ||
return (await MenuBarModule.runCli( | ||
'detect-ios-app-type', | ||
[appPath], | ||
console.log | ||
)) as Device['deviceType']; | ||
}; |
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