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
57cda51f
Unverified
Commit
57cda51f
authored
Sep 23, 2020
by
godofredoc
Committed by
GitHub
Sep 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gradle_plugin_light_apk test. (#66496)
parent
faa4b663
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
apk_utils.dart
dev/devicelab/lib/framework/apk_utils.dart
+6
-3
try_builders.json
dev/try_builders.json
+7
-0
No files found.
dev/devicelab/lib/framework/apk_utils.dart
View file @
57cda51f
...
...
@@ -8,6 +8,9 @@ import 'package:path/path.dart' as path;
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/framework/utils.dart'
;
final
String
platformLineSep
=
Platform
.
isWindows
?
'
\r\n
'
:
'
\n
'
;
final
List
<
String
>
flutterAssets
=
<
String
>[
'assets/flutter_assets/AssetManifest.json'
,
'assets/flutter_assets/NOTICES'
,
...
...
@@ -267,8 +270,8 @@ subprojects {
final
File
pubspec
=
File
(
path
.
join
(
rootPath
,
'pubspec.yaml'
));
String
content
=
await
pubspec
.
readAsString
();
content
=
content
.
replaceFirst
(
'
\n
dependencies:
\n
'
,
'
\n
dependencies:
\n
$plugin
:
\n
'
,
'
${platformLineSep}
dependencies:
$platformLineSep
'
,
'
${platformLineSep}
dependencies:
$platformLineSep
$plugin
:
$platformLineSep
'
,
);
await
pubspec
.
writeAsString
(
content
,
flush:
true
);
}
...
...
@@ -315,7 +318,7 @@ android {
path
.
join
(
parent
.
path
,
'hello'
,
'pubspec.yaml'
)
);
final
String
contents
=
pubspec
.
readAsStringSync
();
final
String
newContents
=
contents
.
replaceFirst
(
'# The following section is specific to Flutter.
\n
flutter:
\n
'
,
'''
final
String
newContents
=
contents
.
replaceFirst
(
'# The following section is specific to Flutter.
${platformLineSep}
flutter:
$platformLineSep
'
,
'''
flutter:
assets:
- lib/gallery/example_code.dart
...
...
dev/try_builders.json
View file @
57cda51f
...
...
@@ -357,6 +357,13 @@
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows gradle_plugin_light_apk_test"
,
"repo"
:
"flutter"
,
"task_name"
:
"win_gradle_plugin_light_apk_test"
,
"enabled"
:
true
,
"run_if"
:[
"dev/**"
,
"bin/**"
]
},
{
"name"
:
"Windows gradle_r8_test"
,
"repo"
:
"flutter"
,
...
...
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