cocoapods-aqarahome 0.0.1 → 0.0.3
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cocoapods-aqarahome/Utils/Color.rb +31 -31
- data/lib/cocoapods-aqarahome/command/Podfile_Dev.rb +23 -5
- data/lib/cocoapods-aqarahome/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f69d32abe3b6bc0da838fc5ea10263ddbc6bc0d37c22ad7f0db637db0b9324
|
4
|
+
data.tar.gz: f8b6e892e51fe9e21f2488606ce1459b8106f46fbf7e1644ccfae5fa7d3ebb22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3611fe5ea0e4d099ba9303feefa2626954f38d2f6b8e94890878257271c867a8c79a9fec9ab28780875ef294a560aaa81db954cc2ca0fe91c11aae0517e3eb
|
7
|
+
data.tar.gz: 13cf1a5ae86da1874f108fec2b9dce6fc8b63c73fd135b33b38514da5e919efd193fd1505a0bec18497e5322e85d8f54590490067417b8adc2fdc8bc70f57a3a
|
data/Gemfile.lock
CHANGED
@@ -1,31 +1,31 @@
|
|
1
|
-
|
2
|
-
class String
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
end
|
1
|
+
#
|
2
|
+
# class String
|
3
|
+
# # colorization
|
4
|
+
# def colorize(color_code)
|
5
|
+
# "\e[#{color_code}m#{self}\e[0m"
|
6
|
+
# end
|
7
|
+
#
|
8
|
+
# def red
|
9
|
+
# colorize(31)
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# def green
|
13
|
+
# colorize(32)
|
14
|
+
# end
|
15
|
+
#
|
16
|
+
# def yellow
|
17
|
+
# colorize(33)
|
18
|
+
# end
|
19
|
+
#
|
20
|
+
# def blue
|
21
|
+
# colorize(34)
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# def pink
|
25
|
+
# colorize(35)
|
26
|
+
# end
|
27
|
+
#
|
28
|
+
# def light_blue
|
29
|
+
# colorize(36)
|
30
|
+
# end
|
31
|
+
# end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Pod
|
2
2
|
class Podfile
|
3
3
|
module DSL
|
4
|
-
|
4
|
+
|
5
5
|
public
|
6
6
|
|
7
7
|
def dev_pods(pods, branch = 'aqara')
|
@@ -10,6 +10,12 @@ module Pod
|
|
10
10
|
# pod name, :git => "https://xyz.com/ios/#{name}.git", :branch => "#{branch}"
|
11
11
|
# end
|
12
12
|
pull_latest_code_and_resolve_conflict(pods)
|
13
|
+
podStr = pods.join(", ")
|
14
|
+
puts "成功清除私有库".green + "#{podStr}".yellow + "的缓存数据".green
|
15
|
+
pods.each do |pod|
|
16
|
+
args = ['clean',pod]
|
17
|
+
Pod::Command::Cache.run(args)
|
18
|
+
end
|
13
19
|
# puts "lebbay: using remote pods with branch: #{branch}".green
|
14
20
|
else
|
15
21
|
# 自定义开发目录
|
@@ -30,19 +36,31 @@ module Pod
|
|
30
36
|
puts '|========================================================================|'.red
|
31
37
|
end
|
32
38
|
|
39
|
+
def code_signing_allow_no!
|
40
|
+
post_install do |installer|
|
41
|
+
installer.pods_project.targets.each do |target|
|
42
|
+
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
|
43
|
+
target.build_configurations.each do |config|
|
44
|
+
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
33
51
|
#--------------------------------------#
|
34
52
|
|
35
53
|
private
|
36
54
|
|
37
55
|
def pull_latest_code_and_resolve_conflict(pods)
|
38
56
|
# 1、Podfile.lock
|
39
|
-
puts "正在清理Podfile.lock中私有库的commit信息..."
|
57
|
+
puts "正在清理Podfile.lock中私有库的commit信息..."
|
40
58
|
rewrite_lock_file(pods, Config.instance.lockfile_path)
|
41
|
-
puts "Podfile.lock中私有库的commit信息已清除!".
|
59
|
+
puts "Podfile.lock中私有库的commit信息已清除!".green
|
42
60
|
# 2、Manifest.lock
|
43
|
-
puts "正在清理Manifest.lock中私有库的commit信息..."
|
61
|
+
puts "正在清理Manifest.lock中私有库的commit信息..."
|
44
62
|
rewrite_lock_file(pods, Config.instance.sandbox.manifest_path)
|
45
|
-
puts "Manifest.lock中私有库的commit信息已清除!".
|
63
|
+
puts "Manifest.lock中私有库的commit信息已清除!".green
|
46
64
|
end
|
47
65
|
|
48
66
|
def rewrite_lock_file(pods, lock_path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-aqarahome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zhaoxifan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|