fastlane-plugin-firebase_management_api 1.1.1 → 1.1.2
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 +4 -4
- data/README.md +9 -9
- data/lib/fastlane/plugin/firebase_management_api/actions/firebase_add_app_action.rb +3 -3
- data/lib/fastlane/plugin/firebase_management_api/actions/firebase_add_app_sha_action.rb +3 -3
- data/lib/fastlane/plugin/firebase_management_api/actions/firebase_download_config_action.rb +2 -2
- data/lib/fastlane/plugin/firebase_management_api/actions/firebase_list_action.rb +2 -2
- data/lib/fastlane/plugin/firebase_management_api/helper/firebase_management_helper.rb +2 -2
- data/lib/fastlane/plugin/firebase_management_api/lib/api.rb +1 -1
- data/lib/fastlane/plugin/firebase_management_api/lib/commands_generator.rb +2 -2
- data/lib/fastlane/plugin/firebase_management_api/lib/manager.rb +3 -3
- data/lib/fastlane/plugin/firebase_management_api/lib/options.rb +1 -1
- data/lib/fastlane/plugin/firebase_management_api/version.rb +2 -2
- data/lib/fastlane/plugin/firebase_management_api.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96f3fac27849aae2c5bb1cf9c41912c2faa614796b0aabecff33f3ba059e1b33
|
4
|
+
data.tar.gz: b6d77370f69ce723e653baa74a97d929997c4c1d99dd1f519eb4de22ce5d5358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a1f54d134e1f2aa0c796780cbc214ae1f365eb049403561dd44271793c41c70165dcc85b351a075d0252128e624ca9bd0b92405c651dad190f475343e4ce078
|
7
|
+
data.tar.gz: 53da1d40b350c35467cb5f6a1eee3f9da015761414944078fd34309538c48c802504ba93917e5111ac54df99803dfc438e7777ec8603191195d6c158841faa90
|
data/README.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
#
|
1
|
+
# firebase_management_api `fastlane` Plugin
|
2
2
|
|
3
|
-
[](https://rubygems.org/gems/fastlane-plugin-
|
3
|
+
[](https://rubygems.org/gems/fastlane-plugin-firebase_management_api)
|
4
4
|
|
5
5
|
## Getting Started
|
6
6
|
|
7
|
-
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-
|
7
|
+
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-firebase_management_api`, add it to your project by running:
|
8
8
|
|
9
9
|
```bash
|
10
|
-
fastlane add_plugin
|
10
|
+
fastlane add_plugin firebase_management_api
|
11
11
|
```
|
12
12
|
|
13
|
-
## About
|
13
|
+
## About firebase_management_api
|
14
14
|
|
15
15
|
An unofficial tool to access Firebase project settings. It allows you to create new apps and download config files (GoogleInfo.plist for ios and google-services.json for android).
|
16
16
|
|
@@ -25,25 +25,25 @@ New features like deleting apps or APNs keys/certificates management are promise
|
|
25
25
|
List all projects and apps
|
26
26
|
|
27
27
|
```
|
28
|
-
|
28
|
+
firebase_management_api_list
|
29
29
|
```
|
30
30
|
|
31
31
|
Add app to a project and download config file
|
32
32
|
|
33
33
|
```
|
34
|
-
|
34
|
+
firebase_management_api_add_app
|
35
35
|
```
|
36
36
|
|
37
37
|
Add sha to an android app and download config file
|
38
38
|
|
39
39
|
```
|
40
|
-
|
40
|
+
firebase_management_api_upload_sha
|
41
41
|
```
|
42
42
|
|
43
43
|
Download config file for a client
|
44
44
|
|
45
45
|
```
|
46
|
-
|
46
|
+
firebase_management_api_download_config
|
47
47
|
```
|
48
48
|
|
49
49
|
### Authentication
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Actions
|
3
|
-
class
|
3
|
+
class FirebaseManagementApiAddAppAction < Action
|
4
4
|
|
5
5
|
def self.run(params)
|
6
|
-
manager =
|
6
|
+
manager = FirebaseManagementApi::Manager.new
|
7
7
|
|
8
8
|
# login
|
9
9
|
api = nil
|
@@ -101,7 +101,7 @@ module Fastlane
|
|
101
101
|
|
102
102
|
if params[:download_config] then
|
103
103
|
#Download config
|
104
|
-
Actions::
|
104
|
+
Actions::FirebaseManagementApiDownloadConfigAction.run(
|
105
105
|
service_account_json_path: params[:service_account_json_path],
|
106
106
|
project_id: project_id,
|
107
107
|
app_id: app["appId"],
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Actions
|
3
|
-
class
|
3
|
+
class FirebaseManagementApiUploadShaAction < Action
|
4
4
|
|
5
5
|
def self.run(params)
|
6
|
-
manager =
|
6
|
+
manager = FirebaseManagementApi::Manager.new
|
7
7
|
|
8
8
|
# login
|
9
9
|
api = nil
|
@@ -27,7 +27,7 @@ module Fastlane
|
|
27
27
|
|
28
28
|
if params[:download_config] then
|
29
29
|
#Download config
|
30
|
-
Actions::
|
30
|
+
Actions::FirebaseManagementApiDownloadConfigAction.run(
|
31
31
|
service_account_json_path: params[:service_account_json_path],
|
32
32
|
project_id: project_id,
|
33
33
|
app_id: app["appId"],
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Actions
|
3
|
-
class
|
3
|
+
class FirebaseManagementApiDownloadConfigAction < Action
|
4
4
|
|
5
5
|
def self.run(params)
|
6
|
-
manager =
|
6
|
+
manager = FirebaseManagementApi::Manager.new
|
7
7
|
|
8
8
|
# login
|
9
9
|
api = nil
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Actions
|
3
|
-
class
|
3
|
+
class FirebaseManagementApiListAction < Action
|
4
4
|
|
5
5
|
def self.run(params)
|
6
|
-
manager =
|
6
|
+
manager = FirebaseManagementApi::Manager.new
|
7
7
|
|
8
8
|
# login
|
9
9
|
api = nil
|
@@ -4,9 +4,9 @@ module Fastlane
|
|
4
4
|
UI = FastlaneCore::UI unless Fastlane.const_defined?("UI")
|
5
5
|
|
6
6
|
module Helper
|
7
|
-
class
|
7
|
+
class FirebaseManagementApiHelper
|
8
8
|
# class methods that you define here become available in your action
|
9
|
-
# as `Helper::
|
9
|
+
# as `Helper::FirebaseManagementApiHelper.your_method`
|
10
10
|
#
|
11
11
|
def self.show_message
|
12
12
|
UI.message("Hello from the firebase_management plugin helper!")
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
module
|
2
|
+
module FirebaseManagementApi
|
3
3
|
class Manager
|
4
4
|
|
5
5
|
require 'googleauth'
|
@@ -30,7 +30,7 @@ module Fastlane
|
|
30
30
|
end
|
31
31
|
|
32
32
|
token = credentials.fetch_access_token!["access_token"]
|
33
|
-
@api =
|
33
|
+
@api = FirebaseManagementApi::Api.new(token)
|
34
34
|
@api
|
35
35
|
end
|
36
36
|
|
@@ -43,7 +43,7 @@ module Fastlane
|
|
43
43
|
)
|
44
44
|
|
45
45
|
token = authorizer.fetch_access_token!["access_token"]
|
46
|
-
@api =
|
46
|
+
@api = FirebaseManagementApi::Api.new(token)
|
47
47
|
@api
|
48
48
|
end
|
49
49
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'fastlane/plugin/firebase_management_api/version'
|
2
2
|
|
3
3
|
module Fastlane
|
4
|
-
module
|
4
|
+
module FirebaseManagementApi
|
5
5
|
# Return all .rb files inside the "actions" and "helper" directory
|
6
6
|
def self.all_classes
|
7
7
|
Dir[File.expand_path('**/{actions,helper,lib}/*.rb', File.dirname(__FILE__))]
|
@@ -11,6 +11,6 @@ end
|
|
11
11
|
|
12
12
|
# By default we want to import all available actions and helpers
|
13
13
|
# A plugin can contain any number of actions and plugins
|
14
|
-
Fastlane::
|
14
|
+
Fastlane::FirebaseManagementApi.all_classes.each do |current|
|
15
15
|
require current
|
16
16
|
end
|