Book Description
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.
Table of Contents
Chapter 1: Getting Started with Gradle and Android Studio
Chapter 2: Basic Build Customization
Chapter 3: Managing Dependencies
Chapter 4: Creating Build Variants
Chapter 5: Managing Multimodule Builds
Chapter 6: Running Tests
Chapter 7: Creating Tasks and Plugins
Chapter 8: Setting Up Continuous Integration
Chapter 9: Advanced Build Customization
中文:
书名:Gradle for Android
使用Gradle自动化您的Android项目的构建过程
About This Book
- 为您的Android项目创建自定义Gradle任务和插件
- 配置不同的构建变量,每个变量都有自己的依赖项和属性
- 管理多模块项目,相互依赖地集成模块
Who This Book Is For
如果您是一位经验丰富的Android开发人员,想要提高您使用Gradle Android构建系统的技能,那么这本书是为您准备的。作为先决条件,您需要了解一些Android应用程序开发的概念。
What You Will Learn
- 使用Android Studio和Gradle构建新的Android应用程序和库
- 将项目从Eclipse迁移到Android Studio和Gradle
- 管理项目的本地和远程依赖项
- Create multiple build variants
- 在单个项目中包含多个模块
- 将测试集成到构建过程中
- 为Android项目创建自定义任务和插件
In Detail
Gradle是一个开源的构建自动化系统,它引入了一种基于Groovy的领域特定语言(DSL)来配置项目。通过使用Gradle,Android开发人员可以轻松地管理依赖项并设置整个构建过程。
这本书首先带你了解Gradle的基础知识,以及它如何与Android Studio一起工作。此外,您还将学习如何向项目添加本地和远程依赖项。您将使用构建变体,例如调试和发布、付费和免费,甚至这些东西的组合。这本书还将帮助您使用不同的库设置单元测试和集成测试,并将展示Gradle和Android Studio如何使运行测试变得更容易。最后,将向您展示一些关于应用程序构建过程的高级定制的提示和技巧。在本书结束时,您将能够定制整个构建过程,并为您的Gradle构建创建您自己的任务和插件。
Table of Contents
第1章:Gradle和Android Studio入门
第2章:基本构建定制
Chapter 3: Managing Dependencies
第4章:创建构建变体
第5章:管理多模块构建
Chapter 6: Running Tests
第7章:创建任务和插件
第8章:设置持续集成
第9章:高级构建定制
评论前必须登录!
注册