Open SamYStudiO opened 5 months ago
@SamYStudiO hey!
Since mapbox Android 11.4.0
What version did you use before moving to 11.4.0?
@SamYStudiO hey!
Since mapbox Android 11.4.0
What version did you use before moving to 11.4.0?
@kiryldz 11.3
@SamYStudiO I do not see similar issues and we did not modify those lint rules between v11.3 and v11.4. I assume that despite lint complaining - the code does compile OK, right?
@kiryldz It does compile ! I was coming from 11.3 but since i haven't tried to compile with 11.3 i may have missed the issue and so it may be anterior to 11.3
Maybe related to gradle update. At least I started getting these after updating to AGP 8.4.0.
I also started experiencing this after updating AGP to 8.4.1
Same here.
If the expression is not too complex, you can change the way it is set:
from
iconRotate(get { literal("heading") })
to
iconRotate(Expression.get("heading"))
I had the same issue using gradle 8.2.0. Rolling back to 8.0 "solved" it for me. I spent 2 days smacking my head off that particular wall.
Incidentally, I think the documentation, examples and general developer experience of using the expression dsl in Compose is quite poor compared to most of the library. Its a shame considering the careful thought and effort that obviously went into the implementation.
No doubt it will be improved as maps-compose matures into the standard choice for green-field work.
Any update?
AGP version: 8.5.2
Mapbox Android version: 11.6.0
I can report the same issue with the lint errors. The code compiles and all seams to work as expected, however the lint errors are annoying.
We started seeing this when we migrated from 10.16.1
to 11.6.0
Gradle version: 8.7
AGP version: 8.6.1
Mapbox Android version: 11.4.1
and 11.7.0
Same. Started after updating gradle to 8.7 and AGP to 8.6.1
Since mapbox Android 11.4.0
For example
Here both switchCase and eq expression are concerned !!!