cocoapods-xlbuild 1.1.1 → 1.1.2

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: cfe84969c5bf4aa57c96cca09cfcb42a628f69e836e5e10127378a5084a342c7
4
- data.tar.gz: c13a23f3b99456911d876d8f6a4b7de58d9e9c704f32e2d26adf3b7b0442b21c
3
+ metadata.gz: 676c4cfb3f76ad14c4de9334d69d9a9344b29663c77786a0678e250e97ed0c1c
4
+ data.tar.gz: 117d8cf76103b67b6c4ebc11c5f412ea2d60deb2a8d5b0f4461e39927e5770f5
5
5
  SHA512:
6
- metadata.gz: 633cc3ba7e6eccd7dcb343642d3ef9b07f100a592029befadf334a9f61a68af18399cca0961f281fe1a30d06933754ca0444759d6d26f69c210150eb0f7b310c
7
- data.tar.gz: d196bff9a8e17fe7949648db27b6a5737a3c9fc1fd6323e3745151f818d7383b84cb64166d78222ebbf0bbc378a7d02f7e527ffe654a6bcfbee2e5260c718854
6
+ metadata.gz: f0a9b3ec826607cfbd419d24b72e9bea0fb06420001edf15acbcff462bb5d6177048e1d74171753193c638f885b5b27dd780a0ff1c1a08b522387deaa53e1afb
7
+ data.tar.gz: ff64b76759437f9622cd611a91a6e5b5ea7b74cb6d3c8f907dee98581ee1f6dea90a1d85c0ae8fa7f67623c00d0974f55b4cdd68df490e76c80d43e2133d6807
@@ -106,17 +106,23 @@ module Pod
106
106
  end
107
107
 
108
108
  # 动静态库切换时候需要重新build(删除Pod目录重新构建)
109
- def self.adjust_dynamic_static_change_pod(pod_root_path)
109
+ def self.adjust_dynamic_static_change_pod(standard_sandbox)
110
+ # 动|静态库(mach-o type)切换需要重新build(删除Pod/_Prebuild目录)
111
+ _prebuild_sandbox = Pod::PrebuildSandbox.from_standard_sandbox(standard_sandbox)
112
+ _pod_prebuild_root_path = _prebuild_sandbox.root
113
+ is_pod_prebuild_root_path_exist = File.exist?(_pod_prebuild_root_path)
114
+
115
+ pod_root_path = standard_sandbox.root
110
116
  pod_type_path = pod_root_path+Pod::Type.pod_flag_file
111
- if not File.exist?(pod_type_path)
112
- FileUtils.remove_dir(pod_root_path)
117
+ if not File.exist?(pod_type_path) and is_pod_prebuild_root_path_exist
118
+ FileUtils.remove_dir(_pod_prebuild_root_path)
113
119
  else
114
120
  frameworks_type = Pod::Type.frameworks_type
115
121
  aFile = File.new(pod_type_path, "r")
116
122
  if aFile
117
123
  content = aFile.readlines[0]
118
- if not frameworks_type.equal?(content)
119
- FileUtils.remove_dir(pod_root_path)
124
+ if not frameworks_type.eql?(content) and is_pod_prebuild_root_path_exist
125
+ FileUtils.remove_dir(_pod_prebuild_root_path)
120
126
  end
121
127
  end
122
128
 
@@ -125,8 +131,9 @@ module Pod
125
131
  end
126
132
 
127
133
  #构建结束 标记当前打包的是动|静态库
128
- def self.adjust_dynamic_static_change_pod_finish(pod_root_path)
134
+ def self.adjust_dynamic_static_change_pod_finish(standard_sandbox)
129
135
  # 标记状态
136
+ pod_root_path = standard_sandbox.root
130
137
  pod_type_path = pod_root_path+Pod::Type.pod_flag_file
131
138
  if File.exist?(pod_type_path)
132
139
  File.delete(pod_type_path)
@@ -192,9 +199,8 @@ Pod::HooksManager.register('cocoapods-xlbuild', :pre_install) do |installer_cont
192
199
  #linpeng edit: 修改Pod目录为 Pod/_Prebuild
193
200
  prebuild_sandbox = Pod::PrebuildSandbox.from_standard_sandbox(standard_sandbox)
194
201
 
195
- # 动|静态库(mach-o type)切换需要重新build(删除Pod目录)
196
- pod_root_path = standard_sandbox.root
197
- Pod::Type.adjust_dynamic_static_change_pod pod_root_path
202
+ # 动|静态库(mach-o type)切换需要重新build(删除Pod/_Prebuild目录)
203
+ Pod::Type.adjust_dynamic_static_change_pod standard_sandbox
198
204
 
199
205
  # get the podfile for prebuild
200
206
  prebuild_podfile = Pod::Podfile.from_ruby(podfile.defined_in_file)
@@ -226,7 +232,7 @@ Pod::HooksManager.register('cocoapods-xlbuild', :pre_install) do |installer_cont
226
232
 
227
233
 
228
234
  # install完成标记mach-o type
229
- Pod::Type.adjust_dynamic_static_change_pod_finish pod_root_path
235
+ Pod::Type.adjust_dynamic_static_change_pod_finish standard_sandbox
230
236
 
231
237
  # -- step 2: pod install ---
232
238
  # install
@@ -1,3 +1,3 @@
1
1
  module CocoapodsXLbuild
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-xlbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 林鹏
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-28 00:00:00.000000000 Z
11
+ date: 2022-08-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 工程静态库编译,提高编译速度.
14
14
  email:
@@ -38,7 +38,7 @@ homepage: https://github.com/Jacky-LinPeng/cocoapods-xlbuild.git
38
38
  licenses:
39
39
  - MIT
40
40
  metadata: {}
41
- post_install_message:
41
+ post_install_message:
42
42
  rdoc_options: []
43
43
  require_paths:
44
44
  - lib
@@ -53,8 +53,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubygems_version: 3.2.22
57
- signing_key:
56
+ rubygems_version: 3.2.29
57
+ signing_key:
58
58
  specification_version: 4
59
59
  summary: 工程静态库编译,提高编译速度.
60
60
  test_files: []