Gradle Recipes for Android: Master the New Build System for Android

0
(0)

Gradle Recipes for Android: Master the New Build System for Android
 

  • Author:Ken Kousen
  • Length: 168 pages
  • Edition: 1
  • Publisher: O’Reilly Media
  • Publication Date: 2016-06-17
  • ISBN-10: 1491947020
  • ISBN-13: 9781491947029
  • Sales Rank: #2006256 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Android adopted Gradle as the preferred build automation system a few years ago, but many Android developers are still unfamiliar with this open source tool. This hands-on guide provides a collection of Gradle recipes to help you quickly and easily accomplish the most common build tasks for your Android apps. You’ll learn how to customize project layouts, add dependencies, and generate many different versions of your app.

    Gradle is based on Groovy, yet very little knowledge of the JVM language is required for you to get started. Code examples use Android SDK version 23, with emulators from Marshmallow (Android 6) or Lollipop (Android 5). If you’re comfortable with Java and Android, you’re ready.

    • Understand Gradle’s generated build files for Android apps
    • Run Gradle from the command line or inside Android Studio
    • Add more Java libraries to your Android app
    • Import and export Eclipse ADT projects
    • Digitally sign a Release APK for the Google Play store
    • Use product flavors to build many versions of the same app
    • Add custom tasks to the Gradle build process
    • Test both your app’s Android and non-Android components
    • Improve the performance of your Gradle build

    Table of Contents

    Chapter 1. Gradle for Android Basics
    Chapter 2. From Project Import to Release
    Chapter 3. Build Types and Flavors
    Chapter 4. Custom Tasks
    Chapter 5. Testing
    Chapter 6. Performance and Documentation
    Appendix A. Just Enough Groovy to Get By
    Appendix B. Gradle Basics

    中文:

    书名:Gradle Recipe for Android:掌握Android的新构建系统

    Android在几年前采用Gradle作为首选的构建自动化系统,但许多Android开发人员仍然不熟悉这个开源工具。这份实践指南提供了一系列Gradle食谱,帮助您快速轻松地完成Android应用程序最常见的构建任务。您将学习如何定制项目布局、添加依赖项以及生成多种不同版本的应用程序。

    Gradle是基于Groovy的,但是您只需要很少的JVM语言知识就可以入门。代码示例使用Android SDK版本23,带有来自棉花糖(Android 6)或棒棒糖(Android 5)的模拟器。如果您对Java和Android感到满意,那么您已经准备好了。

    • 了解Gradle为Android应用程序生成的构建文件
    • 从命令行或Android Studio内部运行Gradle
    • 向您的Android应用程序添加更多Java库
    • 导入和导出Eclipse ADT项目
    • 对Google Play商店的发布APK进行数字签名
    • 使用产品风格构建同一个应用程序的多个版本
    • 向Gradle构建流程添加自定义任务
    • 测试您的应用程序的Android和非Android组件
    • 提高Gradle版本的性能

    目录表

    Chapter 1. Gradle for Android Basics
    第2章:从项目导入到发布
    第三章.构建类型和口味
    第4章.自定义任务
    第五章.测试
    第6章.性能和文档
    附录A.仅够Groovy使用
    附录B.Gradle基础知识

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册