fastlane 2.130.0.beta.20190823200017 → 2.130.0.beta.20190828200015

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: ff060b30323e069111aa4ad4f61b7459df5cbe94
4
- data.tar.gz: cfe862be0e4ddbed410b9d47829fbf3a6e6ea107
3
+ metadata.gz: fad3dcc3092d9918a51dbd7f7a9622921a1375a3
4
+ data.tar.gz: 4d7a632f7d49f7830a8a5546b2e673a165b599d2
5
5
  SHA512:
6
- metadata.gz: f59a608b40668e023029490fa883f564e42e92c6c9c21b7c96e28b35f24b7d0a389debc9e9b67ed87464f40341a753669fc2e409c73c3326862a53c99b452561
7
- data.tar.gz: 15c74553ddabcb36be92aa8a6dfbefd03c853d57f92eda287f3738246925333459762ad909223124ba42321a816ee0d8ebac8fbe4055bfcabcc048b96be91c5a
6
+ metadata.gz: dc1ce3451d72ce9a49dcd75980fc577c8b0126f7a01187b65bae8b97aad21dca55b3ae09fc80cc72b8296f1dafaf6ad7437849769693b1d36ea778e20ce0b303
7
+ data.tar.gz: 58a3854895aa3cfa9a5ff6a23d9b7ae0db7e569bac97744e51b18426cb36773ef51dea305607420323170994ffe410c7f06832741274fc4bf7fd8ea543312fe0
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.130.0.beta.20190823200017'.freeze
2
+ VERSION = '2.130.0.beta.20190828200015'.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
@@ -72,7 +72,7 @@ module FastlaneCore
72
72
  # @return [boolean] true if building in a known CI environment
73
73
  def self.ci?
74
74
  # Check for Jenkins, Travis CI, ... environment variables
75
- ['JENKINS_HOME', 'JENKINS_URL', 'TRAVIS', 'CIRCLECI', 'CI', 'APPCENTER_BUILD_ID', 'TEAMCITY_VERSION', 'GO_PIPELINE_NAME', 'bamboo_buildKey', 'GITLAB_CI', 'XCS', 'TF_BUILD'].each do |current|
75
+ ['JENKINS_HOME', 'JENKINS_URL', 'TRAVIS', 'CIRCLECI', 'CI', 'APPCENTER_BUILD_ID', 'TEAMCITY_VERSION', 'GO_PIPELINE_NAME', 'bamboo_buildKey', 'GITLAB_CI', 'XCS', 'TF_BUILD', 'GITHUB_ACTION'].each do |current|
76
76
  return true if ENV.key?(current)
77
77
  end
78
78
  return false
@@ -58,7 +58,11 @@ module Gym
58
58
 
59
59
  def setting
60
60
  setting = []
61
- setting << "CODE_SIGN_IDENTITY=#{Gym.config[:codesigning_identity].shellescape}" if Gym.config[:codesigning_identity]
61
+ if Gym.config[:skip_codesigning]
62
+ setting << "CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS='' CODE_SIGNING_ALLOWED=NO"
63
+ elsif Gym.config[:codesigning_identity]
64
+ setting << "CODE_SIGN_IDENTITY=#{Gym.config[:codesigning_identity].shellescape}"
65
+ end
62
66
  setting
63
67
  end
64
68
 
@@ -134,6 +134,11 @@ module Gym
134
134
  description: "After building, don't archive, effectively not including -archivePath param",
135
135
  type: Boolean,
136
136
  optional: true),
137
+ FastlaneCore::ConfigItem.new(key: :skip_codesigning,
138
+ env_name: "GYM_SKIP_CODESIGNING",
139
+ description: "Build without codesigning",
140
+ type: Boolean,
141
+ optional: true),
137
142
  # Very optional
138
143
  FastlaneCore::ConfigItem.new(key: :build_path,
139
144
  env_name: "GYM_BUILD_PATH",
@@ -12,7 +12,42 @@ module Sigh
12
12
  Spaceship.select_team
13
13
  UI.message("Successfully logged in")
14
14
 
15
- Spaceship.provisioning_profile.all(xcode: download_xcode_profiles).each do |profile|
15
+ case Sigh.config[:platform].to_s
16
+ when 'ios'
17
+ download_profiles(Spaceship.provisioning_profile.all(xcode: download_xcode_profiles))
18
+ xcode_profiles_downloaded?(xcode: download_xcode_profiles, supported: true)
19
+ when 'macos'
20
+ download_profiles(Spaceship.provisioning_profile.all(mac: true, xcode: download_xcode_profiles))
21
+ xcode_profiles_downloaded?(xcode: download_xcode_profiles, supported: true)
22
+ when 'tvos'
23
+ download_profiles(Spaceship.provisioning_profile.all_tvos)
24
+ xcode_profiles_downloaded?(xcode: download_xcode_profiles, supported: false)
25
+ end
26
+ end
27
+
28
+ # @param xcode [Bool] Whether or not the user passed the download_xcode_profiles flag
29
+ # @param supported [Bool] Whether or not this platform supports downloading xcode profiles at all
30
+ def xcode_profiles_downloaded?(xcode: false, supported: false)
31
+ if supported
32
+ if xcode
33
+ UI.message("This run also included all Xcode managed provisioning profiles, as you used the `--download_xcode_profiles` flag")
34
+ elsif !xcode
35
+ UI.message("All Xcode managed provisioning profiles were ignored on this, to include them use the `--download_xcode_profiles` flag")
36
+ end
37
+
38
+ elsif !supported
39
+ if xcode
40
+ UI.important("Downloading Xcode managed profiles is not supported for platform #{Sigh.config[:platform]}")
41
+ return
42
+ end
43
+ end
44
+ end
45
+
46
+ # @param profiles [Array] Array of all the provisioning profiles we want to download
47
+ def download_profiles(profiles)
48
+ UI.important("No profiles available for download") if profiles.empty?
49
+
50
+ profiles.each do |profile|
16
51
  if profile.valid?
17
52
  UI.message("Downloading profile '#{profile.name}'...")
18
53
  download_profile(profile)
@@ -20,19 +55,24 @@ module Sigh
20
55
  UI.important("Skipping invalid/expired profile '#{profile.name}'")
21
56
  end
22
57
  end
23
-
24
- if download_xcode_profiles
25
- UI.message("This run also included all Xcode managed provisioning profiles, as you used the `--download_xcode_profiles` flag")
26
- else
27
- UI.message("All Xcode managed provisioning profiles were ignored on this, to include them use the `--download_xcode_profiles` flag")
28
- end
29
58
  end
30
59
 
60
+ # @param profile [ProvisioningProfile] A profile we plan to download and store
31
61
  def download_profile(profile)
32
62
  FileUtils.mkdir_p(Sigh.config[:output_path])
33
63
 
34
64
  type_name = profile.class.pretty_type
35
- profile_name = "#{type_name}_#{profile.uuid}_#{profile.app.bundle_id}.mobileprovision" # default name
65
+ profile_name = "#{type_name}_#{profile.uuid}_#{profile.app.bundle_id}"
66
+
67
+ if Sigh.config[:platform].to_s == 'tvos'
68
+ profile_name += "_tvos"
69
+ end
70
+
71
+ if Sigh.config[:platform].to_s == 'macos'
72
+ profile_name += '.provisionprofile'
73
+ else
74
+ profile_name += '.mobileprovision'
75
+ end
36
76
 
37
77
  output_path = File.join(Sigh.config[:output_path], profile_name)
38
78
  File.open(output_path, "wb") do |f|
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.130.0.beta.20190823200017
4
+ version: 2.130.0.beta.20190828200015
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Revuelta H
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2019-08-23 00:00:00.000000000 Z
30
+ date: 2019-08-28 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1746,23 +1746,23 @@ post_install_message:
1746
1746
  rdoc_options: []
1747
1747
  require_paths:
1748
1748
  - pem/lib
1749
+ - fastlane/lib
1750
+ - fastlane_core/lib
1749
1751
  - sigh/lib
1752
+ - snapshot/lib
1753
+ - screengrab/lib
1754
+ - produce/lib
1755
+ - credentials_manager/lib
1756
+ - precheck/lib
1750
1757
  - gym/lib
1751
- - supply/lib
1752
1758
  - frameit/lib
1753
- - pilot/lib
1754
- - fastlane/lib
1755
- - produce/lib
1756
- - spaceship/lib
1757
- - deliver/lib
1759
+ - supply/lib
1760
+ - scan/lib
1758
1761
  - cert/lib
1759
- - screengrab/lib
1760
- - fastlane_core/lib
1761
- - precheck/lib
1762
- - snapshot/lib
1763
1762
  - match/lib
1764
- - scan/lib
1765
- - credentials_manager/lib
1763
+ - deliver/lib
1764
+ - pilot/lib
1765
+ - spaceship/lib
1766
1766
  required_ruby_version: !ruby/object:Gem::Requirement
1767
1767
  requirements:
1768
1768
  - - ">="