You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/10/26 23:52:51 UTC
[1/2] cordova-plugin-device git commit: CB-9865 Better simulator
detection for iOS
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 <al...@akvelon.com>
Authored: Mon Oct 26 18:37:21 2015 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/2] cordova-plugin-device git commit: Cleanup PRs. This closes #27.
This closes #17.
Posted by pu...@apache.org.
Cleanup PRs. This closes #27. This closes #17.
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/09a215b0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/09a215b0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/09a215b0
Branch: refs/heads/master
Commit: 09a215b0ac2684ca9f9c314cca745e70992cd0ad
Parents: ffc819d
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon Oct 26 15:52:46 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon Oct 26 15:52:46 2015 -0700
----------------------------------------------------------------------
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org