On 2014-09-16, 5:33 AM, Lucas Rocha wrote:
Thanks for bringing this up here, Nick!

<snip>

My ask: can folks suggest a technical path towards making dspec a part
of our application, available when we want it, but not always shipped?
I imagine lucasr has a model in mind, but I can't think of another
Android library or tool that pulls this off.

The rough plan I had in mind was: create a jar that only contains 'dev tools' 
code. Namely, we start with:
- ViewServer (https://github.com/romainguy/ViewServer) - So that we can use 
Hierarchy Viewer with Fennec.
- dspec (https://github.com/lucasr/dspec) - So that we can show specs whenever 
we need it while changing UI code.
- proble (https://github.com/lucasr/probe/) - So that we can run interceptors 
to debug layout behaviour.

This jar would only be used on local builds. In other words, I think it's fine 
(for now, anyway) to just have them readily available in a local build so that 
we can easily use them. No need to go further and integrate them by default.

ViewServer might be an easy one to have in code by default as it's just a 
single java class that you use in the main activity i.e. easy to disable.

We can certainly add Java-only thirdparty libraries very easily. bnicholson had a ticket that did this just a moment ago, as an example [1]. File and CC me for implementation or review.

Adding libs that require resources (such as dspec) is a little trickier; it's on my list but not high priority :(

Best,
Nick

[1] See (obsolete?) patches at https://bugzilla.mozilla.org/show_bug.cgi?id=1030896
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to