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: e50bf84e58b635cd553c7df262016d10fb3f6e08
4
- data.tar.gz: b7cd03ca01bbc2e5867e2da7deb485573dac10a7
3
+ metadata.gz: 140ab4155bcd8975951bb52a31cf0ce6b6cfb9d7
4
+ data.tar.gz: 373e97663c6aa15135e03c193fb25982c5b811bc
5
5
  SHA512:
6
- metadata.gz: 2989b856b52b223fafe84805659c9249246ee9bab8160d7a1b5f65c142874273c0a5dd5e1a785c789ee7cfab21908dd8fc74706c06b0c541fb9a0dcd0d334ae1
7
- data.tar.gz: 2ad85100ca3b755087b191edeed98609c50627e455f648017d262375eec5422c19372b343300d897fd977075052cf0514c2f2c53ad8af00c277aded00f8af0d3
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
- # UI.message("The box plugin is working!")
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
- # UI.message(token)
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
- # FastlaneCore::ConfigItem.new(key: :your_option,
51
- # env_name: "BOX_YOUR_OPTION",
52
- # description: "A description of your option",
53
- # optional: false,
54
- # type: String)
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
- UI.message("Hello from the box plugin helper!")
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Box
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-box
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Sui