class OutputBuilderAdb

Overview

Emits adb (Android Debug Bridge) commands that launch the Android entry points Noir discovers — custom-scheme deep links, verified app links, explicit intent components, and content providers — on a connected Android device or emulator.

It is the Android counterpart to the curl/httpie/powershell builders: those render HTTP requests and skip mobile endpoints, while this one renders Android launches and skips everything adb can't express. adb is Android-only, so iOS-originated entry points are skipped (launch those with xcrun simctl openurl — a dedicated -f simctl format is a follow-up). The dropped endpoints are reported once per category as a warning (to STDERR, so the command list on STDOUT stays pipe-clean).

Included Modules

Defined in:

output_builder/adb.cr

Constant Summary

DEFAULT_ACTION = "android.intent.action.VIEW"

Default action for a deep-link (scheme / app-link) launch when the intent-filter recorded none — Android registers VIEW for browsable links.

Instance Method Summary

Instance methods inherited from module MobileLaunch

ios_origin?(endpoint : Endpoint) : Bool ios_origin?, launchable?(url : String) : Bool launchable?, plural(count : Int32) : String plural, shell_quote(str : String) : String shell_quote

Instance methods inherited from class OutputBuilder

bake_endpoint(url : String, params : Array(Param)) bake_endpoint, io : IO io, io=(io : IO) io=, logger : NoirLogger logger, ob_puts(message) ob_puts, output_file : String output_file, print print

Constructor methods inherited from class OutputBuilder

new(options : Hash(String, YAML::Any)) new

Macros inherited from class OutputBuilder

define_getter_methods(names) define_getter_methods

Instance Method Detail

def print(endpoints : Array(Endpoint)) #

[View source]