Class: Fastlane::Actions::AcceptAndroidSdkLicensesAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/react_native_release/actions/accept_android_sdk_licenses.rb

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



36
37
38
39
# File 'lib/fastlane/plugin/react_native_release/actions/accept_android_sdk_licenses.rb', line 36

def self.authors
  # So no one will ever forget your contribution to fastlane :) You are awesome btw!
  ["cball", "isaiahgrey93"]
end

.available_optionsObject



24
25
26
# File 'lib/fastlane/plugin/react_native_release/actions/accept_android_sdk_licenses.rb', line 24

def self.available_options
  []
end

.descriptionObject



15
16
17
# File 'lib/fastlane/plugin/react_native_release/actions/accept_android_sdk_licenses.rb', line 15

def self.description
  "Accepts Android sdk licenses"
end

.detailsObject



19
20
21
22
# File 'lib/fastlane/plugin/react_native_release/actions/accept_android_sdk_licenses.rb', line 19

def self.details
  # Optional:
  # this is your chance to provide a more detailed description of this action
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/fastlane/plugin/react_native_release/actions/accept_android_sdk_licenses.rb', line 41

def self.is_supported?(platform)
  [:ios, :android].include?(platform)
end

.return_valueObject



28
29
30
# File 'lib/fastlane/plugin/react_native_release/actions/accept_android_sdk_licenses.rb', line 28

def self.return_value
  # If your method provides a return value, you can describe here what it does
end

.run(params) ⇒ Object



7
8
9
# File 'lib/fastlane/plugin/react_native_release/actions/accept_android_sdk_licenses.rb', line 7

def self.run(params)
  sh("yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi;")
end