Class: Pod::Command::Flutter::DSYM

Inherits:
Pod::Command::Flutter show all
Defined in:
lib/cocoapods-flutter/command/flutter/dsym.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pod::Command::Flutter

#validate!

Constructor Details

#initialize(argv) ⇒ DSYM

Returns a new instance of DSYM.



24
25
26
27
28
29
30
31
32
# File 'lib/cocoapods-flutter/command/flutter/dsym.rb', line 24

def initialize(argv)

  @flutter_version = argv.option('version', '1.22.6')
  @hash = argv.option('hash')
  @dsym = argv.option('dsym')
  @working_dir = Dir.pwd

  super
end

Class Method Details

.optionsObject



16
17
18
19
20
21
22
# File 'lib/cocoapods-flutter/command/flutter/dsym.rb', line 16

def self.options
  [
      ['--version', 'FlutterSDK version'],
      ['--hash', 'FlutterEngine hash see Flutter.frameworks info.plist FlutterEngine value'],
      ['--dsym', 'zip file path, you should download dSYM manually from "https://storage.cloud.google.com/flutter_infra_release/flutter/{engine hash}/ios-release/Flutter.dSYM.zip"']
  ]#.concat(Pod::Command::Repo::Push.options).concat(super).uniq
end

Instance Method Details

#runObject



34
35
36
37
38
# File 'lib/cocoapods-flutter/command/flutter/dsym.rb', line 34

def run
  remote = Remote.new()
  remote.upload_flutter_sdk_dsym @flutter_version, @hash, @dsym
  Pod::UserInterface.info "Upload success"
end