The Android personnel only experienced their own basic question myself things ( AMA), it was good! Extremely we’re spreading all of our top 3 Android questions and answers from Dima, Erik, Guillermo, fancy and Yaroslav.
For those just who don’t determine a great deal about all of us, all of our droid application is big, with 100,000 contours of laws, more than 100 million downloads to the online perform store and an incredible organization of 17 those who build up they.
Getting an AMA on Reddit was a splendid window of opportunity for people to talk to any technical questions relating to promoting android applications on a substantial scale, the complex challenges we all experience at Badoo, all of our start provider jobs, posts to the blog site and things inbetween. Let’s get going !
Best 3
GreyAgency would like to understand what am the craziest device-specific insect we’ve must handle?
Guillermo: Won’t talk about owner, but there is a xxxSafeTextView and xxxSafeEditTextView, and we you should never freeze on setEnabled. We have a custom Lint check for that:)
Erik: there clearly was this package hardware (once once more, definitely not calling any figure) wherein training within the service library was put together to the Android structure. Thus if their service library variation failed to accommodate the internal a person you will become a preverify mistakes. Good times!
Full: I can’t remember the precise problem, but there was a collision that occurred on only a few systems that has been involving the system logging on they leading to an IllegalArgumentException.
Dima: long ago (if Dalvik had been fact and craft was at preview) one supplier chose to launch a cell phone with craft permitted automatically. We had a lot of fun with tweaking our obfuscation/optimisation software untill the software quit failing in haphazard locations.
There will always be destined to be smaller (and often big) difficulties with 3rd party implementations of Android os. The greatest thing to try to do for those who discover like this is certainly to increase the problem with yahoo for a check combined with the CTS (interface Test room) which can be portion of the being compatible system (this definitely doesn’t eliminate the matter, but fixes it for future years).
Sadly, there will always be went be compatibility troubles with third party implementations, but that’s the cost you have to pay for a open process.
Ideal 2
dancing_dead expected “How extended really does a complete develop take?”
Erik: way too long (creates will never getting speedy enough)!
Yaroslav: an entire really clean acquire gets about five minutes (on my MacBook professional, 13-inch, beginning 2015) and about 1 second for very hot build. it is too long, therefore we attempt reduce how many time most of us operated complete creates per beautiful. That’s the reason we have CI which works all of the checks for us and builds various app flavours somewhere in the cloud.
Guillermo: in order to reduce our develop hours, some of us has explored option tactics. I myself personally discovered dollars as a build method. This became developed by Twitter to manage a few of the constraints you start to experience today — it looks very comical whenever it runs! They claims high speed develops, which includes tradeoffs instance shifting how you consider components and dependencies. As it is just a build method, it will not perform dependency fixing for every person, a thing that can become some annoying in larger tasks. There does exist a Gradle plug-in called OkBuild that offers to correct that for yourself, creating most of the buckfiles and inferring most of the variables out of your current Gradle arrange, but so far I didn’t manage to make it work with his create:(
Even better is, you can compose almost everything that you are absent in Python and connect they to the acquire. Unhealthy factor happens to be, you have to publish several things, e.g. Retrolambda incorporation. Conclusions up to now: Buck need a lot of variations both in our develops and our personal coding elegance, and it’s also not yet determined that will make into large features.