Force android icon to be regenerated per each build. Android icon is not updated after each android build


#1

hi team,
I have below tag in project.xml for my haxeflixel/openfl project.

icon path=“appicon.svg”

I have two batch command files to execute based on dev/prod version of android apk package I am going to create. dev/prod version has a different android icon. see below two batch command files.
the issue I am facing is that the icon.png generated in export/android\bin/res/drawable-xxxxx is not updated on each build. I expect this icon.png is regenerated from appicon.svg since I update appicon.svg on each build based on dev/prod version I am going to build. is there a flag to force android icon to regenerated per each build?

batch command file [prod version]:
copy prodicon.svg appicon.svg /y
copy release-key.jks export\android\bin /y
lime build “Project.xml” android -release -DADMOBPROD
@echo off
echo *** This build has Real Ads for AdMob. DO NOT DEPLOY this build to your android phone for testing!! ***

batch command file [dev version]:
echo %time%,%date%,admob-test-ads > assets\data\buildinfo
copy devicon.svg appicon.svg /y
copy release-key.jks export\android\bin /y
lime build “Project.xml” android -release
@echo off
echo Admob Testing Ads enabled.


#2

Currently you can do -clean, but that will invalidate the entire build, not just the icon. Perhaps we need to compare the timestamp of your source image with the generated images to check if it’s newer