Class: FlutterRb::PluginPodspecSourceCheck

Inherits:
PluginPodspecCheck show all
Defined in:
lib/flutter_rb/checks/plugin_podspec_check.rb

Overview

Check plugin iOS source path in podspec file. If Flutter plugin cannot contains iOS specific code, source path must be ‘.’

Constant Summary

Constants inherited from Check

Check::UNIMPLEMENTED_ERROR

Instance Method Summary collapse

Methods inherited from PluginPodspecCheck

#name, #summary

Methods inherited from Check

#name, #summary

Instance Method Details

#check(project) ⇒ CheckReport

Parameters:

Returns:



118
119
120
121
122
123
124
125
126
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 118

def check(project)
  podspec = project.ios_folder.podspec
  CheckReport.new(
    name,
    podspec.source.nil? ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL,
    description,
    podspec.path
  )
end

#descriptionString

Returns:

  • (String)


112
113
114
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 112

def description
  'Check plugin iOS source path in podspec file'
end

#podspec_parameterString

Returns:

  • (String)


107
108
109
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 107

def podspec_parameter
  'source'
end