fastlane-plugin-zhuixi_build_app 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df9d6d1e29048019bfb8c723657d38c8efa848990fef6306e77c0b14728809ac
4
- data.tar.gz: 46141d7e25e32f5308d0bb15552a2e46a072476407532dd3825c0a95913e0dd9
3
+ metadata.gz: 21314eed70a4f3ef64d41643999a871250f86f45bdefd2d86f6a7f563f97936a
4
+ data.tar.gz: 629d4031ebefb1c51c8625da6dfc8d3b3189df8325ff8fa689353d3f624b5d4b
5
5
  SHA512:
6
- metadata.gz: 0c0bfb09951916cd8ba375832330d50c9f678bc64fb7da98ef7625e76f5b6f6d6e3dc0d74f41995595a969f950e61fd099bb1e37a3c00d664f6b34db29e39d02
7
- data.tar.gz: 04bc9c75cbe01ce1a883b0d46c1bb4255ce75c8f6e16f58de31b507cb7a6e23ff884bd2e4b2cbcba10d86243eb5c97fc0cd966d5ba82d30633a5378f705252fb
6
+ metadata.gz: 167ea3c5647944f52b26a75fd2e50cb0e0c5418d96cb1c840a1c8476c7bae6de945684de335e50eb2476c6243dd044d167120cfca342d92ff0fa69874ea0c318
7
+ data.tar.gz: 9b89a5d6141f9bb52c81a9f4b0499b8c1dce71d06d83e1a03e3daa2c9fd261626e077cced30e00524fa53e7be465b6d979dc414774cc6f60a1754696d96b293e
@@ -0,0 +1,13 @@
1
+ require "fastlane/action"
2
+ require_relative "../helper/zhuixi_build_app_helper"
3
+
4
+ module Fastlane
5
+ module Actions
6
+ class BaseAction < Action
7
+ def self.is_supported?(platform)
8
+ [:ios].include?(platform)
9
+ true
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,6 +1,9 @@
1
+ require "fastlane/action"
2
+ require_relative "../actions/base_action"
3
+
1
4
  module Fastlane
2
5
  module Actions
3
- class DownloadResourcesAction < Action
6
+ class DownloadResourcesAction < BaseAction
4
7
  def self.run(params)
5
8
  #下载渠道资源
6
9
  download_resource(params[:resourcesUrl])
@@ -1,6 +1,9 @@
1
+ require "fastlane/action"
2
+ require_relative "../actions/base_action"
3
+
1
4
  module Fastlane
2
5
  module Actions
3
- class GetGameListAction < Action
6
+ class GetGameListAction < BaseAction
4
7
  def self.run(params)
5
8
  # 获取游戏列表并解析渠道信息
6
9
  game_id = get_game_list_and_parse_channel_info(params[:user_info][:user_id], params[:user_info][:token], "2", params[:user_info][:platform_id])
@@ -1,6 +1,9 @@
1
+ require "fastlane/action"
2
+ require_relative "../actions/base_action"
3
+
1
4
  module Fastlane
2
5
  module Actions
3
- class GetPackConfigAction < Action
6
+ class GetPackConfigAction < BaseAction
4
7
  def self.run(params)
5
8
  get_pack_config(params[:game_id])
6
9
  end
@@ -1,6 +1,9 @@
1
+ require "fastlane/action"
2
+ require_relative "../actions/base_action"
3
+
1
4
  module Fastlane
2
5
  module Actions
3
- class LoginAction < Action
6
+ class LoginAction < BaseAction
4
7
  def self.run(params)
5
8
  login_and_get_user_id_and_token(params[:credentials][:account], params[:credentials][:password], "2")
6
9
  end
@@ -53,13 +56,6 @@ module Fastlane
53
56
  type: Hash),
54
57
  ]
55
58
  end
56
- def self.is_supported?(platform)
57
- # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
58
- # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
59
- #
60
- # [:ios, :mac, :android].include?(platform)
61
- true
62
- end
63
59
  end
64
60
  end
65
61
  end
@@ -1,6 +1,9 @@
1
+ require "fastlane/action"
2
+ require_relative "../actions/base_action"
3
+
1
4
  module Fastlane
2
5
  module Actions
3
- class ReadConfigAction < Action
6
+ class ReadConfigAction < BaseAction
4
7
  def self.run(params)
5
8
  # 读取配置文件
6
9
  app_file_path = params[:app_file_path]
@@ -30,13 +33,6 @@ module Fastlane
30
33
  type: String),
31
34
  ]
32
35
  end
33
- def self.is_supported?(platform)
34
- # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
35
- # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
36
- #
37
- # [:ios, :mac, :android].include?(platform)
38
- true
39
- end
40
36
  end
41
37
  end
42
38
  end
@@ -1,6 +1,9 @@
1
+ require "fastlane/action"
2
+ require_relative "../actions/base_action"
3
+
1
4
  module Fastlane
2
5
  module Actions
3
- class XcodeprojMergeAction < Action
6
+ class XcodeprojMergeAction < BaseAction
4
7
  def self.run(params)
5
8
  xcodeproj_merge()
6
9
  end
@@ -1,9 +1,10 @@
1
1
  require "fastlane/action"
2
2
  require_relative "../helper/zhuixi_build_app_helper"
3
+ require_relative "../actions/base_action"
3
4
 
4
5
  module Fastlane
5
6
  module Actions
6
- class ZhuixiBuildAppAction < Action
7
+ class ZhuixiBuildAppAction < BaseAction
7
8
  def self.run(params)
8
9
  config = other_action.read_config(
9
10
  app_file_path: params[:app_file_path],
@@ -27,14 +28,6 @@ module Fastlane
27
28
  type: String),
28
29
  ]
29
30
  end
30
-
31
- def self.is_supported?(platform)
32
- # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
33
- # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
34
- #
35
- # [:ios, :mac, :android].include?(platform)
36
- true
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module ZhuixiBuildApp
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-zhuixi_build_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedSevenMale
@@ -159,6 +159,7 @@ files:
159
159
  - LICENSE
160
160
  - README.md
161
161
  - lib/fastlane/plugin/zhuixi_build_app.rb
162
+ - lib/fastlane/plugin/zhuixi_build_app/actions/base_action.rb
162
163
  - lib/fastlane/plugin/zhuixi_build_app/actions/download_resources_action.rb
163
164
  - lib/fastlane/plugin/zhuixi_build_app/actions/get_game_list_action.rb
164
165
  - lib/fastlane/plugin/zhuixi_build_app/actions/get_pack_config_action.rb