0%

Book Description

Using the Android Studio IDE and the Gradle build tool will make Android app development much simpler—as long as you know your way around Gradle. This practical guide shows you how Gradle works with Android so that you can use it effectively on your projects. You’ll learn ways to customize project layouts, add dependencies, and even generate multiple different versions of your application.

Table of Contents

  1. Foreword
  2. Preface
    1. About the Book
    2. Prerequisites
    3. Conventions Used in This Book
    4. Using Code Examples
    5. Safari® Books Online
    6. How to Contact Us
    7. Acknowledgments
  3. Gradle for Android Basics
    1. 1.1. Gradle Build Files in Android
    2. 1.2. Configure SDK Versions and Other Defaults
    3. 1.3. Executing Gradle Builds from the Command Line
    4. 1.4. Executing Gradle Builds from Android Studio
    5. 1.5. Adding Java Library Dependencies
    6. 1.6. Adding Library Dependencies Using Android Studio
    7. 1.7. Configuring Repositories
  4. From Project Import to Release
    1. 2.1. Setting Project Properties
    2. 2.2. Porting Apps from Eclipse ADT to Android Studio
    3. 2.3. Porting Apps from Eclipse ADT Using Eclipse
    4. 2.4. Upgrading to a Newer Version of Gradle
    5. 2.5. Sharing Settings Among Projects
    6. 2.6. Signing a Release APK
    7. 2.7. Signing a Release APK Using Android Studio
  5. Build Types and Flavors
    1. 3.1. Working with Build Types
    2. 3.2. Product Flavors and Variants
    3. 3.3. Merging Resources
    4. 3.4. Flavor Dimensions
    5. 3.5. Merging Java Sources Across Flavors
  6. Custom Tasks
    1. 4.1. Writing Your Own Custom Tasks
    2. 4.2. Adding Custom Tasks to the Build Process
    3. 4.3. Excluding Tasks
    4. 4.4. Custom Source Sets
    5. 4.5. Using Android Libraries
  7. Testing
    1. 5.1. Unit Testing
    2. 5.2. Testing with the Android Testing Support Library
    3. 5.3. Functional Testing with Robotium
    4. 5.4. Activity Testing with Espresso
  8. Performance and Documentation
    1. 6.1. Performance Recommendations
    2. 6.2. DSL Documentation
  9. Just Enough Groovy to Get By
  10. Gradle Basics
  11. Index
18.222.182.66