Gradle Build配置
2016-03-21 15:26
489 查看
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '23.0.2' defaultConfig { applicationId "com.example.demo" minSdkVersion 21 targetSdkVersion 23 versionCode 1 versionName "1.0.0" resConfigs "zh" manifestPlaceholders = [UMENG_CHANNEL_VALUE: "umeng"] multiDexEnabled true //使用Jack编译工具 jackOptions { enabled true } } sourceSets { main { assets.srcDirs = ['assets'] jniLibs.srcDirs = ['libs'] } } signingConfigs { debug { storeFile file("/Users/biyinjishi/BYJSWorks/Android/YinBiSanJia/key/testkeystore.jks") storePassword "tanranran" keyAlias "印比三家" keyPassword "tanranran" } release { } } buildTypes { debug { buildConfigField "boolean", "LOG_DEBUG", "true" minifyEnabled false shrinkResources false zipAlignEnabled false signingConfig signingConfigs.debug proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' manifestPlaceholders = [BAIDU_API_KEY: "XXXX"] } release { buildConfigField "boolean", "LOG_DEBUG", "false" minifyEnabled true shrinkResources true zipAlignEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' manifestPlaceholders = [BAIDU_API_KEY: "XXXX"] } } splits { abi { enable true reset() include 'x86' //select ABIs to build APKs for universalApk true //generate an additional APK that contains all the ABIs } } lintOptions { abortOnError false } aaptOptions { ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~' }
lintOptions { abortOnError false checkAllWarnings false ignoreWarnings true }
packagingOptions { exclude 'META-INF/DEPENDENCIES.txt' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/MANIFEST.MF' exclude 'META-INF/CERT.SF' exclude 'META-INF/CERT.RSA' exclude 'META-INF/notice.txt' exclude 'META-INF/license.txt' exclude 'META-INF/dependencies.txt' exclude 'META-INF/LGPL2.1' exclude 'META-INF/ASL2.0' }
dexOptions { incremental true //增量编译 preDexLibraries = false jumboMode = true javaMaxHeapSize "4096M" maxProcessCount=4 threadCount=4 }
repositories { flatDir { dirs 'libs' } }
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') }
相关文章推荐
- 【转】基于easyui开发Web版Activiti流程定制器详解(一)——目录结构
- 理解多线程管理类 CWorkQueue
- ExtJS Ext.Ajax.request最好设为同步
- UIPickerView的使用
- 关于UIMenuController的用法例子
- Unique Binary Search Trees II [Leetcode 解题报告]
- UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法
- int,NSInteger,NSUInteger,NSNumber
- 敏捷开发 - scrum 入门
- 自定义UITextView
- Homebrew的安装遇到400 Bad Request错误
- 富文本web编辑器--ueditor的使用
- 对比:UIButton创建方法
- require.js的使用
- NSOperationQueue [API]
- 1041. Be Unique (20)
- 翻译_iOS视图编程指南(View Programming Guide for iOS)之介绍
- IOS开发之UIColectionView
- my conclusion about time planing and requirement changes.
- build TI_Android_JB_4.2.2_DevKit_4.1.1