如何在应用程序之间同步构建变体 [英] How to synchronize build variants among apps

查看:62
本文介绍了如何在应用程序之间同步构建变体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个包含多个应用程序的项目中.其中一些包含相同的味道.恰好在风味尺寸上具有相同的值.

I am working on a project that contains multiple applications. Several of them contain the same flavors. The same values on a flavor dimension, precisely.

如果可能,我希望自动同步它们的值.否则,我希望它表明存在冲突.

I would like to have their value synchronized, if possible automatically. Otherwise, I would like it to show there is a conflict.

总而言之,我希望构建变体选择窗格对同一项目的不相关应用程序的行为与对模块的依赖(作为应用程序的依赖项)的行为相同.

To summarize the situation, I would like the build variant selection pane to behave for unrelated applications of the same project the same as it works for module being a dependency of an app.

我该如何实现?

推荐答案

Android Studio仅基于与您要更改的内容有关的叶子节点"来更改内容,因此永远不会链接应用程序.我遇到了同样的问题,并编写了自己的 Android Studio插件

Android Studio only changes things based on the "leaf nodes" related to what you are changing, and thus won't ever link up the Apps. I had this same problem and solved it by writing my own Android Studio Plugin

这篇关于如何在应用程序之间同步构建变体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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