xamarin-test-cloud 0.9.31 → 0.9.32

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
  SHA1:
3
- metadata.gz: e6cc7a61fe226ec7c9e26bd4f65529fcdba4ed12
4
- data.tar.gz: 372e167b5ced6a7408aebe3762f40cc634f363c3
3
+ metadata.gz: f0b91cb57f390a497ed342bae9c3abdc87d35171
4
+ data.tar.gz: eb044b818687a84523d76d5c7125b9e04bd6014b
5
5
  SHA512:
6
- metadata.gz: c9f2992ebfcf74ba9bbd075a7dec20b9a541e32d34dac1853e13f061465a7967d29bf353830d9560f82a06dc4cc10d351c81ff5a21e71a94cb51312aab22ab80
7
- data.tar.gz: e6528050138788c57a8a2f3420b6678cefd568803d251aeb76369883a45252c19a01e3b7224823df8d5c0e83d10bf78651c72b8f883eb4324818f173213c0123
6
+ metadata.gz: b6c147623593273e4a8d89b3afe9dc3472f969f65cd4fd05d3c25e9da99a5bc4b66ca33cf096b713f41c25b699bd9ec7c0a7b7dc3f61ce6561f85158fe9d3784
7
+ data.tar.gz: 379cae750e0ca3cd5804ed63f66684112ee2766dd4a7282bdda023abfa2c0aea41c94d87d50a66e145f9debf943cc7ef6e128e3b32c710db0b75f9a7e08d9ba0
@@ -413,7 +413,7 @@ module XamarinTestCloud
413
413
  'series' => self.series,
414
414
  'api_key' => api_key,
415
415
  'dsym_file' => dsym_zip,
416
- 'dsym_filename' => dsym_zipped_name,
416
+ 'dsym_filename' => dsym_file_name,
417
417
  'app_filename' => File.basename(app)}
418
418
 
419
419
  if profile #only if config and profile
@@ -532,9 +532,16 @@ module XamarinTestCloud
532
532
  log_header('Negotiating upload')
533
533
 
534
534
  app_digest = digest(app)
535
+
535
536
  dsym_digest= nil
536
537
  if dsym
537
- dsym_abs_path= File.join(tmpdir,dsym_zipped_name)
538
+ FileUtils.cp_r(dsym,tmpdir)
539
+ files_in_dwarf = Dir.glob(File.join(tmpdir, File.basename(dsym), 'Contents','Resources','DWARF','*'))
540
+ unless files_in_dwarf.count == 1
541
+ raise ValidationError, "dSym #{dsym} contains more than one file in Contents/Resources/DWARF: #{files_in_dwarf}"
542
+ end
543
+
544
+ dsym_abs_path= files_in_dwarf.first
538
545
  dsym_digest = digest(dsym_abs_path)
539
546
  end
540
547
  out = {'hashes' => hashes, 'app_hash' => app_digest, 'dsym_hash' => dsym_digest}
@@ -657,16 +664,6 @@ module XamarinTestCloud
657
664
  files << config
658
665
  end
659
666
 
660
- if dsym
661
- FileUtils.cp_r(dsym,tmpdir)
662
- dsym_files = Dir.glob(File.join(tmpdir, File.basename(dsym), '**','*'))
663
-
664
- outfile = File.join(tmpdir,dsym_zipped_name)
665
- zip_dsym_files(dsym_files,tmpdir, outfile)
666
-
667
- end
668
-
669
-
670
667
  files += Dir.glob(File.join(tmpdir,"vendor", 'cache', '*'))
671
668
 
672
669
  if workspace and workspace.strip != ''
@@ -683,9 +680,9 @@ module XamarinTestCloud
683
680
  {:feature_prefix => dir, :workspace_prefix => workspace, :files => files.find_all { |file_or_dir| File.file? file_or_dir }}
684
681
  end
685
682
 
686
- def dsym_zipped_name
683
+ def dsym_file_name
687
684
  if dsym
688
- "#{File.basename(self.app)}_dSym.zip"
685
+ "#{File.basename(self.app)}_dSym"
689
686
  end
690
687
  end
691
688
 
@@ -819,16 +816,6 @@ module XamarinTestCloud
819
816
  end
820
817
  end
821
818
 
822
- def zip_dsym_files(files,basedir, out)
823
- Zip::ZipFile.open(out, Zip::ZipFile::CREATE) do |zipfile|
824
- files.each do |file|
825
- zipfile.add(file.sub("#{basedir}#{File::Separator}",''), file)
826
- end
827
- end
828
-
829
- end
830
-
831
-
832
819
 
833
820
  def verify_dependencies(path)
834
821
  if is_android?
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = '0.9.31'
2
+ VERSION = '0.9.32'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xamarin-test-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.31
4
+ version: 0.9.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow