cask "androidtool" do
  version "1.66"
  sha256 "4f432ad45660071a1f36c4878bd444dd8bedd520c7c70096e5d7a7907ff7c86a"

  url "https://github.com/mortenjust/androidtool-mac/releases/download/#{version}/AndroidTool.zip"
  name "AndroidTool"
  desc "App for recording the screen and installing apps in iOS and Android"
  homepage "https://github.com/mortenjust/androidtool-mac"

  depends_on :macos

  app "AndroidTool.app"

  zap trash: [
    "~/Library/Application Support/AndroidTool",
    "~/Library/Preferences/com.mortenjust.AndroidTool.plist",
    "~/Library/Saved Application State/com.mortenjust.AndroidTool.savedState",
  ]

  caveats do
    requires_rosetta
  end
end
