fastlane-plugin-app_info 0.5.1 → 0.7.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9825bac379eacf9d87040a0be599216fd21fbda93be9a553aed04124733e117
|
4
|
+
data.tar.gz: af8379141fcf3a20e15461496e7e4a1f19443ee7833ea9de5113c8cde625b746
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: defb0dc9bd3b4fa4b4f88b20fc7cf921267f26b1ef7ff267486da085a73fbe7d18d3938bf1cae7e6d3a9a52e6e89b9b71e702e50747d61d7685a9ea77cb9ed8b
|
7
|
+
data.tar.gz: 8981fbb724587ff2d3485c3843338f8abb0b215f0481db4e083fabfc87463a4795fe599f4398de9ab6ffe614372acaa03ca2ab80f99471092fcfbc85e9990f9a
|
data/README.md
CHANGED
@@ -12,42 +12,40 @@ fastlane add_plugin app_info
|
|
12
12
|
|
13
13
|
## About app_info
|
14
14
|
|
15
|
-
Teardown tool for mobile app(ipa
|
15
|
+
Teardown tool for mobile app(ipa, apk and aab file), analysis metedata like version, name, icon etc.
|
16
16
|
|
17
17
|
## Configure
|
18
18
|
|
19
19
|
```
|
20
|
-
|
21
|
-
|
|
22
|
-
|
23
|
-
| Parse and dump mobile app(ipa
|
24
|
-
|
|
25
|
-
| Teardown tool for mobile app(ipa
|
26
|
-
|
|
27
|
-
| Created by icyleaf <icyleaf.cn@gmail.com>
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
|
32
|
-
|
33
|
-
| Key | Description
|
34
|
-
|
35
|
-
| file | Path to your ipa
|
36
|
-
| |
|
37
|
-
|
|
38
|
-
|
39
|
-
| | disk size | | |
|
40
|
-
+-------+---------------------------------+----------------+---------+
|
20
|
+
+------------------------------------------------------------------------------------------------------+
|
21
|
+
| app_info |
|
22
|
+
+------------------------------------------------------------------------------------------------------+
|
23
|
+
| Parse and dump mobile app(ipa, apk and aab file) metedata. |
|
24
|
+
| |
|
25
|
+
| Teardown tool for mobile app(ipa, apk and aab file), analysis metedata like version, name, icon etc. |
|
26
|
+
| |
|
27
|
+
| Created by icyleaf <icyleaf.cn@gmail.com> |
|
28
|
+
+------------------------------------------------------------------------------------------------------+
|
29
|
+
|
30
|
+
+-------+--------------------------------------------------------------------------+----------------+---------+
|
31
|
+
| app_info Options |
|
32
|
+
+-------+--------------------------------------------------------------------------+----------------+---------+
|
33
|
+
| Key | Description | Env Var(s) | Default |
|
34
|
+
+-------+--------------------------------------------------------------------------+----------------+---------+
|
35
|
+
| file | Path to your ipa, apk and aab file file. Optional if you use the `gym`, | APP_INFO_FILE | |
|
36
|
+
| | `ipa` or `xcodebuild` action. | | |
|
37
|
+
| clean | Clean cache files to reduce disk size | APP_INFO_CLEAN | true |
|
38
|
+
+-------+--------------------------------------------------------------------------+----------------+---------+
|
41
39
|
* = default value is dependent on the user's system
|
42
40
|
|
43
|
-
|
44
|
-
|
|
45
|
-
|
46
|
-
| Key
|
47
|
-
|
48
|
-
| APP_INFO
|
49
|
-
|
50
|
-
Access the output values using `lane_context[SharedValues::
|
41
|
+
+-------------+-----------------------------------------+
|
42
|
+
| app_info Output Variables |
|
43
|
+
+-------------+-----------------------------------------+
|
44
|
+
| Key | Description |
|
45
|
+
+-------------+-----------------------------------------+
|
46
|
+
| APP_INFO | The JSON formated metadata of given app |
|
47
|
+
+-------------+-----------------------------------------+
|
48
|
+
Access the output values using `lane_context[SharedValues::VARIABLE_NAME]`
|
51
49
|
|
52
50
|
+-----------------------------------------------+
|
53
51
|
| app_info Return Value |
|
@@ -66,7 +64,7 @@ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plu
|
|
66
64
|
|
67
65
|
```text
|
68
66
|
+-----------------------------+-------------------------------------------------+
|
69
|
-
| Summary for app_info 0.
|
67
|
+
| Summary for app_info 0.6.0 |
|
70
68
|
+-----------------------------+-------------------------------------------------+
|
71
69
|
| OS | iOS |
|
72
70
|
| Name | AppInfoDemo |
|
@@ -101,7 +99,7 @@ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plu
|
|
101
99
|
|
102
100
|
```text
|
103
101
|
+--------------------+------------------------------+
|
104
|
-
| Summary for app_info 0.
|
102
|
+
| Summary for app_info 0.6.0 |
|
105
103
|
+--------------------+------------------------------+
|
106
104
|
| OS | Android |
|
107
105
|
| Name | AppInfoDemo |
|
@@ -10,7 +10,7 @@ module Fastlane
|
|
10
10
|
class AppInfoAction < Action
|
11
11
|
def self.run(params)
|
12
12
|
file = params.fetch(:file)
|
13
|
-
UI.user_error! 'You have to either pass an ipa or
|
13
|
+
UI.user_error! 'You have to either pass an ipa, apk or aab file' unless file
|
14
14
|
file = File.expand_path(file)
|
15
15
|
app = ::AppInfo.parse(file)
|
16
16
|
raw = Helper::AppInfoHelper.raw_data(app)
|
@@ -31,7 +31,7 @@ module Fastlane
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.description
|
34
|
-
"Parse and dump mobile app(ipa
|
34
|
+
"Parse and dump mobile app(ipa, apk and aab file) metedata."
|
35
35
|
end
|
36
36
|
|
37
37
|
def self.authors
|
@@ -39,7 +39,7 @@ module Fastlane
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def self.details
|
42
|
-
"Teardown tool for mobile app(ipa
|
42
|
+
"Teardown tool for mobile app(ipa, apk and aab file), analysis metedata like version, name, icon etc."
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.return_value
|
@@ -56,7 +56,7 @@ module Fastlane
|
|
56
56
|
[
|
57
57
|
FastlaneCore::ConfigItem.new(key: :file,
|
58
58
|
env_name: 'APP_INFO_FILE',
|
59
|
-
description: 'Path to your ipa
|
59
|
+
description: 'Path to your ipa, apk and aab file file. Optional if you use the `gym`, `ipa` or `xcodebuild` action. ',
|
60
60
|
default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] || Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] || Dir['*.ipa'].last || Dir['*.apk'].last,
|
61
61
|
optional: true,
|
62
62
|
verify_block: proc do |value|
|
@@ -28,11 +28,10 @@ module Fastlane
|
|
28
28
|
|
29
29
|
app.mobileprovision.mobileprovision.each do |key, value|
|
30
30
|
next if key == 'DeveloperCertificates' || key == 'Name' || key == 'DER-Encoded-Profile'
|
31
|
-
|
32
31
|
obj[upcase(key)] = value
|
33
32
|
end
|
34
33
|
elsif app.os == 'Android'
|
35
|
-
signs = app.signs.map
|
34
|
+
signs = app.signs.map(&:path)
|
36
35
|
issuers = android_certificate_issuer(app)
|
37
36
|
permissions = app.use_permissions
|
38
37
|
features = app.use_features
|
@@ -52,7 +51,7 @@ module Fastlane
|
|
52
51
|
|
53
52
|
def self.common_columns(app)
|
54
53
|
COMMON_COLUMNS.each_with_object({}) do |key, hash|
|
55
|
-
value = key == 'size' ? app.size(true) : app.send(key.to_sym)
|
54
|
+
value = key == 'size' ? app.size(human_size: true) : app.send(key.to_sym)
|
56
55
|
hash[upcase(key)] = value
|
57
56
|
end
|
58
57
|
end
|
@@ -80,7 +79,14 @@ module Fastlane
|
|
80
79
|
end
|
81
80
|
|
82
81
|
def self.upcase(key)
|
83
|
-
|
82
|
+
return key.upcase if key == 'os'
|
83
|
+
|
84
|
+
str = key.dup
|
85
|
+
['-', '_', '\s'].each do |s|
|
86
|
+
str = str.gsub(/(?:#{s}+)([a-z])/) { $1.upcase }
|
87
|
+
end
|
88
|
+
|
89
|
+
return str.gsub(/(\A|\s)([a-z])/) { $1 + $2.upcase }
|
84
90
|
end
|
85
91
|
|
86
92
|
def self.android_certificate_issuer(app)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-app_info
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- icyleaf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: app-info
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.7.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '3'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
29
|
+
version: 2.7.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '3'
|
@@ -148,6 +148,6 @@ requirements: []
|
|
148
148
|
rubygems_version: 3.1.4
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
|
-
summary: Teardown tool for mobile app(ipa
|
152
|
-
icon etc.
|
151
|
+
summary: Teardown tool for mobile app(ipa, apk and aab files), analysis metedata like
|
152
|
+
version, name, icon etc.
|
153
153
|
test_files: []
|