Every so often, after some local testing, I build and sign a version of my Android app for the Play Store that has the LOCAL_SERVER
flag still set to true. Of course this causes the app to fail for people because, in general, my users can't reach a my 192.168.1.x server.
Is there any way to get the release process to somehow auto-detect that I've left that constant in the "testing" state and fail before it gets accepted by Google Play?
I thought maybe I could conditionally call a dummy class and have ProGuard (which only runs on a "release" build) force-strip that class which would then generate an error because it found a call to a class that wasn't present. But ProGuard has no option to force-strip a class.
I thought maybe I could force "android:debuggable=true" which would then cause the upload to Play Store to fail. But I can't find any way to set that AndroidManifest flag based on a Java constant.
Any other ideas? I'm using Eclipse for development.