-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add isSimulator for iOS & Android device #35
add isSimulator for iOS & Android device #35
Conversation
Should this be "Emulator" rather than "Simulator" (that's the terminology used elsewhere in Cordova, isn't it? And the typical terminology for Android and Windows at least)? |
Attempting to avoid a semantics argument, I chose to overlook this. |
2 other 'offers' |
Heh, I wasn't wanting to start a semantics argument, just after consistency. My understanding is that the usual terminology is "simulator" for iOS and "emulator" for Android and Windows. But we don't want to have two properties or different properties for different platforms. My point was all about being internally consistent: our command to run an app on an emulator/simulator is |
Ah, gotcha. |
device.isVirtual +1 |
Created an issue for this here: CB-9847 |
Works for me. |
@alsorokin Isn't this what you needed for disabling failing tests on iOS simulator? |
@nikhilkh this is essentially what I needed so I will use this to pend unsupported tests on iOS simulator |
Yes. Except it is only useful for plugins that depends on device. Accelerometer should not depend on device. I would like to move this directly into platforms, another discussion... |
@purplecabbage what if we add device dependency not to accelerometer plugin itself but to tests/plugin.xml ? |
Love it! |
Haha we were just chatting about this yesterday. Makes most sense to add the dependency to tests/plugin.xml |
@purplecabbage change pr and property name to isSimulator.