fastlane-plugin-emerge 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -5
- data/lib/fastlane/plugin/emerge/actions/emerge_action.rb +5 -0
- data/lib/fastlane/plugin/emerge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e0ee7bd40a5841bf9207de85fd19c9f49244b893680e7b60b19c811df754fcd
|
4
|
+
data.tar.gz: 4a6d7441344186fb1d8623574f732c70aeb25fd57d74ddbe388bf9d4d58e4fb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69c76da179be424cd8bd9faab5a0c90762de70bc8e2409e3084fb264b7c1d7a81c95671ff80c5f700ea6e9376f19b000b1e5f4f355cf2d3de74c759eb77290d6
|
7
|
+
data.tar.gz: 5a2c4c637ac3fc26abb5bb201178e56bd3bf0271f8eac43967074c07fe5f4bf93247c33c6947e7fb3f09dbc7806f2a8270d4a8c2a20f848edb9a959ad91f5ff0
|
data/README.md
CHANGED
@@ -16,14 +16,15 @@ fastlane add_plugin emerge
|
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
|
-
To get started, first obtain an [API token](https://docs.emergetools.com/docs/uploading-basics#obtain-an-api-key) for your organization. The API Token is used to authenticate with the Emerge API in each call.
|
19
|
+
To get started, first obtain an [API token](https://docs.emergetools.com/docs/uploading-basics#obtain-an-api-key) for your organization. The API Token is used to authenticate with the Emerge API in each call. Our actions will automatically pick up the API key if configured as an `EMERGE_API_TOKEN` environment variable.
|
20
20
|
|
21
|
-
|
22
|
-
# Your EMERGE_API_TOKEN is available on your Emerge profile page: https://www.emergetools.com/profile
|
23
|
-
ENV['EMERGE_API_TOKEN'] = 'COPIED_FROM_EMERGETOOLS_PROFILE'
|
21
|
+
### Size Analysis
|
24
22
|
|
25
|
-
|
23
|
+
```ruby
|
24
|
+
platform :ios do
|
26
25
|
lane :app_size do
|
26
|
+
# Make a signed release build via gym() and other tools
|
27
|
+
# and then call our `emerge()` action to upload the artifact to our API
|
27
28
|
emerge()
|
28
29
|
end
|
29
30
|
end
|
@@ -31,6 +32,21 @@ end
|
|
31
32
|
|
32
33
|
For a full list of available parameters run `fastlane action emerge`.
|
33
34
|
|
35
|
+
### Snapshot Testing
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
platform :ios do
|
39
|
+
lane :snapshot_testing do
|
40
|
+
# Call our `emerge_snapshot()` action with the respective scheme for
|
41
|
+
# us to build. We will generate a build with the recommended settings
|
42
|
+
# and upload to our API.
|
43
|
+
emerge_snapshot(scheme: 'Hacker News')
|
44
|
+
end
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
For a full list of available parameters run `fastlane action emerge_snapshot`.
|
49
|
+
|
34
50
|
## Git Configuration
|
35
51
|
|
36
52
|
For build comparisons to work, Emerge needs the appropriate Git `sha` and `base_sha` values set on each build. Emerge will automatically compare a build at `sha` against the build we find matching the `base_sha` for a given application id. We also recommend setting `pr_number`, `branch`, and `repo_name` for the best experience.
|
@@ -96,6 +96,7 @@ module Fastlane
|
|
96
96
|
repoName: repo_name,
|
97
97
|
gitlabProjectId: gitlab_project_id,
|
98
98
|
orderFileVersion: order_file_version,
|
99
|
+
appIdSuffix: params[:app_id_suffix],
|
99
100
|
tag: tag || "default"
|
100
101
|
}
|
101
102
|
upload_id = Helper::EmergeHelper.perform_upload(api_token, params, file_path)
|
@@ -186,6 +187,10 @@ module Fastlane
|
|
186
187
|
FastlaneCore::ConfigItem.new(key: :config_path,
|
187
188
|
description: "Path to Emerge config path",
|
188
189
|
optional: true,
|
190
|
+
type: String),
|
191
|
+
FastlaneCore::ConfigItem.new(key: :app_id_suffix,
|
192
|
+
description: "A suffix to append to the application ID to differentiate between different builds of the same app",
|
193
|
+
optional: true,
|
189
194
|
type: String)
|
190
195
|
]
|
191
196
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-emerge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emerge Tools, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|