Gradle for Android(PACKT,2015)

所需积分/C币:9 2015-08-19 00:23:50 6.51MB PDF
收藏 收藏 1
举报

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 Gr
Gradle for android Copyright o 2015 Packt Publishi ing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews rt has been made in the preparation of this book to ensure the accuracy of the information presented However the information contained in this book is sold without warranty, cither express or implied. Neither the author nor Pacl Publishing and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published July 2015 Production reference: 1140715 Published by Packt Publishing ltd Livery place 35 Livery street Birmingham b3 2PB UK ISBN978-1-78398-682-8 www.packtpub.com Credits Author Copy Editors Kevin Pelgril Puja Lal Laxmi subramanian Reviewers Peter friese Project Coordinator Jonathan h. Kau Shipra chashan Takuya miyamoto Marco A. Rodriquez-Suarez Proofreader Felix Schulze Safis Editing Hugo visser Ind jal Soni Commissioning Editor Amarabha banerjee Production coordinator Manu Joseph Acquisition Editor Nikhil Karkal Cover Work Manu Joseph Content Development editor Prachi bisht Technical editor Pankaj Kada About the author Kevin Pelgrims started his career as a net developer in Belgium. After some years working on Windows and web development for corporate clients, he moved to Copenhagen to become part of its start-up community. There, he began working on mobile platforms, and within a year, he was the lead developer of several android and Windows Phone apps. Kevin is also a regular speaker at the Android developers roup in Copenhagen. He maintains multiple android apps in his spare time and likes to experiment with server-side technology When he is not busy writing code he is most likely playing the guitar with his wife and their cat To follow what Kevin is up to, you can take a look at his blog at http://www.kevinpelgrims.comorfollowhimonTwitteratokevinpelgrims I could not have written this book without the support of my brilliant wife, Louise. not only did she put up with me spending entire evenings and weekends with my computer she also proofread the entire book, improving the language and the grammar I would like to thank Packt Publishing for giving me the opportunity to write this book, especially Nikhil Karkal and Prachi Bisht, for believing in me and guiding me throughout the process. I appreciate the help of my friend Koen Metsu, whose comments helped in making sure that the explanations and examples are easy to understand Thanks to Anders Bo Pedersen and Emanuele Zattin for coming up with several improvements I also want to thank the reviewers: Hugo visser, peter Friese Felix Schulze, Takuya miyamoto jonathan h. Kau, and marco Rodriguez-Suarez. Their input has significantly improved the Jigsaw, who encouraged me to stay focused and keep going B content of this book. Last but not least, special thanks to our ca sitting on my lap so I couldn' t get up About the reviewers Peter Friese works as a developer advocate at google in the developer relations team in London, UK. He is a regular open source contributor, blogger, and public speaker. He is on Twitter at @peterfriese and on Google+ at +peterfriese. Youcanfindhisblogathttp://www.peterfriese.de Jonathan H. Kau is an experienced Android developer, having published several standalone applications to Google Play and worked on numerous hackathon projects leveraging Android In the past, he has worked on the mobile team at Yelp and as a contractor for Propeller Labs. Jonathan is currently working in the engineering team at Shyp, both on the android application and the corresponding backend aPI I'd like to thank packt Publishing for giving me the opportunity to review this educational book that will hopefully simplify the use of gradle for many developers Takuya Miyamoto is a full-stack developer with 6 years of experience in designing, implementing and maintaining various types of web services and aPIs such as e-commerce and sNS. he also has some experience as an android developer He has worked as a senior engineer in an enterprise, as a lead engineer in start-ups, and is currently working as an individual developer Marco A. Rodriguez-Suarez is the head of mobile at Snapwire, a collaborative platform and marketplace that connects photographers with brands and businesses around the world Prior to that, he worked in mobile consulting on diverse projects ranging from topics such as video streaming to game emulation. He has been working with Android since the release of the first public device in 2008 and has been hooked on mobile development ever since. He is passionate about build systems and has extensive experience with Gradle, Maven, and Ant. Marco received his masters degree in electrical engineering from the University of California at Santa Barbara Felix Schulze is leading the mobile software development department at Autoscout24 and is responsible for the android and ios development he also gives a lot of talks about continuous integration in app development and contributes to open source tools. His twitter handle is (axon; you can also check out his website atwww.felixschulze.de Hugo Visser has many years of experience as a software engineer, ranging from server-side to desktop and from web to mobile. Since the original announcement, he has closely followed the development of the Android platform, which resulted in his first app in 2009, Rainy Days, which has since been downloaded over 1,000,000 times worldwide He runs his own company, Little Robots, which focuses on apps and other clever uses of the android platform. He has been named the Google Developer Expert for Android by Google and is an organizer of The Dutch Android User Group, which is a community in the netherlands where android professionals can meet and share knowledge with each other during monthly meetings Www.Packtpub.com Support files, e Books, discount offers, and more Forsupportfilesanddownloadsrelatedtoyourbook,pleasevisitwww.packtpub.cOm Did you know that Packt offers eBook versions of every book published, with PDF andepubfilesavailableYoucanupgradetotheebookversionatwww.packtpub.cOm and as a print book customer you are entitled to a discount on the ebook copy Get in touch with us at service@packtpub com for more details Atwww.packtPub.comyoucanalsoreadacollectionoffreetechnicalarticles sign up for a range of free newsletters and receive exclusive discounts and offers on packt books and e books PACKTLIB https://www2.packtpub.com/books/subscription/packtlib Do you need instant solutions to your IT questions? PacktLib is Packt's online digit book library. Here, you can search, access, and read Packt's entire library of books Why subscribe? Fully searchable across every book published by Packt Copy and paste, print, and bookmark content On demand and accessible via a web browser Free access for packt account holders IfyouhaveanaccountwithPacktatwww.packtpub.comyoucanusethistoaccess Packtlib today and view g entirely free books. Simply use your login credentials for immediate access 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 23344 The build lifecycle The build configuration file Creating a new project Getting started with the Gradle Wrapper 4711 Getting the Gradle Wrapper Running basic build tasks 0023 Migrating from Eclipse Using the import wizard 14 Migrating manually 15 Keeping the old project structure Converting to the new project structure Migrating lib 18 Summary 18 Chapter 2: Basic Build Customization 19 Understanding the Gradle files 19 The settings file 20 The top-level build file 20 The module build file 21 Plugin 22 Android Dependencies

...展开详情
试读 127P Gradle for Android(PACKT,2015)
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    一个资源只可评论一次,评论内容不能少于5个字
    netbs88 下了几次,都不能下载下来。不知什么原因。
    2016-01-05
    回复
    img
    vanridin

    关注 私信 TA的资源

    上传资源赚积分,得勋章
    最新推荐
    Gradle for Android(PACKT,2015) 9积分/C币 立即下载
    1/127
    Gradle for Android(PACKT,2015)第1页
    Gradle for Android(PACKT,2015)第2页
    Gradle for Android(PACKT,2015)第3页
    Gradle for Android(PACKT,2015)第4页
    Gradle for Android(PACKT,2015)第5页
    Gradle for Android(PACKT,2015)第6页
    Gradle for Android(PACKT,2015)第7页
    Gradle for Android(PACKT,2015)第8页
    Gradle for Android(PACKT,2015)第9页
    Gradle for Android(PACKT,2015)第10页
    Gradle for Android(PACKT,2015)第11页
    Gradle for Android(PACKT,2015)第12页
    Gradle for Android(PACKT,2015)第13页
    Gradle for Android(PACKT,2015)第14页
    Gradle for Android(PACKT,2015)第15页
    Gradle for Android(PACKT,2015)第16页
    Gradle for Android(PACKT,2015)第17页
    Gradle for Android(PACKT,2015)第18页
    Gradle for Android(PACKT,2015)第19页
    Gradle for Android(PACKT,2015)第20页

    试读已结束,剩余107页未读...

    9积分/C币 立即下载 >