fastlane 0.1.12 → 0.1.13

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
  SHA1:
3
- metadata.gz: e8112f61bcf1c2ab1b013be02f491a5b1f117a84
4
- data.tar.gz: 1464cf1b6e24a6cf5c82bb70c51f306e78c1ef87
3
+ metadata.gz: 54f331869a82dce0b638a3a76d1436c114652c87
4
+ data.tar.gz: 833ad058aa09d7a110e1d56175edcab170162148
5
5
  SHA512:
6
- metadata.gz: 6ca2a73b27631962c273e55481891219dbd8406ee955918aa17c5834d0a6ef1d047bde11d117b82fee3656ca0d50f55739b239ee4eefb7c8abc6164e73ab338a
7
- data.tar.gz: a5c29317133cb95c87694fcb44e7787ef55fde4a5b4aa1e776a7fe4d03c77a879e9810a2891e1b33aff48c43571a5dc62c0701834ea55233e42da47cd676f34f
6
+ metadata.gz: 163e20b524347beb310020b7b12a9746161dba2a29f68f5dcb4c9a7ef6120609eb0094d5985e432d198396e6622570e67becf18c827a498febec8716f6cec9d8
7
+ data.tar.gz: 3cb37fa75820957a512affb767ff60dec4aedcc3e93abab00bdc7173d6a811dbaf68217a258413ed149b9e6df4748e397191e20f67aa3fc6eb418d52666d6727
data/README.md CHANGED
@@ -8,7 +8,8 @@
8
8
  <a href="https://github.com/KrauseFx/PEM">PEM</a> &bull;
9
9
  <a href="https://github.com/KrauseFx/sigh">sigh</a> &bull;
10
10
  <a href="https://github.com/KrauseFx/produce">produce</a> &bull;
11
- <a href="https://github.com/KrauseFx/cert">cert</a>
11
+ <a href="https://github.com/KrauseFx/cert">cert</a> &bull;
12
+ <a href="https://github.com/KrauseFx/codes">codes</a>
12
13
  </p>
13
14
  -------
14
15
 
@@ -56,6 +57,8 @@ Get in contact with the developer on Twitter: [@KrauseFx](https://twitter.com/Kr
56
57
 
57
58
  ##### Take a look at the [fastlane website](http://fastlane.tools) for more information about why and when to use `fastlane`.
58
59
 
60
+ ##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
61
+
59
62
  # Installation
60
63
 
61
64
  I recommend following the [fastlane guide](https://github.com/KrauseFx/fastlane/blob/master/GUIDE.md) to get started.
@@ -198,8 +201,11 @@ ipa({
198
201
  })
199
202
  ```
200
203
 
204
+ The `ipa` action uses [shenzhen](https://github.com/nomad/shenzhen) under the hood.
205
+
201
206
  The path to the `ipa` is automatically used by `Crashlytics`, `Hockey` and `DeployGate`. To also use it in `deliver` update your `Deliverfile`:
202
207
 
208
+
203
209
  ```ruby
204
210
  ipa ENV["IPA_OUTPUT_PATH"]
205
211
  beta_ipa ENV["IPA_OUTPUT_PATH"]
@@ -431,6 +437,9 @@ Save and run. The result should look like this:
431
437
  - [`sigh`](https://github.com/KrauseFx/sigh): Because you would rather spend your time building stuff than fighting provisioning
432
438
  - [`produce`](https://github.com/KrauseFx/produce): Create new iOS apps on iTunes Connect and Dev Portal using the command line
433
439
  - [`cert`](https://github.com/KrauseFx/cert): Automatically create and maintain iOS code signing certificates
440
+ - [`codes`](https://github.com/KrauseFx/codes): Create promo codes for iOS Apps using the command line
441
+
442
+ ##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
434
443
 
435
444
  ## Advanced
436
445
  #### Lane Context
@@ -445,6 +454,7 @@ Actions::SharedValues::BUILD_NUMBER # generated by `increment_build_number`
445
454
  Actions::SharedValues::SNAPSHOT_SCREENSHOTS_PATH # generated by `snapshot`
446
455
  Actions::SharedValues::IPA_OUTPUT_PATH # generated by `ipa`
447
456
  Actions::SharedValues::SIGH_PROFILE_PATH # generated by `sigh`
457
+ Actions::SharedValues::SIGH_UDID # the UDID of the generated provisioning profile
448
458
  Actions::SharedValues::HOCKEY_DOWNLOAD_LINK #generated by `hockey`
449
459
  Actions::SharedValues::DEPLOYGATE_URL # generated by `deploygate`
450
460
  Actions::SharedValues::DEPLOYGATE_APP_REVISION # integer, generated by `deploygate`
@@ -471,7 +481,7 @@ lane :beta do
471
481
  deliver :beta
472
482
  hockey({
473
483
  api_token: '...',
474
- ipa: './app.ipa'
484
+ ipa: './app.ipa' # optional
475
485
  })
476
486
  end
477
487
 
@@ -2,6 +2,7 @@ module Fastlane
2
2
  module Actions
3
3
  module SharedValues
4
4
  SIGH_PROFILE_PATH = :SIGH_PROFILE_PATH
5
+ SIGH_UDID = :SIGH_UDID
5
6
  end
6
7
 
7
8
  class SighAction
@@ -26,7 +27,8 @@ module Fastlane
26
27
  Helper.log.info "Exported provisioning profile to '#{output_path}'".green
27
28
  Actions.sh "open '#{output_path}'" unless params.include? :skip_install
28
29
 
29
- Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = output_path # absolute URL
30
+ Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = output_path # absolute path
31
+ Actions.lane_context[SharedValues::SIGH_UDID] = ENV["SIGH_UDID"] if ENV["SIGH_UDID"] # The UDID of the new profile
30
32
  end
31
33
  end
32
34
  end
@@ -80,7 +80,7 @@ module Fastlane
80
80
  end
81
81
 
82
82
  if git_author
83
- if ENV['FASTLANE_SLACK_HIDE_AUTHOR_ON_SUCCESS'] && success
83
+ if ENV['FASTLANE_SLACK_HIDE_AUTHOR_ON_SUCCESS'] and options[:success]
84
84
  # We only show the git author if the build failed
85
85
  else
86
86
  test_result[:fields] << {
@@ -0,0 +1,24 @@
1
+ module Fastlane
2
+ module Actions
3
+ module SharedValues
4
+ end
5
+
6
+ class UpdateProjectCodeSigningAction
7
+ def self.run(params)
8
+ path = params.first
9
+ path = File.join(path, "project.pbxproj")
10
+ raise "Could not find path to project config '#{path}'. Pass the path to your project (not workspace)!".red unless File.exists?(path)
11
+
12
+ udid = (params[1] rescue nil)
13
+ udid ||= ENV["SIGH_UDID"]
14
+
15
+ Helper.log.info("Updating provisioning profile UDID (#{udid}) for the given project '#{path}'")
16
+
17
+ p = File.read(path)
18
+ File.write(path, p.gsub(/PROVISIONING_PROFILE = ".*";/, "PROVISIONING_PROFILE = \"#{udid}\";"))
19
+
20
+ Helper.log.info("Successfully updated project settings to use UDID '#{udid}'".green)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -73,7 +73,10 @@ module Fastlane
73
73
  end
74
74
 
75
75
  if class_ref && class_ref.respond_to?(:run)
76
- Helper.log.info "Step: #{method_sym.to_s}".green
76
+ line = "----------" + ("-" * method_sym.to_s.length) + "----"
77
+ Helper.log.info line.green
78
+ Helper.log.info "--- Step: #{method_sym.to_s} ---".green
79
+ Helper.log.info line.green
77
80
 
78
81
  Dir.chdir('..') do # go up from the fastlane folder, to the project folder
79
82
  Actions.execute_action(method_sym) do
@@ -37,7 +37,7 @@ module Fastlane
37
37
  end
38
38
 
39
39
  def files_to_copy
40
- ['Deliverfile', 'Snapfile', 'deliver', 'snapshot.js', 'SnapshotHelper.js', 'screenshots']
40
+ ['Deliverfile', 'Snapfile', 'deliver', 'snapshot.js', 'snapshot-iPad.js', 'SnapshotHelper.js', 'screenshots']
41
41
  end
42
42
 
43
43
  def copy_existing_files
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '0.1.12'
2
+ VERSION = '0.1.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -311,6 +311,7 @@ files:
311
311
  - lib/fastlane/actions/team_id.rb
312
312
  - lib/fastlane/actions/team_name.rb
313
313
  - lib/fastlane/actions/testmunk.rb
314
+ - lib/fastlane/actions/update_project_code_signing.rb
314
315
  - lib/fastlane/actions/xctool.rb
315
316
  - lib/fastlane/core_ext/string.rb
316
317
  - lib/fastlane/dependency_checker.rb