fastlane-plugin-applivery 0.1.0 → 0.2.0

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: 211b6d5da9325f76cdcbc9d95e61ab273690aa4f
4
- data.tar.gz: c82d5b9d64bb7dc5d5f75f0edf8bfdf33d67c26e
3
+ metadata.gz: eeb72b8d3daf3449ac5684062c947a5bd5432de9
4
+ data.tar.gz: 13461db1eb98d957b2e427d2f15a1c72b0a86127
5
5
  SHA512:
6
- metadata.gz: 3f16d4c85bad5b9aa755831724c4e5312f36205e16eaf73a02b467e2608681ec65f8481438eca715ad270b82fb5f50bab4ee6bfa8b8f9e9c0cf5b600153f0550
7
- data.tar.gz: 678e832af0e4ade89cdb79fef36b4a71caeb6df2323499bbb8baa0ca027330a2c7775ca7499a2a38035ab642359e3d85f41e2ff37eb54cb43c1a837ff967916f
6
+ metadata.gz: a99dd2291e5cf677fb9f48568d0bb6b7d5bb5418c1e88880d28b44e0b53f71adb2a167ef1335e2ad054f3d9bf9c44cebdce6ce85990d0802bd5fee588cc3709f
7
+ data.tar.gz: 27adb793e68033dab1d9d2b3aa84a1c98c31d047ac4f8c67fa9e2abe0bda998b6f9991ce27b522591e352b3a226703b6902e053ba119a4ec4a2ae47667500cf0
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # applivery plugin
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-applivery)
4
+ [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-applivery.svg)](https://badge.fury.io/rb/fastlane-plugin-applivery)
4
5
 
5
6
  ## Getting Started
6
7
 
@@ -9,20 +9,28 @@ module Fastlane
9
9
  tags = params[:tags]
10
10
  build_path = params[:build_path]
11
11
 
12
- UI.message("Starting plugin...")
13
- UI.message("App id: \"#{app_id}\"")
14
- UI.message("Api key: \"#{api_key}\"")
15
- UI.message("Build name: \"#{name}\"")
16
- UI.message("Build notes: \"#{notes}\"")
17
- UI.message("Build tags: \"#{tags}\"")
18
- UI.message("Build path: \"#{build_path}\"")
12
+ platform = Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]
19
13
 
20
- command = "curl \"https://dashboard.applivery.com/api/builds\" -H \"Authorization:\"#{api_key}\"\" -F app=\"#{app_id}\" -F versionName=\"#{name}\" -F notes=\"#{notes}\" -F notify=\"true\" -F os=\"ios\" -F tags=\"#{tags}\" -F package=@\"#{build_path}\""
14
+ if platform == :ios or platform.nil?
15
+ os = "ios"
16
+ end
21
17
 
22
- Actions.sh("pwd")
23
- Actions.sh(command)
18
+ if platform == :android
19
+ os = "android"
20
+ end
24
21
 
22
+ command = "curl \"https://dashboard.applivery.com/api/builds\""
23
+ command += " -H \"Authorization: #{api_key}\""
24
+ command += " -F app='#{app_id}'"
25
+ command += " -F versionName='#{name}'"
26
+ command += " -F notes='#{notes}'"
27
+ command += " -F notify='true'"
28
+ command += " -F os=#{os}"
29
+ command += " -F tags='#{tags}'"
30
+ command += " -F package=@'#{build_path}'"
25
31
 
32
+ UI.message(command)
33
+ Actions.sh(command)
26
34
  end
27
35
 
28
36
  def self.description
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Applivery
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-applivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Jimenez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-26 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry