mirror of
https://github.com/flutter/packages.git
synced 2025-06-17 02:48:43 +08:00
[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:
@ -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',
|
||||
],
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user