fastlane-plugin-firebase_app_distribution 0.2.1 → 0.2.2.pre.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bb962d7530d1226f6f4811578bebe6086c1e1d82222ed5d935e3314cb933a50
|
4
|
+
data.tar.gz: e2cd536750a1b8e328cba78a43329d4bab7988d74fee1f83ececf19963812acd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b439ab0e98082e51dc96f0f29009aa7ffe83aca6c347f3967ee85e68077161cec8621aeac6861470266226132eec2fa1ae2cd3676be081cf97cc909b948e614d
|
7
|
+
data.tar.gz: 9b5777d5e274a92963b57253a81a9866a461f2024f4abf9226b247a65f6e0b4a2f03fc7c439133935115921aadec767048a0a8e68cb03d6a652db36152b7ab60
|
data/lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_action.rb
CHANGED
@@ -20,10 +20,6 @@ module Fastlane
|
|
20
20
|
|
21
21
|
def self.run(params)
|
22
22
|
params.values # to validate all inputs before looking for the ipa/apk
|
23
|
-
auth_token = fetch_auth_token(params[:service_credentials_file], params[:firebase_cli_token])
|
24
|
-
binary_path = params[:ipa_path] || params[:apk_path]
|
25
|
-
platform = lane_platform || platform_from_path(binary_path)
|
26
|
-
fad_api_client = Client::FirebaseAppDistributionApiClient.new(auth_token, platform)
|
27
23
|
|
28
24
|
if params[:app] # Set app_id if it is specified as a parameter
|
29
25
|
app_id = params[:app]
|
@@ -33,10 +29,16 @@ module Fastlane
|
|
33
29
|
app_id = get_ios_app_id_from_archive(archive_path)
|
34
30
|
end
|
35
31
|
end
|
36
|
-
|
37
32
|
if app_id.nil?
|
38
33
|
UI.crash!(ErrorMessage::MISSING_APP_ID)
|
39
34
|
end
|
35
|
+
|
36
|
+
platform = lane_platform || platform_from_app_id(app_id)
|
37
|
+
binary_path = binary_path_from_platform(platform, params[:ipa_path], params[:apk_path])
|
38
|
+
|
39
|
+
auth_token = fetch_auth_token(params[:service_credentials_file], params[:firebase_cli_token])
|
40
|
+
fad_api_client = Client::FirebaseAppDistributionApiClient.new(auth_token, platform)
|
41
|
+
|
40
42
|
release_id = fad_api_client.upload(app_id, binary_path, platform.to_s)
|
41
43
|
if release_id.nil?
|
42
44
|
return
|
@@ -70,16 +72,25 @@ module Fastlane
|
|
70
72
|
Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]
|
71
73
|
end
|
72
74
|
|
73
|
-
def self.
|
74
|
-
|
75
|
-
case binary_path.split('.').last
|
76
|
-
when 'ipa'
|
75
|
+
def self.platform_from_app_id(app_id)
|
76
|
+
if app_id.include?(':ios:')
|
77
77
|
:ios
|
78
|
-
|
78
|
+
elsif app_id.include?(':android:')
|
79
79
|
:android
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
+
def self.binary_path_from_platform(platform, ipa_path, apk_path)
|
84
|
+
case platform
|
85
|
+
when :ios
|
86
|
+
ipa_path
|
87
|
+
when :android
|
88
|
+
apk_path
|
89
|
+
else
|
90
|
+
ipa_path || apk_path
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
83
94
|
def self.available_options
|
84
95
|
if lane_platform == :ios || lane_platform.nil?
|
85
96
|
ipa_path_default = Dir["*.ipa"].sort_by { |x| File.mtime(x) }.last
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-firebase_app_distribution
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.1
|
4
|
+
version: 0.2.2.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Natchev
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-09-
|
13
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: pry
|
@@ -173,9 +173,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
|
-
- - "
|
176
|
+
- - ">"
|
177
177
|
- !ruby/object:Gem::Version
|
178
|
-
version:
|
178
|
+
version: 1.3.1
|
179
179
|
requirements: []
|
180
180
|
rubygems_version: 3.1.2
|
181
181
|
signing_key:
|