当前位置:网站首页>Ant Usage Summary (III): batch packaging apk
Ant Usage Summary (III): batch packaging apk
2022-06-23 06:00:00 【linchaolong】
Get ready
1. Get ready ant Environmental Science , and update engineering , Reference article >>ant Use summary ( One ): Use ant Automatic packaging apk
2.ant Implementing iterations in , Need to add ant-contrib-1.0b3.jar To classpath, Reference article >>ant Use summary ( Two ): Related command description
Project description
Demo Project address :https://coding.net/u/linchaolong/p/AntTest/git
Open the command line ,cd To the project root directory , perform ant run The command will start automatic batch packaging , All channel packages will be output to AntTestOut Next .AntTestTemp It is a cache project , The main purpose is not to affect the original project .
Source code
<script language="javascript">
</script>
Current channel id : ${channel}
Copy Engineering ...
Replace version number ...
Replace package name ...
Replace channel id ...
Are packaged ...
Output apk...
versionCode = ${versionCode}
versionName = ${versionName}
It mainly provides replacement channel identification 、 Replace version number 、 Replace icon、 Replace package name function , And it's configurable .
How to use... In my project
1. Use android update project Command to update project configuration .
2. Copy custom_rules.xml Go to your own project , stay <property name="channelList" value="YIDONG,LIANTONG,DIANXIN,a360" /> Configure channel list , Use "," separate .
3. Open the command line ,cd Go to the project root , perform ant run command .

边栏推荐
- Adnroid activity截屏 保存显示到相册 View显示图片 动画消失
- Pit filling for abandoned openssl-1.0.2 (.A to.So)
- What benefits have digital collections enabled the real industry to release?
- JS面试题----防抖函数
- C primer plus learning notes - 2. Constant and formatted IO (input / output)
- PAT 乙等 1024 科学记数法 C语言
- node中操作mongoDB
- Alibaba cloud ack one and ACK cloud native AI suite have been newly released to meet the needs of the end of the computing era
- 【数据库备份】通过定时任务完成MySQL数据库的备份
- The difference between SaaS software and traditional software delivery mode
猜你喜欢

The construction of digital factory can be divided into three aspects

ant使用总结(一):使用ant自动打包apk

Addressing and addressing units

jvm-03. JVM memory model

Raspberry pie assert preliminary exercise

Deploy docker and install MySQL in centos7

Advanced Mathematics (Seventh Edition) Tongji University exercises 1-8 personal solutions

True question of MySQL interview (29) -- case - finding favorite movies

Heimdall database proxy scale out 20 times

jvm-05.垃圾回收
随机推荐
Pat class B 1010 C language
Leetcode topic analysis: factorial training zeroes
Heimdall database proxy scale out 20 times
ant使用总结(三):批量打包apk
Explicability of counter attack based on optimal transmission theory
云原生数据库是未来
C primer plus learning notes - 2. Constant and formatted IO (input / output)
Real MySQL interview questions (25) -- common group comparison scenarios
如何指定pig-register项目日志的输出路径
三项最高级认证,两项创新技术、两大优秀案例,阿里云亮相云原生产业大会
MySQL character set
The traditional Internet like platform may no longer exist, and a new industry integrating industrial characteristics and Internet characteristics
Pyinstaller 打包pyttsx3 出错
Oracle exception
Pat class B 1023 minimum decimals
Add and multiply two polynomials using linked list
Adnroid activity screenshot save display to album view display picture animation disappear
How can digital collections empower economic entities?
PAT 乙等 1022 D进制的A+B
PAT 乙等 1013 C语言