All files / lib simulator-xcode-7.js

100% Statements 4/4
100% Branches 0/0
100% Functions 3/3
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60          11x   11x       7x         7x                                                                                      
import SimulatorXcode6 from './simulator-xcode-6';
 
class SimulatorXcode7 extends SimulatorXcode6 {
 
  constructor (udid, xcodeVersion) {
    super(udid, xcodeVersion);
 
    this.simulatorApp = 'Simulator.app';
  }
 
  static async _getDeviceStringVersionString (platformVersion) {
    let reqVersion = await this._getDeviceStringPlatformVersion(platformVersion);
    return `(${reqVersion})`;
  }
 
  static _getDeviceStringConfigFix () {
    return {
      'iPad Simulator (8.1)': 'iPad 2 (8.1)',
      'iPad Simulator (8.2)': 'iPad 2 (8.2)',
      'iPad Simulator (8.3)': 'iPad 2 (8.3)',
      'iPad Simulator (8.4)': 'iPad 2 (8.4)',
      'iPad Simulator (9.0)': 'iPad 2 (9.0)',
      'iPad Simulator (9.1)': 'iPad 2 (9.1)',
      'iPad Simulator (9.2)': 'iPad 2 (9.2)',
      'iPad Simulator (9.3)': 'iPad 2 (9.3)',
      'iPad Simulator (10.0)': 'iPad Retina',
      'iPad Simulator (10.1)': 'iPad Retina',
      'iPhone Simulator (8.1)': 'iPhone 6 (8.1)',
      'iPhone Simulator (8.2)': 'iPhone 6 (8.2)',
      'iPhone Simulator (8.3)': 'iPhone 6 (8.3)',
      'iPhone Simulator (8.4)': 'iPhone 6 (8.4)',
      // Fixing ambiguous device name by adding '[' at the end so intruments
      // correctly starts iPhone 6 [udid] and not the iPhone 6 (9.0) + Apple Watch
      // for ios9.0 and above; see #5619
      'iPhone Simulator (9.0)': 'iPhone 6 (9.0) [',
      'iPhone Simulator (9.1)': 'iPhone 6 (9.1) [',
      'iPhone Simulator (9.2)': 'iPhone 6 (9.2) [',
      'iPhone Simulator (9.3)': 'iPhone 6 (9.3) [',
      'iPhone 6 (9.0)': 'iPhone 6 (9.0) [',
      'iPhone 6 (9.1)': 'iPhone 6 (9.1) [',
      'iPhone 6 (9.2)': 'iPhone 6 (9.2) [',
      'iPhone 6 (9.3)': 'iPhone 6 (9.3) [',
      'iPhone 6 Plus (9.0)': 'iPhone 6 Plus (9.0) [',
      'iPhone 6 Plus (9.1)': 'iPhone 6 Plus (9.1) [',
      'iPhone 6 Plus (9.2)': 'iPhone 6 Plus (9.2) [',
      'iPhone 6 Plus (9.3)': 'iPhone 6 Plus (9.3) [',
      'iPhone 6s (9.0)': 'iPhone 6s (9.0) [',
      'iPhone 6s (9.1)': 'iPhone 6s (9.1) [',
      'iPhone 6s (9.2)': 'iPhone 6s (9.2) [',
      'iPhone 6s (9.3)': 'iPhone 6s (9.3) [',
      'iPhone 6s Plus (9.0)': 'iPhone 6s Plus (9.0) [',
      'iPhone 6s Plus (9.1)': 'iPhone 6s Plus (9.1) [',
      'iPhone 6s Plus (9.2)': 'iPhone 6s Plus (9.2) [',
      'iPhone 6s Plus (9.3)': 'iPhone 6s Plus (9.3) [',
    };
  }
}
 
export default SimulatorXcode7;