isCorrectMipmapDirectoryForAdaptiveIcon function
(NOTE THIS IS JUST USED FOR UNIT TEST) Ensures the correct path is used for generating adaptive icons "Next you must create alternative drawable resources in your app for use with Android 8.0 (API level 26) in res/mipmap-anydpi/ic_launcher.xml" Source: https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive
Implementation
bool isCorrectMipmapDirectoryForAdaptiveIcon(String path) {
return path == 'android/app/src/main/res/mipmap-anydpi-v26/';
}