cocoapods-kz 0.0.9 → 0.0.11
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 +4 -4
- data/lib/cocoapods-kz/command/clean.rb +30 -23
- data/lib/cocoapods-kz/command/info.rb +37 -0
- data/lib/cocoapods-kz/command/install.rb +13 -3
- data/lib/cocoapods-kz/command/kz.rb +1 -0
- data/lib/cocoapods-kz/command/repair.rb +1 -0
- data/lib/cocoapods-kz/command/update.rb +13 -3
- data/lib/cocoapods-kz/gem_version.rb +1 -1
- data/lib/cocoapods-kz/helpers/kz_analyzer.rb +20 -6
- data/lib/cocoapods-kz/helpers/kz_config_result.rb +1 -1
- data/lib/cocoapods-kz/helpers/kz_framework_manager.rb +167 -1
- data/lib/cocoapods-kz/helpers/kz_generator.rb +19 -5
- data/lib/cocoapods-kz/helpers/kz_global_helper.rb +21 -4
- data/lib/cocoapods-kz/helpers/kz_log.rb +11 -0
- data/lib/cocoapods-kz/helpers/kz_pod_target.rb +81 -15
- data/lib/cocoapods-kz/native/dls.rb +10 -0
- data/lib/cocoapods-kz/native/file_accessor.rb +8 -3
- data/lib/cocoapods-kz/native/installer.rb +28 -5
- data/lib/cocoapods-kz/native/pod_target.rb +10 -0
- data/lib/cocoapods-kz/native/pod_target_installer.rb +22 -6
- data/lib/cocoapods-kz/native/pod_target_integrator.rb +62 -0
- data/lib/cocoapods-kz/native/pods_project_writer.rb +22 -0
- data/lib/cocoapods-kz/native/target_installer_helper.rb +39 -2
- data/lib/cocoapods-kz/native.rb +2 -1
- data/lib/cocoapods-kz/resources/arm64ToSimulator +0 -0
- data/lib/cocoapods-kz/resources/kz_fix_force_load_exe.sh +12 -0
- data/lib/cocoapods-kz/resources/kz_generator_framework.sh +18 -22
- data/lib/cocoapods-kz/resources/kz_refresh_pods_pbxproj.rb +17 -0
- metadata +9 -4
- data/lib/cocoapods-kz/native/analyzer.rb +0 -23
- data/lib/cocoapods-kz/resources/kz_merge_swift_h.rb +0 -14
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'cocoapods-kz/helpers/kz_global_helper'
|
2
|
-
require 'cocoapods-kz/helpers/kz_generator'
|
3
|
-
|
4
|
-
module Pod
|
5
|
-
class Installer
|
6
|
-
class Analyzer
|
7
|
-
alias_method :original_generate_targets, :generate_targets
|
8
|
-
|
9
|
-
def generate_targets(resolver_specs_by_target, target_inspections)
|
10
|
-
aggregate_targets, pod_targets = original_generate_targets(resolver_specs_by_target, target_inspections)
|
11
|
-
if KZ::KZGlobalHelper.instance.generate_kz_pod_targets
|
12
|
-
main_project = aggregate_targets.first.user_project
|
13
|
-
kz_analyer = KZ::KZAnalyzer.new(pod_targets, self.sandbox.development_pods)
|
14
|
-
kz_analyer.analyer
|
15
|
-
KZ::KZGlobalHelper.instance.kz_analyzer = kz_analyer
|
16
|
-
KZ::KZGlobalHelper.instance.kz_generator = KZ::KZGenerator.new(main_project)
|
17
|
-
end
|
18
|
-
[aggregate_targets, pod_targets]
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
require 'pathname'
|
3
|
-
|
4
|
-
product_swift_h_path = Pathname.new(ARGV[0])
|
5
|
-
product_simulator_swift_h_path = Pathname.new(ARGV[1])
|
6
|
-
target_swfit_h_path = Pathname.new(ARGV[2])
|
7
|
-
|
8
|
-
if File.exist?(product_swift_h_path) && File.exist?(product_simulator_swift_h_path)
|
9
|
-
FileUtils.cp_r(product_swift_h_path, target_swfit_h_path)
|
10
|
-
replacement = File.read(product_simulator_swift_h_path)
|
11
|
-
content_a = File.read(target_swfit_h_path)
|
12
|
-
content_a.gsub!("#error unsupported Swift architecture", replacement)
|
13
|
-
File.write(target_swfit_h_path, content_a)
|
14
|
-
end
|