injecting-touch-gestures

Community

Simulate precise Compose touch gestures.

Authorskydoves
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of unreliable or deprecated touch simulation in Jetpack Compose UI tests, helping you drive realistic gestures without relying on flaky screen coordinates.

Core Features & Use Cases

  • Synthetic touch via performTouchInput: Use the TouchInjectionScope DSL as the supported entry point for node-targeted touch injection.
  • Node-local, device-proof coordinates: Target gestures using geometry helpers like center, topLeft, bottomRight, and percentOffset to keep tests stable across screen sizes and layouts.
  • Advanced gesture coverage: Inject clicks, long-press, double-click, swipes, velocity-controlled flings, pinch-to-zoom, and multi-touch swipes, plus low-level primitives (down, moveTo, moveBy, move, up, cancel) for partial gestures and mid-gesture assertions.

Quick Start

Use injecting-touch-gestures to simulate a swipe or pinch inside a Compose test by calling performTouchInput on the target node selected by testTag.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: injecting-touch-gestures
Download link: https://github.com/skydoves/android-testing-skills/archive/main.zip#injecting-touch-gestures

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.