cocoapods-aqarahome 0.0.4 → 0.0.5
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/command/Podfile_Dev.rb +28 -8
- 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: bb8900ea069f14225478f61cab575324a5d592ec2b3f888e6003fd43bbc38ef2
|
4
|
+
data.tar.gz: 7f59b70aa2f85787b1a48b674a6ed72577c8667aa8bf7e5f7781a9d8a07f2f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8eb1ead2926e892adb500279a310b58b3807bca2af6f6243decb2cfadf110b12306722210274db4eaf476996cb29df24f6538361e155a0fb92ea35c5b60d74c
|
7
|
+
data.tar.gz: 2d7ba960dfb51bc79c6b099bcf383f1c6b718fbf35f94f621bcf8acb1c3f0d29ce1aa13849bbef77de41428d462b256be782c65c1fb7a702380614a1c9d04ede
|
data/Gemfile.lock
CHANGED
@@ -4,18 +4,23 @@ module Pod
|
|
4
4
|
|
5
5
|
public
|
6
6
|
|
7
|
-
def dev_pods(pods, branch = 'aqara')
|
7
|
+
def dev_pods(pods, git_pull = false, branch = 'aqara')
|
8
8
|
if branch.length > 0
|
9
|
+
if git_pull
|
10
|
+
pull_local_sdk_origin_source(pods)
|
11
|
+
elsif
|
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, "--all"]
|
17
|
+
Pod::Command::Cache.run(args)
|
18
|
+
end
|
19
|
+
end
|
9
20
|
# pods.each do |name|
|
10
21
|
# pod name, :git => "https://xyz.com/ios/#{name}.git", :branch => "#{branch}"
|
11
22
|
# end
|
12
|
-
|
13
|
-
podStr = pods.join(", ")
|
14
|
-
puts "成功清除私有库".green + "#{podStr}".yellow + "的缓存数据".green
|
15
|
-
pods.each do |pod|
|
16
|
-
args = ['clean',pod, "--all"]
|
17
|
-
Pod::Command::Cache.run(args)
|
18
|
-
end
|
23
|
+
|
19
24
|
# puts "lebbay: using remote pods with branch: #{branch}".green
|
20
25
|
else
|
21
26
|
# 自定义开发目录
|
@@ -52,6 +57,21 @@ module Pod
|
|
52
57
|
|
53
58
|
private
|
54
59
|
|
60
|
+
def pull_local_sdk_origin_source(pods)
|
61
|
+
puts Config.instance.podfile_path.parent.parent
|
62
|
+
|
63
|
+
Dir.foreach(Config.instance.podfile_path.parent.parent) do |entry|
|
64
|
+
subPath = Config.instance.podfile_path.parent.parent + entry
|
65
|
+
if File::directory?(subPath)
|
66
|
+
pods.each do |pod|
|
67
|
+
next unless File::exists?("#{subPath}/#{pod}.podspec")
|
68
|
+
puts "正在拉取" + "#{pod}".green + "仓库代码..."
|
69
|
+
system "cd #{subPath};git pull"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
55
75
|
def pull_latest_code_and_resolve_conflict(pods)
|
56
76
|
# 1、Podfile.lock
|
57
77
|
puts "正在清理Podfile.lock中私有库的commit信息..."
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zhaoxifan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|