The price for this bounty is $250 and the requirements are as follows.
Bounty hosted by Ticket Stacker
When running a Flutter Driver Test, and a permission dialog is shown, we should be able to accept it automatically using code.
This should be possible for Android and for iOS.
In main_test.dart
is where you'll find the driver test.
It taps on the button, then calls requestData
which goes to the main.dart
file, and executes the function acceptNativePermissionDialog
on the NativeControlService
.
In this function is where you can add the code to accept permissions, you can also add underneat the test code on line 30 in main_test.dart
- This will be run on Android emulators and iOS Simulators
- You can use
adb
directly from the dart code if you need to - You can use any of the
xcode
command-line tools
- Run
flutter pub get
- Run
flutter drive
and make sure you have an emulator/simulator open