Use Android Studio. In Android studio, you will have a flavorfolder inside the project. you can put resources according to taste. Example:
Project-
flavor-
demo-
| src-
| res-
| drawable-
| ic_launcher.png
brand1-
| src-
| res-
| drawable-
| ic_launcher.png
brand2-
src-
res-
drawable-
ic_launcher.png
and indicate this in your gradle file like this.
android{
....
productFlavors {
demo {
applicationId "com.example.app.demo"
versionName "1.0.3"
}
brand1 {
applicationId "com.example.app.brand1"
versionName "1.0"
}
brand2 {
applicationId "com.example.app.brand2"
versionName "1.4"
}
}
...}
You have the opportunity to choose the build option on the left side of the android studio. He will choose a resource in accordance with your chosen taste.
Please note: Android Studio is slow. You must have at least 8 GB of memory.
Read this document
source
share