Class: PlaycustomappClient

Inherits:
Supply::AbstractGoogleServiceClient show all
Defined in:
fastlane/lib/fastlane/actions/create_app_on_managed_play_store.rb

Constant Summary collapse

SERVICE =
Google::Apis::PlaycustomappV1::PlaycustomappService
SCOPE =
Google::Apis::PlaycustomappV1::AUTH_ANDROIDPUBLISHER

Instance Attribute Summary

Attributes inherited from Supply::AbstractGoogleServiceClient

#client

Create collapse

Methods inherited from Supply::AbstractGoogleServiceClient

#initialize, make_from_config, service_account_authentication

Constructor Details

This class inherits a constructor from Supply::AbstractGoogleServiceClient

Instance Method Details

#create_app(app_title: nil, language_code: nil, developer_account: nil, apk_path: nil) ⇒ Object



163
164
165
166
167
168
169
170
171
172
173
# File 'fastlane/lib/fastlane/actions/create_app_on_managed_play_store.rb', line 163

def create_app(app_title: nil, language_code: nil, developer_account: nil, apk_path: nil)
  custom_app = Google::Apis::PlaycustomappV1::CustomApp.new(title: app_title, language_code: language_code)

  call_google_api do
    client.(
      ,
      custom_app,
      upload_source: apk_path
    )
  end
end