gym 1.12.1 → 1.13.0
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/gym/commands_generator.rb +1 -0
- data/lib/gym/error_handler.rb +1 -2
- data/lib/gym/generators/build_command_generator.rb +2 -1
- data/lib/gym/runner.rb +40 -11
- data/lib/gym/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 366fc6d933a59ad6d42cfc03babb3c08134db0cc
|
4
|
+
data.tar.gz: f6076df50f79da5966c1063ced7a126a51547942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b94813086c81dee801be0743520aaf37cee5caf8d32d1c0aac907aac03e4b1bdfa1b873f76dbec05fc7c06aa9ce39a404eb06305c545f19a269f85ea6d173ffb
|
7
|
+
data.tar.gz: e391a874ccbbad6fdba674480ed3127e09ae78c09c87fb3501743b5853d5fe98da697c3c90dcaa065931051e8e0396ed9683d6883c102bdc2fcb08a7e4b1a2fc
|
data/lib/gym/error_handler.rb
CHANGED
@@ -90,8 +90,7 @@ module Gym
|
|
90
90
|
print " gym(use_legacy_build_api: true)"
|
91
91
|
print "On the command line:"
|
92
92
|
print " gym --use_legacy_build_api"
|
93
|
-
when /IDEDistributionErrorDomain error 1/
|
94
|
-
when /Error Domain=IDEDistributionErrorDomain Code=/
|
93
|
+
when /Error Domain=IDEDistributionErrorDomain Code=/, /IDEDistributionErrorDomain error 1/
|
95
94
|
standard_output = read_standard_output output
|
96
95
|
print standard_output if standard_output
|
97
96
|
print "There was an error exporting your application"
|
@@ -50,7 +50,8 @@ module Gym
|
|
50
50
|
|
51
51
|
actions = []
|
52
52
|
actions << :clean if config[:clean]
|
53
|
-
actions << :archive
|
53
|
+
actions << :archive unless Gym.project.library? || Gym.project.framework?
|
54
|
+
actions << :build if Gym.project.library? || Gym.project.framework?
|
54
55
|
|
55
56
|
actions
|
56
57
|
end
|
data/lib/gym/runner.rb
CHANGED
@@ -11,26 +11,37 @@ module Gym
|
|
11
11
|
clear_old_files
|
12
12
|
build_app
|
13
13
|
end
|
14
|
-
verify_archive
|
15
|
-
|
14
|
+
verify_archive if Gym.project.produces_archive?
|
16
15
|
FileUtils.mkdir_p(File.expand_path(Gym.config[:output_directory]))
|
17
16
|
|
18
17
|
if Gym.project.ios? || Gym.project.tvos?
|
19
18
|
fix_generic_archive # See https://github.com/fastlane/fastlane/pull/4325
|
20
|
-
package_app
|
19
|
+
package_app if Gym.project.produces_archive?
|
21
20
|
fix_package
|
22
21
|
compress_and_move_dsym
|
23
|
-
path = move_ipa
|
22
|
+
path = move_ipa if Gym.project.produces_archive?
|
24
23
|
move_manifest
|
25
24
|
move_app_thinning
|
26
25
|
move_app_thinning_size_report
|
27
26
|
move_apps_folder
|
28
|
-
|
29
|
-
path
|
30
27
|
elsif Gym.project.mac?
|
28
|
+
path = File.expand_path(Gym.config[:output_directory])
|
31
29
|
compress_and_move_dsym
|
32
|
-
|
30
|
+
if Gym.project.mac_app?
|
31
|
+
copy_mac_app
|
32
|
+
return path
|
33
|
+
end
|
34
|
+
copy_files_from_path(File.join(BuildCommandGenerator.archive_path, "Products/usr/local/bin/*")) if Gym.project.command_line_tool?
|
35
|
+
end
|
36
|
+
|
37
|
+
if Gym.project.library? || Gym.project.framework?
|
38
|
+
base_framework_path = Gym.project.build_settings(key: "BUILD_ROOT")
|
39
|
+
base_framework_path = Gym.config[:derived_data_path] + "/Build/Products/" if Gym.config[:derived_data_path]
|
40
|
+
|
41
|
+
copy_files_from_path("#{base_framework_path}/*/*")
|
42
|
+
path = base_framework_path
|
33
43
|
end
|
44
|
+
path
|
34
45
|
end
|
35
46
|
|
36
47
|
#####################################################
|
@@ -86,6 +97,7 @@ module Gym
|
|
86
97
|
end
|
87
98
|
|
88
99
|
def mark_archive_as_built_by_gym(archive_path)
|
100
|
+
return if Gym.project.library? || Gym.project.framework?
|
89
101
|
escaped_archive_path = archive_path.shellescape
|
90
102
|
system("xattr -w info.fastlane.generated_by_gym 1 #{escaped_archive_path}")
|
91
103
|
end
|
@@ -155,14 +167,31 @@ module Gym
|
|
155
167
|
ipa_path
|
156
168
|
end
|
157
169
|
|
170
|
+
# copys framework from temp folder:
|
171
|
+
|
172
|
+
def copy_files_from_path(path)
|
173
|
+
UI.success "Exporting Files:"
|
174
|
+
Dir[path].each do |f|
|
175
|
+
existing_file = File.join(File.expand_path(Gym.config[:output_directory]), File.basename(f))
|
176
|
+
# If the target file already exists in output directory
|
177
|
+
# we have to remove it first, otherwise cp_r fails even with remove_destination
|
178
|
+
# e.g.: there are symlinks in the .framework
|
179
|
+
if File.exist?(existing_file)
|
180
|
+
UI.important "Removing #{File.basename(f)} from output directory" if $verbose
|
181
|
+
FileUtils.rm_rf(existing_file)
|
182
|
+
end
|
183
|
+
FileUtils.cp_r(f, File.expand_path(Gym.config[:output_directory]), remove_destination: true)
|
184
|
+
UI.message "\t ▸ #{File.basename(f)}"
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
158
188
|
# Copies the .app from the archive into the output directory
|
159
189
|
def copy_mac_app
|
160
|
-
|
161
|
-
|
162
|
-
|
190
|
+
exe_name = Gym.project.build_settings(key: "EXECUTABLE_NAME")
|
191
|
+
app_path = File.join(BuildCommandGenerator.archive_path, "Products/Applications/#{exe_name}.app")
|
192
|
+
UI.crash!("Couldn't find application in '#{BuildCommandGenerator.archive_path}'") unless File.exist?(app_path)
|
163
193
|
FileUtils.cp_r(app_path, File.expand_path(Gym.config[:output_directory]), remove_destination: true)
|
164
194
|
app_path = File.join(Gym.config[:output_directory], File.basename(app_path))
|
165
|
-
|
166
195
|
UI.success "Successfully exported the .app file:"
|
167
196
|
UI.message app_path
|
168
197
|
app_path
|
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.13.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-12-13 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.60.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.60.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
@@ -136,16 +136,16 @@ dependencies:
|
|
136
136
|
name: rake
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
|
-
- - "
|
139
|
+
- - "<"
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: '
|
141
|
+
version: '12'
|
142
142
|
type: :development
|
143
143
|
prerelease: false
|
144
144
|
version_requirements: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
|
-
- - "
|
146
|
+
- - "<"
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
version: '
|
148
|
+
version: '12'
|
149
149
|
- !ruby/object:Gem::Dependency
|
150
150
|
name: rspec
|
151
151
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|