since upgrading to android gradle 7, I’m having s...
# android
w
since upgrading to android gradle 7, I’m having some trouble with some extension functions I have. for example with this function
Copy code
fun BaseFlavor.buildConfigString(name: String, value: String?) =
    buildConfigField("String", name, if (value == null) "null" else "\"$value\"")
In the first screenshot you can see the error.
ApplicationDefaultConfig
is of type
BaseFlavor
. In the second screenshot you can see what happens if I manually cast it to
BaseFlavor
. Also these aren’t just IDE lint errors, they do the same thing when performing a gradle command from the terminal