fastlane 2.122.0.beta.20190428200018 → 2.122.0.beta.20190429200122

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: 526815e38de424f6ff49768f72ebe46d11d4b2b3
4
- data.tar.gz: 54f97c73c05dd892192d4e0706daebe641fecd11
3
+ metadata.gz: 90deb1f84b4290556bf9b77c8a6f8ee1bdc82d1c
4
+ data.tar.gz: 4dd1ab59839c2307c616d9278fea297e616998b8
5
5
  SHA512:
6
- metadata.gz: 1bea8a78f3c5f16a0ca42ed3d1baf3d58a4605f88cf9cae76da67c3f943ba1fc64394052f30265a6a0244df474e258efd329de87a70a0cc46e4b985c71db53d4
7
- data.tar.gz: be7f9e65bcf33454075a4bf2a33aca9d57fe7396bd262ce5a4644c3632ee8de074e4314f988f8b47cf73bab7d016043b11d1e0ff0113363cfc07a88d814953e2
6
+ metadata.gz: a67e3639100b672c881ed6a0f213bc37f1f090dd4c0e11a8fbe3a12df1c9faddccbf4b19ecce06a3a3c397fc005403ce7c762a12bb03453a735922f486869017
7
+ data.tar.gz: 92896c877a8093d098f21487c6132f7c53aedc11be5ac06fdf37ebc75cf71439be18e4daeb72d615351fb0e35b56377f96d29dca95d1aed01bb16e07ab5fd06d
@@ -25,6 +25,7 @@ module Fastlane
25
25
  UI.message("Login successful")
26
26
 
27
27
  app = Spaceship::Tunes::Application.find(params[:app_identifier])
28
+ UI.user_error!("Could not find an app on App Store Connect with app_identifier: #{params[:app_identifier]}") unless app
28
29
  if params[:live]
29
30
  UI.message("Fetching the latest build number for live-version")
30
31
  UI.user_error!("Could not find a live-version of #{params[:app_identifier]} on iTC") unless app.live_version
@@ -49,7 +50,7 @@ module Fastlane
49
50
  UI.message("Fetching the latest build number for version #{version_number}")
50
51
 
51
52
  # Get latest build for version number
52
- build = client.get_builds(filter: { app: app.apple_id, "preReleaseVersion" => pre_release_version_id }, sort: "-uploadedDate", limit: 1).first
53
+ build = client.get_builds(filter: { app: app.apple_id, "preReleaseVersion" => pre_release_version_id }, sort: "-version", limit: 1).first
53
54
  if build
54
55
  build_nr = build["attributes"]["version"]
55
56
  build_nr
@@ -0,0 +1,104 @@
1
+ require 'supply/client'
2
+
3
+ module Fastlane
4
+ module Actions
5
+ class ValidatePlayStoreJsonKeyAction < Action
6
+ def self.run(params)
7
+ FastlaneCore::PrintTable.print_values(
8
+ config: params,
9
+ mask_keys: [:json_key_data],
10
+ title: "Summary for validate_play_store_json_key"
11
+ )
12
+
13
+ begin
14
+ client = Supply::Client.make_from_config(params: params)
15
+ FastlaneCore::UI.success("Successfully established connection to Google Play Store.")
16
+ FastlaneCore::UI.verbose("client: " + client.inspect)
17
+ rescue => e
18
+ UI.error("Could not establish a connection to Google Play Store with this json key file.")
19
+ UI.error("#{e.message}\n#{e.backtrace.join("\n")}") if FastlaneCore::Globals.verbose?
20
+ end
21
+ end
22
+
23
+ def self.description
24
+ "Validate that the Google Play Store `json_key` works"
25
+ end
26
+
27
+ def self.authors
28
+ ["janpio"]
29
+ end
30
+
31
+ def self.details
32
+ "Use this action to test and validate your private key json key file used to connect and authenticate with the Google Play API"
33
+ end
34
+
35
+ def self.example_code
36
+ [
37
+ "validate_play_store_json_key(
38
+ json_key: 'path/to/you/json/key/file'
39
+ )"
40
+ ]
41
+ end
42
+
43
+ def self.available_options
44
+ [
45
+ FastlaneCore::ConfigItem.new(
46
+ key: :json_key,
47
+ env_name: "SUPPLY_JSON_KEY",
48
+ short_option: "-j",
49
+ conflicting_options: [:json_key_data],
50
+ optional: true, # this shouldn't be optional but is until I find out how json_key OR json_key_data can be required
51
+ description: "The path to a file containing service account JSON, used to authenticate with Google",
52
+ code_gen_sensitive: true,
53
+ default_value: CredentialsManager::AppfileConfig.try_fetch_value(:json_key_file),
54
+ default_value_dynamic: true,
55
+ verify_block: proc do |value|
56
+ UI.user_error!("Could not find service account json file at path '#{File.expand_path(value)}'") unless File.exist?(File.expand_path(value))
57
+ UI.user_error!("'#{value}' doesn't seem to be a JSON file") unless FastlaneCore::Helper.json_file?(File.expand_path(value))
58
+ end
59
+ ),
60
+ FastlaneCore::ConfigItem.new(
61
+ key: :json_key_data,
62
+ env_name: "SUPPLY_JSON_KEY_DATA",
63
+ short_option: "-c",
64
+ conflicting_options: [:json_key],
65
+ optional: true,
66
+ description: "The raw service account JSON data used to authenticate with Google",
67
+ code_gen_sensitive: true,
68
+ default_value: CredentialsManager::AppfileConfig.try_fetch_value(:json_key_data_raw),
69
+ default_value_dynamic: true,
70
+ verify_block: proc do |value|
71
+ begin
72
+ JSON.parse(value)
73
+ rescue JSON::ParserError
74
+ UI.user_error!("Could not parse service account json: JSON::ParseError")
75
+ end
76
+ end
77
+ ),
78
+ # stuff
79
+ FastlaneCore::ConfigItem.new(key: :root_url,
80
+ env_name: "SUPPLY_ROOT_URL",
81
+ description: "Root URL for the Google Play API. The provided URL will be used for API calls in place of https://www.googleapis.com/",
82
+ optional: true,
83
+ verify_block: proc do |value|
84
+ UI.user_error!("Could not parse URL '#{value}'") unless value =~ URI.regexp
85
+ end),
86
+ FastlaneCore::ConfigItem.new(key: :timeout,
87
+ env_name: "SUPPLY_TIMEOUT",
88
+ optional: true,
89
+ description: "Timeout for read, open, and send (in seconds)",
90
+ type: Integer,
91
+ default_value: 300)
92
+ ]
93
+ end
94
+
95
+ def self.is_supported?(platform)
96
+ [:android].include?(platform)
97
+ end
98
+
99
+ def self.category
100
+ :misc
101
+ end
102
+ end
103
+ end
104
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.122.0.beta.20190428200018'.freeze
2
+ VERSION = '2.122.0.beta.20190429200122'.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
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.122.0.beta.20190428200018
4
+ version: 2.122.0.beta.20190429200122
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Dee
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2019-04-28 00:00:00.000000000 Z
30
+ date: 2019-04-29 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1184,6 +1184,7 @@ files:
1184
1184
  - fastlane/lib/fastlane/actions/upload_to_app_store.rb
1185
1185
  - fastlane/lib/fastlane/actions/upload_to_play_store.rb
1186
1186
  - fastlane/lib/fastlane/actions/upload_to_testflight.rb
1187
+ - fastlane/lib/fastlane/actions/validate_play_store_json_key.rb
1187
1188
  - fastlane/lib/fastlane/actions/verify_build.rb
1188
1189
  - fastlane/lib/fastlane/actions/verify_pod_keys.rb
1189
1190
  - fastlane/lib/fastlane/actions/verify_xcode.rb
@@ -1691,24 +1692,24 @@ metadata:
1691
1692
  post_install_message:
1692
1693
  rdoc_options: []
1693
1694
  require_paths:
1694
- - snapshot/lib
1695
- - scan/lib
1695
+ - pilot/lib
1696
+ - supply/lib
1697
+ - spaceship/lib
1696
1698
  - match/lib
1699
+ - precheck/lib
1700
+ - snapshot/lib
1701
+ - cert/lib
1697
1702
  - gym/lib
1698
- - supply/lib
1699
- - frameit/lib
1700
- - produce/lib
1701
1703
  - fastlane_core/lib
1702
- - pilot/lib
1703
- - pem/lib
1704
- - cert/lib
1705
1704
  - sigh/lib
1706
1705
  - fastlane/lib
1707
- - deliver/lib
1708
1706
  - screengrab/lib
1707
+ - deliver/lib
1708
+ - scan/lib
1709
+ - produce/lib
1710
+ - frameit/lib
1709
1711
  - credentials_manager/lib
1710
- - spaceship/lib
1711
- - precheck/lib
1712
+ - pem/lib
1712
1713
  required_ruby_version: !ruby/object:Gem::Requirement
1713
1714
  requirements:
1714
1715
  - - ">="