fastlane-plugin-emerge 0.9.0 → 0.10.1
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 +4 -4
- data/README.md +21 -5
- data/lib/fastlane/plugin/emerge/actions/emerge_action.rb +11 -5
- data/lib/fastlane/plugin/emerge/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02057e8809e34ac67fe9c522e7addd6fc598f94fff4bbe7dd31ba3196b1bde88
|
4
|
+
data.tar.gz: 2de7d0f4bac7fc5070f9b40c02c0bd32c8b02cb3034ff40e43515ba2e3474464
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89ba8a527a601d2b89fd022a195bdba4cc2d7bdc6328e4f99acc723c33f0eca0e03874b53c0aa2cf3f3603d5c758abbd0c9ef95d93613698815bb8ba1e346789
|
7
|
+
data.tar.gz: 3a962e586922ec8bae718875b47a8c37d4630838f5999311df4085659d26aa18434210b38fc8ded955870cdae3c96a4ddfa3a976d9f45339c033430453e90d78
|
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.
|
@@ -33,9 +33,10 @@ module Fastlane
|
|
33
33
|
UI.error("Invalid input file")
|
34
34
|
return
|
35
35
|
end
|
36
|
+
extension = File.extname(file_path)
|
36
37
|
|
37
38
|
# If the user provided a .app we will look for dsyms and package it into a zipped xcarchive
|
38
|
-
if
|
39
|
+
if extension == '.app'
|
39
40
|
absolute_path = Pathname.new(File.expand_path(file_path))
|
40
41
|
UI.message("A .app was provided, dSYMs will be looked for in #{absolute_path.dirname}")
|
41
42
|
Dir.mktmpdir do |d|
|
@@ -64,7 +65,7 @@ module Fastlane
|
|
64
65
|
)
|
65
66
|
UI.message("Archive generated at #{file_path}")
|
66
67
|
end
|
67
|
-
elsif
|
68
|
+
elsif extension == '.xcarchive'
|
68
69
|
zip_path = file_path + ".zip"
|
69
70
|
if params[:linkmaps] && params[:linkmaps].length > 0
|
70
71
|
linkmap_folder = "#{file_path}/Linkmaps/"
|
@@ -81,9 +82,9 @@ module Fastlane
|
|
81
82
|
include: []
|
82
83
|
)
|
83
84
|
file_path = zip_path
|
84
|
-
elsif
|
85
|
-
UI.error("Provided zipped archive and linkmaps, linkmaps will not be added to
|
86
|
-
elsif
|
85
|
+
elsif (extension == '.zip' || extension == '.ipa') && params[:linkmaps] && params[:linkmaps].length > 0
|
86
|
+
UI.error("Provided #{extension == '.zip' ? 'zipped archive' : 'ipa'} and linkmaps, linkmaps will not be added to upload.")
|
87
|
+
elsif extension != '.zip' && extension != '.ipa'
|
87
88
|
UI.error("Invalid input file")
|
88
89
|
return
|
89
90
|
end
|
@@ -96,6 +97,7 @@ module Fastlane
|
|
96
97
|
repoName: repo_name,
|
97
98
|
gitlabProjectId: gitlab_project_id,
|
98
99
|
orderFileVersion: order_file_version,
|
100
|
+
appIdSuffix: params[:app_id_suffix],
|
99
101
|
tag: tag || "default"
|
100
102
|
}
|
101
103
|
upload_id = Helper::EmergeHelper.perform_upload(api_token, params, file_path)
|
@@ -186,6 +188,10 @@ module Fastlane
|
|
186
188
|
FastlaneCore::ConfigItem.new(key: :config_path,
|
187
189
|
description: "Path to Emerge config path",
|
188
190
|
optional: true,
|
191
|
+
type: String),
|
192
|
+
FastlaneCore::ConfigItem.new(key: :app_id_suffix,
|
193
|
+
description: "A suffix to append to the application ID to differentiate between different builds of the same app",
|
194
|
+
optional: true,
|
189
195
|
type: String)
|
190
196
|
]
|
191
197
|
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.1
|
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-
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
rubygems_version: 3.3
|
189
|
+
rubygems_version: 3.2.3
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Fastlane plugin for Emerge
|