fastlane 2.96.0.beta.20180518050116 → 2.96.0.beta.20180519050103

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: 38cda5fadcfdb932a75e5d017956f66075ef68be
4
- data.tar.gz: 14e384a8154d23e7e6b9d17417ce3698d7fd66b4
3
+ metadata.gz: 7d2e750f5258701e2e66b7ce704f77f094725944
4
+ data.tar.gz: d6fcc4eeb8e06a9df92b8e694d7f93f135954f83
5
5
  SHA512:
6
- metadata.gz: c46071ed6a0d42cb2a36dccd0ea1c5ecb2993d79fa3b9100039e6a1702fa36a242b987dfe76d47e04025b06791f5336c5c58290605d307caead7a2dfaf7f8b3e
7
- data.tar.gz: ea9c3b15af9c7ebe447815ea93946203973a63a304aeda1dc6d5521da2ced547fe35826abb9be989761c9c6c33c172fbbd4aedb2805287ef05275bfc117a8a10
6
+ metadata.gz: b5eda3d1f7e3bdb3d8aa45c5b72cbc215076746b88e7e3fc17a705b0492bd237cce09525fdac6bb6306ab66a0aaaa9fdc1bebea4d9203768ff8dda1e5b681649
7
+ data.tar.gz: 393c72c88a8e8a682690c9ac05d91c05c8cb28347e92bf921b7194354ba3949c5bdc33e654caa49c15aea4a002a3ece65cc1bccaac48131bb2e649299580298d
@@ -40,6 +40,7 @@ module Fastlane
40
40
 
41
41
  target_filter = params[:target_filter] || params[:build_configuration_filter]
42
42
  configuration = params[:build_configuration]
43
+ code_signing_identity = params[:code_signing_identity]
43
44
 
44
45
  # manipulate project file
45
46
  UI.success("Going to update project '#{folder}' with UUID")
@@ -63,6 +64,13 @@ module Fastlane
63
64
  next
64
65
  end
65
66
 
67
+ if code_signing_identity
68
+ codesign_build_settings_keys = build_configuration.build_settings.keys.select { |key| key.to_s.match(/CODE_SIGN_IDENTITY.*/) }
69
+ codesign_build_settings_keys.each do |setting|
70
+ build_configuration.build_settings[setting] = code_signing_identity
71
+ end
72
+ end
73
+
66
74
  build_configuration.build_settings["PROVISIONING_PROFILE"] = data["UUID"]
67
75
  build_configuration.build_settings["PROVISIONING_PROFILE_SPECIFIER"] = data["Name"]
68
76
  end
@@ -129,7 +137,11 @@ module Fastlane
129
137
  FastlaneCore::ConfigItem.new(key: :certificate,
130
138
  env_name: "FL_PROJECT_PROVISIONING_CERTIFICATE_PATH",
131
139
  description: "Path to apple root certificate",
132
- default_value: "/tmp/AppleIncRootCertificate.cer")
140
+ default_value: "/tmp/AppleIncRootCertificate.cer"),
141
+ FastlaneCore::ConfigItem.new(key: :code_signing_identity,
142
+ env_name: "FL_PROJECT_PROVISIONING_CODE_SIGN_IDENTITY",
143
+ description: "Code sign identity for build configuration",
144
+ optional: true)
133
145
  ]
134
146
  end
135
147
 
@@ -147,7 +159,8 @@ module Fastlane
147
159
  xcodeproj: "Project.xcodeproj",
148
160
  profile: "./watch_app_store.mobileprovision", # optional if you use sigh
149
161
  target_filter: ".*WatchKit Extension.*", # matches name or type of a target
150
- build_configuration: "Release"
162
+ build_configuration: "Release",
163
+ code_signing_identity: "iPhone Development" # optionally specify the codesigning identity
151
164
  )'
152
165
  ]
153
166
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.96.0.beta.20180518050116'.freeze
2
+ VERSION = '2.96.0.beta.20180519050103'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -9,8 +9,8 @@ module Gym
9
9
  parts = prefix
10
10
  parts << "xcodebuild"
11
11
  parts += options
12
- parts += actions
13
- parts += suffix
12
+ parts += buildactions
13
+ parts += setting
14
14
  parts += pipe
15
15
 
16
16
  parts
@@ -46,26 +46,25 @@ module Gym
46
46
  options
47
47
  end
48
48
 
49
- def actions
49
+ def buildactions
50
50
  config = Gym.config
51
51
 
52
- actions = []
53
- actions << :clean if config[:clean]
54
- actions << :archive unless config[:skip_archive]
52
+ buildactions = []
53
+ buildactions << :clean if config[:clean]
54
+ buildactions << :archive unless config[:skip_archive]
55
55
 
56
- actions
56
+ buildactions
57
57
  end
58
58
 
59
- def suffix
60
- suffix = []
61
- suffix << "CODE_SIGN_IDENTITY=#{Gym.config[:codesigning_identity].shellescape}" if Gym.config[:codesigning_identity]
62
- suffix
59
+ def setting
60
+ setting = []
61
+ setting << "CODE_SIGN_IDENTITY=#{Gym.config[:codesigning_identity].shellescape}" if Gym.config[:codesigning_identity]
62
+ setting
63
63
  end
64
64
 
65
65
  def pipe
66
66
  pipe = []
67
67
  pipe << "| tee #{xcodebuild_log_path.shellescape}"
68
- pipe << "| grep .[0-9]ms | grep -v ^0.[0-9]ms | sort -nr > culprits.txt" if Gym.config[:analyze_build_time]
69
68
  unless Gym.config[:disable_xcpretty]
70
69
  formatter = Gym.config[:xcpretty_formatter]
71
70
  pipe << "| xcpretty"
@@ -89,10 +88,15 @@ module Gym
89
88
  end
90
89
  end
91
90
  pipe << "> /dev/null" if Gym.config[:suppress_xcode_output]
92
-
93
91
  pipe
94
92
  end
95
93
 
94
+ def post_build
95
+ commands = []
96
+ commands << %{grep -E '^[0-9.]+ms' #{xcodebuild_log_path.shellescape} | grep -vE '^0\.[0-9]' | sort -nr > culprits.txt} if Gym.config[:analyze_build_time]
97
+ commands
98
+ end
99
+
96
100
  def xcodebuild_log_path
97
101
  file_name = "#{Gym.project.app_name}-#{Gym.config[:scheme]}.log"
98
102
  containing = File.expand_path(Gym.config[:buildlog_path])
@@ -100,6 +100,23 @@ module Gym
100
100
  mark_archive_as_built_by_gym(BuildCommandGenerator.archive_path)
101
101
  UI.success("Successfully stored the archive. You can find it in the Xcode Organizer.") unless Gym.config[:archive_path].nil?
102
102
  UI.verbose("Stored the archive in: " + BuildCommandGenerator.archive_path)
103
+
104
+ post_build_app
105
+ end
106
+
107
+ # Post-processing of build_app
108
+ def post_build_app
109
+ command = BuildCommandGenerator.post_build
110
+
111
+ return if command.empty?
112
+
113
+ print_command(command, "Generated Post-Build Command") if FastlaneCore::Globals.verbose?
114
+ FastlaneCore::CommandExecutor.execute(command: command,
115
+ print_all: true,
116
+ print_command: !Gym.config[:silent],
117
+ error: proc do |output|
118
+ ErrorHandler.handle_build_error(output)
119
+ end)
103
120
  end
104
121
 
105
122
  # Makes sure the archive is there and valid
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.96.0.beta.20180518050116
4
+ version: 2.96.0.beta.20180519050103
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-05-18 00:00:00.000000000 Z
30
+ date: 2018-05-19 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1652,24 +1652,24 @@ metadata:
1652
1652
  post_install_message:
1653
1653
  rdoc_options: []
1654
1654
  require_paths:
1655
+ - fastlane/lib
1656
+ - frameit/lib
1657
+ - fastlane_core/lib
1658
+ - screengrab/lib
1659
+ - supply/lib
1655
1660
  - gym/lib
1656
1661
  - credentials_manager/lib
1657
- - cert/lib
1658
- - fastlane/lib
1662
+ - deliver/lib
1663
+ - sigh/lib
1659
1664
  - precheck/lib
1660
- - screengrab/lib
1661
- - match/lib
1665
+ - cert/lib
1666
+ - pem/lib
1662
1667
  - produce/lib
1663
1668
  - spaceship/lib
1664
- - deliver/lib
1665
- - pilot/lib
1669
+ - match/lib
1666
1670
  - snapshot/lib
1667
- - sigh/lib
1668
- - pem/lib
1669
- - frameit/lib
1670
1671
  - scan/lib
1671
- - supply/lib
1672
- - fastlane_core/lib
1672
+ - pilot/lib
1673
1673
  required_ruby_version: !ruby/object:Gem::Requirement
1674
1674
  requirements:
1675
1675
  - - ">="