fastlane-plugin-fastci 0.0.16 → 0.0.18

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: 2bc18fc84e8700a9de27b84d282b3fe7fb60bb504cdb0e5334b76e23a26f7842
4
+ data.tar.gz: ca0609bcf90695129d8ccd5f44713bf42b3f98f9235926f3639ab7da3f290f42
5
5
  SHA512:
6
- metadata.gz: 5fd12daa82ecba9cc76a337ae316f26ed049badc1751761475150eb75d88c34f830e0a21e6596063c0610fc534782106fcfea53a65f14ae10c6ba3e95d22618e
7
- data.tar.gz: 21ccf459cf5f1112a4d6a2c24175fc7dfadbc964fb87a486ab92961eb2ab0f4d698b19c05117816ee583b811d013e4f463ffbf69ae8adf590456e40a95308589
6
+ metadata.gz: 30138459bec64d1c98507dc3c0f49010954341268e021278ac45cb023139638a124d323d3afc691ac2e863e656599a8d0523357af424d324e3d0e71fb4d6700c
7
+ data.tar.gz: cb31239457057b3514d9204cc3f41df8790222a95ac19fd71db5f5997513b7bf2cc05486ed80d19ee839010e6078107c001211ed6c590b406a2095a02e182a1c
data/README.md CHANGED
@@ -30,6 +30,7 @@
30
30
  然后终端进入项目根目录即可使用 ` fastlane `
31
31
 
32
32
  如果是同一个 xcworkspace 多 xcodeproj 的情况,可以采用多配置文件的方式。同样也是参考 [` .env.default `](fastlane/.env.default) 根据多个 xcodeproj 创建多个配置文件 ` .env.project1 ` 、 ` .env.project2 `,注意文件的隐藏扩展,名字不能是 ` .env.project1.default `;
33
+ 不同的配置文件配置不同的 ` PROJECT_NAME `;
33
34
  执行的时候指定环境文件 ` fastlane --env project1 package ` 来运行
34
35
 
35
36
 
@@ -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
 
@@ -13,7 +13,7 @@ module Fastlane
13
13
  api_token: Environment.fir_api_token,
14
14
  password: Environment.fir_password,
15
15
  changelog: params[:changelog],
16
- switch_to_qiniu: true
16
+ switch_to_qiniu: Environment.fir_switch_qiniu
17
17
  )
18
18
 
19
19
  return firinfo
@@ -87,6 +87,9 @@ module Fastlane
87
87
  def self.fir_password
88
88
  ENV['FIR_PASSWORD']
89
89
  end
90
+ def self.fir_switch_qiniu
91
+ ENV['FIR_SWITCH_QINIU'] == "true"
92
+ end
90
93
 
91
94
  # 钉钉配置
92
95
  def self.dingdingToken
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Fastci
3
- VERSION = "0.0.16"
3
+ VERSION = "0.0.18"
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.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - watermelon