fastlane-plugin-alioss 0.1.2 → 0.1.3
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: 261fcb55a1dccb4f42cc77382b70bab1a48332fa847d16bd37f4dda4914ec6b3
|
4
|
+
data.tar.gz: 365601c71eea52452f546d72898b9664121e86af0328dbf41bdfd2883c0ffad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4ad8c3e99eddc89300e439c581064946cd3ff1eaa7e1d0e104b7640e69319ecdd5149f661073c22040bb669c03a52154b51338f0b0e871192e1eb8e311ceaf4
|
7
|
+
data.tar.gz: 9bdcb756f8bde9a059f48fcf82c646b4b0ee4f531794265702dc0d166bc14484ce3308972001748e3af0c2b3b15140b476badf2c4c6ec5065339e4e5ed03cb2e
|
@@ -95,10 +95,21 @@ module Fastlane
|
|
95
95
|
bucket_path = "#{path_for_app_name}/iOS"
|
96
96
|
when ".apk"
|
97
97
|
bucket_path = "#{path_for_app_name}/Android"
|
98
|
-
|
99
|
-
|
100
|
-
if
|
101
|
-
|
98
|
+
# versionName、versionCode先从output.json文件里取
|
99
|
+
apk_output_json_path = File.join(File.dirname(build_file), "output.json")
|
100
|
+
if File.readable?(apk_output_json_path)
|
101
|
+
apk_output_json = JSON.parse(File.read(apk_output_json_path))
|
102
|
+
build_number = apk_output_json.first["apkInfo"]["versionCode"]
|
103
|
+
version_number = apk_output_json.first["apkInfo"]["versionName"]
|
104
|
+
end
|
105
|
+
# 如果output.json文件里取不到则从Actions.lane_context中取
|
106
|
+
if build_number.nil? || version_number.nil
|
107
|
+
if Actions.lane_context[:ANDROID_VERSION_NAME].nil? || Actions.lane_context[:ANDROID_VERSION_CODE].nil?
|
108
|
+
UI.important "Actions.lane_context 不包含[ANDROID_VERSION_NAME, ANDROID_VERSION_CODE],请配置fastlane env,推荐使用fastlane-plugin-versioning_android。"
|
109
|
+
else
|
110
|
+
build_number = Actions.lane_context[SharedValues::ANDROID_VERSION_CODE]
|
111
|
+
version_number = Actions.lane_context[SharedValues::ANDROID_VERSION_NAME]
|
112
|
+
end
|
102
113
|
end
|
103
114
|
when ".app"
|
104
115
|
bucket_path = "#{path_for_app_name}/Mac"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-alioss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- woodwu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|