fastlane 1.29.0 → 1.29.1

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: 86852ebd0536d996f2f8e7b10a5a830732c4108f
4
- data.tar.gz: 4a6252d054e162df406b5a2fc8c82d3bd7c22a7f
3
+ metadata.gz: e3e8c6dd6726d0eae740defeb92f5ad865bc76fd
4
+ data.tar.gz: 47497029c60f4c0c239e89d0780d4f240e8ff7e5
5
5
  SHA512:
6
- metadata.gz: f571176efabddf8c5c1a8873327aa832a7585c62bf8c9fc145e4c939056d10352ee1d83204ec844f6ff72d53fa352f9188d5928c07b0599eb45f357fafa9becc
7
- data.tar.gz: 02d7f01d8e561aed2c3263184096318667bf7b6c62e6e567a70b5849a2cd6727422ab0a11e8fb5a79a50440072faecdf311ab959ee20314144e8d5216033f1ce
6
+ metadata.gz: 59fa7edf2efcbf7a0ad5068a11dde66517b6c102f9def8cf6fdb84b45167c7332a1dc47a5fca68963bf877d6b750bc4fb2c0274809efbe2943ef9e211f89188e
7
+ data.tar.gz: 706c1ce6c84461589fb2f1b1f4bf70bea1bd479a3757982d5eb864e22c29d3c315241c8fabd6d248d202a239a9d1280ad0cc51c75971984dd89d271cda2b2bdf
@@ -2,11 +2,15 @@ module Fastlane
2
2
  module Actions
3
3
  class CleanBuildArtifactsAction < Action
4
4
  def self.run(options)
5
- [
5
+ paths = [
6
6
  Actions.lane_context[Actions::SharedValues::IPA_OUTPUT_PATH],
7
- Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_PATH],
8
- Actions.lane_context[Actions::SharedValues::DSYM_OUTPUT_PATH]
9
- ].reject { |file| file.nil? || !File.exist?(file) }.each do |file|
7
+ Actions.lane_context[Actions::SharedValues::DSYM_OUTPUT_PATH],
8
+ Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_PATH]
9
+ ]
10
+
11
+ paths += Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_PATHS] || []
12
+
13
+ paths.reject { |file| file.nil? || !File.exist?(file) }.each do |file|
10
14
  if options[:exclude_pattern]
11
15
  next if file.match(options[:exclude_pattern])
12
16
  end
@@ -83,6 +83,10 @@ module Fastlane
83
83
  end
84
84
  end
85
85
 
86
+ if params[:settings]
87
+ expected_changed_files << 'Settings.bundle/Root.plist'
88
+ end
89
+
86
90
  # get the absolute paths to the files
87
91
  git_add_paths = expected_changed_files.map do |path|
88
92
  File.expand_path(File.join(repo_pathname, path))
@@ -128,6 +132,12 @@ module Fastlane
128
132
  description: "Forces the commit, even if other files than the ones containing the version number have been modified",
129
133
  optional: true,
130
134
  default_value: false,
135
+ is_string: false),
136
+ FastlaneCore::ConfigItem.new(key: :settings,
137
+ env_name: "FL_COMMIT_INCLUDE_SETTINGS",
138
+ description: "Include Settings.bundle/Root.plist with version bump",
139
+ optional: true,
140
+ default_value: false,
131
141
  is_string: false)
132
142
  ]
133
143
  end
@@ -17,6 +17,8 @@ module Fastlane
17
17
  values[:provisioning_profile_path] = File.expand_path(sigh_path) if sigh_path
18
18
  end
19
19
 
20
+ values[:export_method] ||= Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_TYPE]
21
+
20
22
  absolute_ipa_path = File.expand_path(Gym::Manager.new.work(values))
21
23
  absolute_dsym_path = absolute_ipa_path.gsub(".ipa", ".app.dSYM.zip")
22
24
 
@@ -35,6 +37,10 @@ module Fastlane
35
37
  "Easily build and sign your app using `gym`"
36
38
  end
37
39
 
40
+ def self.details
41
+ "More information: https://github.com/fastlane/gym"
42
+ end
43
+
38
44
  def self.author
39
45
  "KrauseFx"
40
46
  end
@@ -2,7 +2,9 @@ module Fastlane
2
2
  module Actions
3
3
  module SharedValues
4
4
  SIGH_PROFILE_PATH = :SIGH_PROFILE_PATH
5
+ SIGH_PROFILE_PATHS = :SIGH_PROFILE_PATHS
5
6
  SIGH_UDID = :SIGH_UDID
7
+ SIGH_PROFILE_TYPE = :SIGH_PROFILE_TYPE
6
8
  end
7
9
 
8
10
  class SighAction < Action
@@ -20,14 +22,29 @@ module Fastlane
20
22
  path = Sigh::Manager.start
21
23
 
22
24
  Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = path # absolute path
25
+ Actions.lane_context[SharedValues::SIGH_PROFILE_PATHS] ||= []
26
+ Actions.lane_context[SharedValues::SIGH_PROFILE_PATHS] << path
23
27
  Actions.lane_context[SharedValues::SIGH_UDID] = ENV["SIGH_UDID"] if ENV["SIGH_UDID"] # The UDID of the new profile
24
28
 
29
+ set_profile_type(values, ENV["SIGH_PROFILE_ENTERPRISE"])
30
+
25
31
  return ENV["SIGH_UDID"] # return the UDID of the new profile
26
32
  ensure
27
33
  FastlaneCore::UpdateChecker.show_update_status('sigh', Sigh::VERSION)
28
34
  end
29
35
  end
30
36
 
37
+ def self.set_profile_type(values, enterprise)
38
+ profile_type = "app-store"
39
+ profile_type = "ad-hoc" if values[:adhoc]
40
+ profile_type = "development" if values[:development]
41
+ profile_type = "enterprise" if enterprise
42
+
43
+ Helper.log.info "Setting Provisioning Profile type to '#{profile_type}'"
44
+
45
+ Actions.lane_context[SharedValues::SIGH_PROFILE_TYPE] = profile_type
46
+ end
47
+
31
48
  def self.description
32
49
  "Generates a provisioning profile. Stores the profile in the current folder"
33
50
  end
@@ -36,6 +53,10 @@ module Fastlane
36
53
  "KrauseFx"
37
54
  end
38
55
 
56
+ def self.return_value
57
+ "The UDID of the profile sigh just fetched/generated"
58
+ end
59
+
39
60
  def self.available_options
40
61
  require 'sigh'
41
62
  require 'sigh/options'
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '1.29.0'
2
+ VERSION = '1.29.1'
3
3
  end
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: 1.29.0
4
+ version: 1.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -336,7 +336,7 @@ dependencies:
336
336
  requirements:
337
337
  - - ">="
338
338
  - !ruby/object:Gem::Version
339
- version: 0.10.7
339
+ version: 0.10.8
340
340
  - - "<"
341
341
  - !ruby/object:Gem::Version
342
342
  version: 1.0.0
@@ -346,7 +346,7 @@ dependencies:
346
346
  requirements:
347
347
  - - ">="
348
348
  - !ruby/object:Gem::Version
349
- version: 0.10.7
349
+ version: 0.10.8
350
350
  - - "<"
351
351
  - !ruby/object:Gem::Version
352
352
  version: 1.0.0
@@ -376,7 +376,7 @@ dependencies:
376
376
  requirements:
377
377
  - - ">="
378
378
  - !ruby/object:Gem::Version
379
- version: 0.7.3
379
+ version: 0.8.1
380
380
  - - "<"
381
381
  - !ruby/object:Gem::Version
382
382
  version: 1.0.0
@@ -386,7 +386,7 @@ dependencies:
386
386
  requirements:
387
387
  - - ">="
388
388
  - !ruby/object:Gem::Version
389
- version: 0.7.3
389
+ version: 0.8.1
390
390
  - - "<"
391
391
  - !ruby/object:Gem::Version
392
392
  version: 1.0.0