Coder Social home page Coder Social logo

androidmultichannelbuild's Introduction

AndroidMultiChannelBuild

Kit support generating multi-channel apk (Android多渠道打包工具)

1、删除原先友盟中的设置(若没有忽略此步,跳转第2步):

2、添加ChannelUtils类到项目中。只需在程序启动时的Activity中调用此接口设置渠道:
//友盟统计
String channel = ChannelUtil.getChannel(this);
AnalyticsConfig.setChannel(channel);

3、具体使用步骤:
(1)Android Studio 2.2 和 Android Gradle 2.2 插件以上版本,需要在build.gradle中设置 v2SigningEnabled false。生成签名混淆包signed.apk。
(2)将想要批量打包的signed.apk文件拷贝到PythonTool目录下(与py同级),运行py脚本即可打包完成。(生成的渠道apk包在output_** 目录下)。
(3)你可以粘贴下面的渠道到channel.txt中保持它在windows端的可读性。

channel.txt在info目录下:
DOSPY
WANDOUJIA
COOLAPK
360
YINGYONGBAO
91
XIAOMI
HUAWEI
GFAN
BAIDU
ANZHI
AndroidChannelBuild.py是多渠道打包的脚本

4、执行命令 python AndroidChannelBuild.py 生成多渠道包;

androidmultichannelbuild's People

Contributors

xuningjack avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.