cocoapods-kz 0.0.5 → 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: 7044ff9b2863844afb3101f6cd2f76a13ff40cfa6f06a7e85f546148b18abdfa
4
- data.tar.gz: 4fa7b00baa91abeecf6f7dea4703da717639859bc99dab57a4339c9f0bf8ed87
3
+ metadata.gz: 0adb9cf2f4e1a78b6abe18abd9fae6e436a4c7fad05acc3bddf755741c629ac3
4
+ data.tar.gz: f19287aa386c7a8dc5e35c7c968e4561f2d1efd5e89e9c442713d44c1b33efc9
5
5
  SHA512:
6
- metadata.gz: 91b58f94829d314e2305bb5844241e43a8371b4af795eee5fa653d974350953cb22caca090d54e5e4e2f6930c5dc04f4cfa0c8b59e4a9c125de3b95b2ada7cb9
7
- data.tar.gz: e1b3385d1bfefe18eeb4d6db502e3e8fdc563f23b1114205eedf3ce72b8bdd4d8e8b95b7f1995da282ddbc9b6f156a177c6c8b856c0b74d07e87c33283bc101e
6
+ metadata.gz: 3271c951e3d57b6051ab4d50256f9856fe01b5249406a55add7aa82d4ac480e83595d8718767e0b3a23c5294ec36ff9c0a381ebd2ca3dd714b20e066ea366c45
7
+ data.tar.gz: 1c3e23c479465b7fcaedee7976a8407cdfff7febb40a38c77dea9f08126f69cf1d8e8aa6956b35a15b267c1a8203951498d92dc792095857af7e0822393945f5
@@ -1,5 +1,5 @@
1
1
  module CocoapodsKz
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
4
4
 
5
5
  module Pod
@@ -45,7 +45,7 @@ module KZ
45
45
  kz_pod_target = KZPodTarget.new(native_pod_target)
46
46
  is_dev_pod = @development_pods.include?(native_pod_target_name)
47
47
  kz_pod_target.is_dev_pod = is_dev_pod
48
- kz_pod_target.force_config_pod_mode = get_real_config_pod_mode(kz_pod_target)
48
+ kz_pod_target.force_config_pod_mode = get_force_config_pod_mode(kz_pod_target)
49
49
  if config_pod_mode != :kz_pod_origin_mode && !is_dev_pod
50
50
  kz_pod_target.config_pod_mode = config_pod_mode
51
51
  else
@@ -97,7 +97,7 @@ module KZ
97
97
  kz_pod_targets
98
98
  end
99
99
 
100
- def get_real_config_pod_mode(kz_pod_target)
100
+ def get_force_config_pod_mode(kz_pod_target)
101
101
  if specify_pod_names_contain(kz_pod_target.name)
102
102
  return KZGlobalHelper.instance.specify_pod_mode
103
103
  end
@@ -109,6 +109,8 @@ module KZ
109
109
  specify_pod_names_contain(kz_pod_target.name) ? :kz_pod_framework_mode : :kz_pod_code_mode
110
110
  elsif KZGlobalHelper.instance.specify_pod_mode == :kz_pod_code_mode
111
111
  specify_pod_names_contain(kz_pod_target.name) ? :kz_pod_code_mode : :kz_pod_framework_mode
112
+ elsif KZGlobalHelper.instance.specify_pod_mode == :kz_pod_origin_mode
113
+ use_framework_mode_from_lock_file?(kz_pod_target)
112
114
  end
113
115
  end
114
116
 
@@ -127,5 +129,15 @@ module KZ
127
129
  true
128
130
  end
129
131
  end
132
+
133
+ def use_framework_mode_from_lock_file?(kz_pod_target)
134
+ if File.exist?(KZ_LOCK_FILE_PATH)
135
+ @lock_file ||= JSON.parse(File.read(KZ_LOCK_FILE_PATH))
136
+ pod_lock_config = @lock_file[kz_pod_target.name]
137
+ return :kz_pod_framework_mode if pod_lock_config['use_framework']
138
+ end
139
+ :kz_pod_code_mode
140
+ end
141
+
130
142
  end
131
143
  end
@@ -61,7 +61,6 @@ module KZ
61
61
 
62
62
  def prepare
63
63
  if Pod::Config.instance.podfile && Pod::Config.instance.podfile.plugins.has_key?("cocoapods-kz")
64
- FileUtils.rm(KZ_LOCK_FILE_PATH) if File.exist?(KZ_LOCK_FILE_PATH)
65
64
  FileUtils.mkdir_p(KZ_POD_CONFIG_ROOT) unless File.exist?(KZ_POD_CONFIG_ROOT)
66
65
 
67
66
  flex_compiler_de_path = KZ_POD_CONFIG_ROOT + 'FlexCompiler'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-kz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - yixiong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-25 00:00:00.000000000 Z
11
+ date: 2023-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler