Repository: cordova-plugin-device Updated Branches: refs/heads/master 78763b31a -> 09a215b0a
CB-9865 Better simulator detection for iOS Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/commit/ffc819d5 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/ffc819d5 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/ffc819d5 Branch: refs/heads/master Commit: ffc819d5661f5aed98c0b08a5e524fc2d5087320 Parents: 78763b3 Author: Alexander Sorokin <[email protected]> Authored: Mon Oct 26 18:37:21 2015 +0300 Committer: Alexander Sorokin <[email protected]> Committed: Mon Oct 26 18:37:21 2015 +0300 ---------------------------------------------------------------------- src/ios/CDVDevice.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/ffc819d5/src/ios/CDVDevice.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVDevice.m b/src/ios/CDVDevice.m index 72843cf..f58c321 100644 --- a/src/ios/CDVDevice.m +++ b/src/ios/CDVDevice.m @@ -94,7 +94,13 @@ - (BOOL)isVirtual { - return TARGET_OS_SIMULATOR; + #if TARGET_OS_SIMULATOR + return true; + #elif TARGET_IPHONE_SIMULATOR + return true; + #else + return false; + #endif } @end --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
