How to use an json config file with dart defines to run the patrol test? #1414
-
Hello! I had this issue when running integration tests but I solved it by defining the When I run the command
Between the
With no luck, in the logs I get that it reads the dart-defines I have passed, but it still doesn't retrieve it when looking for the GoogleService-Info.plist. I think it would be a good idea to add the --dart-define-from-file to facilitate this, but shouldn't also adding all the keys into the .patrol.env have the same effect? I appreciate all the help you can provide, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Hi Ana, Could you please share the full output of running the Details
I understand that your app has a few flavors, and for each flavor, you have a separate
What do you mean by environment string? Either:
or:
I'm pretty sure that the message about Please clarify your problem so I can help better.
It indeed should have the same effect. Nevertheless, we should add |
Beta Was this translation helpful? Give feedback.
It looks correct. The first value in
DART_DEFINES
isREFSVF9ERUZJTkVfRkxVVFRFUl9GTEFWT1I9ZGV2
, whichbase64 --decode
d givesDART_DEFINE_FLUTTER_FLAVOR=dev
.Could you try doing:
I think the Xcode build process will pick up the
DART_DEFINE_FLUTTER_FLAVOR
env var and your Build Phase script should work. This is a workaround, but let's try.