Skip to content

[Bug] android-cli has obsoleted information #199

Description

@ganadist

Affected Skill

android-cli

Description

  • skills/android-cli/references/interact.md
    • layout --diff option is deprecated and no-op, but instruction described to use it.
      • -d, --diff Deprecated; no-op flag. Will be removed in a
        future release
        --flat Returns a flat list instead of a tree
        --full Return the full tree, including non-interactive
      • `android layout` returns a flat JSON list of the UI elements on screen. `android
        layout --diff` returns a flat JSON list of the UI elements that have changed
        since the last call to `layout` or `layout --diff`
    • layout subcommand output
      • - `resourceId` - the Android resource id used to refer to the element
        - `contentDesc` - a description of a UI element for use by accessibility tools
        - `interactions` - the set of user interactions the element supports. May contain one or more of: `checkable`, `clickable`, `focusable`, `scrollable`, `long-clickable`, `password`
        - `state` - the set of states the element is in. May contain one or more of `checked`, `focused`, `selected`
      • Actual output
        $ android layout | jq
        [
          {
            "class": "android.widget.ScrollView",
            "resource-id": "com.google.android.apps.nexuslauncher:id/workspace",
            "interactions": [
              "SCROLLABLE"
            ],
            "bounds": "[0,0][1080,2400]",
            "center": "[540,1200]",
            "children": [
              {
                "class": "androidx.viewpager.widget.ViewPager",
                "resource-id": "com.google.android.apps.nexuslauncher:id/smartspace_card_pager",
                "content-desc": "At a glance",
                "interactions": [
                  "SCROLLABLE",
                  "LONG_CLICKABLE"
                ],
         ...
        
        • interactions/state fields are SNAKE_CASE, not kebab-case.
        • resourceId -> resource-id
        • contentDesc -> content-desc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions