fastlane-plugin-emerge 0.10.6 → 0.10.8
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 +15 -3
- data/lib/fastlane/plugin/emerge/actions/emerge_action.rb +11 -4
- 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: e400de6b005160e9d28d0034375e423dbde6dcecb60c75b11d202fb01d6eb838
|
4
|
+
data.tar.gz: 3b45cf16727a516fe70c8712fe1c65735cf7fa6c80cd25241b772c85d8950ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c88f72658721ce2e50a0deb36ef744fc205f451da469909ac29d957abecad0f558c1f695217fd3841019d94df0f638407b268abca79c28fcc119eb99099ecaf0
|
7
|
+
data.tar.gz: 44911ca631006b7ee5cd88b29b0fd4c09a70cd1357588dba712fa6f3013bfaf257bdc709d8360add5902359c8e6dfe45557b1998b8598b6fceb2a4c4c1b2912d
|
data/README.md
CHANGED
@@ -16,7 +16,9 @@ fastlane add_plugin emerge
|
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
|
-
|
19
|
+
### API Token
|
20
|
+
|
21
|
+
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
22
|
|
21
23
|
### Size Analysis
|
22
24
|
|
@@ -37,12 +39,22 @@ For a full list of available parameters run `fastlane action emerge`.
|
|
37
39
|
|
38
40
|
### Snapshot Testing
|
39
41
|
|
42
|
+
Emerge Snapshot Testing works by parsing Xcode Previews _from the app binary_. This means the upload to Emerge's service needs to include Previews as part of the app code. There are a couple ways to do this:
|
43
|
+
|
44
|
+
#### Re-use a unit test build with the `emerge()` action
|
45
|
+
|
46
|
+
If you're already running unit tests with fastlane, simply call the `emerge()` action after running unit tests to automatically upload the unit test build to Emerge. The action will detect the build generated for unit tests, or the `file_path` param can be explicitly set. Generally this build is a Debug build and should have Previews code included.
|
47
|
+
|
48
|
+
#### Generate a new build with the `emerge_snapshot()` action
|
49
|
+
|
50
|
+
This will build the app from scratch with recommended configurations to prevent Previews from being removed/stripped, and then upload the built app to Emerge.
|
51
|
+
|
40
52
|
```ruby
|
41
53
|
platform :ios do
|
42
54
|
lane :snapshot_testing do
|
43
|
-
# Call
|
55
|
+
# Call the `emerge_snapshot()` action with the respective scheme for
|
44
56
|
# us to build. We will generate a build with the recommended settings
|
45
|
-
# and upload to
|
57
|
+
# and upload to Emerge's API.
|
46
58
|
emerge_snapshot(scheme: 'Hacker News')
|
47
59
|
end
|
48
60
|
end
|
@@ -37,8 +37,10 @@ module Fastlane
|
|
37
37
|
order_file_version = params[:order_file_version]
|
38
38
|
config_path = params[:config_path]
|
39
39
|
|
40
|
-
if file_path.nil?
|
41
|
-
UI.error("
|
40
|
+
if file_path.nil?
|
41
|
+
UI.error("No input file was provided, make sure it is set in the action")
|
42
|
+
elsif !File.exist?(file_path)
|
43
|
+
UI.error("No file exists at #{file_path}")
|
42
44
|
return false
|
43
45
|
else
|
44
46
|
UI.message("Using file_path: #{file_path}")
|
@@ -97,7 +99,7 @@ module Fastlane
|
|
97
99
|
elsif (extension == '.zip' || extension == '.ipa') && params[:linkmaps] && params[:linkmaps].length > 0
|
98
100
|
UI.error("Provided #{extension == '.zip' ? 'zipped archive' : 'ipa'} and linkmaps, linkmaps will not be added to upload.")
|
99
101
|
elsif extension != '.zip' && extension != '.ipa'
|
100
|
-
UI.error("Invalid input file")
|
102
|
+
UI.error("Invalid input file extension: #{extension}")
|
101
103
|
return false
|
102
104
|
end
|
103
105
|
|
@@ -112,7 +114,8 @@ module Fastlane
|
|
112
114
|
orderFileVersion: order_file_version,
|
113
115
|
appIdSuffix: params[:app_id_suffix],
|
114
116
|
releaseNotes: params[:release_notes],
|
115
|
-
tag: tag || "default"
|
117
|
+
tag: tag || "default",
|
118
|
+
buildDir: params[:build_dir]
|
116
119
|
}
|
117
120
|
upload_id = Helper::EmergeHelper.perform_upload(api_token, params, file_path)
|
118
121
|
UI.success("🎉 Your app is processing, you can find the results at https://emergetools.com/build/#{upload_id}")
|
@@ -215,6 +218,10 @@ module Fastlane
|
|
215
218
|
FastlaneCore::ConfigItem.new(key: :release_notes,
|
216
219
|
description: "A markdown string with release notes for the upload",
|
217
220
|
optional: true,
|
221
|
+
type: String),
|
222
|
+
FastlaneCore::ConfigItem.new(key: :build_dir,
|
223
|
+
description: "The directory used to build the app",
|
224
|
+
optional: true,
|
218
225
|
type: String)
|
219
226
|
]
|
220
227
|
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.10.
|
4
|
+
version: 0.10.8
|
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:
|
11
|
+
date: 2025-05-14 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.
|
189
|
+
rubygems_version: 3.5.11
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Fastlane plugin for Emerge
|