fastlane-plugin-waldo 1.3.0 → 2.0.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
- SHA1:
3
- metadata.gz: 1ed8c04c2045ecc72f5bae2886d924aa267dbf01
4
- data.tar.gz: 56f47c14e035e955ca002a891648d4a96cfc1596
2
+ SHA256:
3
+ metadata.gz: fa67171d14f9daf43bb1e2d64b6b2add082b014b3bc9063f6c6d89f94f12bce6
4
+ data.tar.gz: 506bbdf57902a6bc9eb53de9ec511dc9402db1f4b186a436b3596f583506e1ff
5
5
  SHA512:
6
- metadata.gz: 9507565edfe335c48757bc2283057b7a5235e0cf712c94fd5e70d4fd26ad3ba3f9ee8c13fcbad1126cc8c29ca178e6a188ce27d5ea85ce0fe569fba7cc6efb07
7
- data.tar.gz: 5a07ca19ae171dddb902bfb96677c40fa0b00ab5a42b201529d89c3708d6328689105db90a081e033daf0b1fe19ddbd466a78409169cbd54eb377a66459a4f9c
6
+ metadata.gz: e5b75644e5a86cb924bcc0d6c83e0421b16ac165ab8eacbbe35abc0eaef34235f590949a1466a3b0bc2e6fd96da799dcc7c08a1ba4cd51ed45051d5f0cb89817
7
+ data.tar.gz: f421167cc09941741c7e7fc368b6a771839108d200184e0e41bf47be09ee44df958e6534f9595d9860204e3ddd2fa0bf9e5bfb022d7fae2415c9ed1c73dac2a9
data/README.md CHANGED
@@ -22,26 +22,6 @@ which allows you to upload an iOS or Android build to Waldo for processing.
22
22
  To get started, first obtain an upload token from Waldo for your app. These are
23
23
  used to authenticate with the Waldo backend on each call.
24
24
 
25
- ### Uploading an iOS Device Build
26
-
27
- Build a new IPA for your app. If you use `gym` (aka `build_ios_app`) to build
28
- your IPA, `waldo` will automatically find and upload the generated IPA.
29
-
30
- ```ruby
31
- gym(export_method: 'development') # or 'ad-hoc'
32
- waldo(upload_token: '0123456789abcdef0123456789abcdef')
33
- ```
34
-
35
- > **Note:** You _must_ specify the Waldo upload token.
36
-
37
- If you do _not_ use `gym` to build your IPA, you will need to explicitly
38
- specify the IPA path to `waldo`:
39
-
40
- ```ruby
41
- waldo(ipa_path: '/path/to/YourApp.ipa',
42
- upload_token: '0123456789abcdef0123456789abcdef')
43
- ```
44
-
45
25
  ### Uploading an iOS Simulator Build
46
26
 
47
27
  Create a new simulator build for your app.
@@ -58,19 +38,53 @@ gym(configuration: 'Release',
58
38
  destination: 'generic/platform=iOS Simulator')
59
39
  ```
60
40
 
61
- You can then find your app relative to the derived data path in the
62
- `./Build/Products/Release-iphonesimulator` directory.
41
+ You can then find your app (and associated symbols) relative to the derived
42
+ data path:
43
+
44
+ ```ruby
45
+ app_path = File.join(derived_data_path,
46
+ 'Build',
47
+ 'Products',
48
+ 'ReleaseSim-iphonesimulator',
49
+ 'YourApp.app')
50
+ ```
63
51
 
64
52
  Regardless of how you create the actual simulator build for your app, the
65
53
  upload itself is very simple:
66
54
 
67
55
  ```ruby
68
- waldo(app_path: '/path/to/YourApp.app',
69
- upload_token: '0123456789abcdef0123456789abcdef')
56
+ waldo(upload_token: '0123456789abcdef0123456789abcdef',
57
+ app_path: '/path/to/YourApp.app',
58
+ include_symbols: true)
59
+ ```
60
+
61
+ > **Note:** You _must_ specify _both_ the Waldo upload token _and_ the path of
62
+ > the `.app`. The `include_symbols` parameter is optional but we highly
63
+ > recommend supplying it.
64
+
65
+ ### Uploading an iOS Device Build
66
+
67
+ Build a new IPA for your app. If you use `gym` (aka `build_ios_app`) to build
68
+ your IPA, `waldo` will automatically find and upload the generated IPA.
69
+
70
+ ```ruby
71
+ gym(export_method: 'ad-hoc') # or 'development'
72
+
73
+ waldo(upload_token: '0123456789abcdef0123456789abcdef',
74
+ dsym_path: lane_context[SharedValues::DSYM_OUTPUT_PATH])
70
75
  ```
71
76
 
72
- > **Note:** You _must_ specify _both_ the path of the `.app` _and_ the Waldo
73
- > upload token.
77
+ > **Note:** You _must_ specify the Waldo upload token. The `dsym_path`
78
+ > parameter is optional but we highly recommend supplying it.
79
+
80
+ If you do _not_ use `gym` to build your IPA, you will need to explicitly
81
+ specify the IPA path to `waldo`:
82
+
83
+ ```ruby
84
+ waldo(upload_token: '0123456789abcdef0123456789abcdef',
85
+ ipa_path: '/path/to/YourApp.ipa',
86
+ dsym_path: '/path/to/YourApp.app.dSYM.zip')
87
+ ```
74
88
 
75
89
  ### Uploading an Android Build
76
90
 
@@ -80,6 +94,7 @@ will automatically find and upload the generated APK.
80
94
  ```ruby
81
95
  gradle(task: 'assemble',
82
96
  build_type: 'Release')
97
+
83
98
  waldo(upload_token: '0123456789abcdef0123456789abcdef')
84
99
  ```
85
100
 
@@ -89,8 +104,8 @@ If you do _not_ use `gradle` to build your APK, you will need to explicitly
89
104
  specify the APK path to `waldo`:
90
105
 
91
106
  ```ruby
92
- waldo(apk_path: '/path/to/YourApp.apk',
93
- upload_token: '0123456789abcdef0123456789abcdef')
107
+ waldo(upload_token: '0123456789abcdef0123456789abcdef',
108
+ apk_path: '/path/to/YourApp.apk')
94
109
  ```
95
110
 
96
111
  ## Issues and Feedback
@@ -4,12 +4,10 @@ module Fastlane
4
4
  def self.run(params)
5
5
  mparams = Helper::WaldoHelper.filter_parameters(params)
6
6
 
7
- return unless Helper::WaldoHelper.validate_parameters(mparams)
8
-
9
7
  FastlaneCore::PrintTable.print_values(config: mparams,
10
8
  title: "Summary for waldo #{Fastlane::Waldo::VERSION.to_s}")
11
9
 
12
- Helper::WaldoHelper.upload_build
10
+ Helper::WaldoHelper.upload_build_with_symbols(mparams)
13
11
  end
14
12
 
15
13
  def self.authors
@@ -17,33 +15,33 @@ module Fastlane
17
15
  end
18
16
 
19
17
  def self.available_options
20
- case Helper::WaldoHelper.get_platform
21
- when :android
22
- apk_path_default = Dir["*.apk"].last || Dir[File.join('app', 'build', 'outputs', 'apk', 'app-release.apk')].last
23
- when :ios
24
- app_path_default = Dir["*.app"].sort_by { |x| File.mtime(x) }.last
25
- ipa_path_default = Dir["*.ipa"].sort_by { |x| File.mtime(x) }.last
26
- end
27
-
28
18
  [
29
19
  # iOS-specific
30
20
  FastlaneCore::ConfigItem.new(key: :app_path,
31
21
  env_name: 'WALDO_APP_PATH',
32
22
  description: 'Path to your app file',
33
- default_value: app_path_default,
34
- default_value_dynamic: true,
35
23
  optional: true),
36
24
  FastlaneCore::ConfigItem.new(key: :ipa_path,
37
25
  env_name: 'WALDO_IPA_PATH',
38
26
  description: 'Path to your IPA file (optional if you use the _gym_ or _xcodebuild_ action)',
39
- default_value: Actions.lane_context[Actions::SharedValues::IPA_OUTPUT_PATH] || ipa_path_default,
27
+ default_value: Actions.lane_context[Actions::SharedValues::IPA_OUTPUT_PATH],
40
28
  default_value_dynamic: true,
41
29
  optional: true),
30
+ FastlaneCore::ConfigItem.new(key: :dsym_path,
31
+ env_name: 'WALDO_DSYM_PATH',
32
+ description: 'Path to your dSYM file(s)',
33
+ optional: true),
34
+ FastlaneCore::ConfigItem.new(key: :include_symbols,
35
+ env_name: 'WALDO_INCLUDE_SYMBOLS',
36
+ description: 'Include symbols in upload if true',
37
+ optional: true,
38
+ default_value: false,
39
+ is_string: false),
42
40
  # Android-specific
43
41
  FastlaneCore::ConfigItem.new(key: :apk_path,
44
42
  env_name: 'WALDO_APK_PATH',
45
43
  description: 'Path to your APK file (optional if you use the _gradle_ action)',
46
- default_value: Actions.lane_context[Actions::SharedValues::GRADLE_APK_OUTPUT_PATH] || apk_path_default,
44
+ default_value: Actions.lane_context[Actions::SharedValues::GRADLE_APK_OUTPUT_PATH],
47
45
  default_value_dynamic: true,
48
46
  optional: true),
49
47
  # General