Skip to content

Commit 890e6e5

Browse files
authored
[analytics] instrument retargeted app actions (#8733)
Instruments: * `FlutterRetargetAppAction` * `RestartFlutterAppRetarget` * `ReloadAllFlutterAppsRetarget` * `ReloadFlutterAppRetarget` * `RestartAllFlutterAppsRetarget` See: #8598 --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent e330dcf commit 890e6e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/io/flutter/actions/FlutterRetargetAppAction.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import com.intellij.openapi.actionSystem.Presentation;
1212
import com.intellij.openapi.project.DumbAwareAction;
1313
import com.intellij.openapi.project.Project;
14+
import com.jetbrains.lang.dart.analytics.Analytics;
15+
import com.jetbrains.lang.dart.analytics.AnalyticsData;
1416
import io.flutter.utils.FlutterModuleUtils;
1517
import org.jetbrains.annotations.NotNull;
1618
import org.jetbrains.annotations.Nullable;
@@ -48,6 +50,7 @@ public void actionPerformed(@NotNull AnActionEvent e) {
4850
final AnAction action = getAction(e.getProject());
4951
if (action != null) {
5052
action.actionPerformed(e);
53+
Analytics.report(AnalyticsData.forAction(this, e));
5154
}
5255
}
5356

0 commit comments

Comments
 (0)