自动上传 ProGuard 映射文件以播放控制台 [英] Automatically upload ProGuard mapping files to play console

查看:157
本文介绍了自动上传 ProGuard 映射文件以播放控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我需要构建我的 apk 的新版本时,将 ProGuard 映射文件上传到 google play 控制台非常烦人(我的 gradle build 为每个版本生成 4 个不同的 apk,所以我确实需要上传 4 个不同的映射文件)

Is pretty annoying to upload the ProGuard mapping files to google play console everytime i need to build a new version of my apk (my gradle build generate 4 different apks for every release so i do need to upload 4 different mapping files)

我想知道是否可以自动完成此过程,然后我找到了这篇文章

I was wondering if is possible to make this process automatically then i found this article

https://developers.google.com/android-发布者/api-ref/edits/deobfuscationfiles/upload

所以 google 确实有一个 api 来上传映射文件,是否有任何 gradle 插件可以使用?有什么简单的集成方法吗?

So google does have an api to upload the mapping files, is there any gradle plugin to work with? is there any easy way to integrate?

推荐答案

建议:如果您发布 Android App Bundle 反混淆映射文件将与您的工件一起自动上传,而不是 APK,因此您无需单独上传.

Suggestion: If you publish an Android App Bundle instead of APKs, the deobfuscation mapping file will be uploaded automatically with your artifact so you don't have to do it separately.

这篇关于自动上传 ProGuard 映射文件以播放控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆