cocoapods-aqarahome 0.0.3 → 0.0.5

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: d4f69d32abe3b6bc0da838fc5ea10263ddbc6bc0d37c22ad7f0db637db0b9324
4
- data.tar.gz: f8b6e892e51fe9e21f2488606ce1459b8106f46fbf7e1644ccfae5fa7d3ebb22
3
+ metadata.gz: bb8900ea069f14225478f61cab575324a5d592ec2b3f888e6003fd43bbc38ef2
4
+ data.tar.gz: 7f59b70aa2f85787b1a48b674a6ed72577c8667aa8bf7e5f7781a9d8a07f2f09
5
5
  SHA512:
6
- metadata.gz: ab3611fe5ea0e4d099ba9303feefa2626954f38d2f6b8e94890878257271c867a8c79a9fec9ab28780875ef294a560aaa81db954cc2ca0fe91c11aae0517e3eb
7
- data.tar.gz: 13cf1a5ae86da1874f108fec2b9dce6fc8b63c73fd135b33b38514da5e919efd193fd1505a0bec18497e5322e85d8f54590490067417b8adc2fdc8bc70f57a3a
6
+ metadata.gz: e8eb1ead2926e892adb500279a310b58b3807bca2af6f6243decb2cfadf110b12306722210274db4eaf476996cb29df24f6538361e155a0fb92ea35c5b60d74c
7
+ data.tar.gz: 2d7ba960dfb51bc79c6b099bcf383f1c6b718fbf35f94f621bcf8acb1c3f0d29ce1aa13849bbef77de41428d462b256be782c65c1fb7a702380614a1c9d04ede
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-aqarahome (0.0.3)
4
+ cocoapods-aqarahome (0.0.5)
5
5
  claide (>= 1.0.2, < 2.0)
6
6
 
7
7
  GEM
@@ -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
- 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
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信息..."
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAqarahome
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
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.3
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-09 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler