Gradle Build Configs
2015-10-25 09:23
351 查看
android { signingConfigs { release { storeFile file('keystore') storePassword 'helloworld' keyAlias 'Android Release Key' keyPassword 'helloworld' } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } debug { applicationIdSuffix ".debug" } } }
signingConfigs 元素用于设置签名文件信息。在本例中,我们使用了 app/keystore 文件为 release 分支进行签名。默认使用
SDK 中的 debug.keystore 为 debug 分支进行签名。
我们可以在 buildTypes 中对
APK 的一些信息可以设置,例如本例中将 debug 分支下
APK 包名在默认的包名后追加 .debug ,从而最终包名为 cc.bb.aa.gradle_build_configs.debug:
debug { applicationIdSuffix ".debug" }
相关文章推荐
- BZOJ 4302 Buildings 解题报告
- BZOJ 4302 Buildings 解题报告
- Hadoop应用-------Hadoop计算能力调度器(Capacity Scheduler)应用和配置{hadoop mradmin -refreshQueues动态更新队列和容量}其他调度器比较
- Learn from Synchronized and BlockingQueue
- Leetcode: Unique Paths
- UE4蓝图案例:制作透明黑色玻璃
- Queue
- POJ 1458 Common Subsequence
- POJ 1458 Common Subsequence
- Android:带你玩转Servie,子线程,与UI线程通信[导入导出]
- cf 11a Increasing Sequence
- Positional parameter does not exist: 1 in query: from Books where isbn=?
- 转载:为什么首次进入界面是SwipeRefreshLayout.setRefreshing(true)没有动画效果
- 【APUE】Chapter12
- 《西安交大电路》(Principles of Electrical Circuits) 学习笔记
- [AndroidUI]自定义view(五):实现动态柱状图
- 实例解析JS布尔对象的toString()方法和valueOf()方法
- uibutton 的setImage和setBackgroundImage的区别
- UITextField设置placeholder颜色
- UIButton 的不同设置和UITextField 的默认值(修改默认值)