创建同一项目的多个应用 [英] Create Multiple apps of the same project

查看:175
本文介绍了创建同一项目的多个应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找解决问题的最佳实践,但到目前为止,没有发现有用的东西.

I have been searching a lot for the best practice for my problem and didn't find anything useful so far.

我的问题是: 我拥有一个为用户创建电子商务应用程序的平台,然后将其发布给Play商店中的用户. 注意:每个应用程序都有不同的名称,也许还有不同的Google帐户.

My problem is: I have platform that create E-commerce apps for the user and than we publish it for the users on the play store. NOTE: each app have different name and maybe different google account.

每次都有错误修复或新功能时,我们需要在每个项目中复制粘贴相同的代码,然后将其重新上传到商店.

Every time there's bug fix or new feature, we need to copy paste the same code in every project and then upload them again to the store.

我的问题是: 有更聪明的方法来解决这个问题吗?我的意思是,如果我们有100个同一个项目的应用,那将很难更新所有代码,而不是再次上传所有APK.

My question is: Is there's smarter way to deal with this ? i mean what if we have 100 app of the same project, that will be pain to update the code in all of them and than upload all APK's again.

也许有办法动态更新类和内容?或什至可以整理整个事情或管理上传APK的工具?

Maybe there's way to update the classes and content dynamic ? or even some tool that can organize the whole thing or manage uploading the APK's ?

谢谢.

推荐答案

您无需在每个项目中复制粘贴相同的代码,甚至不需要其他Google帐户.有一个过程称为白标应用程序您可以在其中从单个项目管理无限的apk.只需将产品口味中的所有客户添加到具有不同应用程序ID的gradle文件中即可.请点击附件中的链接以获取白色标签的详细步骤

You don't need to copy paste the same code in every project and you don't even need different google account.There is a process called white labelling apps in which you can manage unlimited apk from a single project. Just add all the clients in product flavours in gradle file with different application id. Follow the link attached for detailed procedure of white labelling

https://proandroiddev.com/advanced-android-flavors-part-1-building-white-label-apps-on-android-ade16af23bcf

这篇关于创建同一项目的多个应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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