[flutter_plugin_tools] Simplify extraFiles in test utils (#4066)

Rather than taking a list of list of path elements, just accept a list
of Posix-style paths. In practice, the API was already being partially
used that way.
This commit is contained in:
stuartmorgan
2021-06-17 18:23:18 -07:00
committed by GitHub
parent 81a6f66eee
commit 37f79be469
9 changed files with 343 additions and 306 deletions

View File

@ -39,9 +39,9 @@ void main() {
platformSupport: <String, PlatformSupport>{
kPlatformAndroid: PlatformSupport.inline
},
extraFiles: <List<String>>[
<String>['example/android', 'gradlew'],
<String>['android/src/test', 'example_test.java'],
extraFiles: <String>[
'example/android/gradlew',
'android/src/test/example_test.java',
],
);
@ -66,9 +66,9 @@ void main() {
platformSupport: <String, PlatformSupport>{
kPlatformAndroid: PlatformSupport.inline
},
extraFiles: <List<String>>[
<String>['example/android', 'gradlew'],
<String>['example/android/app/src/test', 'example_test.java'],
extraFiles: <String>[
'example/android/gradlew',
'example/android/app/src/test/example_test.java',
],
);