Sha256: 11d863d8057c8380d1cb32e23b5f369101c120913e1d02bb847c3d91a5062b44

Contents?: true

Size: 957 Bytes

Versions: 8

Compression:

Stored size: 957 Bytes

Contents

#!/usr/bin/env ruby
# coding: utf-8

module Cuesmash
  #
  # Provides an object to get information about the ios app that is being built.
  #
  class AndroidApp < App
    # app/build/outputs/apk/
    attr_reader :app_dir

    # Public: the full path including the built app i.e. ./app/build/outputs/apk/app-debug.apk"
    attr_reader :app_path

    # Public: the app name i.e. app-debug.apk
    attr_reader :app_name

    #
    # Create a new App instance
    #
    # @param  project_name [String] the project name to be built.
    # @param build_configuration [String] which build configuration to run i.e. Release, Debug
    #
    # @return [App] A app instance
    def initialize(project_name:, build_configuration:)
      @app_name = "#{project_name}-#{build_configuration}" << '.apk'
      @app_dir = File.expand_path('./app/build/outputs/apk/')
      @app_path = "#{@app_dir}/" << "#{@app_name}"
    end
  end # class AndroidApp
end # module Cuesmash

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cuesmash-0.6.0 lib/cuesmash/android_app.rb
cuesmash-0.5.0 lib/cuesmash/android_app.rb
cuesmash-0.4.1 lib/cuesmash/android_app.rb
cuesmash-0.4.0 lib/cuesmash/android_app.rb
cuesmash-0.3.0 lib/cuesmash/android_app.rb
cuesmash-0.2.0.0 lib/cuesmash/android_app.rb
cuesmash-0.1.9.9 lib/cuesmash/android_app.rb
cuesmash-0.1.9.8 lib/cuesmash/android_app.rb