├── _book ├── glossary_index.json ├── cover.jpg ├── cover_small.jpg ├── gitbook │ ├── images │ │ ├── favicon.ico │ │ └── apple-touch-icon-precomposed-152.png │ ├── fonts │ │ ├── opensans │ │ │ ├── 300.woff │ │ │ ├── 300i.woff │ │ │ ├── 400.woff │ │ │ ├── 400i.woff │ │ │ ├── 600.woff │ │ │ ├── 600i.woff │ │ │ ├── 700.woff │ │ │ └── 700i.woff │ │ ├── merriweather │ │ │ ├── 250.woff │ │ │ ├── 250i.woff │ │ │ ├── 400.woff │ │ │ ├── 400i.woff │ │ │ ├── 700.woff │ │ │ ├── 700i.woff │ │ │ ├── 900.woff │ │ │ └── 900i.woff │ │ └── fontawesome │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ └── fontawesome-webfont.woff │ ├── plugins │ │ └── gitbook-plugin-mathjax │ │ │ └── plugin.js │ └── print.css ├── publish.sh ├── GLOSSARY.html ├── build_variants.html ├── build_tasks.html └── building_and_tasks.html ├── library_projects.md ├── advanced_build_customization.md ├── dependencies_on_binary_packages.md ├── requirements.md ├── basic_build_customization.md ├── cover.jpg ├── cover_small.jpg ├── test_reports.md ├── 11_goals_of_the_new_build_system.md ├── dependencies,_android_libraries_and_multi-project_setup.md ├── goals_of_the_new_build_system.md ├── publish.sh ├── req.md ├── java_compilation_options.md ├── dex_options.md ├── aapt_options.md ├── referencing_a_library.md ├── why_gradle.md ├── testing_android_libraries.md ├── single_projects.md ├── differences_between_a_project_and_a_library_project.md ├── project_structure.md ├── product_flavors.md ├── creating_a_library_project.md ├── multi-projects_reports.md ├── remote_artifacts.md ├── local_packages.md ├── running_proguard.md ├── java_project_tasks.md ├── using_sourcecompatibility_17.md ├── running_tests.md ├── multi_project_setup.md ├── testing.md ├── general_tasks.md ├── library_publication.md ├── sourcesets_and_dependencies.md ├── product_flavor_configuration.md ├── 031_simple_build_files.md ├── android_tasks.md ├── basics_and_configuration.md ├── signing_configurations.md ├── configuring_the_structure.md ├── multi-flavor_variants.md ├── SUMMARY.md ├── manifest_entries.md ├── lint_support.md ├── README.md └── manipulating_tasks.md /_book/glossary_index.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /library_projects.md: -------------------------------------------------------------------------------- 1 | # 库工程 2 | -------------------------------------------------------------------------------- /advanced_build_customization.md: -------------------------------------------------------------------------------- 1 | # 高级构建的自定义 2 | -------------------------------------------------------------------------------- /dependencies_on_binary_packages.md: -------------------------------------------------------------------------------- 1 | # 依赖二进制包 2 | -------------------------------------------------------------------------------- /requirements.md: -------------------------------------------------------------------------------- 1 | # 基础工程 2 | 一个Gradle工程的构建描述,定义在工程根目录下的build.gradle文件中. 3 | -------------------------------------------------------------------------------- /basic_build_customization.md: -------------------------------------------------------------------------------- 1 | # 基本的构建自定义 2 | Android插件提供了大量DSL,直接从构建系统中自定义大部分事情. 3 | -------------------------------------------------------------------------------- /cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/cover.jpg -------------------------------------------------------------------------------- /_book/cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/cover.jpg -------------------------------------------------------------------------------- /cover_small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/cover_small.jpg -------------------------------------------------------------------------------- /_book/cover_small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/cover_small.jpg -------------------------------------------------------------------------------- /test_reports.md: -------------------------------------------------------------------------------- 1 | # 测试报告 2 | 当运行单元测试,Gradle会输出一份HTML报告,以便查看结果。Android插件也在上面构建,并且扩展HTML的报告文件,它将所有连接的设备的报告都合并到同一个文件里。 3 | -------------------------------------------------------------------------------- /11_goals_of_the_new_build_system.md: -------------------------------------------------------------------------------- 1 | # 简介 2 | 本文档适用于0.9版本的Gradle plugin。在我们引入1.0版本之前,内容可能会与之前的版本不兼容。 3 | 4 | -------------------------------------------------------------------------------- /_book/gitbook/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/images/favicon.ico -------------------------------------------------------------------------------- /dependencies,_android_libraries_and_multi-project_setup.md: -------------------------------------------------------------------------------- 1 | # 依赖,Android库和多项目设置 2 | Gradle工程可以依赖于其他组件.这些组件可以是外部的二进制包,或者是其他Gradle工程. 3 | -------------------------------------------------------------------------------- /_book/gitbook/fonts/opensans/300.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/opensans/300.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/opensans/300i.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/opensans/300i.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/opensans/400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/opensans/400.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/opensans/400i.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/opensans/400i.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/opensans/600.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/opensans/600.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/opensans/600i.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/opensans/600i.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/opensans/700.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/opensans/700.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/opensans/700i.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/opensans/700i.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/merriweather/250.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/merriweather/250.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/merriweather/250i.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/merriweather/250i.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/merriweather/400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/merriweather/400.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/merriweather/400i.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/merriweather/400i.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/merriweather/700.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/merriweather/700.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/merriweather/700i.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/merriweather/700i.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/merriweather/900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/merriweather/900.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/merriweather/900i.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/merriweather/900i.woff -------------------------------------------------------------------------------- /_book/gitbook/fonts/fontawesome/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/fontawesome/FontAwesome.otf -------------------------------------------------------------------------------- /_book/gitbook/fonts/fontawesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/fontawesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /_book/gitbook/fonts/fontawesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/fontawesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /goals_of_the_new_build_system.md: -------------------------------------------------------------------------------- 1 | # 新构建系统的目标 2 | 3 | 新构建系统的目标: 4 | * 让重用代码和资源变得更加容易 5 | * 使创建同一个应用程序的多个版本根据容易,不管是多apk的发布还是同一个应用的不同定制版本 6 | * 使构建过程根据容易配置,扩展和自定义 7 | * 优秀IDE的集成 8 | -------------------------------------------------------------------------------- /_book/gitbook/fonts/fontawesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/fonts/fontawesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /_book/gitbook/images/apple-touch-icon-precomposed-152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yeungeek/GradlePlugin_UserGuide/HEAD/_book/gitbook/images/apple-touch-icon-precomposed-152.png -------------------------------------------------------------------------------- /publish.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | echo "==== start publish book =====" && 3 | git add . && 4 | git commit -m 'publish books' && 5 | git push && 6 | echo '==== publish book success ====' 7 | echo 8 | 9 | -------------------------------------------------------------------------------- /_book/publish.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | echo "==== start publish book =====" && 3 | git add . && 4 | git commit -m 'publish books' && 5 | git push && 6 | echo '==== publish book success ====' 7 | echo 8 | 9 | -------------------------------------------------------------------------------- /req.md: -------------------------------------------------------------------------------- 1 | # 配置 2 | * Gradle1.10 1.11 1.12使用插件0.11.1版本 3 | * SDK Build Tools 版本19.0.0.一些特性需要更高版本。 4 | 5 | 6 | 译者注:gradle目前已经是2.1版本,插件0.12.+ 7 | 8 | 最新可以关注: http://www.gradle.org/ 9 | 10 | -------------------------------------------------------------------------------- /java_compilation_options.md: -------------------------------------------------------------------------------- 1 | # Java编译选项 2 | ``` groovy 3 | android { 4 | compileOptions { 5 | sourceCompatibility = "1.6" 6 | targetCompatibility = "1.6" 7 | } 8 | } 9 | ``` 10 | 默认值是“1.6”,这个设置会影响所有编译Java源代码的task。 11 | -------------------------------------------------------------------------------- /dex_options.md: -------------------------------------------------------------------------------- 1 | # dex选项 2 | ``` groovy 3 | android { 4 | dexOptions { 5 | incremental false 6 | preDexLibraries = false 7 | jumboMode = false 8 | javaMaxHeapSize "2048M" 9 | } 10 | } 11 | ``` 12 | 这个将影响所有使用dex的task。 13 | -------------------------------------------------------------------------------- /aapt_options.md: -------------------------------------------------------------------------------- 1 | # aapt选项 2 | ``` groovy 3 | android { 4 | aaptOptions { 5 | noCompress 'foo', 'bar' 6 | ignoreAssetsPattern "!.svn:!.git:!.ds_store:!*.scc:.*: