Gradle for Android

Automate the build process for your Android projects with Gradle

Gradle for Android

Kevin Pelgrims

Automate the build process for your Android projects with Gradle
Mapt Subscription
FREE
$29.99/m after trial
eBook
$19.60
RRP $27.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$19.60
$34.99
$29.99p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783986828
Paperback172 pages

Book Description

Gradle is an open source build automation system that introduces a Groovy-based domain-specific language (DSL) to configure projects. Using Gradle makes it easy for Android developers to manage dependencies and set up the entire build process.

This book begins by taking you through the basics of Gradle and how it works with Android Studio. Furthermore, you will learn how to add local and remote dependencies to your project. You will work with build variants, such as debug and release, paid and free, and even combinations of these things. The book will also help you set up unit and integration testing with different libraries and will show how Gradle and Android Studio can make running tests easier. Finally, you will be shown a number of tips and tricks on the advanced customization of your application's build process. By the end of this book, you will be able to customize the entire build process, and create your own tasks and plugins for your Gradle builds.

Table of Contents

Chapter 1: Getting Started with Gradle and Android Studio
Android Studio
Understanding Gradle basics
Creating a new project
Getting started with the Gradle Wrapper
Migrating from Eclipse
Summary
Chapter 2: Basic Build Customization
Understanding the Gradle files
Getting started with tasks
Customizing the build
Summary
Chapter 3: Managing Dependencies
Repositories
Local dependencies
Dependency concepts
Inside Android Studio
Summary
Chapter 4: Creating Build Variants
Build types
Product flavors
Build variants
Signing configurations
Summary
Chapter 5: Managing Multimodule Builds
The anatomy of a multimodule build
Adding modules to a project
Tips and best practices
Summary
Chapter 6: Running Tests
Unit tests
Functional tests
Test coverage
Summary
Chapter 7: Creating Tasks and Plugins
Understanding Groovy
Getting started with tasks
Hooking into the Android plugin
Creating your own plugins
Summary
Chapter 8: Setting Up Continuous Integration
Jenkins
TeamCity
Travis CI
Further automation
Summary
Chapter 9: Advanced Build Customization
Reducing the APK file size
Speeding up builds
Ignoring Lint
Using Ant from Gradle
Advanced app deployment
Summary

What You Will Learn

  • Build new Android apps and libraries using Android Studio and Gradle
  • Migrate projects from Eclipse to Android Studio and Gradle
  • Manage the local and remote dependencies of your projects
  • Create multiple build variants
  • Include multiple modules in a single project
  • Integrate tests into the build process
  • Create custom tasks and plugins for Android projects

Authors

Table of Contents

Chapter 1: Getting Started with Gradle and Android Studio
Android Studio
Understanding Gradle basics
Creating a new project
Getting started with the Gradle Wrapper
Migrating from Eclipse
Summary
Chapter 2: Basic Build Customization
Understanding the Gradle files
Getting started with tasks
Customizing the build
Summary
Chapter 3: Managing Dependencies
Repositories
Local dependencies
Dependency concepts
Inside Android Studio
Summary
Chapter 4: Creating Build Variants
Build types
Product flavors
Build variants
Signing configurations
Summary
Chapter 5: Managing Multimodule Builds
The anatomy of a multimodule build
Adding modules to a project
Tips and best practices
Summary
Chapter 6: Running Tests
Unit tests
Functional tests
Test coverage
Summary
Chapter 7: Creating Tasks and Plugins
Understanding Groovy
Getting started with tasks
Hooking into the Android plugin
Creating your own plugins
Summary
Chapter 8: Setting Up Continuous Integration
Jenkins
TeamCity
Travis CI
Further automation
Summary
Chapter 9: Advanced Build Customization
Reducing the APK file size
Speeding up builds
Ignoring Lint
Using Ant from Gradle
Advanced app deployment
Summary

Book Details

ISBN 139781783986828
Paperback172 pages
Read More

Read More Reviews

Recommended for You

Android Studio Cookbook Book Cover
Android Studio Cookbook
$ 31.99
$ 22.40
Mastering Android Application Development Book Cover
Mastering Android Application Development
$ 35.99
$ 25.20
Android Programming for Beginners Book Cover
Android Programming for Beginners
$ 39.99
$ 28.00
Android 6 Essentials Book Cover
Android 6 Essentials
$ 23.99
$ 16.80
Asynchronous Android Book Cover
Asynchronous Android
$ 23.99
$ 16.80
Android Database Programming Book Cover
Android Database Programming
$ 23.99
$ 16.80