fastlane-plugin-app_info 0.5.0 → 0.6.1

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: ec6c3be09ebd56b7d1a41d93d2db25dc1621342b1fb4e377340d7207622730f2
4
- data.tar.gz: 4f4c9874d37aca154f5fee52723a43959ecb3a49c7592cf82064d1e271750924
3
+ metadata.gz: 5331b0ba320419db20852f755f362c279e91c51195b76f83631840e5905720a2
4
+ data.tar.gz: 4f08558ddc3c1c1e0ee27b50a5fad32b8fcc3ac19a5b3b201b3366e3c5e98fa2
5
5
  SHA512:
6
- metadata.gz: 04604c168bf9f9afc77953948a96ef86facce874432c9985bd179dd418d351f42ebaab8b460c769966291ca66e84480197c66b595e307be27652a08b5a56a28b
7
- data.tar.gz: 58695d47494cedc66f5f412fc31c4c7a343fd158fad29f5216528e65d93a5a1b8112039342eb3885f9ac3787c5208988707bcdc8a34b6ef17499a5b9a521ba3d
6
+ metadata.gz: d54d88a6041eb3d23e50ae6f44ee3af1ee37764cc647b8013533586ae2a05e8d19bfa9b881bc1f9c381d6acd6ee28a9f163030c2ef6eb8fd7876d532a7a95149
7
+ data.tar.gz: 4f4fcf18c6dcaf0732b7a3bd629f31620b8f11eb3512d100679ab3bb91fa1c0a3bb5b99be536a434284909502c9719f504706ece8cfd20175c6999df99ac2e21
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/apk), analysis metedata like version, name, icon etc.
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
- | app_info |
22
- +----------------------------------------------------------------------------------------+
23
- | Parse and dump mobile app(ipa/apk) metedata. |
24
- | |
25
- | Teardown tool for mobile app(ipa/apk), 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 file. | APP_INFO_FILE | |
36
- | | Optional if you use the `gym`, | | |
37
- | | `ipa` or `xcodebuild` action. | | |
38
- | clean | Clean cache files to reduce | APP_INFO_CLEAN | true |
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
- | app_info Output Variables |
45
- +----------+-----------------------------------------+
46
- | Key | Description |
47
- +----------+-----------------------------------------+
48
- | APP_INFO | The JSON formated metadata of given app |
49
- +----------+-----------------------------------------+
50
- Access the output values using `lane_context[SharedValues::APP_INFO]`
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.5.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.5.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 an apk file' unless file
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/apk) metedata."
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/apk), analysis metedata like version, name, icon etc."
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/apk file. Optional if you use the `gym`, `ipa` or `xcodebuild` action. ',
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 { |f| f.path }
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,8 +51,8 @@ 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)
56
- hash[key] = value
54
+ value = key == 'size' ? app.size(human_size: true) : app.send(key.to_sym)
55
+ hash[upcase(key)] = value
57
56
  end
58
57
  end
59
58
 
@@ -80,7 +79,14 @@ module Fastlane
80
79
  end
81
80
 
82
81
  def self.upcase(key)
83
- key == 'os' ? key.upcase : key.split('_').map(&:capitalize).join('')
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)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AppInfo
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.6.1'.freeze
4
4
  end
5
5
  end
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.5.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-08 00:00:00.000000000 Z
11
+ date: 2021-10-11 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.5.2
19
+ version: 2.7.0.beta2
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.5.2
29
+ version: 2.7.0.beta2
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/apk), analysis metedata like version, name,
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: []