fastlane-plugin-ipa_info 0.8.2 → 0.8.3

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: 01742d4f12328334684ce676dd4d347a8728c00d66cbdb5868cd493a275d0947
4
- data.tar.gz: 95ef95fa5b756e0b4242c608eb1d467aed2525a2379b5597b8bb89b13a7a91b6
3
+ metadata.gz: c274242eca7f3f6cef68b370aec94bba735967654c9bcb7c65515fa660f43caa
4
+ data.tar.gz: 992c705f7bee7050e8a5e7d41848e23dcda1b468c9fb83bb63906d6fb539b1d2
5
5
  SHA512:
6
- metadata.gz: 8e54eebcf53a0885e570df99541156fd3dc43549abfca176879a96c7e8ad13903890db463aae1f6d0ded0e95cfe155b6a1b83e5b1cc0441b9253842543882791
7
- data.tar.gz: 95aedea9818581710484f8d3cece34c54d7390ad1d37b1803768c64fc1dbaaf51c26d6fbb35968d2ebf0d9da45fab3fd2492355691dd506d74905ee6a84014ef
6
+ metadata.gz: 6ab5ef92d32a75621c6192bf4a01dc9bb605d54bdf24a3d467f83c1307f7a0d0ff67ac488f212bf9f8a2a2c229aca7b1d7939b21c1399405922e6faf6f30ad15
7
+ data.tar.gz: 8b4ea9fe529d8b1dcd72447ea1316f324d829742a45f8c133e0ea6304364374158e69af9868290e4298a93ef4a0d22c87ece2c69c402ebd123a872428b23005a
@@ -10,6 +10,7 @@ module Fastlane
10
10
  module Helper
11
11
  class IpaAnalyzeHelper
12
12
  def self.analyze(ipa_path)
13
+ # TODO: need to refactoring => only mkdir temp_dir
13
14
  return {
14
15
  provisiong_info: self.analyze_file_with_unzip(ipa_path, "embedded.mobileprovision"),
15
16
  plist_info: self.analyze_file_with_unzip(ipa_path, "Info.plist"),
@@ -68,6 +69,7 @@ module Fastlane
68
69
  cmd = "codesign -dv #{temp_file_path}"
69
70
  _stdout, stderr, _status = Open3.capture3(cmd)
70
71
  codesigned_flag = stderr.include?("Signed Time")
72
+
71
73
  result["CodeSigned"] = codesigned_flag
72
74
 
73
75
  return result
@@ -78,12 +80,13 @@ module Fastlane
78
80
  tempdir = Dir.pwd + "/tmp-#{SecureRandom.hex(10)}"
79
81
  target_file_path = find_app_folder_path_in_ipa(ipa_path) + "/#{target_file_name}"
80
82
  temp_file_path = "#{tempdir}/#{target_file_name}"
83
+ original_file_path = "#{tempdir}/#{target_file_path}"
81
84
 
82
85
  begin
83
86
  _, error, = Open3.capture3("unzip -o -d #{tempdir} #{ipa_path}")
84
87
  UI.user_error!(error) unless error.empty?
85
88
 
86
- copy_cmd = "#{tempdir}/#{target_file_path} #{temp_file_path}"
89
+ copy_cmd = "#{original_file_path} #{temp_file_path}"
87
90
 
88
91
  case target_file_name
89
92
  when "Info.plist" then
@@ -93,7 +96,7 @@ module Fastlane
93
96
  self.copy_file(copy_cmd)
94
97
  return self.analyze_mobileprovisioning(temp_file_path)
95
98
  when "" then
96
- return self.codesigned(target_file_path)
99
+ return self.codesigned(original_file_path)
97
100
  end
98
101
  rescue StandardError => e
99
102
  FileUtils.rm_r(tempdir)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module IpaInfo
3
- VERSION = "0.8.2"
3
+ VERSION = "0.8.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-ipa_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tarappo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-12 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plist