cocoapods-alexandria 0.1.3 → 0.1.4
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: 517ace8b579f051031cfc0ac5fedb40928e7e0fb355cdc4cdef496fcb66d2a33
|
|
4
|
+
data.tar.gz: 06154bcf0cabd6a81496f298e860e1f41213dfb6a59209ac7c8e51c1a47d2d7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 755d5f29b4ee6e8c98fdee75e5cb71835a7c9a11f57e5f6f4cce63422e32b050a1b65bf86dac7021bfaa24cbfbcd69c482aa91ce47b7304b961e4575ace4daeb
|
|
7
|
+
data.tar.gz: 03d8fe36a2e6053da601ce2b329a25325591cd2403c236ce1757dc5d2c56de4b18fa617d3c507ad132a99cfe1ddc2e27160ddfa2fe51ac6930ddc7ee1995661a
|
|
@@ -8,17 +8,40 @@ module PodAlexandria
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def run
|
|
11
|
-
Pod::UI.puts
|
|
11
|
+
Pod::UI.puts 'Cocoapods Alexandria running in local mode.'
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
if should_predownload_dep
|
|
14
|
+
Pod::UI.title 'Pre-downloading dependency for XcodeGen'
|
|
15
|
+
predownload_dep
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
Pod::UI.title 'Generating project using XcodeGen'
|
|
14
19
|
XcodeGen::cleanupRome
|
|
15
20
|
XcodeGen::clearDependencies(options.xcodegen_dependencies_file)
|
|
16
21
|
XcodeGen::generate
|
|
17
22
|
|
|
18
|
-
Pod::UI.title
|
|
23
|
+
Pod::UI.title 'Preparing environment...'
|
|
19
24
|
podfile.prepare_for_xcodegen
|
|
20
25
|
|
|
21
|
-
Pod::UI.title
|
|
26
|
+
Pod::UI.title 'Continuing with normal CocoaPods'
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
private
|
|
30
|
+
|
|
31
|
+
def should_predownload_dep
|
|
32
|
+
File.readlines('project.yml').grep(/Pods\/AppwiseCore\/XcodeGen/).any? &&
|
|
33
|
+
!File.directory?('Pods/AppwiseCore/XcodeGen')
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def predownload_dep
|
|
37
|
+
system(
|
|
38
|
+
'rm -rf Pods/AppwiseCore && '\
|
|
39
|
+
'mkdir -p Pods && '\
|
|
40
|
+
'rm -f /tmp/ac.zip && '\
|
|
41
|
+
'curl -L "https://github.com/appwise-labs/AppwiseCore/archive/master.zip" > /tmp/ac.zip && '\
|
|
42
|
+
'unzip -q -d Pods /tmp/ac.zip && '\
|
|
43
|
+
'mv Pods/AppwiseCore-master Pods/AppwiseCore'
|
|
44
|
+
)
|
|
22
45
|
end
|
|
23
46
|
end
|
|
24
47
|
end
|