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: 474a6fea64b826122fa8115f06d5b25bef60aa13923d927c64ece25629aa83fb
4
- data.tar.gz: 1c59927bbfebac589f18367195a01e17604d5ac6e5d04649153ac3e3d9d90f2b
3
+ metadata.gz: 9423d3ce544d97b0278d88defa535e5a54c5e41ab7d5f670e568f7f7bbd4a523
4
+ data.tar.gz: ce78d1d989f07fd073aa7b2a911ea012f477e5e4d0e37054fbc0ef2719f32646
5
5
  SHA512:
6
- metadata.gz: 5fd12daa82ecba9cc76a337ae316f26ed049badc1751761475150eb75d88c34f830e0a21e6596063c0610fc534782106fcfea53a65f14ae10c6ba3e95d22618e
7
- data.tar.gz: 21ccf459cf5f1112a4d6a2c24175fc7dfadbc964fb87a486ab92961eb2ab0f4d698b19c05117816ee583b811d013e4f463ffbf69ae8adf590456e40a95308589
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
- other_action.increment_version_number(
39
- version_number: version
40
- ) if CommonHelper.is_validate_string(version)
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
- UpdateBuildNumberAction.run(
47
+ other_action.update_build_number(
44
48
  build: build
45
49
  )
46
50
  time = Time.new.strftime("%Y%m%d%H%M")
47
- version = Actions::GetVersionNumberAction.run(target: scheme)
48
- build = Actions::GetBuildNumberAction.run({})
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
- Actions::IncrementBuildNumberAction.run(
34
- build_number: build,
35
- xcodeproj: Environment.project
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Fastci
3
- VERSION = "0.0.16"
3
+ VERSION = "0.0.17"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-fastci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - watermelon