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
75c50da5
Unverified
Commit
75c50da5
authored
Mar 18, 2019
by
Jonah Williams
Committed by
GitHub
Mar 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that different formatting of ndk properties file does not crash tool (#29528)
parent
bd697d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
android_sdk.dart
packages/flutter_tools/lib/src/android/android_sdk.dart
+9
-4
No files found.
packages/flutter_tools/lib/src/android/android_sdk.dart
View file @
75c50da5
...
@@ -216,10 +216,15 @@ class AndroidNdk {
...
@@ -216,10 +216,15 @@ class AndroidNdk {
.
split
(
'
\n
'
)
.
split
(
'
\n
'
)
.
map
<
String
>((
String
line
)
=>
line
.
trim
())
.
map
<
String
>((
String
line
)
=>
line
.
trim
())
.
where
((
String
line
)
=>
line
.
isNotEmpty
);
.
where
((
String
line
)
=>
line
.
isNotEmpty
);
final
Map
<
String
,
String
>
properties
=
Map
<
String
,
String
>.
fromIterable
(
final
Map
<
String
,
String
>
properties
=
<
String
,
String
>{};
propertiesFileLines
.
map
<
List
<
String
>>((
String
line
)
=>
line
.
split
(
' = '
)),
for
(
String
line
in
propertiesFileLines
)
{
key:
(
dynamic
split
)
=>
split
[
0
],
final
List
<
String
>
parts
=
line
.
split
(
' = '
);
value:
(
dynamic
split
)
=>
split
[
1
]);
if
(
parts
.
length
==
2
)
{
properties
[
parts
[
0
]]
=
parts
[
1
];
}
else
{
printError
(
'Malformed line in ndk source.properties: "
$line
".'
);
}
}
if
(!
properties
.
containsKey
(
'Pkg.Revision'
))
{
if
(!
properties
.
containsKey
(
'Pkg.Revision'
))
{
throw
AndroidNdkSearchError
(
'Can not establish ndk-bundle version:
$propertiesFile
does not contain Pkg.Revision'
);
throw
AndroidNdkSearchError
(
'Can not establish ndk-bundle version:
$propertiesFile
does not contain Pkg.Revision'
);
...
...
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