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: f9d7f563550b5890aeb5993057c5c824f113a27e476e89ef1644d8e69d3eff05
4
- data.tar.gz: 740d2892bd25efc1d016349bd900f702044e6290eac771eca29b21243a6d2bc3
3
+ metadata.gz: a09acb5a2e00213e57bd51e9a4b06b91ff6ffc1ebf28061330368efb5acd7f14
4
+ data.tar.gz: 0cc385feb225a88a9f19b3346b08ca79b16e0142e5d2a099f856da9b20ccc72b
5
5
  SHA512:
6
- metadata.gz: a3caa856284abb8be0c3f5e8afdbf846c22650e17b6f9a9cc36c79911c6cd81b9ef18cadec2b9dfa445ce058fd03bed31f7087f8243866af461e22145e03ec00
7
- data.tar.gz: 7fabd288ce9847dda1e3f67344135b2244dcffc8169615987de66ba824da2108dd0ddec4c2d9a5500e3a868acd7659c1492040725499524e4bbae009b0ea659a
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
- apk_output_json = JSON.parse(File.read(apk_output_json_path))
135
- if !apk_output_json.first.nil? && !apk_output_json.first["apkInfo"].nil?
136
- build_number = apk_output_json.first["apkInfo"]["versionCode"]
137
- version_number = apk_output_json.first["apkInfo"]["versionName"]
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中取
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Alioss
3
- VERSION = "0.1.8"
3
+ VERSION = "0.1.9"
4
4
  end
5
5
  end
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.8
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: 2019-12-20 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry