zoukankan      html  css  js  c++  java
  • ant 可自动替换友盟渠道、版本号、包名

    可自动替换友盟渠道、版本号、包名

    如何集成到我的项目里

    前提:了解android官方文档,在项目目录中执行ant debug能打包,比如常见的打包步骤:

    android update project -p . -s -t "android-19"
    ant debug
    

    如果ant debug打包能通过,则可以使用下面的自动打包。

    下载custom_rules.xml,放到项目目录(假设为Project1),然后执行:

    ant auto-debug -Dversion=time
    

    即可,生成的包在./bin/中。

    如果想打release包,下载ant.properties,修改其中的密码等配置,然后执行:

    ant auto-release -DUMENG_CHANNEL=googlePlayStore -Dpackage=com.example.ant.beta
    

    即可。

    中间会出现一些问题,因为原作者是在linux上运行的,所以在windows上需要修改customer_rules.xml的66行为

    <exec dir="${auto.project.tmp.dir}" executable="ant.bat">

    同时AndroidManifest.xml 文件里不要有中文,不然会报编码问题

     http://blog.csdn.net/cheligeer1988/article/details/12781939   一般打包

    参考:http://www.cnblogs.com/sink_cup/p/android-ant-auto-release.html      git自动替换友盟渠道、版本号、包名

    http://blog.csdn.net/u010427035/article/details/22203825    Ant多渠道批量打包带签名的包

    http://blog.csdn.net/liuhe688/article/details/6679879   详细步骤

    http://blog.csdn.net/up1up2up3/article/details/21472883  可动态修改包名

    http://handsomeliuyang.iteye.com/blog/1156070

    http://www.apkbus.com/android-138842-1-1.html

  • 相关阅读:
    LCA + 二分(倍增)
    Educational Codeforces Round 5
    BNU 51276
    POJ 1511
    hdu2121
    最小树形图(朱刘算法)
    Educational Codeforces Round 1(D. Igor In the Museum) (BFS+离线访问)
    Educational Codeforces Round 1(C. Nearest vectors)
    POJ-2785 4 Values whose Sum is 0(折半枚举 sort + 二分)
    POJ 1661Help Jimmy(逆向DP Or 记忆化搜索 Or 最短路径)
  • 原文地址:https://www.cnblogs.com/jiezzy/p/3958367.html
Copyright © 2011-2022 走看看