Skip to content

[interactive_media_ads] Fixes support for ad tag URLs that do not contain a query #9176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 8, 2025

Conversation

bparrishMines
Copy link
Contributor

@bparrishMines bparrishMines commented Apr 29, 2025

Fixes flutter/flutter#166453

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@bparrishMines bparrishMines changed the title fix for ad tag url [interactive_media_ads] Fixes support for ad tag URLs that do not contain a query Apr 29, 2025
@bparrishMines bparrishMines marked this pull request as ready for review May 7, 2025 02:53
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one type safety suggestion.

We could in theory append ?... rather than nothing in this case, but we can wait and see if there are any cases where we actually know servers would do anything with that.

return IMAAdsRequest(
adTagUrl: adTagWithRequestAgent, adDisplayContainer: adDisplayContainer,
adTagUrl: modifiedURL!, adDisplayContainer: adDisplayContainer,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than force-unwrapping, you could assign with a ternary, giving better type safety.

let modifiedURL = !adTagUrl.contains("#") && adTagUrl.contains("?")
  ? ...
  : adTagUrl

@bparrishMines bparrishMines added the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2025
@auto-submit auto-submit bot merged commit dea9b0b into flutter:main May 8, 2025
82 checks passed
@bparrishMines bparrishMines deleted the ima_adtagurl branch May 8, 2025 00:47
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 8, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request May 8, 2025
flutter/packages@b2ce3b0...ab44c26

2025-05-08 31216074+gentlemanxzh@users.noreply.github.com
[google_maps_flutter] Fix for memory leak impacting all platforms due to
subscriptions not getting cleaned up (flutter/packages#8972)
2025-05-08 engine-flutter-autoroll@skia.org Roll Flutter from
cfb887c to b0f5c8c (281 revisions) (flutter/packages#9223)
2025-05-08 10687576+bparrishMines@users.noreply.github.com
[interactive_media_ads] Fixes support for ad tag URLs that do not
contain a query (flutter/packages#9176)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: interactive_media_ads Plugin for IMA SDK platform-android platform-ios
Projects
None yet
2 participants