Gradle for Andorid : automate the build process for your Android projects with Gradle /
Chapter 2: Basic Build Customization; Understanding the Gradle files; The settings file; The top-level build file; The module build file; Plugin; Android; Dependencies; Getting started with tasks; Base tasks; Android tasks; Inside Android Studio; Customizing the build; Manipulating manifest entries;...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2015.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Gradle and Android Studio; Android Studio; Staying up to date; Understanding Gradle basics; Projects and tasks; The build lifecycle; The build configuration file; Creating a new project; Getting started with the Gradle Wrapper; Getting the Gradle Wrapper; Running basic build tasks; Migrating from Eclipse; Using the import wizard; Migrating manually; Keeping the old project structure; Converting to the new project structure; Migrating libraries
- Library projectsCreating and using library project modules; Using .aar files; Dependency concepts; Configurations; Semantic versioning; Dynamic versions; Inside Android Studio; Summary; Chapter 4: Creating Build Variants; Build types; Creating build types; Source sets; Dependencies; Product flavors; Creating product flavors; Source sets; Multiflavor variants; Build variants; Tasks; Source sets; Resource and manifest merging; Creating build variants; Variant filters; Signing configurations; Summary; Chapter 5: Managing Multimodule Builds; The anatomy of a multimodule build
- The build lifecycle revisitedModule tasks; Adding modules to a project; Adding a Java library; Adding an Android library; Integrating Android Wear; Using Google App Engine; Analyzing the build file; Using the backend in an app; Custom tasks; Tips and best practices; Running module tasks from Android Studio; Speeding up multimodule builds; Module coupling; Summary; Chapter 6: Running Tests; Unit tests; JUnit; Robolectric; Functional tests; Espresso; Test coverage; Jacoco; Summary; Chapter 7: Creating Tasks and Plugins; Understanding Groovy; Introduction; Classes and members; Methods; Closures
- CollectionsGroovy in Gradle; Getting started with tasks; Defining tasks; Anatomy of a task; Using a task to simplify the release process; Hooking into the Android plugin; Automatically renaming APKs; Dynamically creating new tasks; Creating your own plugins; Creating a simple plugin; Distributing plugins; Using a custom plugin; Summary; Chapter 8: Setting Up Continuous Integration; Jenkins; Setting up Jenkins; Configuring the build; TeamCity; Setting up TeamCity; Configuring the build; Travis CI; Configuring the build; Further automation; The SDK manager plugin; Running tests