fastlane 2.130.0.beta.20190825200030 → 2.130.0.beta.20190826200016
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/gym/lib/gym/generators/build_command_generator.rb +5 -1
- data/gym/lib/gym/options.rb +5 -0
- data/sigh/lib/sigh/download_all.rb +48 -8
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a17027abb3157738a6be66874eb6d96070bc5a9d
|
4
|
+
data.tar.gz: d3442e67fe494c61e6e7d0b8705a99996d639ccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58d0df52875aca0e9fd3b2eb198f32b2609b24baab91bc12dda0eaca1c3af25498bc665092bd1a4c16b766b33d50abdd616946104352446d999501d28034ddb8
|
7
|
+
data.tar.gz: 1944371c1fc9c1a8d7586bc58099d0900701560dae3e50643fe447a0a46f3eb6efe01bb32e6e7cf398deaa21279f27192ab2360f7a01cffd5b509aa327b80941
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.130.0.beta.
|
2
|
+
VERSION = '2.130.0.beta.20190826200016'.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
|
@@ -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.20190826200016
|
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-26 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
|
-
- gym/lib
|
1748
|
+
- snapshot/lib
|
1750
1749
|
- pilot/lib
|
1751
|
-
-
|
1752
|
-
- supply/lib
|
1750
|
+
- credentials_manager/lib
|
1753
1751
|
- screengrab/lib
|
1754
|
-
-
|
1752
|
+
- gym/lib
|
1755
1753
|
- scan/lib
|
1756
|
-
- cert/lib
|
1757
|
-
- fastlane/lib
|
1758
|
-
- snapshot/lib
|
1759
|
-
- credentials_manager/lib
|
1760
|
-
- deliver/lib
|
1761
1754
|
- spaceship/lib
|
1762
1755
|
- precheck/lib
|
1756
|
+
- supply/lib
|
1757
|
+
- produce/lib
|
1758
|
+
- pem/lib
|
1759
|
+
- sigh/lib
|
1760
|
+
- deliver/lib
|
1761
|
+
- cert/lib
|
1763
1762
|
- fastlane_core/lib
|
1763
|
+
- fastlane/lib
|
1764
|
+
- frameit/lib
|
1764
1765
|
- match/lib
|
1765
|
-
- sigh/lib
|
1766
1766
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1767
1767
|
requirements:
|
1768
1768
|
- - ">="
|