On Mon, Sep 22, 2014, at 15:43, Tomáš Procházka wrote: > I need it because I have special method App.isIDEBuild() in my app that > allow me to setup special debug stuff, like prefill login screen with > passwords, skip some screens to speed up development. But if app is > builded > from command line (on CI server), it must work as usual. So it is much > better to use App.isIDEBuild() than change code itself and forgot remove > something.
I would differentiate based on build type, either using BuildConfig.DEBUG (if I didn't need the CI server to make debug builds) or a custom BuildConfig field. Basically, you anoint one build type as being the "IDE build", and use other build types on the CI server. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 6.0: Android Studio-ified! -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
