News for hackers. Stuff that matters.
Re:Open sourcing our Android and iOS apps by swanson on Wednesday December 14, 2016 @02:28PM (#13178913)
And actual tests for the Android app! It's a rarity, and especially annoying since the "sample" apps that Google provides pretends that testing doesn't exist.
Re:Open sourcing our Android and iOS apps by mathiasjakobsen on Wednesday December 14, 2016 @02:37PM (#13178987)
Agreed! But some great companies has been Open Source'ing their Android applications for a while. I.e. DuckDuckGo's app (https://github.com/duckduckgo/android) and the Forcastie weather app (https://github.com/martykan/forecastie). They are great references!
Re:Open sourcing our Android and iOS apps by V-2 on Thursday December 15, 2016 @07:10AM (#13184030)
I quickly looked up DuckDuckGo, and - unlike this one - boy is it spaghetti: https://github.com/duckduckgo/android/blob/master/src/com/du...

Yes I've seen worse, but this most certainly isn't a great example of how to structure an Android app, not to mention the overall untidiness (commented out lines, messed up indentations etc.)

Re:Open sourcing our Android and iOS apps by flukus on Thursday December 15, 2016 @12:39AM (#13182697)
Unit tests or integration tests? It may be better now, but android used to be a real pain to unit test, so much important functionality was baked into the Activity base class that was hard to substitute.
Re:Open sourcing our Android and iOS apps by V-2 on Thursday December 15, 2016 @07:14AM (#13184048)
They seem to favour unit tests over integration tests, which is achieved by abstracting the layout logic away from Activities and into view models that can be unit tested with no fuss.