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
bb3275b9
Unverified
Commit
bb3275b9
authored
Feb 09, 2022
by
Daco Harkes
Committed by
GitHub
Feb 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debugging info to android_plugin_example_app_build_test (#98107)
parent
d522179b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
android_plugin_example_app_build_test.dart
...egration.shard/android_plugin_example_app_build_test.dart
+9
-2
No files found.
packages/flutter_tools/test/integration.shard/android_plugin_example_app_build_test.dart
View file @
bb3275b9
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
import
'package:file_testing/file_testing.dart'
;
import
'package:file_testing/file_testing.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/io.dart'
;
import
'../src/common.dart'
;
import
'../src/common.dart'
;
import
'test_utils.dart'
;
import
'test_utils.dart'
;
...
@@ -35,7 +36,7 @@ void main() {
...
@@ -35,7 +36,7 @@ void main() {
final
String
testName
=
'
${template}
_test'
;
final
String
testName
=
'
${template}
_test'
;
processManager
.
runSync
(<
String
>[
ProcessResult
result
=
processManager
.
runSync
(<
String
>[
flutterBin
,
flutterBin
,
...
getLocalEngineArguments
(),
...
getLocalEngineArguments
(),
'create'
,
'create'
,
...
@@ -43,6 +44,9 @@ void main() {
...
@@ -43,6 +44,9 @@ void main() {
'--platforms=android'
,
'--platforms=android'
,
testName
,
testName
,
],
workingDirectory:
tempDir
.
path
);
],
workingDirectory:
tempDir
.
path
);
if
(
result
.
exitCode
!=
0
)
{
throw
Exception
(
'flutter create failed:
${result.exitCode}
\n
${result.stderr}
\n
${result.stdout}
'
);
}
final
Directory
exampleAppDir
=
final
Directory
exampleAppDir
=
tempDir
.
childDirectory
(
testName
).
childDirectory
(
'example'
);
tempDir
.
childDirectory
(
testName
).
childDirectory
(
'example'
);
...
@@ -60,13 +64,16 @@ void main() {
...
@@ -60,13 +64,16 @@ void main() {
buildGradleFile
.
writeAsStringSync
(
newBuildGradle
);
buildGradleFile
.
writeAsStringSync
(
newBuildGradle
);
// Run flutter build apk using AGP 4.1.0
// Run flutter build apk using AGP 4.1.0
processManager
.
runSync
(<
String
>[
result
=
processManager
.
runSync
(<
String
>[
flutterBin
,
flutterBin
,
...
getLocalEngineArguments
(),
...
getLocalEngineArguments
(),
'build'
,
'build'
,
'apk'
,
'apk'
,
'--target-platform=android-arm'
,
'--target-platform=android-arm'
,
],
workingDirectory:
exampleAppDir
.
path
);
],
workingDirectory:
exampleAppDir
.
path
);
if
(
result
.
exitCode
!=
0
)
{
throw
Exception
(
'flutter build failed:
${result.exitCode}
\n
${result.stderr}
\n
${result.stdout}
'
);
}
final
File
exampleApk
=
fileSystem
.
file
(
fileSystem
.
path
.
join
(
final
File
exampleApk
=
fileSystem
.
file
(
fileSystem
.
path
.
join
(
exampleAppDir
.
path
,
exampleAppDir
.
path
,
...
...
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