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
24fe7efa
Commit
24fe7efa
authored
Oct 23, 2015
by
Nathan Kerr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't rely on external shasum program to calculate sum of the APK.
parent
21f91bda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
device.dart
packages/flutter_tools/lib/src/device.dart
+5
-3
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+1
-0
No files found.
packages/flutter_tools/lib/src/device.dart
View file @
24fe7efa
...
...
@@ -10,6 +10,7 @@ import 'dart:math';
import
'package:logging/logging.dart'
;
import
'package:path/path.dart'
as
path
;
import
'package:crypto/crypto.dart'
;
import
'application_package.dart'
;
import
'build_configuration.dart'
;
...
...
@@ -695,9 +696,10 @@ class AndroidDevice extends Device {
}
String
_getSourceSha1
(
ApplicationPackage
app
)
{
String
sha1
=
runCheckedSync
([
'shasum'
,
'-a'
,
'1'
,
'-p'
,
app
.
localPath
]).
split
(
' '
)[
0
];
return
sha1
;
var
sha1
=
new
SHA1
();
var
file
=
new
File
(
app
.
localPath
);
sha1
.
add
(
file
.
readAsBytesSync
());
return
CryptoUtils
.
bytesToHex
(
sha1
.
close
());
}
@override
...
...
packages/flutter_tools/pubspec.yaml
View file @
24fe7efa
...
...
@@ -19,6 +19,7 @@ dependencies:
shelf
:
^0.6.2
test
:
"
>=0.12.4+5
<0.12.5"
yaml
:
^2.1.3
crypto
:
^0.9.1
dev_dependencies
:
mockito
:
"
^0.10.1"
...
...
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