gym 1.11.3 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -5
- data/lib/gym/error_handler.rb +10 -2
- data/lib/gym/generators/build_command_generator.rb +3 -3
- data/lib/gym/generators/package_command_generator_xcode7.rb +11 -7
- data/lib/gym/options.rb +9 -1
- data/lib/gym/version.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81e2e7f42c5f9a4a4a7632a54e29fb028bbfea79
|
4
|
+
data.tar.gz: 9c9429be576104a7bc32e3227bc37f989c6b29d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 868b941134af43c696fc9d97ca14c81723800e6f418eaa4167c5f3c87702fbc5214722760a5e7683c95b2ec98181f2b9172fc3cdad146c1a7267fb411d7b534d
|
7
|
+
data.tar.gz: b5804c09dd006cafffc4e2ebf5769df4e4f206490b5be4382a5dafbe9189717198a6ecc4f95dda811f961237dc2d5fb96f3d6b0c44f2b9009acd947bacb4a0d3
|
data/README.md
CHANGED
@@ -32,7 +32,6 @@ gym
|
|
32
32
|
[![Twitter: @KauseFx](https://img.shields.io/badge/contact-@FastlaneTools-blue.svg?style=flat)](https://twitter.com/FastlaneTools)
|
33
33
|
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/fastlane/blob/master/gym/LICENSE)
|
34
34
|
[![Gem](https://img.shields.io/gem/v/gym.svg?style=flat)](http://rubygems.org/gems/gym)
|
35
|
-
[![Build Status](https://img.shields.io/circleci/project/fastlane/fastlane/master.svg?style=flat)](https://circleci.com/gh/fastlane/fastlane)
|
36
35
|
|
37
36
|
###### Building your app has never been easier
|
38
37
|
|
@@ -49,7 +48,7 @@ Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.c
|
|
49
48
|
|
50
49
|
-------
|
51
50
|
|
52
|
-
<h5 align="center"><code>gym</code> is part of <a href="https://fastlane.tools">fastlane</a>: The easiest way to automate
|
51
|
+
<h5 align="center"><code>gym</code> is part of <a href="https://fastlane.tools">fastlane</a>: The easiest way to automate beta deployments and releases for your iOS and Android apps.</h5>
|
53
52
|
|
54
53
|
# What's gym?
|
55
54
|
|
@@ -182,8 +181,8 @@ For the list of available options run `xcodebuild -help`.
|
|
182
181
|
|
183
182
|
## Setup code signing
|
184
183
|
|
185
|
-
- [More information on how to get started with codesigning](
|
186
|
-
- [Docs on how to set up your Xcode project](
|
184
|
+
- [More information on how to get started with codesigning](https://docs.fastlane.tools/codesigning/getting-started/)
|
185
|
+
- [Docs on how to set up your Xcode project](https://docs.fastlane.tools/codesigning/xcode-project/)
|
187
186
|
|
188
187
|
## Automating the whole process
|
189
188
|
|
@@ -259,7 +258,7 @@ Afterwards the `ipa` file is moved to the output folder. The `dSYM` file is comp
|
|
259
258
|
# Tips
|
260
259
|
## [`fastlane`](https://fastlane.tools) Toolchain
|
261
260
|
|
262
|
-
- [`fastlane`](https://fastlane.tools): The easiest way to automate
|
261
|
+
- [`fastlane`](https://fastlane.tools): The easiest way to automate beta deployments and releases for your iOS and Android apps
|
263
262
|
- [`deliver`](https://github.com/fastlane/fastlane/tree/master/deliver): Upload screenshots, metadata and your app to the App Store
|
264
263
|
- [`snapshot`](https://github.com/fastlane/fastlane/tree/master/snapshot): Automate taking localized screenshots of your iOS app on every device
|
265
264
|
- [`frameit`](https://github.com/fastlane/fastlane/tree/master/frameit): Quickly put your screenshots into the right device frames
|
data/lib/gym/error_handler.rb
CHANGED
@@ -83,14 +83,22 @@ module Gym
|
|
83
83
|
when /expected one of \{\}/
|
84
84
|
print "It seems like you ran into this radar"
|
85
85
|
print "https://openradar.appspot.com/radar?id=4952000420642816"
|
86
|
-
print "You can
|
86
|
+
print "You can temporarily use the :use_legacy_build_api option to work around the issue:"
|
87
|
+
print "In your Fastfile:"
|
88
|
+
print " gym(use_legacy_build_api: true)"
|
89
|
+
print "On the command line:"
|
90
|
+
print " gym --use_legacy_build_api"
|
87
91
|
when /IDEDistributionErrorDomain error 1/
|
88
92
|
when /Error Domain=IDEDistributionErrorDomain Code=/
|
89
93
|
standard_output = read_standard_output output
|
90
94
|
print standard_output if standard_output
|
91
95
|
print "There was an error exporting your application"
|
92
96
|
print "Unfortunately the new Xcode export API is unstable and causes problems on some projects"
|
93
|
-
print "You can
|
97
|
+
print "You can temporarily use the :use_legacy_build_api option to work around the issue:"
|
98
|
+
print "In your Fastfile:"
|
99
|
+
print " gym(use_legacy_build_api: true)"
|
100
|
+
print "On the command line:"
|
101
|
+
print " gym --use_legacy_build_api"
|
94
102
|
end
|
95
103
|
print_full_log_path
|
96
104
|
UI.user_error!("Error packaging up the application")
|
@@ -77,13 +77,13 @@ module Gym
|
|
77
77
|
report_output_json = Gym.config[:xcpretty_report_json]
|
78
78
|
if report_output_junit
|
79
79
|
pipe << " --report junit --output "
|
80
|
-
pipe << report_output_junit
|
80
|
+
pipe << report_output_junit.shellescape
|
81
81
|
elsif report_output_html
|
82
82
|
pipe << " --report html --output "
|
83
|
-
pipe << report_output_html
|
83
|
+
pipe << report_output_html.shellescape
|
84
84
|
elsif report_output_json
|
85
85
|
pipe << " --report json-compilation-database --output "
|
86
|
-
pipe << report_output_json
|
86
|
+
pipe << report_output_json.shellescape
|
87
87
|
end
|
88
88
|
end
|
89
89
|
pipe << "> /dev/null" if Gym.config[:suppress_xcode_output]
|
@@ -22,15 +22,14 @@ module Gym
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def options
|
25
|
-
|
25
|
+
config = Gym.config
|
26
26
|
|
27
|
+
options = []
|
27
28
|
options << "-exportOptionsPlist '#{config_path}'"
|
28
29
|
options << "-archivePath #{BuildCommandGenerator.archive_path.shellescape}"
|
29
30
|
options << "-exportPath '#{temporary_output_path}'"
|
30
|
-
|
31
|
-
if
|
32
|
-
options << "-toolchain '#{Gym.config[:toolchain]}'"
|
33
|
-
end
|
31
|
+
options << "-toolchain '#{config[:toolchain]}'" if config[:toolchain]
|
32
|
+
options << config[:export_xcargs] if config[:export_xcargs]
|
34
33
|
|
35
34
|
options
|
36
35
|
end
|
@@ -168,11 +167,16 @@ module Gym
|
|
168
167
|
if $verbose
|
169
168
|
UI.message("This results in the following plist file:")
|
170
169
|
UI.command_output("-----------------------------------------")
|
171
|
-
UI.command_output(hash
|
170
|
+
UI.command_output(to_plist(hash))
|
172
171
|
UI.command_output("-----------------------------------------")
|
173
172
|
end
|
174
173
|
|
175
|
-
hash
|
174
|
+
to_plist(hash)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Avoids a Hash#to_plist conflict between CFPropertyList and plist gems
|
178
|
+
def to_plist(hash)
|
179
|
+
Plist::Emit.dump(hash, true)
|
176
180
|
end
|
177
181
|
|
178
182
|
def print_legacy_information
|
data/lib/gym/options.rb
CHANGED
@@ -123,6 +123,14 @@ module Gym
|
|
123
123
|
conflict_block: proc do |value|
|
124
124
|
UI.user_error!("'#{value.key}' must be false to use 'export_options'")
|
125
125
|
end),
|
126
|
+
FastlaneCore::ConfigItem.new(key: :export_xcargs,
|
127
|
+
env_name: "GYM_EXPORT_XCARGS",
|
128
|
+
description: "Pass additional arguments to xcodebuild for the package phase. Be sure to quote the setting names and values e.g. OTHER_LDFLAGS=\"-ObjC -lstdc++\"",
|
129
|
+
optional: true,
|
130
|
+
conflicting_options: [:use_legacy_build_api],
|
131
|
+
conflict_block: proc do |value|
|
132
|
+
UI.user_error!("'#{value.key}' must be false to use 'export_xcargs'")
|
133
|
+
end),
|
126
134
|
FastlaneCore::ConfigItem.new(key: :skip_build_archive,
|
127
135
|
env_name: "GYM_SKIP_BUILD_ARCHIVE",
|
128
136
|
description: "Export ipa from previously build xarchive. Uses archive_path as source",
|
@@ -186,7 +194,7 @@ module Gym
|
|
186
194
|
FastlaneCore::ConfigItem.new(key: :xcargs,
|
187
195
|
short_option: "-x",
|
188
196
|
env_name: "GYM_XCARGS",
|
189
|
-
description: "Pass additional arguments to xcodebuild. Be sure to quote the setting names and values e.g. OTHER_LDFLAGS=\"-ObjC -lstdc++\"",
|
197
|
+
description: "Pass additional arguments to xcodebuild for the build phase. Be sure to quote the setting names and values e.g. OTHER_LDFLAGS=\"-ObjC -lstdc++\"",
|
190
198
|
optional: true),
|
191
199
|
FastlaneCore::ConfigItem.new(key: :xcconfig,
|
192
200
|
short_option: "-y",
|
data/lib/gym/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gym
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.53.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.53.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -146,20 +146,6 @@ dependencies:
|
|
146
146
|
- - ">="
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: '0'
|
149
|
-
- !ruby/object:Gem::Dependency
|
150
|
-
name: rubocop
|
151
|
-
requirement: !ruby/object:Gem::Requirement
|
152
|
-
requirements:
|
153
|
-
- - "~>"
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: 0.38.0
|
156
|
-
type: :development
|
157
|
-
prerelease: false
|
158
|
-
version_requirements: !ruby/object:Gem::Requirement
|
159
|
-
requirements:
|
160
|
-
- - "~>"
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version: 0.38.0
|
163
149
|
- !ruby/object:Gem::Dependency
|
164
150
|
name: rspec
|
165
151
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,6 +230,20 @@ dependencies:
|
|
244
230
|
- - ">="
|
245
231
|
- !ruby/object:Gem::Version
|
246
232
|
version: '0'
|
233
|
+
- !ruby/object:Gem::Dependency
|
234
|
+
name: rubocop
|
235
|
+
requirement: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - "~>"
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: 0.44.0
|
240
|
+
type: :development
|
241
|
+
prerelease: false
|
242
|
+
version_requirements: !ruby/object:Gem::Requirement
|
243
|
+
requirements:
|
244
|
+
- - "~>"
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: 0.44.0
|
247
247
|
description: Building your iOS apps has never been easier
|
248
248
|
email:
|
249
249
|
- gym@krausefx.com
|
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
302
|
version: '0'
|
303
303
|
requirements: []
|
304
304
|
rubyforge_project:
|
305
|
-
rubygems_version: 2.
|
305
|
+
rubygems_version: 2.5.1
|
306
306
|
signing_key:
|
307
307
|
specification_version: 4
|
308
308
|
summary: Building your iOS apps has never been easier
|