Skip to content

Commit 4e1ad59

Browse files
Add documentation on how to use dart-define with gradlew (#123205)
Add documentation on how to use `dart-define` with `gradlew`
1 parent 4aac3af commit 4e1ad59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/integration_test/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ physical):
221221
./gradlew app:connectedAndroidTest -Ptarget=`pwd`/../integration_test/foo_test.dart
222222
```
223223

224+
Note:
225+
To use `--dart-define` with `gradlew` you must `base64` encode all parameters,
226+
and pass them to gradle in a comma separated list:
227+
```bash
228+
./gradlew project:task -Pdart-defines="{base64(key=value)},[...]"
229+
```
230+
224231
## Firebase Test Lab
225232

226233
If this is your first time testing with Firebase Test Lab, you'll need to follow

0 commit comments

Comments
 (0)