cocoapods-aqarahome 0.0.4 → 0.0.6

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: a1d9d20211a076f5aa53877d9aec3af004ff54c00361068bf845d32bade58cd1
4
- data.tar.gz: 17e23e5550e7fc29cb49a8ea7f994b6e09f301effcb19750d9e551dd95b032f5
3
+ metadata.gz: 8b964dde12acf823670651f30eb28914afb0bbb40c28715f6dae2b2809da1653
4
+ data.tar.gz: ee731581fcafcce27bd43edadd694bc084f057d47ff8eba88f48ea53ece44bf1
5
5
  SHA512:
6
- metadata.gz: 80b1fe03add7ca55880118b15fecffe82063ad25c8aa2eea9c6441864f124eb8b6fda201d4d285f2c31b233760f4df8429df5904ee26adadad56494379aceb51
7
- data.tar.gz: dc9b4e3de636ee021b5a0fed02db99fcc151c00b844a34a4b5f7bdbe705b2bccff9b8be1c57832b14e5119b3810c3f77c2b86edd88bcd28d1522b0df727e1913
6
+ metadata.gz: 5e2b7d3abd112aa37698d5c3d3d74250d0caa168b6d285ad9124bb594593b7c0b2b19ecd45268cc4d1770993d0602059e46f8971ad632ed3bf6b825772655d17
7
+ data.tar.gz: e668337581dbd48675287f12a03f38247d5a0899d4d3b01202fcfdd7c200576eaaea92311bb0b3153201cc288866555779abd742d28059f25a50ce2f4527e88e
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.6)
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
  # 自定义开发目录
@@ -44,6 +49,29 @@ module Pod
44
49
  config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
45
50
  end
46
51
  end
52
+ if target.name == "Pods-AqaraHome"
53
+ puts "Updating #{target.name} OTHER_LDFLAGS To fit Xcode15"
54
+ target.build_configurations.each do |config|
55
+ xcconfig_path = config.base_configuration_reference.real_path
56
+
57
+ # read from xcconfig to build_settings dictionary
58
+ build_settings = Hash[*File.read(xcconfig_path).lines.map{|x| x.split(/\s*=\s*/, 2)}.flatten]
59
+
60
+ File.open(xcconfig_path,'r+'){|f|
61
+ f.each_line{|l|
62
+ s=""
63
+ if l.include?('iconv.2.4.0')
64
+ s+=l.gsub!("iconv.2.4.0", "iconv.2")
65
+ #seek back to the beginning of the line.
66
+ f.seek(-l.length, IO::SEEK_CUR)
67
+ #overwrite line with spaces and add a newline char
68
+ f.write(s * 1)
69
+ break
70
+ end
71
+ }
72
+ }
73
+ end
74
+ end
47
75
  end
48
76
  end
49
77
  end
@@ -52,6 +80,21 @@ module Pod
52
80
 
53
81
  private
54
82
 
83
+ def pull_local_sdk_origin_source(pods)
84
+ puts Config.instance.podfile_path.parent.parent
85
+
86
+ Dir.foreach(Config.instance.podfile_path.parent.parent) do |entry|
87
+ subPath = Config.instance.podfile_path.parent.parent + entry
88
+ if File::directory?(subPath)
89
+ pods.each do |pod|
90
+ next unless File::exists?("#{subPath}/#{pod}.podspec")
91
+ puts "正在拉取" + "#{pod}".green + "仓库代码..."
92
+ system "cd #{subPath};git pull"
93
+ end
94
+ end
95
+ end
96
+ end
97
+
55
98
  def pull_latest_code_and_resolve_conflict(pods)
56
99
  # 1、Podfile.lock
57
100
  puts "正在清理Podfile.lock中私有库的commit信息..."
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAqarahome
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
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.6
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: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler