What happened
When segment_analytics is added to a Flutter app on Flutter 3.44.x, Flutter reports that this plugin still applies the Kotlin Gradle Plugin directly on Android.
Current warning:
WARNING: Your app uses the following plugins that apply Kotlin Gradle Plugin (KGP): segment_analytics
Future versions of Flutter will fail to build if your app uses plugins that apply KGP.
What I expected
The plugin should rely on Flutter/AGP built-in Kotlin support and stop applying KGP directly.
Steps to reproduce
- Create a Flutter app on Flutter 3.44.x.
- Add
segment_analytics: ^1.1.11.
- Run
flutter build apk or flutter run for Android.
- Observe the KGP warning mentioning
segment_analytics.
Additional context
This warning is currently non-fatal, but Flutter indicates it will become a build error in a future release.
What happened
When
segment_analyticsis added to a Flutter app on Flutter 3.44.x, Flutter reports that this plugin still applies the Kotlin Gradle Plugin directly on Android.Current warning:
What I expected
The plugin should rely on Flutter/AGP built-in Kotlin support and stop applying KGP directly.
Steps to reproduce
segment_analytics: ^1.1.11.flutter build apkorflutter runfor Android.segment_analytics.Additional context
This warning is currently non-fatal, but Flutter indicates it will become a build error in a future release.