cocoapods-hooks 0.0.2 → 0.0.4

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: d18d0fe6410b66019897d7d413a8c0391a4869d337b3926125b13d24128b4fb1
4
- data.tar.gz: a87ecc9d0799a34537a241de9514eb4bb6058bb36a0e30678c1bc0a3fe58aa6f
3
+ metadata.gz: 2a8f3c2f76c79d572aa82321a03d139b18a69a552eff8c970003d43ac49d3b6f
4
+ data.tar.gz: 25b807ef2e4a47bbf14b5a97a52f1f1227a5fc491595d9d56a632db25f959a1c
5
5
  SHA512:
6
- metadata.gz: 1aa3d7dd395c56c4eea8e80e950a3fae5254038eab9cf1d5bb57bd2ca4d06d09990ba8595a12826eae3a7340bab8c9a23e02a7bf0a3344dc2c75b83d09da1594
7
- data.tar.gz: 39f15884011a678b1771a16aada918efea5abbf859333100284f21f5787dc60e0781930e9dae9c1e5c60c4751ad58f038fde65fa786b2c640a07aee3f201b1ff
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
  [
@@ -31,11 +34,23 @@ module Pod
31
34
  @branch = 'main_develop'
32
35
  end
33
36
  # 1. 根据 tenant_id 下载相关的配置文件
34
- system("pod git-clone --tenantid=#{@tenantid} --branch=#{@branch}")
37
+ result = system("pod git-clone --tenantid=#{@tenantid} --branch=#{@branch}")
38
+ unless result
39
+ puts "pod git-clone command execution failed. Exiting..."
40
+ exist 1
41
+ end
35
42
  # 2. 修改图片的主题色
36
- system("pod change-color")
43
+ result = system("pod change-color")
44
+ unless result
45
+ puts "pod change-color command execution failed. Exiting..."
46
+ exist 1
47
+ end
37
48
  # 3. 修改工程配置, 进行签名
38
- system("pod fastlane-sign")
49
+ result = system("pod fastlane-sign")
50
+ unless result
51
+ puts "pod fastlane-sign command execution failed. Exiting..."
52
+ exist 1
53
+ end
39
54
  end
40
55
  end
41
56
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsHooks
2
- VERSION = "0.0.2"
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.2
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-18 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