fastlane-plugin-ipa_info 0.1.0 → 0.2.0
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: d27db9ddccc09453ed46c7a04468fefad3ff1639
|
4
|
+
data.tar.gz: 1da6b3d1788da9e45dfcd39692dd64bff5676c5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00c1ca82d328d6edc98858bad9cfa9bf2d63995c10bf228fba8ddc3d2d9a786479d1fe59826626cb2cd05c19a23482708e2de801fb02bc5b7ddb7a14045f5597
|
7
|
+
data.tar.gz: 6fc9093d603887b4d59b59959e9a48034f6c9d80445dba077b0e4fd67d6d7f6537cc25b624c8a1424af9eb6a7dbb0c8ee7c8c73c4c0b30735f1a967166757c7c
|
data/README.md
CHANGED
@@ -22,6 +22,15 @@ ipa_info(
|
|
22
22
|
)
|
23
23
|
```
|
24
24
|
|
25
|
+
```
|
26
|
+
lane :build do
|
27
|
+
gym
|
28
|
+
ipa_info
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
|
33
|
+
|
25
34
|
```
|
26
35
|
+----------+------------------+----------+---------+
|
27
36
|
| ipa_info Options |
|
@@ -41,15 +50,25 @@ ipa_info(
|
|
41
50
|
### Example Result
|
42
51
|
|
43
52
|
```
|
44
|
-
|
45
|
-
|
|
46
|
-
|
47
|
-
| Name | Value
|
48
|
-
|
49
|
-
| Xcode | 0941
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
53
|
+
+------------+-----------------------------------+
|
54
|
+
| Build Environment |
|
55
|
+
+------------+-----------------------------------+
|
56
|
+
| Name | Value |
|
57
|
+
+------------+-----------------------------------+
|
58
|
+
| Xcode | 0941 |
|
59
|
+
| XcodeBuild | 9F2000 |
|
60
|
+
| MacOS | macOS High Sierra 10.13.5 (17F77) |
|
61
|
+
+------------+-----------------------------------+
|
62
|
+
|
63
|
+
+--------------+-------+
|
64
|
+
| ipa Information |
|
65
|
+
+--------------+-------+
|
66
|
+
| Name | Value |
|
67
|
+
+--------------+-------+
|
68
|
+
| BundleName | sample|
|
69
|
+
| Version | 1.2.0 |
|
70
|
+
| BuildVersion | 37 |
|
71
|
+
+--------------+-------+
|
53
72
|
```
|
54
73
|
|
55
74
|
## Run tests for this plugin
|
@@ -16,27 +16,33 @@ module Fastlane
|
|
16
16
|
UI.user_error!(e.message)
|
17
17
|
end
|
18
18
|
|
19
|
+
# show build environment info
|
19
20
|
rows = []
|
20
|
-
# show original info
|
21
21
|
[%w[DTXcode Xcode],
|
22
22
|
%w[DTXcodeBuild XcodeBuild]].each do |key, name|
|
23
23
|
rows << [name, result[key]]
|
24
24
|
end
|
25
25
|
|
26
26
|
# add os name and version
|
27
|
-
[%w[BuildMachineOSBuild
|
27
|
+
[%w[BuildMachineOSBuild MacOS]].each do |key, name|
|
28
28
|
mac_os_build = result[key]
|
29
29
|
mac_os_version = Helper::IpaInfoHelper.macos_build_to_macos_version(build: mac_os_build)
|
30
30
|
mac_os_name = Helper::IpaInfoHelper.macos_version_to_os_name(version: mac_os_version)
|
31
31
|
rows << [name, "#{mac_os_name} #{mac_os_version} (#{mac_os_build})"]
|
32
32
|
end
|
33
33
|
|
34
|
+
summary_table = Helper::IpaInfoHelper.summary_table(title: "Build Environment", rows: rows)
|
35
|
+
puts(summary_table)
|
36
|
+
|
37
|
+
# show ipa info
|
38
|
+
rows = []
|
39
|
+
[%w[CFBundleName BundleName],
|
40
|
+
%w[CFBundleShortVersionString Version],
|
41
|
+
%w[CFBundleVersion BuildVersion]].each do |key, name|
|
42
|
+
rows << [name, result[key]]
|
43
|
+
end
|
34
44
|
|
35
|
-
summary_table =
|
36
|
-
title: "Info.Plist",
|
37
|
-
headings: ["Name", "Value"],
|
38
|
-
rows: FastlaneCore::PrintTable.transform_output(rows)
|
39
|
-
).to_s
|
45
|
+
summary_table = Helper::IpaInfoHelper.summary_table(title: "ipa Information", rows: rows)
|
40
46
|
puts(summary_table)
|
41
47
|
end
|
42
48
|
|
@@ -57,14 +63,14 @@ module Fastlane
|
|
57
63
|
|
58
64
|
def self.available_options
|
59
65
|
[
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
66
|
+
FastlaneCore::ConfigItem.new(key: :ipa_file,
|
67
|
+
env_name: 'IPA_FILE',
|
68
|
+
description: 'Path to your ipa file. Optional if you use the `gym`, `ipa` or `xcodebuild` action. ',
|
69
|
+
default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] || Dir['*.ipa'].last,
|
70
|
+
optional: true,
|
71
|
+
verify_block: proc do |value|
|
72
|
+
raise "Couldn't find ipa file".red unless File.exist?(value)
|
73
|
+
end)
|
68
74
|
]
|
69
75
|
end
|
70
76
|
|
@@ -34,6 +34,8 @@ module Fastlane
|
|
34
34
|
"10.12.1"
|
35
35
|
when "16A323" then
|
36
36
|
"10.12.1"
|
37
|
+
else
|
38
|
+
"UnKnown"
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -45,9 +47,18 @@ module Fastlane
|
|
45
47
|
"macOS High Sierra"
|
46
48
|
when 12
|
47
49
|
"macOS Sierra"
|
50
|
+
else
|
51
|
+
"UnKnown"
|
48
52
|
end
|
49
53
|
end
|
50
54
|
|
55
|
+
def self.summary_table(title:, rows:)
|
56
|
+
Terminal::Table.new(
|
57
|
+
title: title,
|
58
|
+
headings: ["Name", "Value"],
|
59
|
+
rows: FastlaneCore::PrintTable.transform_output(rows)
|
60
|
+
).to_s
|
61
|
+
end
|
51
62
|
end
|
52
63
|
end
|
53
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-ipa_info
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tarappo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ipa_analyzer
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.
|
185
|
+
rubygems_version: 2.6.11
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: show ipa info
|