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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a8f3c2f76c79d572aa82321a03d139b18a69a552eff8c970003d43ac49d3b6f
|
4
|
+
data.tar.gz: 25b807ef2e4a47bbf14b5a97a52f1f1227a5fc491595d9d56a632db25f959a1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -3,7 +3,10 @@ require 'cocoapods/command'
|
|
3
3
|
module Pod
|
4
4
|
class Command
|
5
5
|
class OemConfig < Command
|
6
|
-
|
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
|
[
|
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.
|
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-
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|