gym 1.6.3 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 378f10d0a08b2c15f6363308f7283df7df4ecfe3
4
- data.tar.gz: 3e8786dbc86d23826a378d00d73b24e868ab7fc0
3
+ metadata.gz: 3cb5dfb0c034f1f176aa33c251efe825fc565588
4
+ data.tar.gz: ad83beb96bae35108114fba5b82ceef5beb20582
5
5
  SHA512:
6
- metadata.gz: 0fd65c7716687b32d54762e17b9a920d1ba271dd788308584a5a9b2b263e7398654fd50e94e1963f4256525dd3a45205f7faadb0ca9219e227a6138e46d99008
7
- data.tar.gz: 4cd197f9fb6535496c5b6e287cb5739615c45112467a211f5d538b3ab8d9ac51b8177ec8b964bafcb84078674ca7a9bf513e7c591af5c542b159f298a90e0fc0
6
+ metadata.gz: 7b2ef7b42f1ac411b048ab1d31a31fdc224aa81d286bb19dab22c2775815863089010b02d52cc6d602f77de69aa95be1e5147b6a72ab57eb4f6bd60ccbc74549
7
+ data.tar.gz: 8e9661c7de9d06cbfd85a752085ea01b31df8cad059d51de6b48bee97f5a466e726be94e1812821d032caf1b83f83f2d04ac31a09da6c0d4773e5e2d5c4b969e
data/README.md CHANGED
@@ -180,7 +180,12 @@ export_options(
180
180
 
181
181
  For the list of available options run `xcodebuild -help`.
182
182
 
183
- # Automating the whole process
183
+ ## Setup code signing
184
+
185
+ - [More information on how to get started with codesigning](/fastlane/docs/Codesigning)
186
+ - [Docs on how to set up your Xcode project](/fastlane/docs/Codesigning/XcodeProject.md)
187
+
188
+ ## Automating the whole process
184
189
 
185
190
  `gym` works great together with [fastlane](https://fastlane.tools), which connects all deployment tools into one streamlined workflow.
186
191
 
@@ -1,5 +1,5 @@
1
1
  # For more information about this configuration visit
2
- # https://github.com/fastlane/gym#gymfile
2
+ # https://github.com/fastlane/fastlane/tree/master/gym#gymfile
3
3
 
4
4
  # In general, you can use the options available
5
5
  # gym --help
@@ -1 +1,2 @@
1
- a434316d561ce5c4392a8447b58c18e7
1
+ a434316d561ce5c4392a8447b58c18e7
2
+ 75c29555834c603566a2319c5e4d2838
@@ -41,6 +41,14 @@ if [[ $? -eq 0 ]]; then
41
41
  unset BUNDLE_GEMFILE
42
42
  fi
43
43
 
44
+ if which rbenv > /dev/null; then
45
+ echo "rbenv detected, removing env variables"
46
+ unset RUBYLIB
47
+ unset RUBYOPT
48
+ unset GEM_HOME
49
+ unset GEM_PATH
50
+ fi
51
+
44
52
  # to help troubleshooting
45
53
  # env | sort > /tmp/env.wrapper
46
54
  # rvm info >> /tmp/env.wrapper
data/lib/gym.rb CHANGED
@@ -11,6 +11,7 @@ require 'gym/xcode'
11
11
 
12
12
  require 'fastlane_core'
13
13
  require 'terminal-table'
14
+ require 'shellwords'
14
15
 
15
16
  module Gym
16
17
  class << self
@@ -88,7 +88,7 @@ module Gym
88
88
  standard_output = read_standard_output output
89
89
  print standard_output if standard_output
90
90
  print "There was an error exporting your application"
91
- print "Unfortunately the new Xcode export API is unstable and causes problems on some project"
91
+ print "Unfortunately the new Xcode export API is unstable and causes problems on some projects"
92
92
  print "You can temporary use the :use_legacy_build_api option to get the build to work again"
93
93
  end
94
94
  UI.user_error!("Error packaging up the application")
@@ -57,7 +57,7 @@ module Gym
57
57
 
58
58
  def suffix
59
59
  suffix = []
60
- suffix << "CODE_SIGN_IDENTITY='#{Gym.config[:codesigning_identity]}'" if Gym.config[:codesigning_identity]
60
+ suffix << "CODE_SIGN_IDENTITY=#{Gym.config[:codesigning_identity].shellescape}" if Gym.config[:codesigning_identity]
61
61
  suffix
62
62
  end
63
63
 
@@ -11,7 +11,9 @@ module Gym
11
11
  class PackageCommandGeneratorLegacy
12
12
  class << self
13
13
  def generate
14
- parts = ["/usr/bin/xcrun #{XcodebuildFixes.patch_package_application} -v"]
14
+ print_legacy_information
15
+
16
+ parts = ["/usr/bin/xcrun #{XcodebuildFixes.patch_package_application.shellescape} -v"]
15
17
  parts += options
16
18
  parts += pipe
17
19
 
@@ -30,7 +32,7 @@ module Gym
30
32
  end
31
33
 
32
34
  if Gym.config[:codesigning_identity]
33
- options << "--sign '#{Gym.config[:codesigning_identity]}'"
35
+ options << "--sign #{Gym.config[:codesigning_identity].shellescape}"
34
36
  end
35
37
 
36
38
  options
@@ -77,6 +79,24 @@ module Gym
77
79
  def apps_path
78
80
  ""
79
81
  end
82
+
83
+ def print_legacy_information
84
+ if Gym.config[:include_bitcode]
85
+ UI.important "Legacy build api is enabled, the `include_bitcode` value will be ignored"
86
+ end
87
+
88
+ if Gym.config[:include_symbols]
89
+ UI.important "Legacy build api is enabled, the `include_symbols` value will be ignored"
90
+ end
91
+
92
+ if Gym.config[:export_team_id].to_s.length > 0
93
+ UI.important "Legacy build api is enabled, the `export_team_id` value will be ignored"
94
+ end
95
+
96
+ if Gym.config[:export_method].to_s.length > 0
97
+ UI.important "Legacy build api is enabled, the `export_method` value will be ignored"
98
+ end
99
+ end
80
100
  end
81
101
  end
82
102
  end
@@ -10,9 +10,9 @@ module Gym
10
10
  class PackageCommandGeneratorXcode7
11
11
  class << self
12
12
  def generate
13
- print_legacy_information unless Helper.fastlane_enabled?
13
+ print_legacy_information
14
14
 
15
- parts = ["/usr/bin/xcrun #{XcodebuildFixes.wrap_xcodebuild} -exportArchive"]
15
+ parts = ["/usr/bin/xcrun #{XcodebuildFixes.wrap_xcodebuild.shellescape} -exportArchive"]
16
16
  parts += options
17
17
  parts += pipe
18
18
 
@@ -161,10 +161,10 @@ module Gym
161
161
  end
162
162
 
163
163
  def print_legacy_information
164
- if Gym.config[:provisioning_profile_path]
165
- UI.important "You're using Xcode 7, the `provisioning_profile_path` value will be ignored"
166
- UI.important "Please follow the Code Signing Guide: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/CodeSigning.md"
167
- end
164
+ return if Gym.config[:provisioning_profile_path].to_s.length == 0
165
+
166
+ UI.error "You're using Xcode 7, the `provisioning_profile_path` value will be ignored"
167
+ UI.error "Please follow the Code Signing Guide: https://codesigning.guide (for match) or https://github.com/fastlane/fastlane/blob/master/fastlane/docs/CodeSigning.md"
168
168
  end
169
169
  end
170
170
  end
data/lib/gym/options.rb CHANGED
@@ -163,8 +163,9 @@ module Gym
163
163
  env_name: "GYM_PROVISIONING_PROFILE_PATH",
164
164
  description: "The path to the provisioning profile (optional)",
165
165
  optional: true,
166
+ deprecated: 'Use target specific provisioning profiles instead',
166
167
  verify_block: proc do |value|
167
- UI.user_error!("Provisioning profile not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
168
+ UI.user_error!("Provisioning profile not found at path '#{File.expand_path(value)}'") unless File.exist?(File.expand_path(value))
168
169
  end),
169
170
  FastlaneCore::ConfigItem.new(key: :destination,
170
171
  short_option: "-d",
@@ -194,8 +195,7 @@ module Gym
194
195
  env_name: "SUPPRESS_OUTPUT",
195
196
  description: "Suppress the output of xcodebuild to stdout. Output is still saved in buildlog_path",
196
197
  optional: true,
197
- is_string: false
198
- )
198
+ is_string: false)
199
199
  ]
200
200
  end
201
201
  end
data/lib/gym/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Gym
2
- VERSION = "1.6.3"
2
+ VERSION = "1.7.0"
3
3
  DESCRIPTION = "Building your iOS apps has never been easier"
4
4
  end
@@ -11,16 +11,16 @@ module Gym
11
11
  return @patched_package_application_path if File.exist?(@patched_package_application_path)
12
12
 
13
13
  Dir.mktmpdir do |tmpdir|
14
- # Check current PackageApplication MD5
14
+ # Check current set of PackageApplication MD5 hashes
15
15
  require 'digest'
16
16
 
17
17
  path = File.join(Helper.gem_path("gym"), "lib/assets/package_application_patches/PackageApplication_MD5")
18
- expected_md5 = File.read(path)
18
+ expected_md5_hashes = File.read(path).split("\n")
19
19
 
20
20
  # If that location changes, search it using xcrun --sdk iphoneos -f PackageApplication
21
21
  package_application_path = "#{Xcode.xcode_path}/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication"
22
22
 
23
- UI.crash!("Unable to patch the `PackageApplication` script bundled in Xcode. This is not supported.") unless expected_md5 == Digest::MD5.file(package_application_path).hexdigest
23
+ UI.crash!("Unable to patch the `PackageApplication` script bundled in Xcode. This is not supported.") unless expected_md5_hashes.include?(Digest::MD5.file(package_application_path).hexdigest)
24
24
 
25
25
  # Duplicate PackageApplication script to PackageApplication4Gym
26
26
  FileUtils.copy_file(package_application_path, @patched_package_application_path)
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.6.3
4
+ version: 1.7.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-05-07 00:00:00.000000000 Z
11
+ date: 2016-07-16 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.43.1
19
+ version: 0.43.3
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.43.1
29
+ version: 0.43.3
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  requirements: []
286
286
  rubyforge_project:
287
- rubygems_version: 2.4.0
287
+ rubygems_version: 2.5.1
288
288
  signing_key:
289
289
  specification_version: 4
290
290
  summary: Building your iOS apps has never been easier