74235e8aea0c3447871791ed56e7d0131586a057

Author
Preet Patel <preet@patel.studio>
Committer
GitHub <noreply@github.com>
Date

Message

feat(react-native): add aliases for 2021 and 2022 iOS devices (#11191)

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/react-native/README.md b/plugins/react-native/README.md
  2index d0a53b8d71bd869f3a6a0d8a4fac5af31b2a69b8..88fa233b7038b70c9947a223e582aa9321a97d2f 100644
  3--- a/plugins/react-native/README.md
  4+++ b/plugins/react-native/README.md
  5@@ -11,66 +11,79 @@ plugins=(... react-native)
  6 
  7 ## Aliases
  8 
  9-| Alias          | React Native command                                                         |
 10-| :------------  | :-------------------------------------------------                           |
 11-| **rn**         | `react-native`                                                               |
 12-| **rns**        | `react-native start`                                                         |
 13-| **rnlink**     | `react-native link`                                                          |
 14-| _Logging_      |                                                                              |
 15-| **rnland**     | `react-native log-android`                                                   |
 16-| **rnlios**     | `react-native log-ios`                                                       |
 17-| _App Testing_  |                                                                              |
 18-| **rnand**      | `react-native run-android`                                                   |
 19-| **rnios**      | `react-native run-ios`                                                       |
 20-| _iPhone_       |                                                                              |
 21-| **rnios4s**    | `react-native run-ios --simulator "iPhone 4s"`                               |
 22-| **rnios5**     | `react-native run-ios --simulator "iPhone 5"`                                |
 23-| **rnios5s**    | `react-native run-ios --simulator "iPhone 5s"`                               |
 24-| **rnios6**     | `react-native run-ios --simulator "iPhone 6"`                                |
 25-| **rnios6s**    | `react-native run-ios --simulator "iPhone 6s"`                               |
 26-| **rnios6p**    | `react-native run-ios --simulator "iPhone 6 Plus"`                           |
 27-| **rnios6sp**   | `react-native run-ios --simulator "iPhone 6s Plus"`                          |
 28-| **rnios7**     | `react-native run-ios --simulator "iPhone 7"`                                |
 29-| **rnios7p**    | `react-native run-ios --simulator "iPhone 7 Plus"`                           |
 30-| **rnios8**     | `react-native run-ios --simulator "iPhone 8"`                                |
 31-| **rnios8p**    | `react-native run-ios --simulator "iPhone 8 Plus"`                           |
 32-| **rniosse**    | `react-native run-ios --simulator "iPhone SE"`                               |
 33-| **rniosx**     | `react-native run-ios --simulator "iPhone X"`                                |
 34-| **rniosxs**    | `react-native run-ios --simulator "iPhone Xs"`                               |
 35-| **rniosxsm**   | `react-native run-ios --simulator "iPhone Xs Max"`                           |
 36-| **rniosxr**    | `react-native run-ios --simulator "iPhone Xʀ"`                               |
 37-| **rnios11**    | `react-native run-ios --simulator "iPhone 11"`                               |
 38-| **rnios11p**   | `react-native run-ios --simulator "iPhone 11 Pro"`                           |
 39-| **rnios11pm**  | `react-native run-ios --simulator "iPhone 11 Pro Max"`                       |
 40-| _iPad_         |                                                                              |
 41-| **rnipad2**    | `react-native run-ios --simulator "iPad 2"`                                  |
 42-| **rnipad5**    | `react-native run-ios --simulator "iPad (5th generation)"`                   |
 43-| **rnipad6**    | `react-native run-ios --simulator "iPad (6th generation)"`                   |
 44-| **rnipadr**    | `react-native run-ios --simulator "iPad Retina"`                             |
 45-| **rnipada**    | `react-native run-ios --simulator "iPad Air"`                                |
 46-| **rnipada2**   | `react-native run-ios --simulator "iPad Air 2"`                              |
 47-| **rnipada3**   | `react-native run-ios --simulator "iPad Air (3rd generation)"`               |
 48-| **rnipadm2**   | `react-native run-ios --simulator "iPad mini 2"`                             |
 49-| **rnipadm3**   | `react-native run-ios --simulator "iPad mini 3"`                             |
 50-| **rnipadm4**   | `react-native run-ios --simulator "iPad mini 4"`                             |
 51-| **rnipadm5**   | `react-native run-ios --simulator "iPad mini (5th generation)"`              |
 52-| **rnipadp9**   | `react-native run-ios --simulator "iPad Pro (9.7-inch)"`                     |
 53-| **rnipadp12**  | `react-native run-ios --simulator "iPad Pro (12.9-inch)"`                    |
 54-| **rnipadp122** | `react-native run-ios --simulator "iPad Pro (12.9-inch) (2nd generation)"`   |
 55-| **rnipadp10**  | `react-native run-ios --simulator "iPad Pro (10.5-inch)"`                    |
 56-| **rnipad11**   | `react-native run-ios --simulator "iPad Pro (11-inch)"`                      |
 57-| **rnipad123**  | `react-native run-ios --simulator "iPad Pro (12.9-inch) (3rd generation)"`   |
 58-| _Apple TV_     |                                                                              |
 59-| **rnatv**      | `react-native run-ios --simulator "Apple TV"`                                |
 60-| **rnatv4k**    | `react-native run-ios --simulator "Apple TV 4K"`                             |
 61-| **rnatv4k1080**| `react-native run-ios --simulator "Apple TV 4K (at 1080p)"`                  |
 62-| **rnipad123**  | `react-native run-ios --simulator "iPad Pro (12.9-inch) (3rd generation)"`   |
 63-| _Apple Watch_  |                                                                              |
 64-| **rnaw38**     | `react-native run-ios --simulator "Apple Watch - 38mm"`                      |
 65-| **rnaw42**     | `react-native run-ios --simulator "Apple Watch - 42mm"`                      |
 66-| **rnaws238**   | `react-native run-ios --simulator "Apple Watch Series 2 - 38mm"`             |
 67-| **rnaws242**   | `react-native run-ios --simulator "Apple Watch Series 2 - 42mm"`             |
 68-| **rnaws338**   | `react-native run-ios --simulator "Apple Watch Series 3 - 38mm"`             |
 69-| **rnaws342**   | `react-native run-ios --simulator "Apple Watch Series 3 - 42mm"`             |
 70-| **rnaws440**   | `react-native run-ios --simulator "Apple Watch Series 4 - 40mm"`             |
 71-| **rnaws444**   | `react-native run-ios --simulator "Apple Watch Series 4 - 44mm"`             |
 72+| Alias         | React Native command                                   |
 73+| :------------ | :----------------------------------------------------- |
 74+| **rn**        | `react-native`                                         |
 75+| **rns**       | `react-native start`                                   |
 76+| **rnlink**    | `react-native link`                                    |
 77+| _Logging_     |                                                        |
 78+| **rnland**    | `react-native log-android`                             |
 79+| **rnlios**    | `react-native log-ios`                                 |
 80+| _App Testing_ |                                                        |
 81+| **rnand**     | `react-native run-android`                             |
 82+| **rnios**     | `react-native run-ios`                                 |
 83+| _iPhone_      |                                                        |
 84+| **rnios4s**   | `react-native run-ios --simulator "iPhone 4s"`         |
 85+| **rnios5**    | `react-native run-ios --simulator "iPhone 5"`          |
 86+| **rnios5s**   | `react-native run-ios --simulator "iPhone 5s"`         |
 87+| **rnios6**    | `react-native run-ios --simulator "iPhone 6"`          |
 88+| **rnios6s**   | `react-native run-ios --simulator "iPhone 6s"`         |
 89+| **rnios6p**   | `react-native run-ios --simulator "iPhone 6 Plus"`     |
 90+| **rnios6sp**  | `react-native run-ios --simulator "iPhone 6s Plus"`    |
 91+| **rnios7**    | `react-native run-ios --simulator "iPhone 7"`          |
 92+| **rnios7p**   | `react-native run-ios --simulator "iPhone 7 Plus"`     |
 93+| **rnios8**    | `react-native run-ios --simulator "iPhone 8"`          |
 94+| **rnios8p**   | `react-native run-ios --simulator "iPhone 8 Plus"`     |
 95+| **rniosse**   | `react-native run-ios --simulator "iPhone SE"`         |
 96+| **rniosx**    | `react-native run-ios --simulator "iPhone X"`          |
 97+| **rniosxs**   | `react-native run-ios --simulator "iPhone Xs"`         |
 98+| **rniosxsm**  | `react-native run-ios --simulator "iPhone Xs Max"`     |
 99+| **rniosxr**   | `react-native run-ios --simulator "iPhone Xʀ"`         |
100+| **rnios11**   | `react-native run-ios --simulator "iPhone 11"`         |
101+| **rnios11p**  | `react-native run-ios --simulator "iPhone 11 Pro"`     |
102+| **rnios11pm** | `react-native run-ios --simulator "iPhone 11 Pro Max"` |
103+| **rnios12**   | `react-native run-ios --simulator "iPhone 12"`         |
104+| **rnios12m**  | `react-native run-ios --simulator "iPhone 12 mini"`    |
105diff --git a/plugins/react-native/react-native.plugin.zsh b/plugins/react-native/react-native.plugin.zsh
106index 8323c27bd609c0e205f367d5a82eb1d8b5bfe6fe..afeaab4fd0883a8b22fcca3fd09835896b48038a 100644
107--- a/plugins/react-native/react-native.plugin.zsh
108+++ b/plugins/react-native/react-native.plugin.zsh
109@@ -28,9 +28,17 @@ alias rnios11='react-native run-ios --simulator "iPhone 11"'
110 alias rnios11p='react-native run-ios --simulator "iPhone 11 Pro"'
111 alias rnios11pm='react-native run-ios --simulator "iPhone 11 Pro Max"'
112 alias rnios12='react-native run-ios --simulator "iPhone 12"'
113+alias rnios12m='react-native run-ios --simulator "iPhone 12 mini"'
114 alias rnios12p='react-native run-ios --simulator "iPhone 12 Pro"'
115 alias rnios12pm='react-native run-ios --simulator "iPhone 12 Pro Max"'
116-
117+alias rnios13='react-native run-ios --simulator "iPhone 13"'
118+alias rnios13m='react-native run-ios --simulator "iPhone 13 mini"'
119+alias rnios13p='react-native run-ios --simulator "iPhone 13 Pro"'
120+alias rnios13pm='react-native run-ios --simulator "iPhone 13 Pro Max"'
121+alias rnios14='react-native run-ios --simulator "iPhone 14"'
122+alias rnios14pl='react-native run-ios --simulator "iPhone 14 Plus"'
123+alias rnios14p='react-native run-ios --simulator "iPhone 14 Pro"'
124+alias rnios14pm='react-native run-ios --simulator "iPhone 14 Pro Max"'
125 
126 # iPad
127 alias rnipad2='react-native run-ios --simulator "iPad 2"'