fastlane-plugin-analyze_ios_ipa 0.1.0 → 0.1.1
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: a22de7074e0b3e81c7d8d2b55066f909ce9abc6ae1db6f245ba9f7bfe192c408
|
4
|
+
data.tar.gz: 0dd4466b6a962995b36edb0bc0901095a42f09c90b082ee4b905befe1d3545e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24df37171be29948faac5d0fe1d3392d854aede2132b18c8e85d87b6483db4211f0b6d2561633e8c156d810b6bed4576271ce32e7b3122957586442d8533069b
|
7
|
+
data.tar.gz: d3ea89fa790d33cd6a05c4a64f04083c8f39b463bbf39f8b6f698247cd86b39cc7ad0e5a249ac5ad0fbafce97eb7c742a12f063d7f0c700a52e9f8c1494a5c8a
|
data/README.md
CHANGED
@@ -12,15 +12,34 @@ fastlane add_plugin analyze_ios_ipa
|
|
12
12
|
|
13
13
|
## About analyze_ios_ipa
|
14
14
|
|
15
|
-
xx
|
15
|
+
如上是 export method 等于 app-store 时候, 打出的 xx.ipa 解压之后的目录结构:
|
16
|
+
|
17
|
+
```
|
18
|
+
├── Payload
|
19
|
+
│ └── osee2unifiedRelease.app
|
20
|
+
├── SwiftSupport
|
21
|
+
└── Symbols
|
22
|
+
```
|
23
|
+
|
24
|
+
这个 plugin 主要是解析 **Payload/xx.app** 文件结构。
|
16
25
|
|
17
|
-
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
|
18
26
|
|
19
27
|
## Example
|
20
28
|
|
21
29
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
22
30
|
|
23
|
-
|
31
|
+
```ruby
|
32
|
+
lane :hello do
|
33
|
+
analyze_ios_ipa(
|
34
|
+
ipa_path: '/Users/xiongzenghui/Downloads/app.ipa',
|
35
|
+
# group: false
|
36
|
+
)
|
37
|
+
|
38
|
+
puts Actions.lane_context[Actions::SharedValues::AnalyzeIosIpaActionResultHash]
|
39
|
+
puts '-' * 30
|
40
|
+
puts Actions.lane_context[Actions::SharedValues::AnalyzeIosIpaActionResultJSON]
|
41
|
+
end
|
42
|
+
```
|
24
43
|
|
25
44
|
## Run tests for this plugin
|
26
45
|
|
@@ -67,20 +67,20 @@ module Fastlane
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def self.unzip_ipa(ipa, output)
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
return nil unless ipa
|
71
|
+
return nil if ipa.empty?
|
72
|
+
return nil unless File.exist?(ipa)
|
73
73
|
|
74
|
-
|
75
|
-
|
76
|
-
|
74
|
+
## create output dir if need ?
|
75
|
+
FileUtils.rm_rf(output)
|
76
|
+
FileUtils.mkdir_p(output)
|
77
77
|
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
## xx.ipa => xx.zip
|
79
|
+
cp_dest = File.expand_path('app.zip', output)
|
80
|
+
cp_file(ipa, cp_dest)
|
81
81
|
|
82
|
-
|
83
|
-
|
82
|
+
## xx.zip => Payload/
|
83
|
+
unzip_file(cp_dest, output)
|
84
84
|
|
85
85
|
File.expand_path('Payload', output)
|
86
86
|
end
|