oguzhnatly / flutter_carplay

🚗 Apple CarPlay for Flutter Apps. Aims to make it safe to use apps made with Flutter in the car by integrating with CarPlay.
https://pub.dev/packages/flutter_carplay
MIT License
217 stars 62 forks source link

`flutter_carplay` does not work with `obfuscation` #28

Open vanlooverenkoen opened 2 years ago

vanlooverenkoen commented 2 years ago

When building your app with obfuscation the app crashes when starting carplay.

This is probably because the methodchannels are parsed using tostring enum's I will double check this and create a new pull request.

vanlooverenkoen commented 2 years ago

runtimeType.toString() should never be used. In this case you are expecting that the toString will generate a string that matches your native side. That does not work when working with obfuscation.