cocoapods-fy-bin 0.0.5 → 0.0.8

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: b7374e2f9c342f5e3d244eb1f16b40e7d51eba73404c9f580e514788c1eec74d
4
- data.tar.gz: f689aff47091bc47316d37b464913e6fdc09589167ba07d6b12fbedf773f3d82
3
+ metadata.gz: 741a281f7c86d496d69f78cf55db447151ff55b0a0f5991ffeff2b02d73b12ed
4
+ data.tar.gz: e938cde22e3e875c2524f53e19d35d5333e2e6a0469f7b92cfc0645301015f3b
5
5
  SHA512:
6
- metadata.gz: 74f1bde47198d2147a7cc638344dd962bd17deef18cfa02d9ab9d35756bd37cbe73086e1a963d99234da35d0b8de1b702c9c3d312151d81c5fcfdde1eba845ae
7
- data.tar.gz: a4ec90337c36906530be7a64c1d15072be17872d6bfc44bad7a7e275597703e191e2e435aecb4698271b8e609985078f5c16b3de79f471a408bb8dfc015b9d25
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') || 'debug'
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: 'debug', selection: %w[debug release] },
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
- 'binary_repo_url' => { description: '二进制私有源 Git 地址', default: 'https://gitlab.fuyoukache.com/binaryThirdDemo/FYBinarySpecs.git' },
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 == "debug" || @configuration_env == nil
41
- if Pod::Config.instance.podfile
42
- configuration_env ||= Pod::Config.instance.podfile.configuration_env
43
- end
44
- configuration_env ||= "debug"
45
- @configuration_env = configuration_env
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
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.8'
4
4
  end
5
5
 
6
6
  module Pod
@@ -122,7 +122,6 @@ module CBin
122
122
  @spec.vendored_libraries = binary_vendored_libraries
123
123
  @spec.resources = binary_resources if @spec.attributes_hash.keys.include?("resources")
124
124
  @spec.description = <<-EOF
125
- 「 converted automatically by plugin cocoapods-fy-bin @厦门美柚 - slj 」
126
125
  #{@spec.description}
127
126
  EOF
128
127
  @spec
@@ -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
- attr_reader :clean_white_list
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.5
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-05 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel