fastlane-plugin-box 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 140ab4155bcd8975951bb52a31cf0ce6b6cfb9d7
|
4
|
+
data.tar.gz: 373e97663c6aa15135e03c193fb25982c5b811bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52f9e5d7ffb292157688d58b65e81130553142d95144cdaf1a223b16d31f31c48f860df24c1faa0681d3115b73040f84b3649b2cc767d2ba1bfef90737491c98
|
7
|
+
data.tar.gz: e070e2922177ea533237f1c2a5416ea104d7a31eab4da74fcdb21541c758240aa3972b4101899641e2286fb32ddb35807fa13b5f9e1627923858788663a30473
|
@@ -4,8 +4,9 @@ module Fastlane
|
|
4
4
|
module Actions
|
5
5
|
class BoxAction < Action
|
6
6
|
def self.run(params)
|
7
|
-
|
7
|
+
Actions.verify_gem!('boxr')
|
8
8
|
ipa_file = params[:ipa]
|
9
|
+
UI.message("filename: #{ipa_file}")
|
9
10
|
|
10
11
|
#JWT methods
|
11
12
|
token = Boxr::get_enterprise_token(private_key: ENV['JWT_PRIVATE_KEY'],
|
@@ -14,18 +15,18 @@ module Fastlane
|
|
14
15
|
enterprise_id: ENV['BOX_ENTERPRISE_ID'],
|
15
16
|
client_id: ENV['BOX_CLIENT_ID'],
|
16
17
|
client_secret: ENV['BOX_CLIENT_SECRET'])
|
17
|
-
|
18
|
+
|
18
19
|
# client = Boxr::Client.new #uses ENV['BOX_DEVELOPER_TOKEN']
|
19
20
|
client = Boxr::Client.new(token)
|
20
21
|
|
21
22
|
folder = client.folder_from_path('/')
|
23
|
+
client.create_folder()
|
22
24
|
file = client.upload_file(ipa_file, folder)
|
23
|
-
# file = client.upload_file(ipa_file)
|
24
25
|
updated_file = client.create_shared_link_for_file(file, access: :open)
|
25
26
|
puts "Shared Link: #{updated_file.shared_link.url}"
|
26
27
|
|
27
|
-
items = client.folder_items(Boxr::ROOT)
|
28
|
-
items.each {|i| puts i.name}
|
28
|
+
# items = client.folder_items(Boxr::ROOT)
|
29
|
+
# items.each {|i| puts i.name}
|
29
30
|
end
|
30
31
|
|
31
32
|
def self.description
|
@@ -47,11 +48,11 @@ module Fastlane
|
|
47
48
|
|
48
49
|
def self.available_options
|
49
50
|
[
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
51
|
+
FastlaneCore::ConfigItem.new(key: :ipa,
|
52
|
+
env_name: "BOX_IPA_FILE",
|
53
|
+
description: "the provided ipa file name",
|
54
|
+
optional: true,
|
55
|
+
type: String)
|
55
56
|
]
|
56
57
|
end
|
57
58
|
|
@@ -1,12 +1,14 @@
|
|
1
|
+
|
2
|
+
|
1
3
|
module Fastlane
|
2
4
|
module Helper
|
3
5
|
class BoxHelper
|
4
6
|
# class methods that you define here become available in your action
|
5
7
|
# as `Helper::BoxHelper.your_method`
|
6
8
|
#
|
7
|
-
def self.show_message
|
8
|
-
|
9
|
-
end
|
9
|
+
# def self.show_message
|
10
|
+
# UI.message("Hello from the box plugin helper!")
|
11
|
+
# end
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|