fastlane-plugin-applivery 0.4.1 → 0.5

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: 8a53088eb3fdd4b4181eceb886ae217fb4b4f40a
4
- data.tar.gz: e9d6084886036a7b7153bed989cf8b7486cab36a
3
+ metadata.gz: 67f1243d35875eee553f94174eb2327e28e40dc3
4
+ data.tar.gz: c4e3e28811f01526143ed07cfa48c1ecbb7da4b3
5
5
  SHA512:
6
- metadata.gz: af292c2bb9fc4f9387412d63881a10cbd0ff1d2b2abf9554ac43c6058bae4415ddc8fe6a4472204a39fa4629affbd90075bf786e76a5368a21f79307bce1eea6
7
- data.tar.gz: c081b45f9c846a60d8656b0a03ad8549d9d920bdd6c7d21668618f5e1c791f79b2754a64c0d06f12e478beaf9813afa6e822865ca3aba13b6cfae26fa1de8896
6
+ metadata.gz: 22fa7123ec30bf8eb0270c4847164614361af31018c6314ee8f658107ad1efb959d128fea9ba137c2ae4d8e1738ac52824d1dd84f2025dc94f65445a93c2b931
7
+ data.tar.gz: 20cafc6154658d21686c5209458bb6c85398c62e6566986beaafa42613b1746667c8224a4c3eade0ce492c8aa36e059e95f57ba4e6f7557b7d282e62bd47f612
@@ -28,6 +28,16 @@ module Fastlane
28
28
  Actions.sh(command)
29
29
  end
30
30
 
31
+ def self.build_path
32
+ platform = Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]
33
+
34
+ if platform == :ios
35
+ return Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]
36
+ else
37
+ return Actions.lane_context[Actions::SharedValues::GRADLE_APK_OUTPUT_PATH]
38
+ end
39
+ end
40
+
31
41
  def self.description
32
42
  "Upload new build to Applivery"
33
43
  end
@@ -72,7 +82,7 @@ module Fastlane
72
82
  FastlaneCore::ConfigItem.new(key: :build_path,
73
83
  env_name: "APPLIVERY_BUILD_PATH",
74
84
  description: "Your build path",
75
- default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH],
85
+ default_value: self.build_path,
76
86
  optional: true,
77
87
  type: String),
78
88
 
@@ -80,7 +90,8 @@ module Fastlane
80
90
  env_name: "APPLIVERY_NOTIFY",
81
91
  description: "Send an email to your users",
82
92
  default_value: true,
83
- optional: true)
93
+ optional: true,
94
+ is_string: false)
84
95
  ]
85
96
  end
86
97
 
@@ -91,6 +102,20 @@ module Fastlane
91
102
  [:ios, :android].include?(platform)
92
103
  true
93
104
  end
105
+
106
+ def self.category
107
+ :beta
108
+ end
109
+
110
+ def self.example_code
111
+ [
112
+ 'applivery(
113
+ app_id: "YOUR_APP_ID",
114
+ api_key: "YOUR_APP_SECRET",
115
+ name: "YOUR_BUILD_NAME")'
116
+ ]
117
+ end
118
+
94
119
  end
95
120
  end
96
121
  end
@@ -17,6 +17,18 @@ module Fastlane
17
17
  end
18
18
  end
19
19
 
20
+ def self.add_integration_number
21
+ integrationNumber = ENV["XCS_INTEGRATION_NUMBER"] # XCode Server
22
+ command = ""
23
+ if !integrationNumber.nil?
24
+ command += " -F buildNumber=\"#{integrationNumber}\""
25
+ end
26
+ return command
27
+ end
28
+
29
+
30
+ ### GIT Methods ###
31
+
20
32
  def self.is_git?
21
33
  Actions.sh('git rev-parse HEAD')
22
34
  return true
@@ -41,15 +53,6 @@ module Fastlane
41
53
  return command
42
54
  end
43
55
 
44
- def self.add_integration_number
45
- integrationNumber = ENV["XCS_INTEGRATION_NUMBER"] # XCode Server
46
- command = ""
47
- if !integrationNumber.nil?
48
- command += " -F buildNumber=\"#{integrationNumber}\""
49
- end
50
- return command
51
- end
52
-
53
56
  def self.add_git_tag
54
57
  gitTag = Actions.sh('git describe --abbrev=0 --tags')
55
58
  gitTagCommit = Actions.sh("git rev-list -n 1 --abbrev-commit #{gitTag}")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Applivery
3
- VERSION = "0.4.1"
3
+ VERSION = "0.5"
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.4.1
4
+ version: '0.5'
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-11-01 00:00:00.000000000 Z
11
+ date: 2016-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry