Skip to content

Commit

Permalink
fix: add support for spaced text on android input
Browse files Browse the repository at this point in the history
  • Loading branch information
donadev committed Nov 6, 2024
1 parent 2cf1ffa commit 21eea8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const commands: {
}),
input: (text: string): CommandMap => ({
ios: `idb focus && cliclick t:"${text}"`,
android: `adb shell input text "${text}"`
android: `adb shell input text $(echo "${text}" | sed 's/ /\%s/g')`
}),
getOpenSimulatorId: (): CommandMap => ({
ios: "idb list-targets | awk -F '[|()]' '/Booted/ {print $2}' | head -n 1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "udblib",
"version": "0.1.5",
"version": "0.1.6",
"description": "Universal Debug Bridge: Control your iOS Simulators and Android Emulators via cli",
"scripts": {
"build": "tsc",
Expand Down

0 comments on commit 21eea8d

Please sign in to comment.