markzhai / markzhai/markzhai.github.io
优先级 調整
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 10
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
大神您好
感謝您的文章
我目前有類似的應用
但是遭遇困難
目前在
资源合并
的
优先级
优先级为:BuildType -> Flavor -> main -> Dependencies.
遭遇問題
目前需求是 調整
dependencies 大於 main
我的應用是這樣
多個 productFlavors
因為 flavor過多
因此整個 project 很大 造成載入可能很慢
所以把各 flavor的 res 打包成為 aar檔案
放置到 maven上
當切換到不同flavor後
再根據 dependencies 下再對應的 aar包
因為命名都是一樣的
也就是 R.color / R.drawable 會是相同
但是上面優先權的問題
造成main的目前會壓過 dependencies 造成資源無法替換
請問大神有解嗎 ?
謝謝
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names Android resource merging, productFlavors, dependencies, and AAR packages, but no repository files, tests, or entry points. First clarify whether a repository change is wanted and identify the relevant Android build configuration; the work is done only when the requested dependency-over-main resource precedence is defined and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- build-system, mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100