fastlane-plugin-firebase_app_distribution 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -17
- data/lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_action.rb +15 -4
- data/lib/fastlane/plugin/firebase_app_distribution/helper/firebase_app_distribution_helper.rb +8 -0
- data/lib/fastlane/plugin/firebase_app_distribution/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 839bb3358367db7178eed367005e3ede2a7b5073f25924ea71c96120afdfcbc2
|
4
|
+
data.tar.gz: 4f0316d47fe8c3d0027cb24cc6389448c6e2372dd8413d83c4d6d0f49e7ff3a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38eb5236916ab973cda79be4442dfcfe62faacf3915cf8875131bf4ae703085a30d65e17c3c765e6c53b6adfc66db14e2075d4538549dd68e74ed9342c1830e3
|
7
|
+
data.tar.gz: 5382e2ddbe0081c20435d009826be4a83256aa65c93e48c34b2047f0bd38d074f44360b8939a45daef75546a06a3003259d6f73453ad8ff7f694af2ee6b55290
|
data/README.md
CHANGED
@@ -1,26 +1,15 @@
|
|
1
|
-
# firebase_app_distribution plugin
|
2
1
|
|
3
|
-
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-firebase_app_distribution)
|
4
|
-
|
5
|
-
## Getting Started
|
6
2
|
|
7
|
-
|
8
|
-
|
9
|
-
```bash
|
10
|
-
fastlane add_plugin firebase_app_distribution
|
11
|
-
```
|
3
|
+
# ![Firebase App Distribution](fad-icon.png) Firebase App Distribution
|
12
4
|
|
13
|
-
|
14
|
-
|
15
|
-
Release your beta builds to Firebase App Distro
|
16
|
-
|
17
|
-
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
|
5
|
+
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-firebase_app_distribution)
|
18
6
|
|
19
|
-
|
7
|
+
Firebase App Distribution makes distributing your apps to trusted testers painless. By getting your apps onto testers' devices quickly, you can get feedback early and often. To learn more about Firebase App Distribution, go [here](https://firebase.google.com/docs/app-distribution).
|
20
8
|
|
21
|
-
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
22
9
|
|
23
|
-
|
10
|
+
## Getting Started
|
11
|
+
- [iOS](https://firebase.google.com/docs/app-distribution/ios/distribute-fastlane)
|
12
|
+
- [Android](https://firebase.google.com/docs/app-distribution/android/distribute-fastlane)
|
24
13
|
|
25
14
|
## Run tests for this plugin
|
26
15
|
|
data/lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_action.rb
CHANGED
@@ -9,21 +9,22 @@ require_relative '../helper/firebase_app_distribution_helper'
|
|
9
9
|
module Fastlane
|
10
10
|
module Actions
|
11
11
|
class FirebaseAppDistributionAction < Action
|
12
|
-
DEFAULT_FIREBASE_CLI_PATH = `which firebase
|
12
|
+
DEFAULT_FIREBASE_CLI_PATH = `which firebase`
|
13
13
|
FIREBASECMD_ACTION = "appdistribution:distribute".freeze
|
14
14
|
|
15
15
|
extend Helper::FirebaseAppDistributionHelper
|
16
16
|
|
17
17
|
def self.run(params)
|
18
18
|
params.values # to validate all inputs before looking for the ipa/apk
|
19
|
-
|
20
|
-
cmd = [params[:firebase_cli_path], FIREBASECMD_ACTION]
|
19
|
+
cmd = [params[:firebase_cli_path].chomp, FIREBASECMD_ACTION]
|
21
20
|
cmd << Shellwords.escape(params[:ipa_path] || params[:apk_path])
|
22
21
|
cmd << "--app #{params[:app]}"
|
23
22
|
|
24
23
|
cmd << groups_flag(params)
|
25
24
|
cmd << testers_flag(params)
|
26
25
|
cmd << release_notes_flag(params)
|
26
|
+
cmd << flag_value_if_supplied('--token', :firebase_cli_token, params)
|
27
|
+
cmd << flag_if_supplied('--debug', :debug, params)
|
27
28
|
|
28
29
|
Actions.sh_control_output(
|
29
30
|
cmd.compact.join(" "),
|
@@ -93,6 +94,7 @@ module Fastlane
|
|
93
94
|
optional: false,
|
94
95
|
type: String,
|
95
96
|
verify_block: proc do |value|
|
97
|
+
value.chomp!
|
96
98
|
if value.to_s == "" || !File.exist?(value)
|
97
99
|
UI.user_error!("firebase_cli_path: missing path to firebase cli tool. Please install firebase in $PATH or specify path")
|
98
100
|
end
|
@@ -132,7 +134,16 @@ module Fastlane
|
|
132
134
|
env_name: "FIREBASEAPPDISTRO_RELEASE_NOTES_FILE",
|
133
135
|
description: "Release notes file for this build",
|
134
136
|
optional: true,
|
135
|
-
type: String)
|
137
|
+
type: String),
|
138
|
+
FastlaneCore::ConfigItem.new(key: :firebase_cli_token,
|
139
|
+
description: "Auth token for firebase cli",
|
140
|
+
optional: true,
|
141
|
+
type: String),
|
142
|
+
FastlaneCore::ConfigItem.new(key: :debug,
|
143
|
+
description: "Print verbose debug output",
|
144
|
+
optional: true,
|
145
|
+
default_value: false,
|
146
|
+
is_string: false)
|
136
147
|
]
|
137
148
|
end
|
138
149
|
|
data/lib/fastlane/plugin/firebase_app_distribution/helper/firebase_app_distribution_helper.rb
CHANGED
@@ -26,6 +26,14 @@ module Fastlane
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
def flag_value_if_supplied(flag, param_name, params)
|
30
|
+
"#{flag} #{params[param_name]}" if params[param_name]
|
31
|
+
end
|
32
|
+
|
33
|
+
def flag_if_supplied(flag, param_name, params)
|
34
|
+
flag if params[param_name]
|
35
|
+
end
|
36
|
+
|
29
37
|
##
|
30
38
|
# always return a file for a given content
|
31
39
|
def file_for_contents(parameter_name, params)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-firebase_app_distribution
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Natchev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08
|
11
|
+
date: 2019-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -137,7 +137,8 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.127.1
|
139
139
|
description:
|
140
|
-
email:
|
140
|
+
email:
|
141
|
+
- snatchev@google.com
|
141
142
|
executables: []
|
142
143
|
extensions: []
|
143
144
|
extra_rdoc_files: []
|
@@ -148,7 +149,7 @@ files:
|
|
148
149
|
- lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_action.rb
|
149
150
|
- lib/fastlane/plugin/firebase_app_distribution/helper/firebase_app_distribution_helper.rb
|
150
151
|
- lib/fastlane/plugin/firebase_app_distribution/version.rb
|
151
|
-
homepage:
|
152
|
+
homepage: https://github.com/fastlane-community/fastlane-plugin-firebase_app_distribution
|
152
153
|
licenses:
|
153
154
|
- MIT
|
154
155
|
metadata: {}
|
@@ -167,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
168
|
- !ruby/object:Gem::Version
|
168
169
|
version: '0'
|
169
170
|
requirements: []
|
170
|
-
rubygems_version: 3.0.
|
171
|
+
rubygems_version: 3.0.6
|
171
172
|
signing_key:
|
172
173
|
specification_version: 4
|
173
|
-
summary: Release your beta builds to Firebase App
|
174
|
+
summary: Release your beta builds to Firebase App Distribution. https://firebase.google.com/docs/app-distribution
|
174
175
|
test_files: []
|