I have released version 0.8.0 of Atrium (an assertion library), supporting now JS and Android next to JVM - check it out (and feedback is welcome):
04/28/2019, 10:00 PM
Nice one, and thanks, @robstoll! I'm a big fan of liberal use of assertions, coming from iOS Development where they are well supported and encouraged. It's a shame that first-class assertions always been somewhat deprecated in the Android world by awkward runtime support. Anything that can make assertions feel well supported and usable again gets a thumbs-up from me - look forward to checking it out 🙂 👍
FWIW, where I found assertions particularly useful in the past was in 'gate-keeping' Threads from entering UI/Computation code. Our App, at the time, did a fair amount of processing so we ran a Computation thread apart from the UI thread - an arrangement which (inevitably) was often overlooked by newer developers until we 'asserted' the correct thread all over the place - cleaned up the behaviour in no time, and kept it clean!
04/29/2019, 11:16 AM
I am not sure but I think you are talking about a different thing. Atrium is an assertion library intended for tests, I guess you are talking about the JVM Option