fastlane-plugin-alioss 0.2.1 → 0.2.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3407ac577c77dbc5a4cd56051df9c1362e8828ce38c2e47ae2d72fc343b2a069
|
4
|
+
data.tar.gz: 4c4b89f30f4d088588bebab53502cd4e26b1eef64d9e29e5fa2f27a660c11962
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3d6c45fe4f62dff19937917010aba10cdb66eb02fdc1ebb18cd38f7ea563231314e03607a21f663e2bc68e21e519422e63e3d5c04f0eef906d047683a169dfb
|
7
|
+
data.tar.gz: 5c79db5cdd586d4c7952e1b282d1293df429b78007b380db3e935894b68fd76eaaf33a0149c4361f88f920cf52c475df439b3e6a88a63d98f085ac6b01b0ca47
|
@@ -7,11 +7,11 @@ require 'json'
|
|
7
7
|
module Fastlane
|
8
8
|
module Actions
|
9
9
|
module SharedValues
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
ALIOSS_BUILD_NUMBER = :ALIOSS_BUILD_NUMBER
|
11
|
+
ALIOSS_VERSION_NUMBER = :ALIOSS_VERSION_NUMBER
|
12
|
+
ALIOSS_PUBLISH_TIMESTAMP = :ALIOSS_PUBLISH_TIMESTAMP
|
13
|
+
ALIOSS_FILE_SIZE = :ALIOSS_FILE_SIZE
|
14
|
+
ALIOSS_DOWNLOAD_URL = :ALIOSS_DOWNLOAD_URL
|
15
15
|
end
|
16
16
|
|
17
17
|
class AliossAction < Action
|
@@ -194,11 +194,11 @@ module Fastlane
|
|
194
194
|
"time" => timestamp.to_i
|
195
195
|
}
|
196
196
|
# Store the build_number, version_number, time, size
|
197
|
-
Actions.lane_context[SharedValues::
|
198
|
-
Actions.lane_context[SharedValues::
|
199
|
-
Actions.lane_context[SharedValues::
|
200
|
-
Actions.lane_context[SharedValues::
|
201
|
-
Actions.lane_context[SharedValues::
|
197
|
+
Actions.lane_context[SharedValues::ALIOSS_BUILD_NUMBER] = build_number
|
198
|
+
Actions.lane_context[SharedValues::ALIOSS_VERSION_NUMBER] = version_number
|
199
|
+
Actions.lane_context[SharedValues::ALIOSS_PUBLISH_TIMESTAMP] = timestamp.to_i
|
200
|
+
Actions.lane_context[SharedValues::ALIOSS_FILE_SIZE] = file_size
|
201
|
+
Actions.lane_context[SharedValues::ALIOSS_DOWNLOAD_URL] = "#{download_domain}#{path_for_app_name}/index.html"
|
202
202
|
|
203
203
|
# 根据不同的平台,将bucket_path记录到json中
|
204
204
|
case File.extname(filename)
|
@@ -274,11 +274,11 @@ module Fastlane
|
|
274
274
|
|
275
275
|
def self.output
|
276
276
|
[
|
277
|
-
['
|
278
|
-
['
|
279
|
-
['
|
280
|
-
['
|
281
|
-
['
|
277
|
+
['ALIOSS_BUILD_NUMBER', 'Update the new build number(version code) of your iOS/Android project'],
|
278
|
+
['ALIOSS_VERSION_NUMBER', 'Update the new version number(version name) of your iOS/Android project'],
|
279
|
+
['ALIOSS_PUBLISH_TIMESTAMP', 'The timestamp of auto-build'],
|
280
|
+
['ALIOSS_FILE_SIZE', 'The size of your ipa/apk file'],
|
281
|
+
['ALIOSS_DOWNLOAD_URL', 'The website url that you can download it']
|
282
282
|
]
|
283
283
|
end
|
284
284
|
|