fastlane-plugin-testbm 0.1.0 → 0.1.5
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: 4c1e70e9c2d4d4e8334df77d0627165b1620b5756fd736b1771083200e2bd1bc
|
4
|
+
data.tar.gz: 7967cb52eedc3cef357e3066695a03a84801aed2df42b4c1cc3a4f252ebcb274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36c8e0f2b609e22ac67245bddbdad66719750fc3b2ae3e6c47b84837b74a15a9d8da7492a635e2da0d159a5ce683025a598cae17404120dab316e102de74c213
|
7
|
+
data.tar.gz: f83ab5d7604297e357547f67f58b78f66809291d03b9e826b22921116ad60f34436efcb0bea7c3e79ebbde9ec19221bba4d859e2ab533135f2ac9c044915ab79
|
@@ -0,0 +1,66 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module Actions
|
5
|
+
class ChatAction < Action
|
6
|
+
def self.run(params)
|
7
|
+
slack_icon = params[:slack_icon]
|
8
|
+
chat_message = params[:chat_message]
|
9
|
+
slack_url = params[:slack_url]
|
10
|
+
slack(
|
11
|
+
message: chat_message,
|
12
|
+
success: true,
|
13
|
+
slack_url: slack_url,
|
14
|
+
icon_url: slack_icon,
|
15
|
+
username: "Bemobile Fastlane Plugin - #{ENV["PRIVATE_APP_NAME"]}"
|
16
|
+
)
|
17
|
+
UI.message("Message sent to Slack!")
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.description
|
21
|
+
"Returns hello world"
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.authors
|
25
|
+
["Bemobile"]
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.return_value
|
29
|
+
# If your method provides a return value, you can describe here what it does
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.details
|
33
|
+
# Optional:
|
34
|
+
"Just a test plugin"
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.available_options
|
38
|
+
[
|
39
|
+
FastlaneCore::ConfigItem.new(key: :chat_message,
|
40
|
+
env_name: "CHAT_MESSAGE",
|
41
|
+
description: "The chat message to be sent to Slack",
|
42
|
+
optional: false,
|
43
|
+
type: String),
|
44
|
+
FastlaneCore::ConfigItem.new(key: :slack_icon,
|
45
|
+
env_name: "SLACK_ICON",
|
46
|
+
description: "The icon to be posted to Slack",
|
47
|
+
optional: false,
|
48
|
+
type: String),
|
49
|
+
FastlaneCore::ConfigItem.new(key: :slack_url,
|
50
|
+
env_name: "SLACK_URL",
|
51
|
+
description: "The webhook's url to where we will post in Slack",
|
52
|
+
optional: false,
|
53
|
+
type: String),
|
54
|
+
]
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.is_supported?(platform)
|
58
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
59
|
+
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
60
|
+
#
|
61
|
+
# [:ios, :mac, :android].include?(platform)
|
62
|
+
true
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module Actions
|
5
|
+
class SalutationAction < Action
|
6
|
+
def self.run(params)
|
7
|
+
UI.message("Hello World!" + params[:person_name])
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.description
|
11
|
+
"Returns hello world"
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.authors
|
15
|
+
["Bemobile"]
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.return_value
|
19
|
+
# If your method provides a return value, you can describe here what it does
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.details
|
23
|
+
# Optional:
|
24
|
+
"Just a test plugin"
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.available_options
|
28
|
+
[
|
29
|
+
FastlaneCore::ConfigItem.new(key: :person_name,
|
30
|
+
env_name: "PERSON_NAME",
|
31
|
+
description: "The person's name",
|
32
|
+
optional: false,
|
33
|
+
type: String)
|
34
|
+
]
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.is_supported?(platform)
|
38
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
39
|
+
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
40
|
+
#
|
41
|
+
# [:ios, :mac, :android].include?(platform)
|
42
|
+
true
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-testbm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bemobile
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -145,6 +145,8 @@ files:
|
|
145
145
|
- LICENSE
|
146
146
|
- README.md
|
147
147
|
- lib/fastlane/plugin/testbm.rb
|
148
|
+
- lib/fastlane/plugin/testbm/actions/chat_action.rb
|
149
|
+
- lib/fastlane/plugin/testbm/actions/salutation_action.rb
|
148
150
|
- lib/fastlane/plugin/testbm/actions/testbm_action.rb
|
149
151
|
- lib/fastlane/plugin/testbm/helper/testbm_helper.rb
|
150
152
|
- lib/fastlane/plugin/testbm/version.rb
|