fastlane-plugin-applivery 0.4.1 → 0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67f1243d35875eee553f94174eb2327e28e40dc3
|
|
4
|
+
data.tar.gz: c4e3e28811f01526143ed07cfa48c1ecbb7da4b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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}")
|
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
|
+
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-
|
|
11
|
+
date: 2016-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|