Class: Fastlane::Helper::BuildExporterHelper
- Inherits:
-
Object
- Object
- Fastlane::Helper::BuildExporterHelper
- Defined in:
- lib/fastlane/plugin/unity_exporter/helper/build_exporter_helper.rb
Overview
a helper class specific to the Unity-Build-Exporter package: github.com/ar-met/unity-build-exporter
Class Method Summary collapse
Class Method Details
.build_number ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/fastlane/plugin/unity_exporter/helper/build_exporter_helper.rb', line 33 def self.build_number versions = versions_file_content if versions.count > 0 return versions[1] else return "" end end |
.version_number ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/fastlane/plugin/unity_exporter/helper/build_exporter_helper.rb', line 23 def self.version_number versions = versions_file_content if versions.count > 0 return versions[0] else return "" end end |
.versions_file_content ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fastlane/plugin/unity_exporter/helper/build_exporter_helper.rb', line 11 def self.versions_file_content # this is created and updated whenever you create a build via the build exporter build_exporter_versions_file = "#{Helper::UnityEditorHelper.unity_project_path}/BuildExporter/latest-build-version.txt" if File.file?(build_exporter_versions_file) return File.readlines(build_exporter_versions_file, chomp: true) else UI.user_error!("Versions file does not exist yet. You must execute the Unity export action beforehand.") return [] end end |