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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0e9066aa25a56bc22955678caf0a461972044139e3152d1c6723a32f51322dd
4
- data.tar.gz: eb78f37bb214545deca2a5b33397748182de77a163b51d0b8c376a50dfe2c2d1
3
+ metadata.gz: d4f69d32abe3b6bc0da838fc5ea10263ddbc6bc0d37c22ad7f0db637db0b9324
4
+ data.tar.gz: f8b6e892e51fe9e21f2488606ce1459b8106f46fbf7e1644ccfae5fa7d3ebb22
5
5
  SHA512:
6
- metadata.gz: c47666b94477aceca2c88320350c9e6d09d70fd0bec23eb08fe8771c8f438295d82aeb8e794bd6f70bbfeb720fae2e90a2dc7f634f5c1820f52e04e25f214050
7
- data.tar.gz: b6081e63fd90ed6ce1561a73dce8fcd4c90765e2eb58e11bf4ff1203b60c1bba9dbc35ce890c37ed17d6b9628a5d6c983c544beafb02d3975b048dcf659d3e12
6
+ metadata.gz: ab3611fe5ea0e4d099ba9303feefa2626954f38d2f6b8e94890878257271c867a8c79a9fec9ab28780875ef294a560aaa81db954cc2ca0fe91c11aae0517e3eb
7
+ data.tar.gz: 13cf1a5ae86da1874f108fec2b9dce6fc8b63c73fd135b33b38514da5e919efd193fd1505a0bec18497e5322e85d8f54590490067417b8adc2fdc8bc70f57a3a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-aqarahome (0.0.1)
4
+ cocoapods-aqarahome (0.0.3)
5
5
  claide (>= 1.0.2, < 2.0)
6
6
 
7
7
  GEM
@@ -1,31 +1,31 @@
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
+ #
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
- require 'cocoapods-aqarahome/Utils/Color'
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信息...".pink
57
+ puts "正在清理Podfile.lock中私有库的commit信息..."
40
58
  rewrite_lock_file(pods, Config.instance.lockfile_path)
41
- puts "Podfile.lock中私有库的commit信息已清除!".light_blue
59
+ puts "Podfile.lock中私有库的commit信息已清除!".green
42
60
  # 2、Manifest.lock
43
- puts "正在清理Manifest.lock中私有库的commit信息...".pink
61
+ puts "正在清理Manifest.lock中私有库的commit信息..."
44
62
  rewrite_lock_file(pods, Config.instance.sandbox.manifest_path)
45
- puts "Manifest.lock中私有库的commit信息已清除!".light_blue
63
+ puts "Manifest.lock中私有库的commit信息已清除!".green
46
64
  end
47
65
 
48
66
  def rewrite_lock_file(pods, lock_path)
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAqarahome
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
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.1
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-29 00:00:00.000000000 Z
11
+ date: 2022-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler