I’m using a library which expects a couple of id’s and values in R. The problem is that it is hard coded into the library in what namespace the R is in.
I can solve the problem by copying the R class into the other namespace, but it would be easier to autogenerate two R-files.
Another solution could be some sort of wrapper-class, the problem here is that the values must be constants.
Maybe run some sort of script every time the R is generated? How could I do that?
You can use ANT script for this.
But what are your intends for using 2 different R files?
If you are creating 2 versions of you app you could make the ANT script make separate projects on building/releasing and then you could continue developing in your current project.