fastlane-plugin-analyze_ios_ipa 0.1.0 → 0.1.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: fec5a2e4c46d0daf15cb3f87edfa5ec21eb173d30f9b4ad4ae97dff6b131f399
4
- data.tar.gz: dc0bc29517ab852c654c5bc6c08c2f8f2e1ce65db6fee1a4895bf86050f681ee
3
+ metadata.gz: a22de7074e0b3e81c7d8d2b55066f909ce9abc6ae1db6f245ba9f7bfe192c408
4
+ data.tar.gz: 0dd4466b6a962995b36edb0bc0901095a42f09c90b082ee4b905befe1d3545e9
5
5
  SHA512:
6
- metadata.gz: fe52a439560b36db95ec4ad52193454d4979acf994f18ca972b3e4a3af49f47a3cf171520c09f6ef381540ff339811fe58dcbd2471bda06f69da50e46f4fab84
7
- data.tar.gz: 4177b5b9addcffa3a70889c698a4f9f5c39dc14deee0fb20a668b2e43a9fbf3382ea06ed6acdbb6bd746c023ec47dbfcd934167d1a1c74cb98221503480a77c7
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
- **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
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
- # return nil unless ipa
71
- # return nil if ipa.empty?
72
- # return nil unless File.exist?(ipa)
70
+ return nil unless ipa
71
+ return nil if ipa.empty?
72
+ return nil unless File.exist?(ipa)
73
73
 
74
- # ## create output dir if need ?
75
- # FileUtils.rm_rf(output)
76
- # FileUtils.mkdir_p(output)
74
+ ## create output dir if need ?
75
+ FileUtils.rm_rf(output)
76
+ FileUtils.mkdir_p(output)
77
77
 
78
- # ## xx.ipa => xx.zip
79
- # cp_dest = File.expand_path('ipa.zip', output)
80
- # cp_file(ipa, cp_dest)
78
+ ## xx.ipa => xx.zip
79
+ cp_dest = File.expand_path('app.zip', output)
80
+ cp_file(ipa, cp_dest)
81
81
 
82
- # ## xx.zip => Payload/
83
- # unzip_file(cp_dest, output)
82
+ ## xx.zip => Payload/
83
+ unzip_file(cp_dest, output)
84
84
 
85
85
  File.expand_path('Payload', output)
86
86
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AnalyzeIosIpa
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-analyze_ios_ipa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - xiongzenghui