Class: FlutterRb::PluginGradleAndroidPackageCheck
- Inherits:
-
Check
- Object
- Check
- FlutterRb::PluginGradleAndroidPackageCheck
show all
- Defined in:
- lib/flutter_rb/checks/plugin_gradle_check.rb
Overview
Check ‘android; import not exists in Gradle project config (build.gradle file)
Constant Summary
Constants inherited
from Check
Check::UNIMPLEMENTED_ERROR
Instance Method Summary
collapse
Instance Method Details
#check(project) ⇒ Object
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/flutter_rb/checks/plugin_gradle_check.rb', line 19
def check(project)
gradle = project.android_folder.gradle
import_exist = File.readlines("#{gradle.path}/build.gradle").grep(/package android/).size.positive?
CheckReport.new(
name,
import_exist ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL,
description,
gradle.path
)
end
|
#description ⇒ Object
15
16
17
|
# File 'lib/flutter_rb/checks/plugin_gradle_check.rb', line 15
def description
'Validate that \android\ package not exists in Gradle project config (build.gradle file)'
end
|
#name ⇒ Object
7
8
9
|
# File 'lib/flutter_rb/checks/plugin_gradle_check.rb', line 7
def name
'PluginGradleAndroidPackageCheck'
end
|
#summary ⇒ Object
11
12
13
|
# File 'lib/flutter_rb/checks/plugin_gradle_check.rb', line 11
def summary
'Validate that \android\ package not exists in build.gradle config'
end
|