Maybe it was missed but: Hi all, I've got a draw...
# compose
m
Maybe it was missed but: Hi all, I've got a drawableresource as.png. this gets generated like this:
Copy code
internal val Res.drawable.`as`: DrawableResource
  get() = <http://CommonMainDrawable0.as|CommonMainDrawable0.as>
As you can see the as doens't get the backticks. Is there a way to force this or is it a bug?
k
File an issue on the github. And rename your file 😆
m
Yeah, that makes it a bit hard, because it's a ISO 3166 ALPHA-2 country code
k
It doesn't answer why you can't rename the file
m
Because the country code is used to find the correct resource to show it to the user
k
How do you find the resource accessor by the code?
m
Copy code
return when (countryName) {
        "ad" -> <http://Res.drawable.ad|Res.drawable.ad>
        "as" -> Res.drawable.`as`
...
k
Ok. Why don't you rename it to ic_as ?
return when (countryName) { "ad" -> Res.drawable.ic_ad "as" -> Res.drawable.ic_as ...
m
Maybe not a bad idea😅
Need to rename all those files though...
k