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
2ea3c947
Commit
2ea3c947
authored
May 09, 2016
by
Jason Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for how flutter refresh locates the Android package manifest (#3791)
parent
09dde871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
refresh.dart
packages/flutter_tools/lib/src/commands/refresh.dart
+6
-4
No files found.
packages/flutter_tools/lib/src/commands/refresh.dart
View file @
2ea3c947
...
...
@@ -8,6 +8,7 @@ import 'dart:io';
import
'package:path/path.dart'
as
path
;
import
'../android/android_device.dart'
;
import
'../application_package.dart'
;
import
'../globals.dart'
;
import
'../runner/flutter_command.dart'
;
...
...
@@ -47,18 +48,19 @@ class RefreshCommand extends FlutterCommand {
return
result
;
}
AndroidDevice
device
=
deviceForCommand
;
String
activity
=
argResults
[
'activity'
];
if
(
activity
==
null
)
{
if
(
applicationPackages
.
android
!=
null
)
{
activity
=
applicationPackages
.
android
.
launchActivity
;
AndroidApk
apk
=
applicationPackages
.
getPackageForPlatform
(
device
.
platform
);
if
(
apk
!=
null
)
{
activity
=
apk
.
launchActivity
;
}
else
{
printError
(
'Unable to find the activity to be refreshed.'
);
return
1
;
}
}
AndroidDevice
device
=
deviceForCommand
;
bool
success
=
await
device
.
refreshSnapshot
(
activity
,
snapshotPath
);
if
(!
success
)
{
printError
(
'Error refreshing snapshot on
$device
.'
);
...
...
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