Ported to Android Studio (Gradle) format