cocoapods-entitlements-statistics 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-entitlements-statistics/app_entitlements_statistics/analyze.rb +1 -1
- data/lib/cocoapods-entitlements-statistics/app_entitlements_statistics/helper.rb +1 -1
- data/lib/cocoapods-entitlements-statistics/gem_version.rb +1 -1
- data/lib/cocoapods_plugin.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 806c4c679346c360dc216008564012f9b4d598c3c130995c1408938cc6355e41
|
4
|
+
data.tar.gz: 795046f116d18b94a2c8a9e67c8e55127216feeb117029ebb931df5b2b017260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78dfb04aa4b57b0f98bc92ed2c9d9f3d90b08b8daf1aaf31e646a0bf6b1f98bef1433187bf5b728ce4e9c457bf267516e00be65d7f9f2acabf0af1355de548fe
|
7
|
+
data.tar.gz: 8e0d8151c7e417b8d8d9fa1ecdef3590e3b8699a995b22eba06c7900267c41db26f77a09ed7ac5bd93ab69bda9e384e98d7409890ab1d9888149b447bf05bfa1
|
@@ -14,7 +14,7 @@ module AppEntitlementsStatistics
|
|
14
14
|
attr_reader :report_path
|
15
15
|
attr_reader :identifier
|
16
16
|
|
17
|
-
def initialize(identifier,report_path
|
17
|
+
def initialize(identifier,report_path: nil, store_path: nil)
|
18
18
|
@identifier = identifier
|
19
19
|
@report_path = report_path
|
20
20
|
@store_path = store_path
|
@@ -35,7 +35,7 @@ module AppEntitlementsStatistics
|
|
35
35
|
|
36
36
|
def report_file_name(path: nil)
|
37
37
|
puts "report_file_name"
|
38
|
-
puts path
|
38
|
+
puts path.class
|
39
39
|
path = path ? "#{path}/entitlements_statistics" : "entitlements_statistics"
|
40
40
|
puts path
|
41
41
|
FileUtils.mkdir_p(path) unless File.exists?(path)
|
data/lib/cocoapods_plugin.rb
CHANGED
@@ -24,7 +24,11 @@ module CocoapodsEntitlementsStatistics
|
|
24
24
|
|
25
25
|
report_path = (!options.nil? && options.has_key?("report_path")) ? options[:report_path] : nil
|
26
26
|
puts "xx=>report_path: #{report_path}"
|
27
|
-
|
27
|
+
if report_path.nil?
|
28
|
+
analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier )
|
29
|
+
else
|
30
|
+
analyzer = AppEntitlementsStatistics::Analyzer.new(project_info.product_bundle_identifier, report_path: report_path )
|
31
|
+
end
|
28
32
|
|
29
33
|
report_real_path = analyzer.analyze
|
30
34
|
Pod::UI.notice "Entitlements Statistics Report : #{File.expand_path(report_real_path)}" unless report_real_path.empty?
|