fastlane-plugin-emerge 0.10.0 → 0.10.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e0ee7bd40a5841bf9207de85fd19c9f49244b893680e7b60b19c811df754fcd
4
- data.tar.gz: 4a6d7441344186fb1d8623574f732c70aeb25fd57d74ddbe388bf9d4d58e4fb4
3
+ metadata.gz: 4130fb5888b6a3bad42355185be1302fa84c2a76fdc659a377151d9bf695d40f
4
+ data.tar.gz: 9402f64c96f47fed1cdb28761a99efd64585528420ded928fff19cd231d57a77
5
5
  SHA512:
6
- metadata.gz: 69c76da179be424cd8bd9faab5a0c90762de70bc8e2409e3084fb264b7c1d7a81c95671ff80c5f700ea6e9376f19b000b1e5f4f355cf2d3de74c759eb77290d6
7
- data.tar.gz: 5a2c4c637ac3fc26abb5bb201178e56bd3bf0271f8eac43967074c07fe5f4bf93247c33c6947e7fb3f09dbc7806f2a8270d4a8c2a20f848edb9a959ad91f5ff0
6
+ metadata.gz: 31e479d302fa2b35d8fca1d4c7c83237409ea84fb84cd073a656b8b9ee54f6daa89d89864c79a4c2dfcf8ff8b89d5bff2c8fa50f782239e193534c7bd68be6e9
7
+ data.tar.gz: 1ab88a61d1ff490d271a6d0a206f108c9f117be4caefbff878fb42d401a8470105ef700855dd00c5f33dd02948092487f392fd7bd610fe42d0302983ccacf9f6
@@ -31,11 +31,12 @@ module Fastlane
31
31
 
32
32
  if file_path.nil? || !File.exist?(file_path)
33
33
  UI.error("Invalid input file")
34
- return
34
+ return false
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 File.extname(file_path) == '.app'
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 File.extname(file_path) == '.xcarchive'
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,11 +82,11 @@ module Fastlane
81
82
  include: []
82
83
  )
83
84
  file_path = zip_path
84
- elsif File.extname(file_path) == '.zip' && params[:linkmaps] && params[:linkmaps].length > 0
85
- UI.error("Provided zipped archive and linkmaps, linkmaps will not be added to zip.")
86
- elsif File.extname(file_path) != '.zip'
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
- return
89
+ return false
89
90
  end
90
91
 
91
92
  params = {
@@ -97,10 +98,12 @@ module Fastlane
97
98
  gitlabProjectId: gitlab_project_id,
98
99
  orderFileVersion: order_file_version,
99
100
  appIdSuffix: params[:app_id_suffix],
101
+ releaseNotes: params[:release_notes],
100
102
  tag: tag || "default"
101
103
  }
102
104
  upload_id = Helper::EmergeHelper.perform_upload(api_token, params, file_path)
103
105
  UI.success("🎉 Your app is processing, you can find the results at https://emergetools.com/build/#{upload_id}")
106
+ upload_id
104
107
  end
105
108
 
106
109
  def self.copy_dsyms(from, to)
@@ -191,6 +194,10 @@ module Fastlane
191
194
  FastlaneCore::ConfigItem.new(key: :app_id_suffix,
192
195
  description: "A suffix to append to the application ID to differentiate between different builds of the same app",
193
196
  optional: true,
197
+ type: String),
198
+ FastlaneCore::ConfigItem.new(key: :release_notes,
199
+ description: "A markdown string with release notes for the upload",
200
+ optional: true,
194
201
  type: String)
195
202
  ]
196
203
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Emerge
3
- VERSION = "0.10.0"
3
+ VERSION = "0.10.2"
4
4
  end
5
5
  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.0
4
+ version: 0.10.2
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-27 00:00:00.000000000 Z
11
+ date: 2024-07-23 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.25
189
+ rubygems_version: 3.2.3
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: Fastlane plugin for Emerge