Class: Fastlane::Helper::ZhuixiBuildAppHelper
- Inherits:
-
Object
- Object
- Fastlane::Helper::ZhuixiBuildAppHelper
- Defined in:
- lib/fastlane/plugin/zhuixi_build_app/helper/zhuixi_build_app_helper.rb
Class Method Summary collapse
- .clean_storyboard_cache(channel_storyboard_path, channel) ⇒ Object
-
.get_badge_path(folder_path, channel) ⇒ Object
返回对应渠道的角标图片路径.
-
.show_message ⇒ Object
class methods that you define here become available in your action as ‘Helper::ZhuixiBuildAppHelper.your_method`.
Class Method Details
.clean_storyboard_cache(channel_storyboard_path, channel) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/fastlane/plugin/zhuixi_build_app/helper/zhuixi_build_app_helper.rb', line 19 def self.clean_storyboard_cache(channel_storyboard_path, channel) if File.exists?(channel_storyboard_path) str = File.read(channel_storyboard_path) File.write(channel_storyboard_path, str + "<!-- Channel: " + channel + " -->") puts "LaunchScreen.storyboard file 已修改!" else puts "LaunchScreen.storyboard file not found!" end end |
.get_badge_path(folder_path, channel) ⇒ Object
返回对应渠道的角标图片路径
15 16 17 |
# File 'lib/fastlane/plugin/zhuixi_build_app/helper/zhuixi_build_app_helper.rb', line 15 def self.get_badge_path(folder_path, channel) File.join(folder_path, "#{channel}_badge.png") end |
.show_message ⇒ Object
class methods that you define here become available in your action as ‘Helper::ZhuixiBuildAppHelper.your_method`
11 12 13 |
# File 'lib/fastlane/plugin/zhuixi_build_app/helper/zhuixi_build_app_helper.rb', line 11 def self. UI.("Hello from the zhuixi_build_app plugin helper!") end |