Adapted to Android Studio 0.8+
Logging disabled for Play Store
VersionCode fixed for Play Store