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 63 forks source link

Lower min required iOS version #21

Open vanlooverenkoen opened 2 years ago

vanlooverenkoen commented 2 years ago

Why is the minimum iOS version set to 14? Carplay is already supported from 12. And even if we would lower to 12. why not just use the minimum supported iOS version that is used by Flutter?

In our case we want to have carplay support. But only for devices that are iOS 14 or higher. All the other devices should still be able to use the app without carplay. That is currently not possible because of the hard min iOS version requirement.

Is there something we can do about this?

vanlooverenkoen commented 2 years ago

Hmm strange, for some reason now I can build with a lower iOS version.

@oguzhnatly why is the min version required in de readme?

vanlooverenkoen commented 2 years ago

No we should lower the min version.

And in the AppDelegate we could use:

      if #available(iOS 14.0, *) {
          return true;
      }

But we should lower the flutter_carplay.podspec to 12.0 (that works for our app)