Class: Pindo::GPComplianceHelper::ComplianceResult
- Inherits:
-
Object
- Object
- Pindo::GPComplianceHelper::ComplianceResult
- Defined in:
- lib/pindo/module/android/gp_compliance_helper.rb
Overview
Google Play 合规检测结果
Instance Attribute Summary collapse
-
#aab_size_mb ⇒ Object
Returns the value of attribute aab_size_mb.
-
#base_percent ⇒ Object
Returns the value of attribute base_percent.
-
#base_size_mb ⇒ Object
Returns the value of attribute base_size_mb.
-
#compliance_issues ⇒ Object
Returns the value of attribute compliance_issues.
-
#elf_alignment_compliant ⇒ Object
Returns the value of attribute elf_alignment_compliant.
-
#size_compliant ⇒ Object
Returns the value of attribute size_compliant.
-
#target_sdk_compliant ⇒ Object
Returns the value of attribute target_sdk_compliant.
-
#target_sdk_version ⇒ Object
Returns the value of attribute target_sdk_version.
-
#total_libs ⇒ Object
Returns the value of attribute total_libs.
-
#unaligned_libs ⇒ Object
Returns the value of attribute unaligned_libs.
-
#unity_override_patched ⇒ Object
Returns the value of attribute unity_override_patched.
-
#unity_patch_compliant ⇒ Object
Returns the value of attribute unity_patch_compliant.
-
#unity_xrsdk_patched ⇒ Object
Returns the value of attribute unity_xrsdk_patched.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
- #add_issue(issue) ⇒ Object
- #add_warning(warning) ⇒ Object
- #compliant? ⇒ Boolean
-
#initialize ⇒ ComplianceResult
constructor
A new instance of ComplianceResult.
Constructor Details
#initialize ⇒ ComplianceResult
Returns a new instance of ComplianceResult.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 18 def initialize @target_sdk_compliant = false @target_sdk_version = 0 @elf_alignment_compliant = false @unaligned_libs = [] @total_libs = 0 @compliance_issues = [] @warnings = [] @size_compliant = false @aab_size_mb = 0 @base_size_mb = 0 @base_percent = 0 @unity_patch_compliant = false @unity_xrsdk_patched = false @unity_override_patched = false end |
Instance Attribute Details
#aab_size_mb ⇒ Object
Returns the value of attribute aab_size_mb.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def aab_size_mb @aab_size_mb end |
#base_percent ⇒ Object
Returns the value of attribute base_percent.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def base_percent @base_percent end |
#base_size_mb ⇒ Object
Returns the value of attribute base_size_mb.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def base_size_mb @base_size_mb end |
#compliance_issues ⇒ Object
Returns the value of attribute compliance_issues.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def compliance_issues @compliance_issues end |
#elf_alignment_compliant ⇒ Object
Returns the value of attribute elf_alignment_compliant.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def elf_alignment_compliant @elf_alignment_compliant end |
#size_compliant ⇒ Object
Returns the value of attribute size_compliant.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def size_compliant @size_compliant end |
#target_sdk_compliant ⇒ Object
Returns the value of attribute target_sdk_compliant.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def target_sdk_compliant @target_sdk_compliant end |
#target_sdk_version ⇒ Object
Returns the value of attribute target_sdk_version.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def target_sdk_version @target_sdk_version end |
#total_libs ⇒ Object
Returns the value of attribute total_libs.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def total_libs @total_libs end |
#unaligned_libs ⇒ Object
Returns the value of attribute unaligned_libs.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def unaligned_libs @unaligned_libs end |
#unity_override_patched ⇒ Object
Returns the value of attribute unity_override_patched.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def unity_override_patched @unity_override_patched end |
#unity_patch_compliant ⇒ Object
Returns the value of attribute unity_patch_compliant.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def unity_patch_compliant @unity_patch_compliant end |
#unity_xrsdk_patched ⇒ Object
Returns the value of attribute unity_xrsdk_patched.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def unity_xrsdk_patched @unity_xrsdk_patched end |
#warnings ⇒ Object
Returns the value of attribute warnings.
13 14 15 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 13 def warnings @warnings end |
Instance Method Details
#add_issue(issue) ⇒ Object
39 40 41 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 39 def add_issue(issue) @compliance_issues << issue end |
#add_warning(warning) ⇒ Object
43 44 45 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 43 def add_warning(warning) @warnings << warning end |
#compliant? ⇒ Boolean
35 36 37 |
# File 'lib/pindo/module/android/gp_compliance_helper.rb', line 35 def compliant? @target_sdk_compliant && @elf_alignment_compliant && @size_compliant && @unity_patch_compliant end |