Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

若不同渠道需要不同的assets资源 #344

Open
yeRuiHuan opened this issue Sep 17, 2020 · 3 comments
Open

若不同渠道需要不同的assets资源 #344

yeRuiHuan opened this issue Sep 17, 2020 · 3 comments

Comments

@yeRuiHuan
Copy link

当不同渠道(或不同版本)需要的assets资源不一样时,walle就用不上了吧?

@yeRuiHuan
Copy link
Author

补充:build.gradle android{}内为不同的productFlavors指定相应的assets目录
sourceSets { unittest_one { assets.srcDirs = ['src/unittest_one/assets'] } unittest_two { assets.srcDirs = ['src/unittest_two/assets'] } }

@qmqsyz
Copy link

qmqsyz commented Jan 14, 2021

不能,用flavor吧

@ohblue
Copy link

ohblue commented Mar 10, 2021

用flavor每个渠道包要重新编译一次了,解决不了耗时问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants