Skip to content

Commit

Permalink
Display version correctly for beta iOS simulators, bump version to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
NickEntin committed Aug 20, 2016
1 parent fdbcecb commit 2464c3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# SimPermissions

[![Build Status](https://travis-ci.org/NickEntin/SimPermissions.svg?branch=travis)](https://travis-ci.org/NickEntin/SimPermissions/)
[![Version 0.1.0](https://img.shields.io/badge/version-0.1.0-green.svg)](https://github.com/NickEntin/SimPermissions/releases)
[![Version 0.1.1](https://img.shields.io/badge/version-0.1.1-green.svg)](https://github.com/NickEntin/SimPermissions/releases)
[![Issues](https://img.shields.io/github/issues/nickentin/simpermissions.svg?maxAge=2592000)](https://github.com/NickEntin/SimPermissions/issues)
[![MIT License](https://img.shields.io/badge/license-MIT-lightgray.svg)](https://github.com/NickEntin/SimPermissions/blob/master/LICENSE)

Expand Down
4 changes: 2 additions & 2 deletions SimPermissions/Info.plist
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1.0</string>
<string>0.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>2</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
Expand Down
4 changes: 4 additions & 0 deletions SimPermissions/SimulatorManager.swift
Expand Up @@ -51,6 +51,10 @@ class SimulatorManager {
let deviceTypes: [String : AnyObject] = json["devices"] as? [String : AnyObject] {
for (deviceType, devices) in deviceTypes {
if deviceType.rangeOfString("iOS") != nil {
let deviceType = deviceType.stringByReplacingOccurrencesOfString("com.apple.CoreSimulator.SimRuntime.", withString: "")
.stringByReplacingOccurrencesOfString("iOS-", withString: "iOS ")
.stringByReplacingOccurrencesOfString("-", withString: ".")

if let devices = devices as? [[String:String]] {
simulators.appendContentsOf(simulatorsFromDescriptionList(devices, system: deviceType))
}
Expand Down

0 comments on commit 2464c3d

Please sign in to comment.