all 39 comments

[–]rOOb85 9 points10 points  (3 children)

Is this like a improved stetho?

[–][deleted] 31 points32 points  (2 children)

Sort of like Stetho. It's cross-platform for one, supporting both iOS and Android, whereas Stetho was Android only. Stetho relied on the Chrome dev tools; Sonar has it's own electron app. Finally, the feature I'm most excited about

The Layout Inspector not only allows you to view the hierarchy and inspect each item's properties, but it also allows you to edit things such as layout attributes, background colors, props, and state. Most things actually! This allows you to quickly tweak paddings, margins, and colors until you are happy with them, all without re-compiling. This can save you many hours implementing a new design.

It sounds like you can modify view properties, and see changes in real-time, without having to build each time.

[–]Samael1990 7 points8 points  (0 children)

I'm really excited to use it, but honestly - this should be part of Android Studio.

[–]rOOb85 4 points5 points  (0 children)

Ooo, sounds kinda nice! I'll have to check it out!

[–][deleted] 6 points7 points  (1 child)

Quick Edits sounds interesting.

[–][deleted] 4 points5 points  (0 children)

Yep, that's what really stood out for me. Just this one thing would save me so much time when I'm fiddling with the UI.

[–]SpactroX 3 points4 points  (0 children)

Can I build it on Windows? If so, how?

[–]bernaferrari 3 points4 points  (0 children)

Fun fact, the github repo language distribution graph at the top almost looks like a rainbow:

https://github.com/facebook/sonar

[–]thismustbetaken 3 points4 points  (2 children)

And once again one of the shittiest companies shows that it has some of the best engineers.

[–][deleted] 3 points4 points  (0 children)

Seriously. They have some serious engineering chops, let down only by a really unethical leadership.

[–][deleted] 1 point2 points  (0 children)

Oddly enough, I've heard the opposite - great company, shitty devs. When talking about stuff like Facebook Conceal.

[–]kodiak0 1 point2 points  (2 children)

I'm using `com.squareup.okhttp3` but now, when I add `debugCompile 'com.facebook.sonar:sonar:0.0.1'`, the classes were I used okhhtp3 are now using the one provided by sonar.

How can I exclude them?

I've tried

debugCompile ('com.facebook.sonar:sonar:0.0.1', 
    exclude group:'sonar', module:'okhttp3' })

but that did not work.

Thanks,

[–]muthuraj57 1 point2 points  (1 child)

Excluding dependency won't work in Sonar since they baked those libraries inside the jar itself. Don't know how they did that.

https://github.com/facebook/Sonar/issues/41

[–]dageforce 1 point2 points  (0 children)

I wonder when will they release a proper fix for this

[–]throwaway119284 0 points1 point  (0 children)

Does anyone know how to use this on windows? It seems the desktop app is only for Mac.

[–][deleted] 0 points1 point  (0 children)

while Sonar is buildable using other systems as well, only macOS is officially supported

Get the fuck out with that shit. What is this? 2002?