lg_pod_plugin 1.1.5.4 → 1.1.5.5

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: 9dc774281777ef46e7cc81e7ff30f7a93e18ae04129751b81b4ea04fc18d3379
4
- data.tar.gz: b96fcdddf2b4626d017cb4423d3c78c4466dc16c820defb328c10fa4b483b66e
3
+ metadata.gz: 3aac9e3f7ae1ac1bec1f38f9faf0484bf7f79cd4f7cd70030203ac802b0c892e
4
+ data.tar.gz: 9c22ae4997c0bf795021a4bb1ab905786af8c585622398560fe8e97a5ca4ed27
5
5
  SHA512:
6
- metadata.gz: 1e4ae04607de46d6517d58872e99ceec33fb57247c4d385f91cc27ba4569487ca2773ab7559fb98e27f67d2cdfc6bfba5cc655ea3b856fc08c6a11eef70e1bd3
7
- data.tar.gz: 383a46acfe72e63c85502067208047c310d6969609aa3c3cc6f2c5c1aa1f82c82a61614b69e69425f586427c73386446e2b935940c839063c7639c4d1a07fc36
6
+ metadata.gz: caf7d0bd717856e93ab3c3f699c44879e69ae29762864c5d9d1a174b5e09ae800a87e8d3951bd23f071125e11232129449616a1ec971c26ba132ccaf956ce402
7
+ data.tar.gz: 81b84ca084996f062d6e33c26cc09001cb2cbacb50fea6c81fe8fb4b793be3e69fadf4f27387b1223d0d5e6ae6bc6e74d3dac160144d733597cc0598106b3ef9
@@ -1,5 +1,6 @@
1
1
  require 'cocoapods'
2
2
  require 'cocoapods-core'
3
+ require 'cocoapods/user_interface'
3
4
  require_relative '../config/podspec'
4
5
  require_relative '../installer/concurrency'
5
6
 
@@ -84,30 +85,24 @@ module LgPodPlugin
84
85
  else
85
86
  installer.integrate
86
87
  end
87
- installer.send(:write_lockfiles)
88
+ self.write_lockfiles(installer)
88
89
  installer.send(:perform_post_install_actions)
89
- write_podfile_lock
90
- write_manifest_lock
91
90
  end
92
91
 
93
- def self.write_podfile_lock
94
- lockfile_path = LProject.shared.workspace.join("Podfile.lock")
95
- lockfile = Pod::Lockfile.from_file(lockfile_path) if lockfile_path.exist?
96
- return unless lockfile
97
- hash = lockfile.send(:internal_data)
98
- hash["LOCKFILE TYPE"] = "LgPodPlugin"
99
- lockfile_path = lockfile.send(:defined_in_file)
100
- lockfile.send(:write_to_disk, lockfile_path)
101
- end
92
+ def self.write_lockfiles(installer)
93
+ config = Pod::Config.instance
94
+ lockfile = installer.send(:generate_lockfile)
95
+ Pod::UI.message "- Writing Lockfile in #{Pod::UI.path config.lockfile_path}" do hash = lockfile.send(:internal_data)
96
+ hash["LOCKFILE TYPE"] = "LgPodPlugin"
97
+ lockfile.write_to_disk(config.lockfile_path)
98
+ end
102
99
 
103
- def self.write_manifest_lock
104
- lockfile_path = LProject.shared.workspace.join("Pods").join("Manifest.lock")
105
- lockfile = Pod::Lockfile.from_file(lockfile_path) if lockfile_path.exist?
106
- return unless lockfile
107
- hash = lockfile.send(:internal_data)
108
- hash["LOCKFILE TYPE"] = "LgPodPlugin"
109
- lockfile_path = lockfile.send(:defined_in_file)
110
- lockfile.send(:write_to_disk, lockfile_path)
100
+ sandbox = installer.send(:sandbox)
101
+ Pod::UI.message "- Writing Manifest in #{Pod::UI.path sandbox.manifest_path}" do
102
+ hash = lockfile.send(:internal_data)
103
+ hash["LOCKFILE TYPE"] = "LgPodPlugin"
104
+ lockfile.write_to_disk(sandbox.manifest_path)
105
+ end
111
106
  end
112
107
 
113
108
  def self.lockfile_missing_pods(pods, lockfile)
@@ -1,3 +1,3 @@
1
1
  module LgPodPlugin
2
- VERSION = "1.1.5.4"
2
+ VERSION = "1.1.5.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lg_pod_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5.4
4
+ version: 1.1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - dongzb01
@@ -10,20 +10,6 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2023-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: json
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '='
18
- - !ruby/object:Gem::Version
19
- version: 2.6.1
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '='
25
- - !ruby/object:Gem::Version
26
- version: 2.6.1
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: cocoapods
29
15
  requirement: !ruby/object:Gem::Requirement