This is a Gradle version of Google's sample found on this page: