fastlane 2.130.0.beta.20190824200021 → 2.130.0.beta.20190829200051
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e408b1241c17ddac3a3a0b0816609db9da02268
|
4
|
+
data.tar.gz: dddc5b057992d7a9f769b074de2c1f2d290a7c45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 508e0fbdb8cc9dc733d2abb3e15ebf8af38e60e5aea163a0dbd3cb24efe0a71ad523b0c3ec2a58fe7216319bba34a78bcb84f3f6c4f52969b6127d3099cb2a20
|
7
|
+
data.tar.gz: 64b17726892ca6c96bdf395bdc54c0b83044e8f9d3c2d414001d67e39f744d51d84f3d7dbb24585bcf9e9d151ac0f17127ae4e9b5b31b210d7cf0a8435a57415
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.130.0.beta.
|
2
|
+
VERSION = '2.130.0.beta.20190829200051'.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
|
-
|
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
|
|
data/gym/lib/gym/options.rb
CHANGED
@@ -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
|
-
|
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}
|
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.
|
4
|
+
version: 2.130.0.beta.20190829200051
|
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-
|
30
|
+
date: 2019-08-29 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: slack-notifier
|
@@ -1745,24 +1745,24 @@ metadata:
|
|
1745
1745
|
post_install_message:
|
1746
1746
|
rdoc_options: []
|
1747
1747
|
require_paths:
|
1748
|
-
-
|
1749
|
-
- match/lib
|
1750
|
-
- spaceship/lib
|
1751
|
-
- frameit/lib
|
1752
|
-
- supply/lib
|
1753
|
-
- gym/lib
|
1748
|
+
- fastlane_core/lib
|
1754
1749
|
- cert/lib
|
1755
|
-
-
|
1750
|
+
- supply/lib
|
1756
1751
|
- pem/lib
|
1757
|
-
- fastlane_core/lib
|
1758
|
-
- fastlane/lib
|
1759
|
-
- snapshot/lib
|
1760
|
-
- precheck/lib
|
1761
1752
|
- pilot/lib
|
1762
1753
|
- credentials_manager/lib
|
1763
1754
|
- sigh/lib
|
1755
|
+
- fastlane/lib
|
1756
|
+
- gym/lib
|
1757
|
+
- deliver/lib
|
1758
|
+
- precheck/lib
|
1759
|
+
- spaceship/lib
|
1760
|
+
- frameit/lib
|
1764
1761
|
- screengrab/lib
|
1762
|
+
- match/lib
|
1765
1763
|
- scan/lib
|
1764
|
+
- snapshot/lib
|
1765
|
+
- produce/lib
|
1766
1766
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1767
1767
|
requirements:
|
1768
1768
|
- - ">="
|