Open pimlott opened 12 years ago
Have a look at TypedResources.scala
:
layoutResources <<= (mainResPath) map { x=> (x / "layout" ** "*.xml" get) },
generateTypedResources <<= generateTypedResourcesTask,
sourceGenerators in Compile <+= generateTypedResources,
watchSources in Compile <++= (layoutResources) map (ls => ls)
I'm new to scala and sbt, but intuitively, I would expect "sbt ~android:aapt-generate" to regenerate R.java whenever the relevant XML files are changed. This does not happen.
I am motivated to fix this if I have the time. Pointers appreciated. :-)