Skip to content

Commit

Permalink
Update when deeplink appid and bundle id are collected (#8801)
Browse files Browse the repository at this point in the history
update ga metrics collection for deeplink. It now only also collect the event right before the validation to reduce noise in impact tracking.

![build.yaml badge]

If you need help, consider asking for help on [Discord].

[build.yaml badge]: https://github.com/flutter/devtools/actions/workflows/build.yaml/badge.svg
  • Loading branch information
chunhtai authored Jan 23, 2025
1 parent 37960ee commit 6086fe8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,14 @@ class DeepLinksController extends DisposableController
Map<String, List<Path>> iosDomainPaths = {};
try {
if (currentAppLinkSettings != null) {
ga.impression(
gac.deeplink,
gac.AnalyzeFlutterProject.androidValidateDomain.name,
screenMetricsProvider:
() => DeepLinkScreenMetrics(
androidAppId: currentAppLinkSettings!.applicationId,
),
);
final androidResult = await deepLinksService.validateAndroidDomain(
domains: domains,
applicationId: applicationId,
Expand All @@ -542,6 +550,14 @@ class DeepLinksController extends DisposableController
}
if (FeatureFlags.deepLinkIosCheck &&
currentUniversalLinkSettings != null) {
ga.impression(
gac.deeplink,
gac.AnalyzeFlutterProject.iosValidateDomain.name,
screenMetricsProvider:
() => DeepLinkScreenMetrics(
iosBundleId: currentUniversalLinkSettings!.bundleIdentifier,
),
);
final iosResult = await deepLinksService.validateIosDomain(
bundleId: bundleId,
teamId: teamId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ enum AnalyzeFlutterProject {
/// iOS Universal Links settings are loaded.
iosUniversalLinkSettingsLoaded,

/// Validate the host name of Android App Links
androidValidateDomain,

/// Validate the associated domain of iOS Universal Links
iosValidateDomain,

/// App Links are loaded and there is at least one link.
flutterHasAppLinks,

Expand Down

0 comments on commit 6086fe8

Please sign in to comment.