Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e29595d4
Unverified
Commit
e29595d4
authored
Apr 09, 2021
by
Jenn Magder
Committed by
GitHub
Apr 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove crash_reporting and github_template from reporting library (#80139)
parent
1075b2a1
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
39 additions
and
20 deletions
+39
-20
runner.dart
packages/flutter_tools/lib/runner.dart
+1
-1
context_runner.dart
packages/flutter_tools/lib/src/context_runner.dart
+1
-0
globals.dart
packages/flutter_tools/lib/src/globals.dart
+1
-0
crash_reporting.dart
...ages/flutter_tools/lib/src/reporting/crash_reporting.dart
+14
-1
github_template.dart
...ages/flutter_tools/lib/src/reporting/github_template.dart
+17
-1
reporting.dart
packages/flutter_tools/lib/src/reporting/reporting.dart
+0
-15
crash_reporting_test.dart
...lutter_tools/test/general.shard/crash_reporting_test.dart
+1
-0
github_template_test.dart
...lutter_tools/test/general.shard/github_template_test.dart
+1
-1
runner_test.dart
.../flutter_tools/test/general.shard/runner/runner_test.dart
+1
-0
forbidden_imports_test.dart
..._tools/test/integration.shard/forbidden_imports_test.dart
+1
-1
context.dart
packages/flutter_tools/test/src/context.dart
+1
-0
No files found.
packages/flutter_tools/lib/runner.dart
View file @
e29595d4
...
@@ -20,7 +20,7 @@ import 'src/base/process.dart';
...
@@ -20,7 +20,7 @@ import 'src/base/process.dart';
import
'src/context_runner.dart'
;
import
'src/context_runner.dart'
;
import
'src/doctor.dart'
;
import
'src/doctor.dart'
;
import
'src/globals.dart'
as
globals
;
import
'src/globals.dart'
as
globals
;
import
'src/reporting/reporting.dart'
;
import
'src/reporting/
crash_
reporting.dart'
;
import
'src/runner/flutter_command.dart'
;
import
'src/runner/flutter_command.dart'
;
import
'src/runner/flutter_command_runner.dart'
;
import
'src/runner/flutter_command_runner.dart'
;
...
...
packages/flutter_tools/lib/src/context_runner.dart
View file @
e29595d4
...
@@ -56,6 +56,7 @@ import 'macos/macos_workflow.dart';
...
@@ -56,6 +56,7 @@ import 'macos/macos_workflow.dart';
import
'macos/xcode.dart'
;
import
'macos/xcode.dart'
;
import
'mdns_discovery.dart'
;
import
'mdns_discovery.dart'
;
import
'persistent_tool_state.dart'
;
import
'persistent_tool_state.dart'
;
import
'reporting/crash_reporting.dart'
;
import
'reporting/first_run.dart'
;
import
'reporting/first_run.dart'
;
import
'reporting/reporting.dart'
;
import
'reporting/reporting.dart'
;
import
'resident_runner.dart'
;
import
'resident_runner.dart'
;
...
...
packages/flutter_tools/lib/src/globals.dart
View file @
e29595d4
...
@@ -19,6 +19,7 @@ import 'macos/cocoapods.dart';
...
@@ -19,6 +19,7 @@ import 'macos/cocoapods.dart';
import
'macos/cocoapods_validator.dart'
;
import
'macos/cocoapods_validator.dart'
;
import
'macos/xcode.dart'
;
import
'macos/xcode.dart'
;
import
'project.dart'
;
import
'project.dart'
;
import
'reporting/crash_reporting.dart'
;
import
'reporting/reporting.dart'
;
import
'reporting/reporting.dart'
;
import
'runner/local_engine.dart'
;
import
'runner/local_engine.dart'
;
...
...
packages/flutter_tools/lib/src/reporting/crash_reporting.dart
View file @
e29595d4
...
@@ -4,7 +4,20 @@
...
@@ -4,7 +4,20 @@
// @dart = 2.8
// @dart = 2.8
part of
reporting
;
import
'dart:async'
;
import
'package:file/file.dart'
;
import
'package:http/http.dart'
as
http
;
import
'package:meta/meta.dart'
;
import
'../base/file_system.dart'
;
import
'../base/io.dart'
;
import
'../base/logger.dart'
;
import
'../base/os.dart'
;
import
'../base/platform.dart'
;
import
'../project.dart'
;
import
'github_template.dart'
;
import
'reporting.dart'
;
/// Tells crash backend that the error is from the Flutter CLI.
/// Tells crash backend that the error is from the Flutter CLI.
const
String
_kProductId
=
'Flutter_Tools'
;
const
String
_kProductId
=
'Flutter_Tools'
;
...
...
packages/flutter_tools/lib/src/reporting/github_template.dart
View file @
e29595d4
...
@@ -4,7 +4,23 @@
...
@@ -4,7 +4,23 @@
// @dart = 2.8
// @dart = 2.8
part of
reporting
;
import
'dart:async'
;
import
'package:file/file.dart'
;
import
'package:intl/intl.dart'
;
import
'package:meta/meta.dart'
;
import
'../base/file_system.dart'
;
import
'../base/io.dart'
;
import
'../base/logger.dart'
;
import
'../base/process.dart'
;
import
'../build_system/exceptions.dart'
;
import
'../convert.dart'
;
import
'../devfs.dart'
;
import
'../flutter_manifest.dart'
;
import
'../flutter_project_metadata.dart'
;
import
'../project.dart'
;
import
'../version.dart'
;
/// Provide suggested GitHub issue templates to user when Flutter encounters an error.
/// Provide suggested GitHub issue templates to user when Flutter encounters an error.
class
GitHubTemplateCreator
{
class
GitHubTemplateCreator
{
...
...
packages/flutter_tools/lib/src/reporting/reporting.dart
View file @
e29595d4
...
@@ -9,37 +9,22 @@ library reporting;
...
@@ -9,37 +9,22 @@ library reporting;
import
'dart:async'
;
import
'dart:async'
;
import
'package:file/file.dart'
;
import
'package:file/file.dart'
;
import
'package:http/http.dart'
as
http
;
import
'package:intl/intl.dart'
;
import
'package:meta/meta.dart'
;
import
'package:meta/meta.dart'
;
import
'package:package_config/package_config.dart'
;
import
'package:package_config/package_config.dart'
;
import
'package:usage/usage_io.dart'
;
import
'package:usage/usage_io.dart'
;
import
'../base/error_handling_io.dart'
;
import
'../base/error_handling_io.dart'
;
import
'../base/file_system.dart'
;
import
'../base/file_system.dart'
;
import
'../base/io.dart'
;
import
'../base/logger.dart'
;
import
'../base/os.dart'
;
import
'../base/platform.dart'
;
import
'../base/process.dart'
;
import
'../base/time.dart'
;
import
'../base/time.dart'
;
import
'../build_info.dart'
;
import
'../build_info.dart'
;
import
'../build_system/exceptions.dart'
;
import
'../convert.dart'
;
import
'../dart/language_version.dart'
;
import
'../dart/language_version.dart'
;
import
'../devfs.dart'
;
import
'../doctor_validator.dart'
;
import
'../doctor_validator.dart'
;
import
'../features.dart'
;
import
'../features.dart'
;
import
'../flutter_manifest.dart'
;
import
'../flutter_project_metadata.dart'
;
import
'../globals.dart'
as
globals
;
import
'../globals.dart'
as
globals
;
import
'../project.dart'
;
import
'../runner/flutter_command.dart'
;
import
'../runner/flutter_command.dart'
;
import
'../version.dart'
;
import
'../version.dart'
;
import
'first_run.dart'
;
import
'first_run.dart'
;
part
'crash_reporting.dart'
;
part
'disabled_usage.dart'
;
part
'disabled_usage.dart'
;
part
'events.dart'
;
part
'events.dart'
;
part
'github_template.dart'
;
part
'usage.dart'
;
part
'usage.dart'
;
packages/flutter_tools/test/general.shard/crash_reporting_test.dart
View file @
e29595d4
...
@@ -15,6 +15,7 @@ import 'package:flutter_tools/src/base/platform.dart';
...
@@ -15,6 +15,7 @@ import 'package:flutter_tools/src/base/platform.dart';
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/reporting/crash_reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:http/http.dart'
;
import
'package:http/http.dart'
;
import
'package:http/testing.dart'
;
import
'package:http/testing.dart'
;
...
...
packages/flutter_tools/test/general.shard/github_template_test.dart
View file @
e29595d4
...
@@ -10,7 +10,7 @@ import 'package:flutter_tools/src/base/io.dart';
...
@@ -10,7 +10,7 @@ import 'package:flutter_tools/src/base/io.dart';
import
'package:flutter_tools/src/base/logger.dart'
;
import
'package:flutter_tools/src/base/logger.dart'
;
import
'package:flutter_tools/src/devfs.dart'
;
import
'package:flutter_tools/src/devfs.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/reporting/
reporting
.dart'
;
import
'package:flutter_tools/src/reporting/
github_template
.dart'
;
import
'../src/common.dart'
;
import
'../src/common.dart'
;
import
'../src/context.dart'
;
import
'../src/context.dart'
;
...
...
packages/flutter_tools/test/general.shard/runner/runner_test.dart
View file @
e29595d4
...
@@ -16,6 +16,7 @@ import 'package:flutter_tools/src/base/platform.dart';
...
@@ -16,6 +16,7 @@ import 'package:flutter_tools/src/base/platform.dart';
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/globals.dart'
as
globals
;
import
'package:flutter_tools/src/reporting/crash_reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/runner/flutter_command.dart'
;
import
'package:flutter_tools/src/runner/flutter_command.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
...
...
packages/flutter_tools/test/integration.shard/forbidden_imports_test.dart
View file @
e29595d4
...
@@ -90,7 +90,7 @@ void main() {
...
@@ -90,7 +90,7 @@ void main() {
test
(
'no unauthorized imports of package:http'
,
()
{
test
(
'no unauthorized imports of package:http'
,
()
{
final
List
<
String
>
allowedPaths
=
<
String
>[
final
List
<
String
>
allowedPaths
=
<
String
>[
// Used only for multi-part file uploads, which are non-trivial to reimplement.
// Used only for multi-part file uploads, which are non-trivial to reimplement.
fileSystem
.
path
.
join
(
flutterTools
,
'lib'
,
'src'
,
'reporting'
,
'reporting.dart'
),
fileSystem
.
path
.
join
(
flutterTools
,
'lib'
,
'src'
,
'reporting'
,
'
crash_
reporting.dart'
),
];
];
bool
_isNotAllowed
(
FileSystemEntity
entity
)
=>
allowedPaths
.
every
((
String
path
)
=>
path
!=
entity
.
path
);
bool
_isNotAllowed
(
FileSystemEntity
entity
)
=>
allowedPaths
.
every
((
String
path
)
=>
path
!=
entity
.
path
);
...
...
packages/flutter_tools/test/src/context.dart
View file @
e29595d4
...
@@ -30,6 +30,7 @@ import 'package:flutter_tools/src/ios/simulators.dart';
...
@@ -30,6 +30,7 @@ import 'package:flutter_tools/src/ios/simulators.dart';
import
'package:flutter_tools/src/ios/xcodeproj.dart'
;
import
'package:flutter_tools/src/ios/xcodeproj.dart'
;
import
'package:flutter_tools/src/persistent_tool_state.dart'
;
import
'package:flutter_tools/src/persistent_tool_state.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/reporting/crash_reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/version.dart'
;
import
'package:flutter_tools/src/version.dart'
;
import
'package:flutter_tools/src/globals_null_migrated.dart'
as
globals
;
import
'package:flutter_tools/src/globals_null_migrated.dart'
as
globals
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment