fastlane-plugin-publish_dropbox 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +99 -0
- data/lib/fastlane/plugin/publish_dropbox.rb +16 -0
- data/lib/fastlane/plugin/publish_dropbox/actions/publish_dropbox_action.rb +275 -0
- data/lib/fastlane/plugin/publish_dropbox/helper/publish_dropbox_helper.rb +16 -0
- data/lib/fastlane/plugin/publish_dropbox/version.rb +5 -0
- metadata +191 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f40c312a18e32b37066462936b247142cd133ae6
|
4
|
+
data.tar.gz: dc0d935adc1edaacf2875378fadd31cbfa277a8f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 29a4d1d441e9f1c7210e614e45bfc6434d7149045902c20526e2da258763e07e0f514e4b8cb4ffd97e190c67ad8234b232623fa26ac16901ada107ea33cdbdb1
|
7
|
+
data.tar.gz: 974c7ad390dffef0d635ca81bdd2c32c53e7b68c7a9511486bb5bd8213b4fa9cce2971677f2ffe8b6468f0ab0a9f70f7f994523f9018bbc7a6a4e1ef37de6086
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Tommyvanvliet <tommy@twcapps.com>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
# publish_dropbox plugin
|
2
|
+
|
3
|
+
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-publish_dropbox)
|
4
|
+
|
5
|
+
## Getting Started
|
6
|
+
|
7
|
+
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-publish_dropbox`, add it to your project by running:
|
8
|
+
|
9
|
+
```bash
|
10
|
+
fastlane add_plugin publish_dropbox
|
11
|
+
```
|
12
|
+
|
13
|
+
## About publish_dropbox
|
14
|
+
|
15
|
+
This plugin publishes artifacts over to Dropbox via a generated api token from Dropbox Developer API.
|
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.
|
18
|
+
|
19
|
+
## Setting up
|
20
|
+
|
21
|
+
**Note:** Dropbox allows accessing their API only for authorized applications, so in order to use this plugin you must register a Dropbox app.
|
22
|
+
|
23
|
+
In order to register a Dropbox app you need to go to [Dropbox Developers](https://www.dropbox.com/developers/apps) site and create your own app.
|
24
|
+
|
25
|
+
1. You only need a generated token from the Dropbox API (OAuth2 token).
|
26
|
+
2. For Fastlane you only need the app key and app secret if you don't have a token generated. You'll also have to come up with some name for the app, but this is not used by Fastlane in any way.
|
27
|
+
3. You also don't need to apply for production state of your app, and keep it in development phase unless you make heavy use of it. Even Dropbox themselves encourage staying in development state when the app is used as an internal tool. Read more [here](https://www.dropbox.com/developers/reference/developer-guide#production-approval).
|
28
|
+
4. You start with access for one user only, but in development state you can request access for up to 500 users, which should cover most of the use cases for Fastlane integration.
|
29
|
+
|
30
|
+
## Example
|
31
|
+
|
32
|
+
### Basic usage
|
33
|
+
|
34
|
+
dropbox(
|
35
|
+
file_path: '/some/local-path/to/file.txt',
|
36
|
+
dropbox_path: '/path/to/Dropbox/destination/folder',
|
37
|
+
app_key: 'your-dropbox-app-key',
|
38
|
+
app_secret: 'your-dropbox-app-secret'
|
39
|
+
)
|
40
|
+
|
41
|
+
The `dropbox_path` parameter is optional - if not provided, the file at `file_path` would be put in the Dropbox root directory.
|
42
|
+
|
43
|
+
### Write modes
|
44
|
+
|
45
|
+
The default `write_mode` is `add`, which means that plugin will raise an error if the file already exists at the destination path. If you want to allow for overwriting, set the `write_mode` parameter like so:
|
46
|
+
|
47
|
+
dropbox(
|
48
|
+
file_path: '/some/local-path/to/file.txt',
|
49
|
+
dropbox_path: '/path/to/Dropbox/destination/folder',
|
50
|
+
write_mode: 'overwrite',
|
51
|
+
app_key: 'your-dropbox-app-key',
|
52
|
+
app_secret: 'your-dropbox-app-secret'
|
53
|
+
)
|
54
|
+
|
55
|
+
For the more fine-grained overwriting you can set the `update` write mode, and pass the current file revision to update:
|
56
|
+
|
57
|
+
dropbox(
|
58
|
+
file_path: '/some/local-path/to/file.txt',
|
59
|
+
dropbox_path: '/path/to/Dropbox/destination/folder',
|
60
|
+
write_mode: 'update',
|
61
|
+
update_rev: 'filerevisiontoupdate',
|
62
|
+
app_key: 'your-dropbox-app-key',
|
63
|
+
app_secret: 'your-dropbox-app-secret'
|
64
|
+
)
|
65
|
+
|
66
|
+
The `update_rev` parameter is required for `update` write mode and ignored in other cases. Currently, if the current file revision on Dropbox doesn't match the provided revision, the plugin will fail (Dropbox API won't allow for the update).
|
67
|
+
|
68
|
+
## Run tests for this plugin
|
69
|
+
|
70
|
+
To run both the tests, and code style validation, run
|
71
|
+
|
72
|
+
```
|
73
|
+
rake
|
74
|
+
```
|
75
|
+
|
76
|
+
To automatically fix many of the styling issues, use
|
77
|
+
```
|
78
|
+
rubocop -a
|
79
|
+
```
|
80
|
+
|
81
|
+
## Issues and Feedback
|
82
|
+
|
83
|
+
For any other issues and feedback about this plugin, please submit it to this repository.
|
84
|
+
|
85
|
+
## Troubleshooting
|
86
|
+
|
87
|
+
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
88
|
+
|
89
|
+
## Using _fastlane_ Plugins
|
90
|
+
|
91
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
92
|
+
|
93
|
+
## About _fastlane_
|
94
|
+
|
95
|
+
_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
|
96
|
+
|
97
|
+
## Thanks
|
98
|
+
Based on:
|
99
|
+
https://github.com/ayoy/fastlane-plugin-dropbox
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane/plugin/publish_dropbox/version'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module PublishDropbox
|
5
|
+
# Return all .rb files inside the "actions" and "helper" directory
|
6
|
+
def self.all_classes
|
7
|
+
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# By default we want to import all available actions and helpers
|
13
|
+
# A plugin can contain any number of actions and plugins
|
14
|
+
Fastlane::PublishDropbox.all_classes.each do |current|
|
15
|
+
require current
|
16
|
+
end
|
@@ -0,0 +1,275 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/publish_dropbox_helper'
|
3
|
+
require 'net/http'
|
4
|
+
require 'dropbox_api'
|
5
|
+
|
6
|
+
module Fastlane
|
7
|
+
module Actions
|
8
|
+
class PublishDropboxAction < Action
|
9
|
+
KEYCHAIN_SERVICE_NAME = 'fastlane-plugin-dropbox'.freeze
|
10
|
+
|
11
|
+
def self.run(params)
|
12
|
+
UI.message ''
|
13
|
+
UI.message "Starting upload of #{params[:file_path]} to Dropbox"
|
14
|
+
UI.message ''
|
15
|
+
|
16
|
+
params[:keychain] ||= default_keychain
|
17
|
+
|
18
|
+
write_mode =
|
19
|
+
if params[:write_mode].nil?
|
20
|
+
'add'
|
21
|
+
elsif params[:write_mode].eql? 'update'
|
22
|
+
if params[:update_rev].nil?
|
23
|
+
UI.user_error! 'You need to specify `update_rev` when using `update` write_mode.'
|
24
|
+
else
|
25
|
+
DropboxApi::Metadata::WriteMode.new({
|
26
|
+
'.tag' => 'update',
|
27
|
+
'update' => params[:update_rev]
|
28
|
+
})
|
29
|
+
end
|
30
|
+
else
|
31
|
+
params[:write_mode]
|
32
|
+
end
|
33
|
+
|
34
|
+
access_token = get_token_from_keychain(params[:keychain], params[:keychain_password])
|
35
|
+
unless access_token
|
36
|
+
if params[:app_token]
|
37
|
+
access_token = params[:app_token]
|
38
|
+
else
|
39
|
+
access_token = request_token(params[:app_key], params[:app_secret])
|
40
|
+
end
|
41
|
+
unless save_token_to_keychain(params[:keychain], access_token)
|
42
|
+
UI.user_error! 'Failed to store access token in the keychain'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
client = DropboxApi::Client.new(access_token)
|
47
|
+
|
48
|
+
output_file = nil
|
49
|
+
|
50
|
+
chunk_size = 157_286_400 # 150 megabytes
|
51
|
+
|
52
|
+
if File.size(params[:file_path]) < chunk_size
|
53
|
+
output_file = upload(client, params[:file_path], destination_path(params), write_mode)
|
54
|
+
else
|
55
|
+
output_file = upload_chunked(client, chunk_size, params[:file_path], destination_path(params), write_mode)
|
56
|
+
end
|
57
|
+
|
58
|
+
if output_file.name != File.basename(params[:file_path])
|
59
|
+
UI.user_error! 'Failed to upload file to Dropbox'
|
60
|
+
else
|
61
|
+
UI.success "File revision: '#{output_file.rev}'"
|
62
|
+
UI.success "Successfully uploaded file to Dropbox at '#{destination_path(params)}'"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.upload(client, file_path, destination_path, write_mode)
|
67
|
+
begin
|
68
|
+
client.upload destination_path, File.read(file_path), mode: write_mode
|
69
|
+
rescue DropboxApi::Errors::UploadWriteFailedError => e
|
70
|
+
UI.user_error! "Failed to upload file to Dropbox. Error message returned by Dropbox API: \"#{e.message}\""
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.upload_chunked(client, chunk_size, file_path, destination_path, write_mode)
|
75
|
+
parts = chunker file_path, './part', chunk_size
|
76
|
+
UI.message ''
|
77
|
+
UI.important "The archive is a big file so we're uploading it in 150MB chunks"
|
78
|
+
UI.message ''
|
79
|
+
|
80
|
+
begin
|
81
|
+
UI.message "Uploading part #1 (#{File.size(parts[0])} bytes)..."
|
82
|
+
cursor = client.upload_session_start File.read(parts[0])
|
83
|
+
parts[1..parts.size].each_with_index do |part, index|
|
84
|
+
UI.message "Uploading part ##{index + 2} (#{File.size(part)} bytes)..."
|
85
|
+
client.upload_session_append_v2 cursor, File.read(part)
|
86
|
+
end
|
87
|
+
|
88
|
+
client.upload_session_finish cursor, DropboxApi::Metadata::CommitInfo.new('path' => destination_path,
|
89
|
+
'mode' => write_mode)
|
90
|
+
rescue DropboxApi::Errors::UploadWriteFailedError => e
|
91
|
+
UI.user_error! "Error uploading file to Dropbox: \"#{e.message}\""
|
92
|
+
ensure
|
93
|
+
parts.each { |part| File.delete(part) }
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.destination_path(params)
|
98
|
+
"#{params[:dropbox_path]}/#{File.basename(params[:file_path])}"
|
99
|
+
end
|
100
|
+
|
101
|
+
def self.get_token_from_keychain(keychain, password)
|
102
|
+
other_action.unlock_keychain(
|
103
|
+
path: keychain,
|
104
|
+
password: password
|
105
|
+
)
|
106
|
+
token = `security find-generic-password -s #{KEYCHAIN_SERVICE_NAME} -w "#{keychain}" 2>/dev/null`.chomp
|
107
|
+
$CHILD_STATUS >> 8 == 0 ? token : nil
|
108
|
+
end
|
109
|
+
|
110
|
+
def self.save_token_to_keychain(keychain, access_token)
|
111
|
+
`security add-generic-password -a #{KEYCHAIN_SERVICE_NAME} -s #{KEYCHAIN_SERVICE_NAME} -w "#{access_token}" "#{keychain}"`
|
112
|
+
$CHILD_STATUS >> 8 == 0
|
113
|
+
end
|
114
|
+
|
115
|
+
def self.chunker(f_in, out_pref, chunksize)
|
116
|
+
parts = []
|
117
|
+
File.open(f_in, 'r') do |fh_in|
|
118
|
+
until fh_in.eof?
|
119
|
+
part = "#{out_pref}_#{format('%05d', (fh_in.pos / chunksize))}"
|
120
|
+
File.open(part, 'w') do |fh_out|
|
121
|
+
fh_out << fh_in.read(chunksize)
|
122
|
+
end
|
123
|
+
parts << part
|
124
|
+
end
|
125
|
+
end
|
126
|
+
parts
|
127
|
+
end
|
128
|
+
|
129
|
+
def self.request_token(app_key, app_secret)
|
130
|
+
sh("open 'https://www.dropbox.com/oauth2/authorize?response_type=code&require_role=work&client_id=#{app_key}'")
|
131
|
+
UI.message 'Please autorize fastlane Dropbox plugin to access your Dropbox account via your Dropbox app'
|
132
|
+
authorization_code = UI.input('Once authorized, please paste the authorization code here: ')
|
133
|
+
|
134
|
+
uri = URI('https://api.dropboxapi.com/oauth2/token')
|
135
|
+
req = Net::HTTP::Post.new(uri)
|
136
|
+
req.basic_auth app_key, app_secret
|
137
|
+
req.set_form_data(
|
138
|
+
'grant_type' => 'authorization_code',
|
139
|
+
'code' => authorization_code
|
140
|
+
)
|
141
|
+
|
142
|
+
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
|
143
|
+
http.request(req)
|
144
|
+
end
|
145
|
+
|
146
|
+
case res
|
147
|
+
when Net::HTTPSuccess, Net::HTTPRedirection
|
148
|
+
json = JSON.parse(res.body)
|
149
|
+
access_token = json['access_token']
|
150
|
+
UI.success('Successfully authorized fastlane plugin to access Dropbox')
|
151
|
+
access_token
|
152
|
+
else
|
153
|
+
UI.user_error!("Error during authorization with Dropbox: #{res.code} - #{res.body}")
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# GROUP DOCUMENTATION
|
158
|
+
|
159
|
+
def self.run(params)
|
160
|
+
UI.message("The publish_dropbox plugin is working!")
|
161
|
+
end
|
162
|
+
|
163
|
+
def self.description
|
164
|
+
"This plugin publishes artifacts over to Dropbox via a generated api token from Dropbox Developer API."
|
165
|
+
end
|
166
|
+
|
167
|
+
def self.authors
|
168
|
+
["Tommyvanvliet"]
|
169
|
+
end
|
170
|
+
|
171
|
+
def self.return_value
|
172
|
+
# If your method provides a return value, you can describe here what it does
|
173
|
+
'nil or error message'
|
174
|
+
end
|
175
|
+
|
176
|
+
def self.details
|
177
|
+
# Optional:
|
178
|
+
'You have to authorize the action before using it. The access token is stored in your default keychain'
|
179
|
+
end
|
180
|
+
|
181
|
+
def self.available_options
|
182
|
+
[
|
183
|
+
FastlaneCore::ConfigItem.new(key: :file_path,
|
184
|
+
env_name: 'DROPBOX_FILE_PATH',
|
185
|
+
description: 'Path to the uploaded file',
|
186
|
+
type: String,
|
187
|
+
optional: false,
|
188
|
+
verify_block: proc do |value|
|
189
|
+
UI.user_error!("No file path specified for upload to Dropbox, pass using `file_path: 'path_to_file'`") unless value && !value.empty?
|
190
|
+
UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
191
|
+
end),
|
192
|
+
FastlaneCore::ConfigItem.new(key: :dropbox_path,
|
193
|
+
env_name: 'DROPBOX_PATH',
|
194
|
+
description: 'Path to the destination Dropbox folder',
|
195
|
+
type: String,
|
196
|
+
optional: true),
|
197
|
+
FastlaneCore::ConfigItem.new(key: :write_mode,
|
198
|
+
env_name: 'DROPBOX_WRITE_MODE',
|
199
|
+
description: 'Determines uploaded file write mode. Supports `add`, `overwrite` and `update`',
|
200
|
+
type: String,
|
201
|
+
optional: true,
|
202
|
+
verify_block: proc do |value|
|
203
|
+
UI.command_output("write_mode '#{value}' not recognized. Defaulting to `add`.") unless value =~ /(add|overwrite|update)/
|
204
|
+
end),
|
205
|
+
FastlaneCore::ConfigItem.new(key: :update_rev,
|
206
|
+
env_name: 'DROPBOX_UPDATE_REV',
|
207
|
+
description: 'Revision of the file uploaded in `update` write_mode',
|
208
|
+
type: String,
|
209
|
+
optional: true,
|
210
|
+
verify_block: proc do |value|
|
211
|
+
UI.user_error!("Revision no. must be at least 9 hexadecimal characters ([0-9a-f]).") unless value =~ /[0-9a-f]{9,}/
|
212
|
+
end),
|
213
|
+
FastlaneCore::ConfigItem.new(key: :app_key,
|
214
|
+
env_name: 'DROPBOX_APP_KEY',
|
215
|
+
description: 'App Key of your Dropbox app',
|
216
|
+
type: String,
|
217
|
+
optional: true,
|
218
|
+
verify_block: proc do |value|
|
219
|
+
UI.user_error!("App Key not specified for Dropbox app. Provide your app's App Key or create a new app at https://www.dropbox.com/developers if you don't have an app yet.") unless value && !value.empty?
|
220
|
+
end),
|
221
|
+
FastlaneCore::ConfigItem.new(key: :app_secret,
|
222
|
+
env_name: 'DROPBOX_APP_SECRET',
|
223
|
+
description: 'App Secret of your Dropbox app',
|
224
|
+
type: String,
|
225
|
+
optional: true,
|
226
|
+
verify_block: proc do |value|
|
227
|
+
UI.user_error!("App Secret not specified for Dropbox app. Provide your app's App Secret or create a new app at https://www.dropbox.com/developers if you don't have an app yet.") unless value && !value.empty?
|
228
|
+
end),
|
229
|
+
FastlaneCore::ConfigItem.new(key: :keychain,
|
230
|
+
env_name: 'DROPBOX_TOKEN',
|
231
|
+
description: "Provide your app's App Token or create a new app at https://www.dropbox.com/developers if you don't have an app yet.",
|
232
|
+
type: String,
|
233
|
+
optional: true,
|
234
|
+
verify_block: proc do |value|
|
235
|
+
UI.user_error!("App Token not specified for Dropbox app. Provide your app's App Key or create a new app at https://www.dropbox.com/developers if you don't have an app yet.") unless File.exist?(value),
|
236
|
+
FastlaneCore::ConfigItem.new(key: :keychain,
|
237
|
+
env_name: 'DROPBOX_KEYCHAIN',
|
238
|
+
description: 'Path to keychain where the access token would be stored. Will use default keychain if no value is provided',
|
239
|
+
type: String,
|
240
|
+
optional: true,
|
241
|
+
verify_block: proc do |value|
|
242
|
+
UI.user_error!("Couldn't find keychain at path '#{value}'") unless File.exist?(value)
|
243
|
+
end),
|
244
|
+
FastlaneCore::ConfigItem.new(key: :keychain_password,
|
245
|
+
env_name: 'DROPBOX_KEYCHAIN_PASSWORD',
|
246
|
+
description: 'Password to unlock keychain. If not provided, the plugin would ask for password',
|
247
|
+
type: String,
|
248
|
+
optional: true)
|
249
|
+
]
|
250
|
+
end
|
251
|
+
|
252
|
+
def self.example_code
|
253
|
+
[
|
254
|
+
'dropbox(
|
255
|
+
file_path: "./path/to/file.txt",
|
256
|
+
dropbox_path: "/My Dropbox Folder/Text files",
|
257
|
+
write_mode: "add/overwrite/update",
|
258
|
+
update_rev: "a1c10ce0dd78",
|
259
|
+
app_key: "dropbox-app-key",
|
260
|
+
app_secret: "dropbox-app-secret",
|
261
|
+
app_token: "dropbox-app-token"
|
262
|
+
)'
|
263
|
+
]
|
264
|
+
end
|
265
|
+
|
266
|
+
def self.is_supported?(platform)
|
267
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
268
|
+
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
269
|
+
#
|
270
|
+
# [:ios, :mac, :android].include?(platform)
|
271
|
+
true
|
272
|
+
end
|
273
|
+
end
|
274
|
+
end
|
275
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane_core/ui/ui'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
UI = FastlaneCore::UI unless Fastlane.const_defined?("UI")
|
5
|
+
|
6
|
+
module Helper
|
7
|
+
class PublishDropboxHelper
|
8
|
+
# class methods that you define here become available in your action
|
9
|
+
# as `Helper::PublishDropboxHelper.your_method`
|
10
|
+
#
|
11
|
+
def self.show_message
|
12
|
+
UI.message("Hello from the publish_dropbox plugin helper!")
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,191 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fastlane-plugin-publish_dropbox
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tommyvanvliet
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: dropbox_api
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec_junit_formatter
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.49.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.49.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-require_tools
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: simplecov
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: fastlane
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.104.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.104.0
|
153
|
+
description:
|
154
|
+
email: tommy@twcapps.com
|
155
|
+
executables: []
|
156
|
+
extensions: []
|
157
|
+
extra_rdoc_files: []
|
158
|
+
files:
|
159
|
+
- LICENSE
|
160
|
+
- README.md
|
161
|
+
- lib/fastlane/plugin/publish_dropbox.rb
|
162
|
+
- lib/fastlane/plugin/publish_dropbox/actions/publish_dropbox_action.rb
|
163
|
+
- lib/fastlane/plugin/publish_dropbox/helper/publish_dropbox_helper.rb
|
164
|
+
- lib/fastlane/plugin/publish_dropbox/version.rb
|
165
|
+
homepage: https://github.com/tommy071/fastlane-plugin-publish_dropbox
|
166
|
+
licenses:
|
167
|
+
- MIT
|
168
|
+
metadata: {}
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '0'
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
requirements: []
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 2.5.1
|
186
|
+
signing_key:
|
187
|
+
specification_version: 4
|
188
|
+
summary: This plugin publishes artifacts over to Dropbox via a generated api token
|
189
|
+
from Dropbox Developer API.
|
190
|
+
test_files: []
|
191
|
+
has_rdoc:
|