@@ -557,6 +557,71 @@ final class Event {
557557 },
558558 );
559559
560+ /// Provides information about the plugins injected into an iOS or macOS
561+ /// project.
562+ ///
563+ /// This event is not sent if a project has no plugins.
564+ ///
565+ /// [platform] - The project's platform. Either 'ios' or 'macos'.
566+ ///
567+ /// [isModule] - whether the project is an add-to-app Flutter module.
568+ ///
569+ /// [swiftPackageManagerUsed] - if Swift Package Manager can be used for the
570+ /// project's plugins.
571+ ///
572+ /// [swiftPackageManagerFeatureEnabled] - if the Swift Package Manager feature
573+ /// flag is on. If false, Swift Package Manager is off for all projects on
574+ /// the development machine.
575+ ///
576+ /// [projectDisabledSwiftPackageManager] - if the project's .pubspec has
577+ /// `disable-swift-package-manager: true` . This turns off Swift Package
578+ /// Manager for a single project.
579+ ///
580+ /// [projectHasSwiftPackageManagerIntegration] - if the Xcode project has
581+ /// Swift Package Manager integration. If false, the project needs to be
582+ /// migrated.
583+ ///
584+ /// [pluginCount] - the total number of plugins for this project. A plugin
585+ /// can be compatible with both Swift Package Manager and CocoaPods. Plugins
586+ /// compatible with both will be counted in both [swiftPackageCount] and
587+ /// [podCount] . Swift Package Manager was used to inject all plugins if
588+ /// [pluginCount] is equal to [swiftPackageCount] .
589+ ///
590+ /// [swiftPackageCount] - the number of plugins compatible with Swift Package
591+ /// Manager. This is less than or equal to [pluginCount] . If
592+ /// [swiftPackageCount] is less than [pluginCount] , the project uses CocoaPods
593+ /// to inject plugins.
594+ ///
595+ /// [podCount] - the number of plugins compatible with CocoaPods. This is less
596+ /// than or equal to [podCount] .
597+ Event .flutterInjectDarwinPlugins ({
598+ required String platform,
599+ required bool isModule,
600+ required bool swiftPackageManagerUsed,
601+ required bool swiftPackageManagerFeatureEnabled,
602+ required bool projectDisabledSwiftPackageManager,
603+ required bool projectHasSwiftPackageManagerIntegration,
604+ required int pluginCount,
605+ required int swiftPackageCount,
606+ required int podCount,
607+ }) : this ._(
608+ eventName: DashEvent .flutterInjectDarwinPlugins,
609+ eventData: {
610+ 'platform' : platform,
611+ 'isModule' : isModule,
612+ 'swiftPackageManagerUsed' : swiftPackageManagerUsed,
613+ 'swiftPackageManagerFeatureEnabled' :
614+ swiftPackageManagerFeatureEnabled,
615+ 'projectDisabledSwiftPackageManager' :
616+ projectDisabledSwiftPackageManager,
617+ 'projectHasSwiftPackageManagerIntegration' :
618+ projectHasSwiftPackageManagerIntegration,
619+ 'pluginCount' : pluginCount,
620+ 'swiftPackageCount' : swiftPackageCount,
621+ 'podCount' : podCount,
622+ },
623+ );
624+
560625 // TODO: eliasyishak, remove this or replace once we have a generic
561626 // timing event that can be used by potentially more than one DashTool
562627 Event .hotReloadTime ({required int timeMs})
0 commit comments