What problem does it solve?
This Skill sets up automated Play Store screenshots for Android apps by integrating Fastlane Screengrab with your existing test infrastructure, eliminating manual screenshot capture.
Core Features & Use Cases
- Automates screenshot capture across multiple locales and device configurations during QA/build workflows.
- Integrates with existing end-to-end tests (UI Automator) and Fastlane to generate consistent store-ready images.
- Use Case: When preparing a new app release, automatically generate screenshots for every locale and screen size without manual clicks.
Quick Start
Use the android-screenshot-automation skill to configure Screengrab-based screenshots for your app.
Step 1: Add Screengrab Dependency to your Android project.
Step 2: Create or update app/src/debug/AndroidManifest.xml with necessary permissions.
Step 3: Create DemoModeRule.kt under app/src/androidTest/..screenshots to enable clean status bars.
Step 4: Create ScreenshotTest.kt under app/src/androidTest/..screenshots to perform the screenshot captures.
Step 5: Update ./fastlane/Screengrabfile to point to your test class.
Step 6: Run the screenshot workflow:
- bundle exec fastlane screenshots
- bundle exec fastlane run capture_android_screenshots
Optional: To capture on multiple devices, extend the screengrab lane in the Fastfile to run for phone, sevenInch, tenInch, etc.
Verification: Build APKs and Android tests, start an emulator, run the screenshots lane, and check fastlane/metadata/android/<locale>/images/phoneScreenshots.