Skip to content
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

fix(dynamic_links, ios): allow for nullable utm values as send per the iOS SDK #10021

Merged
merged 1 commit into from Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -4,8 +4,8 @@

import 'dart:async';

import 'package:firebase_dynamic_links_platform_interface/firebase_dynamic_links_platform_interface.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_dynamic_links_platform_interface/firebase_dynamic_links_platform_interface.dart';
import 'package:firebase_dynamic_links_platform_interface/src/method_channel/utils/convert_match_type.dart';
import 'package:flutter/services.dart';

Expand Down Expand Up @@ -111,7 +111,7 @@ class MethodChannelFirebaseDynamicLinks extends FirebaseDynamicLinksPlatform {
ios: iosData,
utmParameters: linkData['utmParameters'] == null
? {}
: Map<String, String>.from(linkData['utmParameters']),
: Map<String, String?>.from(linkData['utmParameters']),
);
}

Expand Down
Expand Up @@ -30,7 +30,7 @@ class PendingDynamicLinkData {
final Uri link;

/// UTM parameters associated with a dynamic link.
final Map<String, String> utmParameters;
final Map<String, String?> utmParameters;

/// Returns the current instance as a [Map].
Map<String, dynamic> asMap() => <String, dynamic>{
Expand Down