Sha256: 30b39803faf532a9a8a4df68a554c4246746b9d096165ae1ffab4baabb63943b

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

require 'cocoapods-flutter/native/archive/archive'

module Pod
  class Command
    class Flutter < Command
      class DSYM < Flutter
        self.summary = 'foryou flutter'
        self.description = <<-DESC
            Upload dSYM file to server
        DESC

        self.arguments = [
            # CLAide::Argument.new([''], false)
        ]

        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

        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

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

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cocoapods-flutter-dt-0.4.3 lib/cocoapods-flutter/command/flutter/dsym.rb
cocoapods-flutter-dt-0.4.2 lib/cocoapods-flutter/command/flutter/dsym.rb
cocoapods-flutter-dt-0.4.1 lib/cocoapods-flutter/command/flutter/dsym.rb
cocoapods-flutter-dt-0.2.7 lib/cocoapods-flutter/command/flutter/dsym.rb