Skip to content
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 support for disabling touch indicators with launch args #899

Merged
merged 3 commits into from
Aug 23, 2018

Conversation

haswalt
Copy link
Contributor

@haswalt haswalt commented Aug 23, 2018

Closes #640

Replaces: #751

@LeoNatan

Copy link
Contributor

@LeoNatan LeoNatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this PR!

A few small changes. Thanks

@@ -335,7 +335,7 @@ - (void)applicationWillEnterForeground:(UIApplication *)application

- (BOOL)touchVisualizerWindowShouldAlwaysShowFingertip:(COSTouchVisualizerWindow *)window
{
return YES;
return ![[NSUserDefaults standardUserDefaults] objectForKey:@"detoxDisableTouchIndicators"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not read from the user defaults for every touch.

Please take my changes from https://github.com/wix/detox/pull/751/files

@@ -182,6 +182,15 @@ describe('Device', () => {
});
});

it(`relaunchApp() with disableTouchIndicators should send a boolean switch as a param in launchParams`, async () => {
device = await validDevice();
await device.relaunchApp({disableTouchIndicators: true});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relaunchApp is deprecated API. Can you please change it to launchApp?

@LeoNatan
Copy link
Contributor

Fantastic, thank you!
Let's wait for the build to succeed and I will merge.

@LeoNatan LeoNatan merged commit afb1387 into wix:master Aug 23, 2018
@LeoNatan
Copy link
Contributor

Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Aug 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants