-
Notifications
You must be signed in to change notification settings - Fork 399
Expand file tree
/
Copy pathfakes.dart
More file actions
64 lines (57 loc) · 1.87 KB
/
Copy pathfakes.dart
File metadata and controls
64 lines (57 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright 2024 The Flutter Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
import 'dart:async';
import 'package:devtools_shared/src/deeplink/deeplink_manager.dart';
class FakeDeeplinkManager extends DeeplinkManager {
String? receivedPath;
String? receivedBuildVariant;
String? receivedConfiguration;
String? receivedTarget;
late Map<String, Object?> responseForGetAndroidBuildVariants;
late Map<String, Object?> responseForGetAndroidAppLinkSettings;
late Map<String, Object?> responseForGetIosBuildOptions;
late Map<String, Object?> responseForGetIosUniversalLinkSettings;
@override
Future<Map<String, Object?>> getAndroidBuildVariants({
required String rootPath,
String? ide,
bool suppressAnalytics = false,
}) async {
receivedPath = rootPath;
return responseForGetAndroidBuildVariants;
}
@override
Future<Map<String, Object?>> getAndroidAppLinkSettings({
required String rootPath,
required String buildVariant,
String? ide,
bool suppressAnalytics = false,
}) async {
receivedPath = rootPath;
receivedBuildVariant = buildVariant;
return responseForGetAndroidAppLinkSettings;
}
@override
Future<Map<String, Object?>> getIosBuildOptions({
required String rootPath,
String? ide,
bool suppressAnalytics = false,
}) async {
receivedPath = rootPath;
return responseForGetIosBuildOptions;
}
@override
Future<Map<String, Object?>> getIosUniversalLinkSettings({
required String rootPath,
required String configuration,
required String target,
String? ide,
bool suppressAnalytics = false,
}) async {
receivedPath = rootPath;
receivedConfiguration = configuration;
receivedTarget = target;
return responseForGetIosUniversalLinkSettings;
}
}