Gradle for Android

Kevin Pelgrims

買這商品的人也買了...

商品描述

Automate the build process for your Android projects with Gradle

About This Book

  • Create custom Gradle tasks and plugins for your Android projects
  • Configure different build variants, each with their own dependencies and properties
  • Manage multi-module projects, and integrate modules interdependently

Who This Book Is For

If you are an experienced Android developer wanting to enhance your skills with the Gradle Android build system, then this book is for you. As a prerequisite, you will need some knowledge of the concepts of Android application development.

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

In Detail

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.

商品描述(中文翻譯)

使用Gradle自動化Android專案的建置流程

關於本書
- 為Android專案建立自訂的Gradle任務和插件
- 配置不同的建置變體,每個變體都有自己的相依性和屬性
- 管理多模組專案,並將模組相互整合

本書適合對Gradle Android建置系統有一定經驗的Android開發人員。作為先決條件,您需要對Android應用程式開發的概念有一定的了解。

您將學到什麼
- 使用Android Studio和Gradle建立新的Android應用程式和庫
- 從Eclipse遷移專案到Android Studio和Gradle
- 管理專案的本地和遠端相依性
- 建立多個建置變體
- 在單一專案中包含多個模組
- 將測試整合到建置流程中
- 為Android專案建立自訂任務和插件

詳細內容
Gradle是一個開源的建置自動化系統,引入了一個基於Groovy的特定領域語言(DSL)來配置專案。使用Gradle可以讓Android開發人員輕鬆管理相依性並設定整個建置流程。

本書首先介紹了Gradle的基礎知識以及它如何與Android Studio一起使用。此外,您還將學習如何將本地和遠端相依性添加到專案中。您將使用建置變體,例如debug和release、付費和免費,甚至是這些組合。本書還將幫助您使用不同的庫設置單元測試和整合測試,並展示Gradle和Android Studio如何使測試運行更加容易。最後,本書將向您展示一些進階自訂應用程式建置流程的技巧和技巧。通過閱讀本書,您將能夠自訂整個建置流程,並為Gradle建置創建自己的任務和插件。