cocoapods-hooks 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b774376e750a3c3822e4f5ed5c931eecaff030fe085c62fe5425f60f4b5519f2
4
- data.tar.gz: 2697c46d3e92760c8758ee22b7bfbddf0e07191f8edeed0544692a8fc6a45447
3
+ metadata.gz: 2a8f3c2f76c79d572aa82321a03d139b18a69a552eff8c970003d43ac49d3b6f
4
+ data.tar.gz: 25b807ef2e4a47bbf14b5a97a52f1f1227a5fc491595d9d56a632db25f959a1c
5
5
  SHA512:
6
- metadata.gz: 353d56fe09af4ec28c657d175497f5ce0e4a87af66232605fb347547409fd76e8b76ddba8e7d3125447d56241ca276768c512f3793fa0bd3063a54331a6ef511
7
- data.tar.gz: d3bff57043eaa38635974c1a91ce4abe81901e671470db55dfc18881c0fd53e30df49c7b78d50e7d59f50ba503a30e355a05460fb736a1e8fea2f392e8210ba1
6
+ metadata.gz: b2500ffcae401c157119d63b19a1b2504af0db0e2c8db50a614df8f79e7184de838026bb60aeb6f35e6b3f7b81d9ee95353f1820741487bc30c814a268fb91ca
7
+ data.tar.gz: 1f619feb5d01f64e010cafc646b1bd767cb60932c36567fcff6cf24b2f4e7be449ba1852efaf310db3ffe78509a4b03b7df06ef3682d80b34707fdc703f2b5a1
@@ -29,9 +29,17 @@ module Pod
29
29
 
30
30
  def self.changeThemeColor()
31
31
  # 改变 theme 文件夹的图片颜色
32
- system("python3 ChangeColor.py")
32
+ result = system("python3 ChangeColor.py")
33
+ unless result
34
+ puts "command execution failed. Exiting..."
35
+ exist 1
36
+ end
33
37
  # 改变 mutableTheme 文件夹的图片颜色
34
- system("python3 svg2png.py")
38
+ result = system("python3 svg2png.py")
39
+ unless result
40
+ puts "command execution failed. Exiting..."
41
+ exist 1
42
+ end
35
43
  end
36
44
 
37
45
  end
@@ -21,7 +21,11 @@ module Pod
21
21
 
22
22
  def run
23
23
  # 执行你的业务逻辑
24
- system("fastlane ios configAllProject")
24
+ result = system("fastlane ios configAllProject")
25
+ unless result
26
+ puts "command execution failed. Exiting..."
27
+ exist 1
28
+ end
25
29
  end
26
30
 
27
31
  end
@@ -14,6 +14,7 @@ module Pod
14
14
 
15
15
  def initialize(argv)
16
16
  @tenantid = argv.option('tenantid')
17
+ puts "tenantid is: #{@tenantid}"
17
18
  @branch = argv.option('branch')
18
19
  super
19
20
  end
@@ -3,7 +3,10 @@ require 'cocoapods/command'
3
3
  module Pod
4
4
  class Command
5
5
  class OemConfig < Command
6
- self.summary = '根据 tenantid 配置所有的 OEM 配置,包含三步:1. 根据 tenant_id 下载相关的配置文件 2. 修改图片的主题色 3. 修改工程配置, 进行签名'
6
+
7
+ gem_version_path = File.expand_path('../../gem_version.rb', __FILE__)
8
+ VERSION = File.read(gem_version_path).match(/VERSION = "(.*)"/)[1]
9
+ self.summary = "插件版本是: #{VERSION}。根据 tenantid 配置所有的 OEM 配置,包含三步:1. 根据 tenant_id 下载相关的配置文件 2. 修改图片的主题色 3. 修改工程配置, 进行签名"
7
10
 
8
11
  def self.options
9
12
  [
@@ -1,3 +1,3 @@
1
1
  module CocoapodsHooks
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - huafeng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-19 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler