ETLane 0.1.56 → 0.1.59
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/Lanes/CommonFastfile +18 -15
- metadata +2 -3
- data/Lanes/actions/telegram_action.rb +0 -113
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31728468dc73ee8e0a1ba45882672cd3799d1ac4656054005d360d0e80ab7bf0
|
|
4
|
+
data.tar.gz: 3db42382b15e46b53a51d3b89b72d4900496091af41b6c5f8b57912414c4e618
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd5a4e9641823331565f0eb12fb961391e30ac93e3da76c5a16b957ead54b04c135d34180adfcf86ac001b79e448518015e511a6e70c8eae3519722201953f70
|
|
7
|
+
data.tar.gz: dde2dfee28afa9106339d250b685c5f7047ec1379fb70f336a076ac181022b8d26690deb48916f22458e2d6465bad1cd45add88ab111ebcc7b167552ca237966
|
data/Lanes/CommonFastfile
CHANGED
|
@@ -68,6 +68,10 @@ platform :ios do
|
|
|
68
68
|
beta_app_review_info = eval(ENV["ET_BETA_APP_REVIEW_INFO"])
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
+
if ENV["GOOGLE_SERVICES_INFO_PLIST_PATH"]
|
|
72
|
+
upload_symbols_to_crashlytics()
|
|
73
|
+
end
|
|
74
|
+
|
|
71
75
|
exception = nil
|
|
72
76
|
begin
|
|
73
77
|
app_store_connect_api_key(
|
|
@@ -110,18 +114,6 @@ platform :ios do
|
|
|
110
114
|
|
|
111
115
|
end
|
|
112
116
|
|
|
113
|
-
lane :tg do |options|
|
|
114
|
-
ENV["TG_BOT_TOKEN"] = "1444430330:AAHizdTPzbTgTF-rIsYr53ioCyKHc3I2F3Q"
|
|
115
|
-
ENV["TG_CHAT_ID"] = "-1001683750222"
|
|
116
|
-
telegram(
|
|
117
|
-
token: ENV['TG_BOT_TOKEN'], # get token from @BotFather
|
|
118
|
-
chat_id: ENV['TG_CHAT_ID'], # https://stackoverflow.com/questions/33858927/how-to-obtain-the-chat-id-of-a-private-telegram-channel
|
|
119
|
-
text: "Hello world, Telegram!", # Required
|
|
120
|
-
# file: "file.pdf", # Optional. Please note, Bots can currently send files of any type of up to 50 MB in size.
|
|
121
|
-
# mime_type: "application/pdf" # Required if file exist
|
|
122
|
-
)
|
|
123
|
-
end
|
|
124
|
-
|
|
125
117
|
lane :metadata do |options|
|
|
126
118
|
setup_new_session(options)
|
|
127
119
|
username = options[:username]
|
|
@@ -219,15 +211,26 @@ platform :ios do
|
|
|
219
211
|
end
|
|
220
212
|
|
|
221
213
|
lane :increment_and_push do |options|
|
|
222
|
-
|
|
214
|
+
push = options[:push]
|
|
215
|
+
bump = true
|
|
216
|
+
if get_build_number() == ENV["FL_BUILD_NUMBER_BUILD_NUMBER"]
|
|
217
|
+
bump = false
|
|
218
|
+
push = false
|
|
219
|
+
else
|
|
220
|
+
increment_build_number
|
|
221
|
+
end
|
|
223
222
|
bump_type = options[:bump_type]
|
|
224
223
|
if bump_type
|
|
224
|
+
bump = true
|
|
225
225
|
increment_version_number(
|
|
226
226
|
bump_type: bump_type
|
|
227
227
|
)
|
|
228
228
|
end
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
if bump
|
|
230
|
+
commit_bump(message: "Bump up version")
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if push
|
|
231
234
|
push_to_git_remote
|
|
232
235
|
end
|
|
233
236
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ETLane
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.59
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- teanet
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-04-
|
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 'Xcode helper for upload builds and metadata
|
|
14
14
|
|
|
@@ -29,7 +29,6 @@ files:
|
|
|
29
29
|
- Lanes/actions/lokalise_metadata.rb
|
|
30
30
|
- Lanes/actions/lokalise_upload.rb
|
|
31
31
|
- Lanes/actions/previews.rb
|
|
32
|
-
- Lanes/actions/telegram_action.rb
|
|
33
32
|
- Scripts/Package.resolved
|
|
34
33
|
- Scripts/Package.swift
|
|
35
34
|
- Scripts/README.md
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
module Fastlane
|
|
2
|
-
module Actions
|
|
3
|
-
class TelegramAction < Action
|
|
4
|
-
def self.run(params)
|
|
5
|
-
UI.message("Sending message to a telegram channel")
|
|
6
|
-
|
|
7
|
-
token = params[:token]
|
|
8
|
-
chat_id = params[:chat_id]
|
|
9
|
-
text = params[:text]
|
|
10
|
-
parse_mode = params[:parse_mode]
|
|
11
|
-
file_path = params[:file]
|
|
12
|
-
mime_type = params[:mime_type]
|
|
13
|
-
|
|
14
|
-
file = nil
|
|
15
|
-
if file_path != nil
|
|
16
|
-
if File.exist?(file_path)
|
|
17
|
-
if mime_type == nil
|
|
18
|
-
UI.user_error!("The mime type, required for send file")
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
file = UploadIO.new(file_path, mime_type)
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
if file_path != nil && file == nil
|
|
26
|
-
UI.message("Can't find file on path location")
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
method = (file == nil ? "sendMessage" : "sendDocument")
|
|
30
|
-
uri = URI.parse("https://api.telegram.org/bot#{token}/#{method}")
|
|
31
|
-
|
|
32
|
-
http = Net::HTTP.new(uri.host, uri.port)
|
|
33
|
-
if params[:proxy]
|
|
34
|
-
proxy_uri = URI.parse(params[:proxy])
|
|
35
|
-
http = Net::HTTP.new(uri.host, uri.port, proxy_uri.host, proxy_uri.port, proxy_uri.user, proxy_uri.password)
|
|
36
|
-
end
|
|
37
|
-
http.use_ssl = true
|
|
38
|
-
|
|
39
|
-
require 'net/http/post/multipart'
|
|
40
|
-
text_parameter = (file == nil ? "text" : "caption")
|
|
41
|
-
request = Net::HTTP::Post::Multipart.new(uri,
|
|
42
|
-
{
|
|
43
|
-
"chat_id" => chat_id,
|
|
44
|
-
text_parameter => text,
|
|
45
|
-
"parse_mode" => parse_mode,
|
|
46
|
-
"document" => file
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
response = http.request(request)
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def self.description
|
|
53
|
-
"Allows post messages to telegram channel"
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def self.authors
|
|
57
|
-
["sergpetrov"]
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def self.return_value
|
|
61
|
-
response
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
def self.details
|
|
65
|
-
"Allows post messages to telegram channel"
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def self.available_options
|
|
69
|
-
[
|
|
70
|
-
FastlaneCore::ConfigItem.new(key: :token,
|
|
71
|
-
env_name: "TELEGRAM_TOKEN",
|
|
72
|
-
description: "A unique authentication token given when a bot is created",
|
|
73
|
-
optional: false,
|
|
74
|
-
type: String),
|
|
75
|
-
FastlaneCore::ConfigItem.new(key: :chat_id,
|
|
76
|
-
env_name: "TELEGRAM_CHAT_ID",
|
|
77
|
-
description: "Unique identifier for the target chat (not in the format @channel). For getting chat id you can send any message to your bot and get chat id from response https://api.telegram.org/botYOUR_TOKEN/getupdates",
|
|
78
|
-
optional: false,
|
|
79
|
-
type: String),
|
|
80
|
-
FastlaneCore::ConfigItem.new(key: :text,
|
|
81
|
-
env_name: "TELEGRAM_TEXT",
|
|
82
|
-
description: "Text of the message to be sent",
|
|
83
|
-
optional: false,
|
|
84
|
-
type: String),
|
|
85
|
-
FastlaneCore::ConfigItem.new(key: :file,
|
|
86
|
-
env_name: "TELEGRAM_FILE",
|
|
87
|
-
description: "File path to the file to be sent",
|
|
88
|
-
optional: true,
|
|
89
|
-
type: String),
|
|
90
|
-
FastlaneCore::ConfigItem.new(key: :mime_type,
|
|
91
|
-
env_name: "TELEGRAM_FILE_MIME_TYPE",
|
|
92
|
-
description: "Mime type of file to be sent",
|
|
93
|
-
optional: true,
|
|
94
|
-
type: String),
|
|
95
|
-
FastlaneCore::ConfigItem.new(key: :parse_mode,
|
|
96
|
-
env_name: "TELEGRAM_PARSE_MODE",
|
|
97
|
-
description: "Param (Markdown / HTML) for using markdown or HTML support in message",
|
|
98
|
-
optional: true,
|
|
99
|
-
type: String),
|
|
100
|
-
FastlaneCore::ConfigItem.new(key: :proxy,
|
|
101
|
-
env_name: "TELEGRAM_PROXY",
|
|
102
|
-
description: "Proxy URL to be used in network requests. Example: (https://123.45.67.89:80)",
|
|
103
|
-
optional: true,
|
|
104
|
-
type: String)
|
|
105
|
-
]
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
def self.is_supported?(platform)
|
|
109
|
-
true
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
end
|