问题描述
我是持续集成/部署的忠实粉丝,我们使用 Jenkins 构建我们的 Android 应用程序,并部署来自特定分支的每个构建(主要是 git flow 的开发分支)通过 HockeyApp.
我想要实现的是,对 master 的每个新(标记)提交都将最终出现在 Play 商店中.所以我不必通过 Play 商店开发者手动上传 APK控制台.我已经搜索了一个 API.但谷歌不提供任何和我发现的两个非官方项目(Android Market API 和 Play PHP API) 仅支持下载指标,例如您的应用的下载次数.>
那么有人可以想出一种通过 cURL 或小脚本上传 APK 的方法吗?
Google 发布了一个新的 API,用于自动部署到 Alpha/Beta 和生产渠道!
看看这里
API 特性:
- 上传应用的新版本发布应用,通过将 APK 分配给各种轨道(alpha、beta、分阶段推出或生产)
- 创建和修改 Google Play 商店列表,包括本地化文本以及图形和多设备屏幕截图
更新:
一些关于如何使用 API 的 Java 示例:样品
更新(2015 年 6 月 8 日):
我发现并且我正在使用一个使用这个 API 的 gradle 插件,它叫做 gradle-播放发布商.使用起来非常简单,您只需要获得一个服务帐户并下载带有证书的p12文件(PlayStore --> 设置 --> API 访问>>创建服务帐户">> 选择p12 格式并阅读说明插件网站!
I'm a big fan of continuous integration / deployment and we build our Android apps with Jenkins and deploy every build from specific branches (mostly git flow's develop branch) to our testers via HockeyApp.
What I want to achieve is that every new (tagged) commit to master will endup in the Play Store. So I don't have to manually upload APKs via the Play Store developer console. I've already searched for an API. But Google doesn't provide any and the two unofficial projects I found (Android Market API and Play PHP API) only support downloading metrics like the download count of your app.
So can someone think of a way to upload APKs via cURL or a small script?
Google releases a new API for automatic deploy to Alpha/Beta and Production channels!
take a look here
Api features:
- Uploading new versions of an app Releasing apps, by assigning APKs tovarious Tracks (alpha, beta, staged rollout, or production)
- Creating and modifying Google Play Store listings, including localized textand graphics and multi-device screenshots
Updated:
Some java samples about how to use the API: samples
Updated (08-June-2015):
I found and I'm using a gradle plugin that use this API, its called gradle-play-publisher. It is very easy to use, you need only to get a Service account and download a p12 file with a certificate (PlayStore --> Settings --> API access >> "Create Service Account" >> choose p12 format and read instruction in plugin website!
这篇关于通过 API 部署到 Google Play 商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!