cocoapods-rome 1.0.0 → 1.0.1
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 +5 -5
- data/Gemfile.lock +15 -15
- data/README.md +52 -9
- data/lib/cocoapods-rome/gem_version.rb +1 -1
- data/lib/cocoapods-rome/post_install.rb +15 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c1b8e535d719a7ee57199eec6ffa2539a0015504153be49870908614aafe12d4
|
4
|
+
data.tar.gz: 843400edc594beb213d4db04de089d99bac141080f9db179e0f64fda2ed9d4d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2ef0aa8db91a4ebf3f79b29466465e5c011e452150941d8ab7084cac8c130cd9fe569e87d01db65c8ff838c01db52978aa25be2a60fd708cc52d2f79b710874
|
7
|
+
data.tar.gz: 9d0638e6f2ceac7e691fac1379abe56a79e7715fe90cb288affa1883223366e1fc12a06465cd839f9447d5527906c3bb788a632e6f17dbc6365772d6aea33c5d
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-rome (1.0.
|
4
|
+
cocoapods-rome (1.0.1)
|
5
5
|
cocoapods (>= 1.1.0, < 2.0)
|
6
6
|
fourflusher (~> 2.0)
|
7
7
|
|
@@ -14,13 +14,13 @@ GEM
|
|
14
14
|
minitest (~> 5.1)
|
15
15
|
thread_safe (~> 0.3, >= 0.3.4)
|
16
16
|
tzinfo (~> 1.1)
|
17
|
-
atomos (0.1.
|
17
|
+
atomos (0.1.3)
|
18
18
|
bacon (1.2.0)
|
19
19
|
claide (1.0.2)
|
20
|
-
cocoapods (1.5.
|
20
|
+
cocoapods (1.5.3)
|
21
21
|
activesupport (>= 4.0.2, < 5)
|
22
22
|
claide (>= 1.0.2, < 2.0)
|
23
|
-
cocoapods-core (= 1.5.
|
23
|
+
cocoapods-core (= 1.5.3)
|
24
24
|
cocoapods-deintegrate (>= 1.0.2, < 2.0)
|
25
25
|
cocoapods-downloader (>= 1.2.0, < 2.0)
|
26
26
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
@@ -36,22 +36,22 @@ GEM
|
|
36
36
|
nap (~> 1.0)
|
37
37
|
ruby-macho (~> 1.1)
|
38
38
|
xcodeproj (>= 1.5.7, < 2.0)
|
39
|
-
cocoapods-core (1.5.
|
39
|
+
cocoapods-core (1.5.3)
|
40
40
|
activesupport (>= 4.0.2, < 6)
|
41
41
|
fuzzy_match (~> 2.0.4)
|
42
42
|
nap (~> 1.0)
|
43
43
|
cocoapods-deintegrate (1.0.2)
|
44
|
-
cocoapods-downloader (1.2.
|
44
|
+
cocoapods-downloader (1.2.2)
|
45
45
|
cocoapods-plugins (1.0.0)
|
46
46
|
nap
|
47
47
|
cocoapods-search (1.0.0)
|
48
48
|
cocoapods-stats (1.0.0)
|
49
|
-
cocoapods-trunk (1.3.
|
49
|
+
cocoapods-trunk (1.3.1)
|
50
50
|
nap (>= 0.8, < 2.0)
|
51
51
|
netrc (~> 0.11)
|
52
52
|
cocoapods-try (1.1.0)
|
53
53
|
colored2 (3.1.2)
|
54
|
-
concurrent-ruby (1.
|
54
|
+
concurrent-ruby (1.1.2)
|
55
55
|
escape (0.0.4)
|
56
56
|
fourflusher (2.0.1)
|
57
57
|
fuzzy_match (2.0.4)
|
@@ -59,21 +59,21 @@ GEM
|
|
59
59
|
i18n (0.9.5)
|
60
60
|
concurrent-ruby (~> 1.0)
|
61
61
|
minitest (5.11.3)
|
62
|
-
molinillo (0.6.
|
63
|
-
nanaimo (0.2.
|
62
|
+
molinillo (0.6.6)
|
63
|
+
nanaimo (0.2.6)
|
64
64
|
nap (1.1.0)
|
65
65
|
netrc (0.11.0)
|
66
66
|
rake (11.2.2)
|
67
|
-
ruby-macho (1.1
|
67
|
+
ruby-macho (1.3.1)
|
68
68
|
thread_safe (0.3.6)
|
69
69
|
tzinfo (1.2.5)
|
70
70
|
thread_safe (~> 0.1)
|
71
|
-
xcodeproj (1.
|
71
|
+
xcodeproj (1.7.0)
|
72
72
|
CFPropertyList (>= 2.3.3, < 4.0)
|
73
|
-
atomos (~> 0.1.
|
73
|
+
atomos (~> 0.1.3)
|
74
74
|
claide (>= 1.0.2, < 2.0)
|
75
75
|
colored2 (~> 3.1)
|
76
|
-
nanaimo (~> 0.2.
|
76
|
+
nanaimo (~> 0.2.6)
|
77
77
|
|
78
78
|
PLATFORMS
|
79
79
|
ruby
|
@@ -85,4 +85,4 @@ DEPENDENCIES
|
|
85
85
|
rake
|
86
86
|
|
87
87
|
BUNDLED WITH
|
88
|
-
1.
|
88
|
+
1.16.3
|
data/README.md
CHANGED
@@ -11,9 +11,15 @@ Xcode, e.g. for a Swift script.
|
|
11
11
|
$ gem install cocoapods-rome
|
12
12
|
```
|
13
13
|
|
14
|
-
##
|
14
|
+
## Important
|
15
15
|
|
16
|
-
|
16
|
+
In the examples below the target 'caesar' could either be an existing target of a project managed by cocapods for which you'd like to run a swift script **or** it could be fictitious, for example if you wish to run this on a standalone Podfile and get the frameworks you need for adding to your xcode project manually.
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
Write a simple Podfile, like this:
|
21
|
+
|
22
|
+
### MacOS
|
17
23
|
|
18
24
|
```ruby
|
19
25
|
platform :osx, '10.10'
|
@@ -25,6 +31,30 @@ target 'caesar' do
|
|
25
31
|
end
|
26
32
|
```
|
27
33
|
|
34
|
+
### iOS
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
platform :ios, '8.0'
|
38
|
+
|
39
|
+
plugin 'cocoapods-rome', { :pre_compile => Proc.new { |installer|
|
40
|
+
installer.pods_project.targets.each do |target|
|
41
|
+
target.build_configurations.each do |config|
|
42
|
+
config.build_settings['SWIFT_VERSION'] = '4.0'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
installer.pods_project.save
|
47
|
+
},
|
48
|
+
|
49
|
+
dsym: false,
|
50
|
+
configuration: 'Release'
|
51
|
+
}
|
52
|
+
|
53
|
+
target 'caesar' do
|
54
|
+
pod 'Alamofire'
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
28
58
|
then run this:
|
29
59
|
|
30
60
|
```bash
|
@@ -39,6 +69,9 @@ Rome/
|
|
39
69
|
└── Alamofire.framework
|
40
70
|
```
|
41
71
|
|
72
|
+
## Advanced Usage
|
73
|
+
|
74
|
+
|
42
75
|
For your production builds, when you want dSYMs created and stored:
|
43
76
|
|
44
77
|
```ruby
|
@@ -85,6 +118,12 @@ This hook allows you to make any last changes to the generated Xcode project bef
|
|
85
118
|
|
86
119
|
It receives the `Pod::Installer` as its only argument.
|
87
120
|
|
121
|
+
### `post_compile`
|
122
|
+
|
123
|
+
This hook allows you to run code after the compilation of the frameworks finished and they have been moved to the `Rome` folder.
|
124
|
+
|
125
|
+
It receives the `Pod::Installer` as its only argument.
|
126
|
+
|
88
127
|
#### Example
|
89
128
|
|
90
129
|
Customising the Swift version of all pods
|
@@ -92,15 +131,19 @@ Customising the Swift version of all pods
|
|
92
131
|
```ruby
|
93
132
|
platform :osx, '10.10'
|
94
133
|
|
95
|
-
plugin 'cocoapods-rome',
|
96
|
-
|
97
|
-
|
98
|
-
|
134
|
+
plugin 'cocoapods-rome',
|
135
|
+
:pre_compile => Proc.new { |installer|
|
136
|
+
installer.pods_project.targets.each do |target|
|
137
|
+
target.build_configurations.each do |config|
|
138
|
+
config.build_settings['SWIFT_VERSION'] = '4.0'
|
139
|
+
end
|
99
140
|
end
|
100
|
-
end
|
101
141
|
|
102
|
-
|
103
|
-
}
|
142
|
+
installer.pods_project.save
|
143
|
+
},
|
144
|
+
:post_compile => Proc.new { |installer|
|
145
|
+
puts "Rome finished building all the frameworks"
|
146
|
+
}
|
104
147
|
|
105
148
|
target 'caesar' do
|
106
149
|
pod 'Alamofire'
|
@@ -62,7 +62,7 @@ end
|
|
62
62
|
|
63
63
|
Pod::HooksManager.register('cocoapods-rome', :post_install) do |installer_context, user_options|
|
64
64
|
enable_dsym = user_options.fetch('dsym', true)
|
65
|
-
configuration = user_options.fetch('configuration',
|
65
|
+
configuration = user_options.fetch('configuration', 'Debug')
|
66
66
|
if user_options["pre_compile"]
|
67
67
|
user_options["pre_compile"].call(installer_context)
|
68
68
|
end
|
@@ -92,8 +92,11 @@ Pod::HooksManager.register('cocoapods-rome', :post_install) do |installer_contex
|
|
92
92
|
|
93
93
|
# Make sure the device target overwrites anything in the simulator build, otherwise iTunesConnect
|
94
94
|
# can get upset about Info.plist containing references to the simulator SDK
|
95
|
-
frameworks = Pathname.glob("build/*/*/*.framework").reject { |f| f.to_s =~ /Pods
|
96
|
-
frameworks += Pathname.glob("build/*.framework").reject { |f| f.to_s =~ /Pods
|
95
|
+
frameworks = Pathname.glob("build/*/*/*.framework").reject { |f| f.to_s =~ /Pods[^.]+\.framework/ }
|
96
|
+
frameworks += Pathname.glob("build/*.framework").reject { |f| f.to_s =~ /Pods[^.]+\.framework/ }
|
97
|
+
|
98
|
+
resources = []
|
99
|
+
|
97
100
|
Pod::UI.puts "Built #{frameworks.count} #{'frameworks'.pluralize(frameworks.count)}"
|
98
101
|
|
99
102
|
destination.rmtree if destination.directory?
|
@@ -104,19 +107,25 @@ Pod::HooksManager.register('cocoapods-rome', :post_install) do |installer_contex
|
|
104
107
|
file_accessor = Pod::Sandbox::FileAccessor.new(sandbox.pod_dir(spec.root.name), consumer)
|
105
108
|
frameworks += file_accessor.vendored_libraries
|
106
109
|
frameworks += file_accessor.vendored_frameworks
|
110
|
+
resources += file_accessor.resources
|
107
111
|
end
|
108
112
|
end
|
109
113
|
frameworks.uniq!
|
114
|
+
resources.uniq!
|
110
115
|
|
111
116
|
Pod::UI.puts "Copying #{frameworks.count} #{'frameworks'.pluralize(frameworks.count)} " \
|
112
117
|
"to `#{destination.relative_path_from Pathname.pwd}`"
|
113
118
|
|
114
|
-
|
115
|
-
|
116
|
-
FileUtils.cp_r
|
119
|
+
FileUtils.mkdir_p destination
|
120
|
+
(frameworks + resources).each do |file|
|
121
|
+
FileUtils.cp_r file, destination, :remove_destination => true
|
117
122
|
end
|
118
123
|
|
119
124
|
copy_dsym_files(sandbox_root.parent + 'dSYM', configuration) if enable_dsym
|
120
125
|
|
121
126
|
build_dir.rmtree if build_dir.directory?
|
127
|
+
|
128
|
+
if user_options["post_compile"]
|
129
|
+
user_options["post_compile"].call(installer_context)
|
130
|
+
end
|
122
131
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-rome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Bügling
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.7.6
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Rome makes it easy to build a list of frameworks for consumption outside
|