Android7_Shortcuts_Demo icon indicating copy to clipboard operation
Android7_Shortcuts_Demo copied to clipboard

如何实现targetpackage动态配置

Open LeoYe168 opened this issue 8 years ago • 4 comments

如何实现targetpackage动态配置,targetpackage在这里指的是applocationid,而我们applocationId debug与release不一样。 不知道作者有合适的动态配置方案没有,我试过几种方案均不合我意

LeoYe168 avatar Feb 07 '17 07:02 LeoYe168

@LeoYe168 可以利用多渠道打包尝试, 不用的渠道使用不同的string

qibin0506 avatar Feb 07 '17 08:02 qibin0506

@qibin0506 shortcute.xml文件使用不了 引用的 string变量

LeoYe168 avatar Feb 07 '17 09:02 LeoYe168

@LeoYe168 那尝试在多渠道区分shortcut.xml呢?

qibin0506 avatar Feb 07 '17 09:02 qibin0506

@qibin0506 这个应该可行,只是未免有点用牛刀了。。 共享一个我在网上找的解决方案,亲测可行 https://github.com/Zellius/android-shortcut-gradle-plugin/blob/master/README.md

LeoYe168 avatar Feb 07 '17 09:02 LeoYe168