-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91f2604
commit 1d4d80e
Showing
6 changed files
with
42 additions
and
43 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
33 changes: 33 additions & 0 deletions
33
packages/cli-platform-apple/src/commands/runCommand/getPlatformInfo.ts
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,33 @@ | ||
interface PlatformInfo { | ||
readableName: string; | ||
sdkNames: string[]; | ||
} | ||
|
||
export function getPlatformInfo(platform: string): PlatformInfo { | ||
const iosPlatformInfo: PlatformInfo = { | ||
readableName: 'iOS', | ||
sdkNames: ['iphonesimulator', 'iphoneos'], | ||
}; | ||
|
||
switch (platform) { | ||
case 'ios': | ||
return iosPlatformInfo; | ||
case 'tvos': | ||
return { | ||
readableName: 'tvOS', | ||
sdkNames: ['appletvsimulator', 'appletvos'], | ||
}; | ||
case 'visionos': | ||
return { | ||
readableName: 'visionOS', | ||
sdkNames: ['xrsimulator', 'xros'], | ||
}; | ||
case 'macos': | ||
return { | ||
readableName: 'macOS', | ||
sdkNames: ['macosx'], | ||
}; | ||
default: | ||
return iosPlatformInfo; | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
packages/cli-platform-apple/src/commands/runCommand/getPlatformReadableName.ts
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
packages/cli-platform-apple/src/commands/runCommand/getSDKNameFromPlatform.ts
This file was deleted.
Oops, something went wrong.
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