fastlane-plugin-waldo 1.5.0 → 1.6.0

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: c63c5e44aa13f38c39db0a944c6ac663ed82b1c568c839cee17563e5d0f659d2
4
- data.tar.gz: 1874dcff9398d14a9cd6b0587fc2e1a3bd129c49bdbf228fb9ee9a3a7d444f39
3
+ metadata.gz: 930bf4de096a32ef717f5f4e9a488cf85e13ec1a8c58058ace10ebf583948302
4
+ data.tar.gz: 1d044beebccaaf38e426370990f046fd3fbc59d08d657bccfa8321cf757fa733
5
5
  SHA512:
6
- metadata.gz: cbcbbf1b372bfcdaefcce1c1b211f0bbfa8e0142780abe73a7863006356e321ec18b7b22778a6a82effa4a2f59963c233cc8ba6b08fd8707370bab77b508adc4
7
- data.tar.gz: 38fb3a7fb99ca9572cf7a573cd85abe0179e7b21b126e4c23958929d903ed21e83c72527d4859fc51a1feb126b367dc7ce1bc7a2df7d945fc5b6044a2e8d51f0
6
+ metadata.gz: df074478d0982a2851bc5d2e936859d5843735002dfb505bd12c60a3e5db091618894db725d0734a23540b4106ff254134534b42e2a3f003301429bd4fd52cb2
7
+ data.tar.gz: 533d8fae7a307686e93af2908bc11d3e858f8b6f8cd7ef1136e97851873e425103bf7a85015ce455989685147d7222075289cfe82e724fa8e3762bf54e61e2c9
@@ -23,8 +23,6 @@ module Fastlane
23
23
  apk_path_default = Dir["*.apk"].last || Dir[File.join('app', 'build', 'outputs', 'apk', 'app-release.apk')].last
24
24
  when :ios
25
25
  app_path_default = Dir["*.app"].sort_by { |x| File.mtime(x) }.last
26
- # No default dsym_path for now; user must specify it explicitly:
27
- # dsym_path_default = (Dir["./**/*.dSYM"] + Dir["./**/*.dSYM.zip"]).sort_by { |x| File.mtime(x) }.last
28
26
  ipa_path_default = Dir["*.ipa"].sort_by { |x| File.mtime(x) }.last
29
27
  end
30
28
 
@@ -44,12 +42,14 @@ module Fastlane
44
42
  optional: true),
45
43
  FastlaneCore::ConfigItem.new(key: :dsym_path,
46
44
  env_name: 'WALDO_DSYM_PATH',
47
- # No default dsym_path for now; user must specify it explicitly:
48
45
  description: 'Path to your dSYM file(s)',
49
- # description: 'Path to your dSYM file(s) (optional if you use the _gym_ or _xcodebuild_ action)',
50
- # default_value: Actions.lane_context[Actions::SharedValues::DSYM_OUTPUT_PATH] || dsym_path_default,
51
- # default_value_dynamic: true,
52
46
  optional: true),
47
+ FastlaneCore::ConfigItem.new(key: :include_symbols,
48
+ env_name: 'WALDO_INCLUDE_SYMBOLS',
49
+ description: 'Include symbols in upload if true',
50
+ optional: true,
51
+ default_value: false,
52
+ is_string: false),
53
53
  # Android-specific
54
54
  FastlaneCore::ConfigItem.new(key: :apk_path,
55
55
  env_name: 'WALDO_APK_PATH',
@@ -50,6 +50,7 @@ module Fastlane
50
50
  apk_path = in_params[:apk_path]
51
51
  app_path = in_params[:app_path]
52
52
  dsym_path = in_params[:dsym_path]
53
+ include_symbols = in_params[:include_symbols]
53
54
  ipa_path = in_params[:ipa_path]
54
55
  upload_token = in_params[:upload_token]
55
56
  variant_name = in_params[:variant_name]
@@ -64,19 +65,44 @@ module Fastlane
64
65
  if app_path && ipa_path
65
66
  if !File.exist?(app_path)
66
67
  out_params[:ipa_path] = ipa_path
68
+
69
+ app_path = nil
67
70
  elsif !File.exist?(ipa_path)
68
71
  out_params[:app_path] = app_path
72
+
73
+ ipa_path = nil
69
74
  elsif File.mtime(app_path) < File.mtime(ipa_path)
70
75
  out_params[:ipa_path] = ipa_path
76
+
77
+ app_path = nil
71
78
  else
72
79
  out_params[:app_path] = app_path
80
+
81
+ ipa_path = nil
73
82
  end
74
83
  else
75
84
  out_params[:app_path] = app_path if app_path
76
85
  out_params[:ipa_path] = ipa_path if ipa_path
77
86
  end
78
87
 
79
- out_params[:dsym_path] = dsym_path if dsym_path && (app_path || ipa_path)
88
+ if app_path
89
+ if include_symbols
90
+ if !dsym_path
91
+ tmp_path = "#{app_path}.dSYM.zip"
92
+ dsym_path = tmp_path if File.exist?(tmp_path)
93
+ end
94
+
95
+ if !dsym_path
96
+ tmp_path = "#{app_path}.dSYM"
97
+ dsym_path = tmp_path if File.exist?(tmp_path)
98
+ end
99
+ end
100
+
101
+ out_params[:dsym_path] = dsym_path if dsym_path
102
+ else
103
+ out_params[:dsym_path] = dsym_path if dsym_path && ipa_path
104
+ end
105
+
80
106
  out_params[:upload_token] = upload_token if upload_token && !upload_token.empty?
81
107
  out_params[:variant_name] = variant_name if variant_name
82
108
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Waldo
3
- VERSION = "1.5.0"
3
+ VERSION = "1.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-waldo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - J. G. Pusey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.0.6
100
+ rubygems_version: 3.1.2
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Upload build to Waldo