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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1d9d20211a076f5aa53877d9aec3af004ff54c00361068bf845d32bade58cd1
4
- data.tar.gz: 17e23e5550e7fc29cb49a8ea7f994b6e09f301effcb19750d9e551dd95b032f5
3
+ metadata.gz: bb8900ea069f14225478f61cab575324a5d592ec2b3f888e6003fd43bbc38ef2
4
+ data.tar.gz: 7f59b70aa2f85787b1a48b674a6ed72577c8667aa8bf7e5f7781a9d8a07f2f09
5
5
  SHA512:
6
- metadata.gz: 80b1fe03add7ca55880118b15fecffe82063ad25c8aa2eea9c6441864f124eb8b6fda201d4d285f2c31b233760f4df8429df5904ee26adadad56494379aceb51
7
- data.tar.gz: dc9b4e3de636ee021b5a0fed02db99fcc151c00b844a34a4b5f7bdbe705b2bccff9b8be1c57832b14e5119b3810c3f77c2b86edd88bcd28d1522b0df727e1913
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.4)
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, "--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信息..."
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAqarahome
2
- VERSION = "0.0.4"
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.4
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-13 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