Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
1 Star 0 Fork 41

qu-wangqu/AjavaAndroidLib

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
master
Branches (1)
master
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
The license selected for the repository is subject to the license used by the main branch of the repository.
master
Branches (1)
master
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (1)
master
contribute
Sync branch
See difference Through Pull Request Sync
Sync branch
Through Pull Request Sync
A Pull Request will be created to the current
branch and will be merged in to complete the sync
File empty ...
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
使用说明:这是一个生成多渠道包的python脚本,运行脚本之前请确保系统安装了Python环境:
1、手动打好的APK放置当前目录
2、需要生成的渠道号写入./info/channel_list.txt文本中,多个渠道号换行写入
3、双击MultiChannelBuildTool.py会生成[output_工程名]的文件夹
4、验证生成的渠道号是否正确,可以使用ToolChannel.gainChannel(mContext, "ChannelName")校验,该类提供了获取渠道号的方法
原理解析:
脚本利用了APK压缩包中META-INF文件夹不参与签名的原理,拿到手动打好的发布APK进行解压,遍历/info/channel_list.txt的渠道号集合,
往各个渠道APK的META-INF目录写入一个[ChannelName_渠道号]的空文件。所以渠道号配置不是在AndroidManifest.xml配置一个meta-data了,这里要注意!
项目中各种渠道统计需要的渠道号可以用ToolChannel.gainChannel(mContext, "ChannelName")函数获取,渠道号的key-->"ChannelName"不是固定的
可以自行修改MultiChannelBuildTool.py第54行代码.总之,如果要和python脚本代码保持一致(其实就一个key,没必要修改,以免造成不必要的麻烦)
参考资料:
windows系统下Python环境的搭建 http://www.cnblogs.com/windinsky/archive/2012/09/20/2695520.html
Eclipse配置PyDev插件 http://www.cnblogs.com/halfacre/archive/2012/07/22/2603848.html
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangwanga10/AjavaAndroidLib.git
git@gitee.com:wangwanga10/AjavaAndroidLib.git
wangwanga10
AjavaAndroidLib
AjavaAndroidLib
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /