fastlane-plugin-zhuixi_build_app 1.0.0 → 1.0.2
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 +4 -4
- data/lib/fastlane/plugin/zhuixi_build_app/actions/base_action.rb +13 -0
- data/lib/fastlane/plugin/zhuixi_build_app/actions/download_resources_action.rb +4 -1
- data/lib/fastlane/plugin/zhuixi_build_app/actions/get_game_list_action.rb +4 -1
- data/lib/fastlane/plugin/zhuixi_build_app/actions/get_pack_config_action.rb +5 -1
- data/lib/fastlane/plugin/zhuixi_build_app/actions/login_action.rb +4 -8
- data/lib/fastlane/plugin/zhuixi_build_app/actions/read_config_action.rb +4 -8
- data/lib/fastlane/plugin/zhuixi_build_app/actions/xcodeproj_merge_action.rb +8 -1
- data/lib/fastlane/plugin/zhuixi_build_app/actions/zhuixi_build_app_action.rb +7 -7
- data/lib/fastlane/plugin/zhuixi_build_app/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fe2a794f18890b8fee8f284b2f82f6be269c081344d7b8a9dbefcca4f972a78
|
4
|
+
data.tar.gz: f0f5896d4e538b9ddf31b65eea1af660c85c59b89196ecbcdbaaf272eff48f3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2daaf3a7c685c50e2ed8cbb08c74f15fe399a732dfb63e119c8af5ef36f3c00e31927a9fb06fac2d8b115b3dd790bb69bf81f4cb3ee1949220f20fb891443e7b
|
7
|
+
data.tar.gz: 79507ad983ab650ae583dc1f4f93cc2d6e5d1f3813fb43a6df9261bf63dfc3fa9406b0d81ebc81456e332acc18525de380162727e4ca1af3c07a5c075727b920
|
@@ -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 <
|
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 <
|
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 <
|
6
|
+
class GetPackConfigAction < BaseAction
|
4
7
|
def self.run(params)
|
5
8
|
get_pack_config(params[:game_id])
|
6
9
|
end
|
@@ -24,6 +27,7 @@ module Fastlane
|
|
24
27
|
|
25
28
|
if response.code == "200"
|
26
29
|
result = JSON.parse(response.body)
|
30
|
+
puts result
|
27
31
|
if result["code"] == 200
|
28
32
|
data = result["data"]
|
29
33
|
lane_context[:configParams] = data["config"]
|
@@ -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 <
|
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 <
|
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 <
|
6
|
+
class XcodeprojMergeAction < BaseAction
|
4
7
|
def self.run(params)
|
5
8
|
xcodeproj_merge()
|
6
9
|
end
|
@@ -86,6 +89,10 @@ module Fastlane
|
|
86
89
|
|
87
90
|
def self.add_channel_sdk_resources()
|
88
91
|
|
92
|
+
# 设置DEBUG_INFORMATION_FORMAT
|
93
|
+
lane_context[:target].build_configuration_list.build_configurations.each do |config|
|
94
|
+
config.build_settings["DEBUG_INFORMATION_FORMAT"] = "dwarf"
|
95
|
+
end
|
89
96
|
# 获取 Info.plist 文件的 Build Setting
|
90
97
|
info_plist_build_setting = lane_context[:target].build_configuration_list.get_setting("INFOPLIST_FILE")
|
91
98
|
|
@@ -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 <
|
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],
|
@@ -13,6 +14,8 @@ module Fastlane
|
|
13
14
|
resourcesUrl = other_action.get_pack_config(game_id: game_id.to_s)
|
14
15
|
other_action.download_resources(resourcesUrl: resourcesUrl)
|
15
16
|
other_action.xcodeproj_merge
|
17
|
+
current_directory = Dir.pwd
|
18
|
+
puts "当前工作目录:#{current_directory}"
|
16
19
|
end
|
17
20
|
def self.return_value
|
18
21
|
# If your method provides a return value, you can describe here what it does
|
@@ -28,12 +31,9 @@ module Fastlane
|
|
28
31
|
]
|
29
32
|
end
|
30
33
|
|
31
|
-
def self.
|
32
|
-
#
|
33
|
-
|
34
|
-
#
|
35
|
-
# [:ios, :mac, :android].include?(platform)
|
36
|
-
true
|
34
|
+
def self.obfuscate_code(source_directory)
|
35
|
+
# 在这里添加源码混淆的命令
|
36
|
+
sh("ruby-minify --source-dir #{source_directory}")
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RedSevenMale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07
|
11
|
+
date: 2023-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -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
|
@@ -168,7 +169,7 @@ files:
|
|
168
169
|
- lib/fastlane/plugin/zhuixi_build_app/actions/zhuixi_build_app_action.rb
|
169
170
|
- lib/fastlane/plugin/zhuixi_build_app/helper/zhuixi_build_app_helper.rb
|
170
171
|
- lib/fastlane/plugin/zhuixi_build_app/version.rb
|
171
|
-
homepage:
|
172
|
+
homepage:
|
172
173
|
licenses:
|
173
174
|
- MIT
|
174
175
|
metadata: {}
|