Iam trying to automatically switch between two sets of app icons based on the buildTypes i defined here at build.gradle:
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationIdSuffix ".release"
}
debug {
applicationIdSuffix ".debug"
}
}
I have already looked at this post, however my files structure is different and the offered solution does not work for my case. How to provide different Android app icons for different gradle buildTypes?
Here is my files structure where there are two sets of icons stored at res-debug and res-release. How can I automatically switch between the two?
\app\src\main:
├───assets
├───java
│ └───com
│ └───myproj
│ └───videoplayer
│ ├───dialog
│ ├───dto
│ ├───entity
│ └───utils
├───res-debug
│ ├───layout
│ ├───mipmap-hdpi
│ ├───mipmap-mdpi
│ ├───mipmap-xhdpi
│ ├───mipmap-xxhdpi
│ ├───mipmap-xxxhdpi
│ └───values
└───res-release
├───layout
├───mipmap-hdpi
├───mipmap-mdpi
├───mipmap-xhdpi
├───mipmap-xxhdpi
├───mipmap-xxxhdpi
└───values