fastlane-plugin-fastci 0.0.16 → 0.0.17
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: 9423d3ce544d97b0278d88defa535e5a54c5e41ab7d5f670e568f7f7bbd4a523
|
|
4
|
+
data.tar.gz: ce78d1d989f07fd073aa7b2a911ea012f477e5e4d0e37054fbc0ef2719f32646
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f22a9d70a42c05679cf4539cd236279127a0cc434301f94d3ff779f63e3fbcda75023eeeeb8609e123a2669aa5633d5bd1fde93e16372dd78eead3798e71e07c
|
|
7
|
+
data.tar.gz: c38b92782bdf68fbb3496c159efeb10f9e62141e40bb3b982676ff2d081f9ba4c33521c3014ca2d4ad0a5f7a7def3b4a21fe6a1fb5d0ca3b7de95c18e42a3b47
|
|
@@ -35,17 +35,33 @@ module Fastlane
|
|
|
35
35
|
scheme = params[:scheme] || Environment.scheme
|
|
36
36
|
|
|
37
37
|
# 更改项目version
|
|
38
|
-
|
|
39
|
-
version_number: version
|
|
40
|
-
|
|
38
|
+
if CommonHelper.is_validate_string(version)
|
|
39
|
+
increment_options = { version_number: version }
|
|
40
|
+
if CommonHelper.is_validate_string(Environment.project)
|
|
41
|
+
increment_options[:xcodeproj] = Environment.project
|
|
42
|
+
end
|
|
43
|
+
other_action.increment_version_number(increment_options)
|
|
44
|
+
end
|
|
41
45
|
|
|
42
46
|
# 更改项目build号
|
|
43
|
-
|
|
47
|
+
other_action.update_build_number(
|
|
44
48
|
build: build
|
|
45
49
|
)
|
|
46
50
|
time = Time.new.strftime("%Y%m%d%H%M")
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
|
|
52
|
+
# 获取版本号
|
|
53
|
+
version_options = { target: scheme }
|
|
54
|
+
if CommonHelper.is_validate_string(Environment.project)
|
|
55
|
+
version_options[:xcodeproj] = Environment.project
|
|
56
|
+
end
|
|
57
|
+
version = other_action.get_version_number(version_options)
|
|
58
|
+
|
|
59
|
+
# 获取 build 号
|
|
60
|
+
build_options = {}
|
|
61
|
+
if CommonHelper.is_validate_string(Environment.project)
|
|
62
|
+
build_options[:xcodeproj] = Environment.project
|
|
63
|
+
end
|
|
64
|
+
build = other_action.get_build_number(build_options)
|
|
49
65
|
# 生成ipa包的名字格式
|
|
50
66
|
ipaName = "#{scheme}_#{export_method}_#{version}_#{build}.ipa"
|
|
51
67
|
|
|
@@ -29,11 +29,13 @@ module Fastlane
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
UI.message("*************| 更新 build #{build} |*************")
|
|
32
|
+
|
|
32
33
|
# 更改项目 build 号
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
xcodeproj
|
|
36
|
-
|
|
34
|
+
build_options = { build_number: build }
|
|
35
|
+
if CommonHelper.is_validate_string(Environment.project)
|
|
36
|
+
build_options[:xcodeproj] = Environment.project
|
|
37
|
+
end
|
|
38
|
+
other_action.increment_build_number(build_options)
|
|
37
39
|
|
|
38
40
|
end
|
|
39
41
|
|