pindo 5.2.1 → 5.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c2661db4329460e129f8991d5dd81f01f341cc4b4d2d8fe98474ec5501ceef0
|
4
|
+
data.tar.gz: dd9727246984781d88c85d2b7442845261552c1e5eec07e3f049c45c7630c432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb87c6296195cc7bc34db428a358800f380a2b6abee912088bb209e176cc2414988315e838f0dd6b7caf18fe8c48744a5754c7e996166582986c38eb469c77d6
|
7
|
+
data.tar.gz: 682de2c7b676c65e4a836be1b2bfe4988a6c0547fa3d8dc97c77d415f504b07adad7f176ad958d2aaedaef398ee8dbe246e53bf10ded800c2b65d31d80a9d613
|
@@ -107,7 +107,19 @@ module Pindo
|
|
107
107
|
end
|
108
108
|
|
109
109
|
android_build_helper = Pindo::AndroidBuildHelper.share_instance
|
110
|
+
|
111
|
+
# 添加以项目名称为 scheme 的配置
|
110
112
|
android_build_helper.add_test_scheme(project_dir:pindo_project_dir,scheme_name:scheme_name)
|
113
|
+
|
114
|
+
# 获取 bundle ID 并添加以 bundle ID 为 scheme 的配置
|
115
|
+
bundle_id = android_build_helper.get_application_id(pindo_project_dir)
|
116
|
+
if !bundle_id.nil? && !bundle_id.empty?
|
117
|
+
puts "获取到 Bundle ID: #{bundle_id}"
|
118
|
+
android_build_helper.add_test_scheme(project_dir:pindo_project_dir,scheme_name:bundle_id)
|
119
|
+
else
|
120
|
+
puts "警告: 未能获取到 Bundle ID,跳过添加 Bundle ID scheme"
|
121
|
+
end
|
122
|
+
|
111
123
|
apk_path = android_build_helper.auto_build_apk(pindo_project_dir, !@args_release_flag)
|
112
124
|
ipa_file_upload = Dir.glob(apk_path).max_by {|f| File.mtime(f)}
|
113
125
|
|
@@ -126,7 +126,8 @@ module Pindo
|
|
126
126
|
end
|
127
127
|
|
128
128
|
if !info_plist_path.nil? && File.exist?(info_plist_path) && !scheme_name.nil? && !scheme_name.empty?
|
129
|
-
scheme_name = scheme_name.to_s.downcase.strip.gsub(/[\s\-_]/, '')
|
129
|
+
# scheme_name = scheme_name.to_s.downcase.strip.gsub(/[\s\-_]/, '')
|
130
|
+
scheme_name = scheme_name.to_s.gsub(/[^a-zA-Z0-9]/, '').downcase
|
130
131
|
info_plist_dict = Xcodeproj::Plist.read_from_path(info_plist_path)
|
131
132
|
info_plist_dict["CFBundleURLTypes"] = info_plist_dict["CFBundleURLTypes"] || []
|
132
133
|
# info_plist_dict["CFBundleURLTypes"] 中不存在CFBundleURLName为scheme_name的item
|
@@ -30,7 +30,8 @@ module Pindo
|
|
30
30
|
return puts "错误: 需要提供项目路径" if project_dir.nil?
|
31
31
|
return puts "错误: 项目路径不存在: #{project_dir}" unless File.directory?(project_dir)
|
32
32
|
|
33
|
-
scheme_name = scheme_name.to_s.downcase.strip.gsub(/[\s\-_]/, '')
|
33
|
+
# scheme_name = scheme_name.to_s.downcase.strip.gsub(/[\s\-_]/, '')
|
34
|
+
scheme_name = scheme_name.to_s.gsub(/[^a-zA-Z0-9]/, '').downcase
|
34
35
|
# 查找所有可能的模块
|
35
36
|
main_module = get_main_module(project_dir)
|
36
37
|
search_modules = ["app", "unityLibrary"]
|
data/lib/pindo/version.rb
CHANGED