class Fastlane::Actions::DecryptGooglePlayCredentialsAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/decrypt_google_play_credentials.rb, line 40 def self.available_options [] end
description()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/react_native_release/actions/decrypt_google_play_credentials.rb, line 31 def self.description "Decrypts app env vars and sets the values in the root .env file" end
details()
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/decrypt_google_play_credentials.rb, line 35 def self.details # Optional: # this is your chance to provide a more detailed description of this action end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/decrypt_google_play_credentials.rb, line 57 def self.is_supported?(platform) [:ios, :android].include?(platform) end
return_value()
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/decrypt_google_play_credentials.rb, line 44 def self.return_value # If your method provides a return value, you can describe here what it does end
run(params)
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/decrypt_google_play_credentials.rb, line 7 def self.run(params) key = Helper::ReactNativeReleaseHelper::GOOGLE_PLAY_CREDENTIALS_CRYPTEX_KEY file = Tempfile.new('') begin other_action.cryptex( type: "export", key: key, out: file.path ) rescue => ex UI.abort_with_message!('Error decrypting Google Play Credentials. Did you add them to the repo?') end google_creds = (open file.path).read UI.success("Decrypted #{key}") google_creds end