fastlane-plugin-alioss 0.1.8 → 0.1.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a09acb5a2e00213e57bd51e9a4b06b91ff6ffc1ebf28061330368efb5acd7f14
|
4
|
+
data.tar.gz: 0cc385feb225a88a9f19b3346b08ca79b16e0142e5d2a099f856da9b20ccc72b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253674b3e43382c91e7a46cd1927c8630c66c1b5f6b9daa4c472910447276c2992e122e4243208fa6135b616d48564c374da9578ceae866a8be7b2969907908b
|
7
|
+
data.tar.gz: 820de67e1896e545b728d48bbb3bd7676c397d51e35f292dfd8edde6c9cb489f17d7a2573b6d92705ade954947e40f176884b1c509dc62e05f83cdd1aabec4b1
|
@@ -131,10 +131,12 @@ module Fastlane
|
|
131
131
|
# versionName、versionCode先从output.json文件里取
|
132
132
|
apk_output_json_path = File.join(File.dirname(build_file), "output.json")
|
133
133
|
if File.readable?(apk_output_json_path)
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
134
|
+
apk_output_content = File.read(apk_output_json_path)
|
135
|
+
version_number_regex = /"versionName":"(\d+\.\d+\.\d+)"/.match(apk_output_content)
|
136
|
+
build_number_regex = /"versionCode":(\d+)/.match(apk_output_content)
|
137
|
+
if !version_number_regex.nil? && !build_number_regex.nil?
|
138
|
+
version_number = version_number_regex.captures.first
|
139
|
+
build_number = build_number_regex.captures.first
|
138
140
|
end
|
139
141
|
end
|
140
142
|
# 如果output.json文件里取不到则从Actions.lane_context中取
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- woodwu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|