File & Media
Tools for pushing files to devices and adding images/videos to the photo library.
file_push
Push a local file to the simulator/device.
Parameters
Example
Tips
- iOS: Files are pushed into the app's sandbox container.
remotePathis relative to the container root. RequiresbundleId. - Android: Uses
adb push.remotePathis an absolute path on the device (e.g.,/sdcard/Download/). - iOS uses idb for file operations.
add_media
Add images or videos to the simulator/device photo library or gallery.
Parameters
Example
Tips
- Useful for testing image pickers, gallery views, or media upload flows.
- iOS uses
xcrun simctl addmedia. Android usesadb push+ media scanner. - Supports common image formats (JPG, PNG) and video formats (MP4).