Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Implement new events for debuggable WebViews detection #755

Merged
merged 2 commits into from
Jul 14, 2016

Conversation

rosen-vladimirov
Copy link
Collaborator

Implement debuggableViewFound, debuggableViewLost and debuggableViewChanged events that will be raised when there's a change in application's debuggable views.

@justcodebuilduser
Copy link

❤️

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/new-api-debug branch from 06c5570 to 7680f28 Compare July 14, 2016 10:18
@justcodebuilduser
Copy link

❤️

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/new-api-debug branch from 7680f28 to be480c0 Compare July 14, 2016 10:53
@justcodebuilduser
Copy link

❤️

let newAvailableViews = _.differenceBy(currentlyAvailableViews, previouslyAvailableViews, "id");
let notAvailableViews = _.differenceBy(previouslyAvailableViews, currentlyAvailableViews, "id");

_.each(notAvailableViews, debugWebViewInfo => this.emit("debuggableViewLost", appIdentifier, debugWebViewInfo));
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer if this lambda expression did not return the result of this.emit because we might get unexpected results in the event of this.emit returning false or undefined

Copy link
Contributor

Choose a reason for hiding this comment

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

This goes for the line below too

@Mitko-Kerezov
Copy link
Contributor

👍 after addressing comments

Implement `debuggableViewFound`, `debuggableViewLost` and `debuggableViewChanged` events that will be raised when there's a change in application's debuggable views.
Add new method to Public API: `getDebuggableViews` which will return debuggable views per application on device.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/new-api-debug branch from be480c0 to 198ae8e Compare July 14, 2016 13:50
@justcodebuilduser
Copy link

❤️

@rosen-vladimirov rosen-vladimirov merged commit c3f6c7c into master Jul 14, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/new-api-debug branch July 14, 2016 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants