fastlane 2.0.4 → 2.0.5

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: 5ca1b64fd7d361e26c0a0c7d40f9272e8fa9a5c5
4
- data.tar.gz: 87b70cc8111b10d869694d6409ec44ed79dd40d1
3
+ metadata.gz: e98779f1536361e924e94c8d58f83ecdaa83dd02
4
+ data.tar.gz: 5eb569f5d13d1b2b5017053975d597d60605e547
5
5
  SHA512:
6
- metadata.gz: 3bd03a170265de3f899372b57ed8622344e50b15565e17f71d95e3c59d0085c5afc2b4ce6bc8fbd90b7aa01bd3eb97053ee027ed60fe5124d4bc921ffa15154c
7
- data.tar.gz: 50f8fd703168a1cefb6fbe039a5c85496affce1bc23ad3691ff6e82d97770b9e2119b2462c4c8ea8e83d4b07fd47086ffac89d9abf2f6f651e42e15aca90a825
6
+ metadata.gz: 76f80e307c429575cd59cc15d7e20366d8cf2a10d7a41e6232bf41517dd48fadf12aba5efae508e5cdc551bab83324fb08b5e21914898024ec5bdbf2e32fff03
7
+ data.tar.gz: 52958bdf0465bbb000ed62b0722931bbd1ca9f9c23ac06748135376cb91037529173b210fb2908c22205cfce07f3fc6e6689059ea38b577ba026127db3ca0289
@@ -107,10 +107,32 @@
107
107
  margin-left: 10px;
108
108
  margin-right: 10px;
109
109
  }
110
+ .app-icons img {
111
+ width: 150px;
112
+ }
113
+ .app-icons .app-icon {
114
+ float: left;
115
+ margin-right: 20px;
116
+ }
110
117
  </style>
111
118
  </head>
112
119
 
113
120
  <body>
121
+ <div class="app-icons">
122
+
123
+ <% if @options[:app_icon] %>
124
+ <div class="app-icon">
125
+ Large App Icon:<br>
126
+ <img src="<%= @options[:app_icon] %>">
127
+ </div>
128
+ <% end %>
129
+ <% if @options[:apple_watch_app_icon] %>
130
+ <div class="watch-icon">
131
+ Watch App Icon:<br>
132
+ <img src="<%= @options[:apple_watch_app_icon] %>">
133
+ </div>
134
+ <% end %>
135
+ </div>
114
136
  <% @languages.each do |language| %>
115
137
  <% if @options[:name] %>
116
138
  <div class="app-name">
@@ -52,6 +52,9 @@ module Deliver
52
52
  UploadMetadata.new.load_from_filesystem(options)
53
53
  UploadMetadata.new.assign_defaults(options)
54
54
 
55
+ # Handle app icon / watch icon
56
+ prepare_app_icons(options)
57
+
55
58
  # Validate
56
59
  validate_html(screenshots)
57
60
 
@@ -62,6 +65,20 @@ module Deliver
62
65
  UploadAssets.new.upload(options) # e.g. app icon
63
66
  end
64
67
 
68
+ # If options[:app_icon]/options[:apple_watch_app_icon]
69
+ # is supplied value/path will be used.
70
+ # If it is unset files (app_icon/watch_icon) exists in
71
+ # the fastlane/metadata/ folder, those will be used
72
+ def prepare_app_icons(options = {})
73
+ return unless options[:metadata_path]
74
+
75
+ default_app_icon_path = File.join(options[:metadata_path], "app_icon.png")
76
+ options[:app_icon] ||= default_app_icon_path if File.exist?(default_app_icon_path)
77
+
78
+ default_watch_icon_path = File.join(options[:metadata_path], "watch_icon.png")
79
+ options[:app_icon] ||= default_watch_icon_path if File.exist?(default_watch_icon_path)
80
+ end
81
+
65
82
  # Upload the binary to iTunes Connect
66
83
  def upload_binary
67
84
  UI.message("Uploading binary to iTunes Connect")
@@ -67,6 +67,18 @@ module Deliver
67
67
  end
68
68
 
69
69
  UI.success("Successfully created new configuration files.")
70
+
71
+ # get App icon + watch icon
72
+ if v.large_app_icon.asset_token
73
+ app_icon_path = File.join(path, "app_icon.png")
74
+ File.write(app_icon_path, open(v.large_app_icon.url).read)
75
+ UI.success("Successfully downloaded large app icon")
76
+ end
77
+ if v.watch_app_icon.asset_token
78
+ watch_icon_path = File.join(path, "watch_icon.png")
79
+ File.write(watch_icon_path, open(v.watch_app_icon.url).read)
80
+ UI.success("Successfully downloaded watch icon")
81
+ end
70
82
  end
71
83
 
72
84
  def download_screenshots(deliver_path, options)
Binary file
Binary file
Binary file
@@ -1,3 +1,5 @@
1
+ require 'fastlane_core/tool_collector'
2
+
1
3
  module Fastlane
2
4
  class ActionCollector < FastlaneCore::ToolCollector
3
5
  # Is this an official fastlane action, that is bundled with fastlane?
@@ -0,0 +1,65 @@
1
+ module Fastlane
2
+ module Actions
3
+ class ShAction < Action
4
+ def self.run(params)
5
+ # this is implemented in the sh_helper.rb
6
+ end
7
+
8
+ #####################################################
9
+ # @!group Documentation
10
+ #####################################################
11
+
12
+ def self.description
13
+ "Runs a shell command"
14
+ end
15
+
16
+ def self.details
17
+ [
18
+ "Allows running an arbitrary shell command"
19
+ ].join("\n")
20
+ end
21
+
22
+ def self.available_options
23
+ [
24
+ FastlaneCore::ConfigItem.new(key: :command,
25
+ description: 'Shell command to be executed',
26
+ optional: false,
27
+ is_string: true),
28
+ FastlaneCore::ConfigItem.new(key: :log,
29
+ description: 'Determines whether fastlane should print out the executed command itself and output of the executed command. If command line option --troubleshoot is used, then it overrides this option to true',
30
+ optional: true,
31
+ is_string: false,
32
+ default_value: true),
33
+ FastlaneCore::ConfigItem.new(key: :error_callback,
34
+ description: 'A callback invoked with the command ouptut if there is a non-zero exit status',
35
+ optional: true,
36
+ is_string: true,
37
+ default_value: 'nil')
38
+ ]
39
+ end
40
+
41
+ def self.return_value
42
+ 'Outputs the string and executes it. When running in tests, it returns the actual command instead of executing it'
43
+ end
44
+
45
+ def self.authors
46
+ ["KrauseFx"]
47
+ end
48
+
49
+ def self.is_supported?(platform)
50
+ true
51
+ end
52
+
53
+ def self.example_code
54
+ [
55
+ 'sh("ls")',
56
+ 'sh("git commit -m \'My message\'")'
57
+ ]
58
+ end
59
+
60
+ def self.category
61
+ :misc
62
+ end
63
+ end
64
+ end
65
+ end
@@ -136,7 +136,7 @@ module Fastlane
136
136
  end),
137
137
  FastlaneCore::ConfigItem.new(key: :ipa,
138
138
  env_name: 'TESTFAIRY_IPA_PATH',
139
- description: 'Path to your IPA file. Optional if you use the _gym_ or _xcodebuild_ action',
139
+ description: 'Path to your IPA file for iOS or APK for Android',
140
140
  default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH],
141
141
  verify_block: proc do |value|
142
142
  UI.user_error!("Couldn't find ipa file at path '#{value}'") unless File.exist?(value)
@@ -222,7 +222,7 @@ module Fastlane
222
222
  end
223
223
 
224
224
  def self.is_supported?(platform)
225
- platform == :ios
225
+ [:ios, :android].include? platform
226
226
  end
227
227
  end
228
228
  end
@@ -11,6 +11,16 @@ module Fastlane
11
11
  return true
12
12
  end
13
13
 
14
+ if Helper.bundler?
15
+ # User uses bundler, we don't want to install gems on the fly here
16
+ # Instead tell the user how to add it to their Gemfile
17
+ UI.important("Missing gem '#{gem_name}', please add the following to your local Gemfile:")
18
+ UI.important("")
19
+ UI.command_output("gem \"#{gem_name}\"")
20
+ UI.important("")
21
+ UI.user_error!("Add 'gem \"#{gem_name}\"' to your Gemfile and restart fastlane")
22
+ end
23
+
14
24
  require "rubygems/command_manager"
15
25
  installer = Gem::CommandManager.instance[:install]
16
26
 
@@ -118,7 +118,9 @@ module Fastlane
118
118
  orig_action = method_sym.to_s
119
119
  class_ref = class_reference_from_action_name(alias_found.to_sym)
120
120
  # notify action that it has been used by alias
121
- class_ref.alias_used(orig_action, arguments.first)
121
+ if class_ref.respond_to?(:alias_used)
122
+ class_ref.alias_used(orig_action, arguments.first)
123
+ end
122
124
  end
123
125
  end
124
126
 
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.0.4'.freeze
2
+ VERSION = '2.0.5'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
Binary file
Binary file
Binary file
Binary file
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.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -747,12 +747,15 @@ files:
747
747
  - deliver/lib/deliver/upload_price_tier.rb
748
748
  - deliver/lib/deliver/upload_screenshots.rb
749
749
  - fastlane/README.md
750
+ - fastlane/lib/.DS_Store
751
+ - fastlane/lib/assets/.DS_Store
750
752
  - fastlane/lib/assets/Actions.md.erb
751
753
  - fastlane/lib/assets/AppfileTemplate
752
754
  - fastlane/lib/assets/AppfileTemplateAndroid
753
755
  - fastlane/lib/assets/AvailablePlugins.md.erb
754
756
  - fastlane/lib/assets/DefaultFastfileTemplate
755
757
  - fastlane/lib/assets/FastfileTemplateAndroid
758
+ - fastlane/lib/assets/completions/.DS_Store
756
759
  - fastlane/lib/assets/completions/completion.bash
757
760
  - fastlane/lib/assets/completions/completion.sh
758
761
  - fastlane/lib/assets/completions/completion.zsh
@@ -763,8 +766,10 @@ files:
763
766
  - fastlane/lib/assets/s3_plist_template.erb
764
767
  - fastlane/lib/assets/s3_version_template.erb
765
768
  - fastlane/lib/fastlane.rb
769
+ - fastlane/lib/fastlane/.DS_Store
766
770
  - fastlane/lib/fastlane/action.rb
767
771
  - fastlane/lib/fastlane/action_collector.rb
772
+ - fastlane/lib/fastlane/actions/.DS_Store
768
773
  - fastlane/lib/fastlane/actions/README.md
769
774
  - fastlane/lib/fastlane/actions/actions_helper.rb
770
775
  - fastlane/lib/fastlane/actions/adb.rb
@@ -805,6 +810,7 @@ files:
805
810
  - fastlane/lib/fastlane/actions/delete_keychain.rb
806
811
  - fastlane/lib/fastlane/actions/deliver.rb
807
812
  - fastlane/lib/fastlane/actions/deploygate.rb
813
+ - fastlane/lib/fastlane/actions/device_grid/.DS_Store
808
814
  - fastlane/lib/fastlane/actions/device_grid/README.md
809
815
  - fastlane/lib/fastlane/actions/dotgpg_environment.rb
810
816
  - fastlane/lib/fastlane/actions/download.rb
@@ -896,6 +902,7 @@ files:
896
902
  - fastlane/lib/fastlane/actions/set_info_plist_value.rb
897
903
  - fastlane/lib/fastlane/actions/set_pod_key.rb
898
904
  - fastlane/lib/fastlane/actions/setup_jenkins.rb
905
+ - fastlane/lib/fastlane/actions/sh.rb
899
906
  - fastlane/lib/fastlane/actions/sigh.rb
900
907
  - fastlane/lib/fastlane/actions/skip_docs.rb
901
908
  - fastlane/lib/fastlane/actions/slack.rb
@@ -1013,8 +1020,10 @@ files:
1013
1020
  - fastlane/lib/fastlane/tools.rb
1014
1021
  - fastlane/lib/fastlane/version.rb
1015
1022
  - fastlane_core/README.md
1023
+ - fastlane_core/lib/.DS_Store
1016
1024
  - fastlane_core/lib/assets/XMLTemplate.xml.erb
1017
1025
  - fastlane_core/lib/fastlane_core.rb
1026
+ - fastlane_core/lib/fastlane_core/.DS_Store
1018
1027
  - fastlane_core/lib/fastlane_core/cert_checker.rb
1019
1028
  - fastlane_core/lib/fastlane_core/command_executor.rb
1020
1029
  - fastlane_core/lib/fastlane_core/configuration/commander_generator.rb
@@ -1169,6 +1178,7 @@ files:
1169
1178
  - sigh/lib/sigh/resign.rb
1170
1179
  - sigh/lib/sigh/runner.rb
1171
1180
  - snapshot/README.md
1181
+ - snapshot/lib/.DS_Store
1172
1182
  - snapshot/lib/assets/SnapfileTemplate
1173
1183
  - snapshot/lib/assets/SnapshotHelper.swift
1174
1184
  - snapshot/lib/assets/SnapshotHelper2-3.swift
@@ -1193,9 +1203,11 @@ files:
1193
1203
  - snapshot/lib/snapshot/test_command_generator.rb
1194
1204
  - snapshot/lib/snapshot/update.rb
1195
1205
  - spaceship/README.md
1206
+ - spaceship/lib/.DS_Store
1196
1207
  - spaceship/lib/assets/languageMapping.json
1197
1208
  - spaceship/lib/assets/languageMappingReadable.json
1198
1209
  - spaceship/lib/spaceship.rb
1210
+ - spaceship/lib/spaceship/.DS_Store
1199
1211
  - spaceship/lib/spaceship/babosa_fix.rb
1200
1212
  - spaceship/lib/spaceship/base.rb
1201
1213
  - spaceship/lib/spaceship/client.rb
@@ -1297,7 +1309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1297
1309
  version: '0'
1298
1310
  requirements: []
1299
1311
  rubyforge_project:
1300
- rubygems_version: 2.6.8
1312
+ rubygems_version: 2.6.6
1301
1313
  signing_key:
1302
1314
  specification_version: 4
1303
1315
  summary: The easiest way to automate beta deployments and releases for your iOS and