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) ⇒ Object



95
96
97
98
99
100
101
102
103
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 95

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

#descriptionObject



105
106
107
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 105

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

#podspec_parameterObject



91
92
93
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 91

def podspec_parameter
  'source'
end