Class: FlutterRb::PluginPodspecVersionCheck

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

Overview

Check Flutter plugin version in podspec file. Exists or not

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:



66
67
68
69
70
71
72
73
74
75
76
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 66

def check(project)
  version_in_pubspec = project.pubspec.pubspec_info.version
  podspec = project.ios_folder.podspec
  version_in_podspec = podspec.version
  CheckReport.new(
    name,
    version_in_pubspec == version_in_podspec ? CheckReportStatus::NORMAL : CheckReportStatus::WARNING,
    description,
    podspec.path
  )
end

#descriptionString

Returns:

  • (String)


60
61
62
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 60

def description
  'Check plugin version in podspec file'
end

#podspec_parameterString

Returns:

  • (String)


55
56
57
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 55

def podspec_parameter
  'version'
end