cocoapods-fy-bin 0.0.7 → 0.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 741a281f7c86d496d69f78cf55db447151ff55b0a0f5991ffeff2b02d73b12ed
|
4
|
+
data.tar.gz: e938cde22e3e875c2524f53e19d35d5333e2e6a0469f7b92cfc0645301015f3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b40aa1d3d0ba6fd1f91d3d3cbb455e6a1590443c3c242be681aaf3cbb0f29feb2b32158a0b37a1bb522e8c5928d0f6ffecb3ad301640d41fdc931ffe826ea4eb
|
7
|
+
data.tar.gz: 17d3aaec0bba07097f8ae52b62e1fc2b0b264ccced9f0dd8bbe09fbc27449dbd98c3e3f83b7c8fdee54c339bc7c04bf7820e2f6ad287818088d9cf7b69441ed8
|
@@ -40,7 +40,7 @@ module Pod
|
|
40
40
|
]
|
41
41
|
|
42
42
|
def initialize(argv)
|
43
|
-
@env = argv.option('env') || '
|
43
|
+
@env = argv.option('env') || 'release'
|
44
44
|
CBin.config.set_configuration_env(@env)
|
45
45
|
UI.warn "====== cocoapods-fy-bin #{CBin::VERSION} 版本 ======== \n "
|
46
46
|
UI.warn "====== #{@env} 环境 ======== \n "
|
@@ -11,12 +11,13 @@ module CBin
|
|
11
11
|
|
12
12
|
def template_hash
|
13
13
|
{
|
14
|
-
'configuration_env' => { description: '编译环境', default: '
|
14
|
+
'configuration_env' => { description: '编译环境', default: 'release', selection: %w[debug release] },
|
15
15
|
'code_repo_url' => { description: '源码私有源 Git 地址', default: 'https://gitlab.fuyoukache.com/iosThird/swiftThird/FYSwiftSpecs.git' },
|
16
16
|
'binary_repo_url' => { description: '二进制私有源 Git 地址', default: 'https://gitlab.fuyoukache.com/iosThird/swiftThird/fybinaryspecs.git' },
|
17
17
|
'binary_download_url' => { description: '二进制下载主机地址,内部会依次传入组件名称、版本、打包模式', default: 'https://mobilepods.fuyoukache.com' },
|
18
18
|
# 'binary_type' => { description: '二进制打包类型', default: 'framework', selection: %w[framework library] },
|
19
|
-
'download_file_type' => { description: '下载二进制文件类型', default: 'zip', selection: %w[zip tgz tar tbz txz dmg] }
|
19
|
+
'download_file_type' => { description: '下载二进制文件类型', default: 'zip', selection: %w[zip tgz tar tbz txz dmg] },
|
20
|
+
'clean_white_list' => { description: 'framework清空白名单, 二进制切换到源码会删除framework,避免这些库被删除重新下载', default: 'Bugly,LookinServer'}
|
20
21
|
}
|
21
22
|
end
|
22
23
|
|
@@ -37,12 +38,19 @@ module CBin
|
|
37
38
|
|
38
39
|
def configuration_env
|
39
40
|
#如果是debug 再去 podfile的配置文件中获取,确保是正确的, pod update时会用到
|
40
|
-
if @configuration_env == "
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
41
|
+
# if @configuration_env == "release" || @configuration_env == nil
|
42
|
+
# if Pod::Config.instance.podfile
|
43
|
+
# configuration_env ||= Pod::Config.instance.podfile.configuration_env
|
44
|
+
# end
|
45
|
+
# configuration_env ||= "release"
|
46
|
+
# @configuration_env = configuration_env
|
47
|
+
# end
|
48
|
+
if @configuration_env == nil
|
49
|
+
if Pod::Config.instance.podfile
|
50
|
+
configuration_env ||= Pod::Config.instance.podfile.configuration_env
|
51
|
+
end
|
52
|
+
configuration_env ||= "release"
|
53
|
+
@configuration_env = configuration_env
|
46
54
|
end
|
47
55
|
@configuration_env
|
48
56
|
end
|
@@ -3,11 +3,17 @@ require 'parallel'
|
|
3
3
|
require 'cocoapods'
|
4
4
|
require 'xcodeproj'
|
5
5
|
require 'cocoapods-fy-bin/native/pod_source_installer'
|
6
|
+
require 'cocoapods-fy-bin/config/config'
|
6
7
|
|
7
8
|
module Pod
|
8
9
|
class Installer
|
9
10
|
attr_reader :removed_frameworks
|
10
|
-
|
11
|
+
|
12
|
+
def clean_white_list
|
13
|
+
clean_white_string = CBin.config.clean_white_list
|
14
|
+
clean_white = clean_white_string.split(",")
|
15
|
+
clean_white
|
16
|
+
end
|
11
17
|
|
12
18
|
def cache_descriptors
|
13
19
|
@cache_descriptors ||= begin
|
@@ -39,7 +45,6 @@ module Pod
|
|
39
45
|
|
40
46
|
# 清除本地资源 /Users/dengrui/Library/Caches/CocoaPods/Pods/Release/
|
41
47
|
def clean_pod_cache
|
42
|
-
clean_white_list = ['Bugly', 'LookinServer']
|
43
48
|
podfile = Pod::Config.instance.podfile
|
44
49
|
root_specs.sort_by(&:name).each do |spec|
|
45
50
|
descriptors = cache_descriptors[spec.root.name]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-fy-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|