Sha256: 89e7dc32ebbbec548a3d7dd4d37943f8f9ac23e3d75bda50c5d8637a506f0800

Contents?: true

Size: 521 Bytes

Versions: 5

Compression:

Stored size: 521 Bytes

Contents

module Acouchi
  class ApkInstaller
    def initialize configuration
      @configuration = configuration
      @apk_path = File.join(configuration.project_path, "bin", configuration.apk)
    end

    def install_apk
      ProcessLauncher.new(
        Executables.adb,
        "install",
        @apk_path
      ).start_and_crash_if_process_fails
    end

    def uninstall_apk
      ProcessLauncher.new(
        Executables.adb,
        "uninstall",
        @configuration.target_package
      ).start
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
acouchi-0.0.9 lib/acouchi/apk_installer.rb
acouchi-0.0.8 lib/acouchi/apk_installer.rb
acouchi-0.0.7 lib/acouchi/apk_installer.rb
acouchi-0.0.6 lib/acouchi/apk_installer.rb
acouchi-0.0.5 lib/acouchi/apk_installer.rb