Whether you are new to Gradle or an experienced Android developer, Java consultant Ken Kousen will help you get better acquainted with the Gradle automated build system. With ?enough Groovy to get by,? you?ll learn Groovy?s relationship to Java and how it defines both static and dynamic variables. You?ll also build and run a simple Android app, test it, and modify it to add capabilities.
- Gradle basics: use a Gradle build for a Java project, define custom tasks and insert them into the Gradle directed acyclic graph, and add plugins using a buildscript
- Build types: create debug-and-release Android application packages (APK), and learn how to sign and prepare a release APK
- Run tests: test non-user interface components, specifically data access layers
- Use a third-party UI testing library: test UI components, and run tests on all connected devices simultaneously
- Define multiple flavors: create different versions of the same application, change images and other resources, and generate multiple APKs
Topics include:
- Introduction
- Enough Groovy to Get By
- Gradle Basics
- Hello, World! Android Application
- Build Types
- Running Tests
- Defining Multiple Flavors
- Multi-Module Projects
- Conclusions