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 +5 -5
- data/README.md +43 -28
- data/lib/fastlane/plugin/waldo/actions/waldo_action.rb +13 -15
- data/lib/fastlane/plugin/waldo/assets/WaldoCLI.sh +672 -0
- data/lib/fastlane/plugin/waldo/helper/waldo_helper.rb +52 -379
- data/lib/fastlane/plugin/waldo/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fa67171d14f9daf43bb1e2d64b6b2add082b014b3bc9063f6c6d89f94f12bce6
|
4
|
+
data.tar.gz: 506bbdf57902a6bc9eb53de9ec511dc9402db1f4b186a436b3596f583506e1ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
62
|
-
|
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(
|
69
|
-
|
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
|
73
|
-
>
|
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(
|
93
|
-
|
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.
|
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]
|
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]
|
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
|